I want to list parameter of function for analysis. Can I list the parameter of function using IDA Pro or IDAPython ?
1 Answer
with some hack like this ?
cmt = GetType(ScreenEA());
print cmt
fc = cmt.split("(")
sc = fc[1].split(")")
tc = sc[0].split(",")
for s in tc:
print s
result when cursor is in functionstart
int __stdcall(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
HINSTANCE hInstance
HINSTANCE hPrevInstance
LPSTR lpCmdLine
int nShowCmd
-
What if the function accepts callbacks as parameters? e.g
int __cdecl sub_401000(int (*a1)(int), char a2)
Commented Aug 2, 2016 at 9:01 -
well if world falls tomorrow because we are hacking we fall with it and hack underworld or if we are unlucky get to over-world and hack there any way ws posted a comment to the original question where it appears there is a better method to get the function arguments take a look at the link posted by ws to original qestion– blabbCommented Aug 2, 2016 at 12:53