-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_ida_details.py
More file actions
43 lines (37 loc) · 1.01 KB
/
get_ida_details.py
File metadata and controls
43 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import ida_pro
import ida_auto
import ida_funcs
import ida_hexrays
import ida_segment
import idautils
import ida_typeinf
import idc
import time
START = "============================== START =============================="
END = "============================== END =============================="
def get_typedefs():
idati = ida_typeinf.get_idati()
decls=""
for ordinal in range(0, ida_typeinf.get_ordinal_qty(idati)):
decls+="%d," % ordinal
# ti = ida_typeinf.tinfo_t()
# if ti.get_numbered_type(idati, ordinal):
# print ordinal, ti
# test = ti.serialize()
# print type(test)
if decls.endswith(","):
decls = decls[:-1]
print("decls:", decls)
out = idc.print_decls(decls, 4)
print(out)
# ti.print()
return
def main():
print(START)
# print("Idc args: " + str(idc.ARGV))
get_typedefs()
print(END)
return
ida_auto.auto_wait()
main()
ida_pro.qexit(0)