Avoid crashing when airodump exits

This commit is contained in:
derv82
2018-02-27 15:23:32 -05:00
parent a8f05d31d4
commit 59c566a28d

View File

@@ -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)) self.err_msg = '\r{!} {R}Airodump exited unexpectedly (Code: %d){O} Command: {W}%s' % (airodump.pid.poll(), " ".join(airodump.pid.command))
raise KeyboardInterrupt raise KeyboardInterrupt
try:
self.targets = airodump.get_targets() self.targets = airodump.get_targets()
except Exception, e:
break
if self.found_target(): if self.found_target():
# We found the target we want # We found the target we want