Avoid crashing when airodump exits
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user