0

I want to list parameter of function for analysis. Can I list the parameter of function using IDA Pro or IDAPython ?

user572575
  • 141
  • 5
  • 4
    The answer to this question is covered here: http://reverseengineering.stackexchange.com/questions/8870/extracting-arguments-from-ida – w s Aug 02 '16 at 09:09

1 Answers1

2

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
blabb
  • 16,376
  • 1
  • 15
  • 30
  • What if the function accepts callbacks as parameters? e.g int __cdecl sub_401000(int (*a1)(int), char a2) – Ahmed Abdelfattah Aug 02 '16 at 09: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 – blabb Aug 02 '16 at 12:53