From f90aa7f7d645a757ccf39e0a63293e04106ead9d Mon Sep 17 00:00:00 2001 From: derv82 Date: Mon, 8 Jun 2015 23:10:23 -0700 Subject: [PATCH] WPS PIN attack: show percentage --- py/AttackWPS.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py/AttackWPS.py b/py/AttackWPS.py index 8ed2c0d..b66e974 100644 --- a/py/AttackWPS.py +++ b/py/AttackWPS.py @@ -188,9 +188,11 @@ class AttackWPS(Attack): while True: time.sleep(1) + percent = 100 * float(pin_current) / float(pin_total) Color.clear_line() - Color.p('\r{+} {C}WPS PIN attack{W} ') - Color.p('({G}%d{W}/{G}%d pins{W}, ' % (pin_current, pin_total)) + Color.p('\r{+} {C}WPS PIN attack{W} (') + Color.p('{G}%.2f%% done{W}, ' % percent) + Color.p('{G}%d{W}/{G}%d pins{W}, ' % (pin_current, pin_total)) Color.p('{R}%d/%d failures{W}) ' % (failures, \ Configuration.wps_fail_threshold)) @@ -258,6 +260,7 @@ class AttackWPS(Attack): [!] WARNING: Failed to associate with 00:24:7B:AB:5C:EE (ESSID: myqwest0445) [!] WARNING: Detected AP rate limiting, waiting 60 seconds before re-checking [!] WARNING: 25 successive start failures + [!] WARNING: Failed to associate with B2:B2:DC:A1:35:94 (ESSID: CenturyLink2217) [+] 0.55% complete. Elapsed time: 0d0h2m21s. [+] Estimated Remaining time: 0d15h11m35s '''