Avoid crashing when airodump exits
This commit is contained in:
1 parent
a8f05d31d4
commit
59c566a28d
1 file changed
+3
@@ -37,7 +37,10 @@ class Scanner(object):
|
||||
self.err_msg = '\r{!} {R}Airodump exited unexpectedly (Code: %d){O} Command: {W}%s' % (airodump.pid.poll(), " ".join(airodump.pid.command))
|
||||
raise KeyboardInterrupt
|
||||
|
||||
try:
|
||||
self.targets = airodump.get_targets()
|
||||
except Exception, e:
|
||||
break
|
||||
|
||||
if self.found_target():
|
||||
# We found the target we want
|
||||
|
||||
Reference in new issue
Block a user