File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ disassembly and decompilation views.
45
45
BAP has the ability to tag a lot of possible attributes to
46
46
instructions. These BIR attributes can be tagged automatically as
47
47
comments in IDA, by running arbitrary plugins in BAP. Just hit
48
- ` Ctrl +S` .
48
+ ` Shift +S` .
49
49
50
50
Here's an example of output for Saluki showing that a certain malloc
51
51
is unchecked (pointing to a potential vulnerability).
@@ -68,7 +68,7 @@ to the attribute location by selecting it.
68
68
### BAP Task Manager and Viewer
69
69
70
70
Every instance of BAP will have a corresponding view, that will
71
- accumulate all data written by BAP. The BAP Viewer (` Ctrl-Alt -F5 ` )
71
+ accumulate all data written by BAP. The BAP Viewer (` Ctrl-Shift -F5 ` )
72
72
provides an easy way to switch between multiple BAP Views.
73
73
74
74
Since you can run multiple instances of BAP asynchronously, it is
Original file line number Diff line number Diff line change @@ -402,7 +402,10 @@ def location(self):
402
402
if self .level == 2 :
403
403
top = index_up (self .index , 1 )
404
404
location_id = self .incident .locations [top .row ()]
405
- return self .model .locations [location_id ]
405
+ if self .model .locations is None :
406
+ return None
407
+ else :
408
+ return self .model .locations .get (location_id )
406
409
407
410
@property
408
411
def point (self ):
@@ -523,7 +526,7 @@ def number_of_locations(msg):
523
526
524
527
@defmethod ('row-count' , level = 1 , column = 0 )
525
528
def backtrace_length (msg ):
526
- return len (msg .location )
529
+ return 0 if msg . location is None else len (msg .location )
527
530
528
531
529
532
class Incident (object ):
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def init(self):
29
29
path = os .path .join (plugin_path , plugin )
30
30
if not plugin .endswith ('.py' ) or plugin .startswith ('__' ):
31
31
continue # Skip non-plugins
32
- idc . Message ('BAP> Loading {}\n ' .format (plugin ))
32
+ idaapi . msg ('BAP> Loading {}\n ' .format (plugin ))
33
33
self .plugins .append (idaapi .load_plugin (path ))
34
34
return idaapi .PLUGIN_KEEP
35
35
You can’t perform that action at this time.
0 commit comments