Skip to content

Commit 9659e9f

Browse files
committed
Fix regression in radare2 support.
1 parent d5e9168 commit 9659e9f

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

conScan.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
from binaryninja import *
1+
# Try to import stuff.
2+
try:
3+
from binaryninja import *
4+
except:
5+
print "[!!] Not running in Binary Ninja"
6+
7+
try:
8+
import r2pipe
9+
except:
10+
print "[!!] Not running in Radare2"
211

312
class ilVar(object):
413
def __hash__(self):

dependency.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55
'''
66

77
import analysis_engine as ae
8-
from binaryninja import *
8+
# Try to import stuff.
9+
try:
10+
from binaryninja import *
11+
except:
12+
print "[!!] Not running in Binary Ninja"
13+
14+
try:
15+
import r2pipe
16+
except:
17+
print "[!!] Not running in Radare2"
918

1019
class ImportedCall(object):
1120
'''

0 commit comments

Comments
 (0)