我在 IDA 中打开 .exe 文件并附加了 .pdb,因此 IDA 扫描 .pdb 并显示函数名称。
我需要获取许多函数的签名字符串。我不能这样做手工,所以我想用内置它IDA的Python控制台
例如:地址00007FF68E528660上的函数有签名int __fastcall lua_error(lua_State *L)
我得到了我的函数地址 (ea)
def GetFunctionByName(name):
ea = BeginEA()
for funcAddr in Functions(SegStart(ea), SegEnd(ea)):
funcName = GetFunctionName(funcAddr)
if funcName == name:
return funcAddr
return None
print function_i_need(GetFunctionByName("lua_error"))
#should print "int __fastcall lua_error(lua_State *L)" or something familiar
我不知道如何实施 function_i_need
如何使用 python 代码获取该签名字符串?