Reaver: Stop if AP becomes locked. Config/Args cleanup

This commit is contained in:
derv82
2018-08-23 18:57:56 -07:00
parent 9beae4beb2
commit 750fe086fa
3 changed files with 67 additions and 52 deletions

View File

@@ -115,6 +115,10 @@ class Reaver(Attack, Dependency):
# Check if we cracked it
self.crack_result = self.parse_crack_result(stdout)
# Check if locked
if self.locked and not Configuration.wps_ignore_lock:
raise Exception('{O}Because access point is {R}Locked{W}')
time.sleep(0.5)
# Check if crack result is in output