File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ def main():
34
34
print ("Need log file to parse data..." );
35
35
return ;
36
36
buff = f .read ();
37
+ functions = set ()
37
38
for index in range (0 , len (buff )):
38
39
exec_count = ord (buff [index ]);
39
40
if exec_count == 0 :
@@ -43,6 +44,12 @@ def main():
43
44
if exec_count > 11 : exec_count = 11 ;
44
45
45
46
ida_color = clist [exec_count ];
47
+ if (not (idc .GetFunctionName (imagebase + index ) in functions )):
48
+ func = idc .GetFunctionName (imagebase + index )
49
+ print "hit @ 0x%08x function %s" % (imagebase + index , func )
50
+ functions .add (func )
51
+
52
+
46
53
47
54
idc .SetColor (imagebase + index , CIC_ITEM , ida_color );
48
55
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env pythong
2
+ # modified by @_wirepair to 'white out' or diff two IDAPinLogger runs.
3
+ import idaapi
4
+ import idc
5
+ import struct
6
+ import colorsys
7
+
8
+ def main ():
9
+ ida_color = 0xFFFFFFFF
10
+ start = FirstSeg ()
11
+ end = SegEnd (start )
12
+ while (start != idc .BADADDR ):
13
+
14
+ for i in range (start , end ):
15
+ idc .SetColor (i , CIC_ITEM , ida_color );
16
+ start = NextSeg (start )
17
+ end = SegEnd (start )
18
+
19
+
20
+
21
+ if __name__ == "__main__" :
22
+ main ()
You can’t perform that action at this time.
0 commit comments