(Reaver) Run WPS Pin Attack if Pixie-Dust fails.

This commit is contained in:
derv82
2018-08-22 16:42:16 -07:00
parent 04e67dba21
commit 96db340b57
3 changed files with 99 additions and 22 deletions

View File

@@ -40,6 +40,10 @@ class AttackWPS(Attack):
bully.stop()
self.crack_result = bully.crack_result
self.success = self.crack_result is not None
if self.success:
return True
# Bully: WPS PIN Attack
return self.success
@@ -49,11 +53,22 @@ class AttackWPS(Attack):
if not reaver.is_pixiedust_supported():
Color.pl('{!} {R}your version of "reaver" does not support the {O}WPS pixie-dust attack{W}')
return False
else:
# Reaver: Pixie-dust
reaver = Reaver(self.target)
reaver.run()
# Reaver: PixieDust then WPS PIN attack.
for pixie_dust in [True, False]:
if pixie_dust and not reaver.is_pixiedust_supported():
Color.pl('{!} {R}your version of "reaver" does not support the {O}WPS pixie-dust attack{W}')
continue
reaver = Reaver(self.target, pixie_dust=pixie_dust)
try:
reaver.run()
except KeyboardInterrupt:
Color.pl('\n{!} {O}Interrupted{W}')
continue
self.crack_result = reaver.crack_result
self.success = self.crack_result is not None
return self.success
if self.success:
return True
return False