Some "hidden" helper switches (-nd --no-deauths --nodeauths)

When skipping an attack (WPA/WPS), explain why and mention the AP ESSID
This commit is contained in:
derv82
2018-03-10 15:58:36 -05:00
parent 100528cac3
commit 3257755094
4 changed files with 17 additions and 13 deletions

View File

@@ -68,6 +68,14 @@ class Arguments(object):
action='store_true', action='store_true',
dest='no_deauth', dest='no_deauth',
help=Color.s('Do not deauthenticate clients *EVER* (default: {G}off{W})')) help=Color.s('Do not deauthenticate clients *EVER* (default: {G}off{W})'))
glob.add_argument('--no-deauths',
action='store_true',
dest='no_deauth',
help=argparse.SUPPRESS)
glob.add_argument('-nd',
action='store_true',
dest='no_deauth',
help=argparse.SUPPRESS)
glob.add_argument('--num-deauths', glob.add_argument('--num-deauths',
action='store', action='store',
type=int, type=int,
@@ -242,12 +250,12 @@ class Arguments(object):
dest='wps_only', dest='wps_only',
help=Color.s('{G}ALWAYS{W} use WPS attacks (Pixie-Dust) on WPA networks (default: {G}off{W})')) help=Color.s('{G}ALWAYS{W} use WPS attacks (Pixie-Dust) on WPA networks (default: {G}off{W})'))
# --pixie is IGNORED: PIN attack no longer available in Wifite # Same as --wps-only
wps.add_argument('--pixie', wps.add_argument('--pixie',
help=argparse.SUPPRESS, help=argparse.SUPPRESS,
action='store_true', action='store_true',
dest='pixie_only', dest='wps_only')
help=Color.s('Only use the WPS Pixie-Dust attack (no PIN) (default: {G}off{W})'))
wps.add_argument('--pixiet', wps.add_argument('--pixiet',
action='store', action='store',
dest='wps_pixie_timeout', dest='wps_pixie_timeout',

View File

@@ -29,8 +29,8 @@ class AttackWPA(Attack):
''' '''
# Check if user only wants to run PixieDust attack # Check if user only wants to run PixieDust attack
if Configuration.pixie_only and self.target.wps: if Configuration.wps_only and self.target.wps:
Color.pl('{!} {O}--pixie{R} set, ignoring WPA-handshake attack') Color.pl('\r{!} {O}--wps-only{R} set, ignoring WPA-handshake attack on {O}%s{W}' % self.target.essid)
self.success = False self.success = False
return self.success return self.success
@@ -81,9 +81,8 @@ class AttackWPA(Attack):
essid = airodump_target.essid if airodump_target.essid_known else None essid = airodump_target.essid if airodump_target.essid_known else None
handshake = self.load_handshake(bssid=bssid, essid=essid) handshake = self.load_handshake(bssid=bssid, essid=essid)
if handshake: if handshake:
Color.clear_entire_line() Color.pattack("WPA", self.target, "Handshake capture", "found {G}existing handshake{W} for {C}%s{W}" % handshake.essid)
Color.pl('{+} found {G}existing handshake{W} for {C}%s{W}' % handshake.essid) Color.pl('\n{+} Using handshake from {C}%s{W}' % handshake.capfile)
Color.pl('{+} from {C}%s{W}' % handshake.capfile)
return handshake return handshake
timeout_timer = Timer(Configuration.wpa_attack_timeout) timeout_timer = Timer(Configuration.wpa_attack_timeout)

View File

@@ -18,6 +18,7 @@ class AttackWPS(Attack):
# Drop out if user specified to not use Reaver/Bully # Drop out if user specified to not use Reaver/Bully
if Configuration.no_wps: if Configuration.no_wps:
Color.pl('\r{!} {O}--no-wps{R} set, ignoring WPS attack on {O}%s{W}' % self.target.essid)
self.success = False self.success = False
return self.success return self.success
@@ -43,8 +44,4 @@ class AttackWPS(Attack):
else: else:
Color.pl("{!} {R}your version of 'reaver' does not support the {O}WPS pixie-dust attack{W}") Color.pl("{!} {R}your version of 'reaver' does not support the {O}WPS pixie-dust attack{W}")
if Configuration.pixie_only:
Color.pl('\r{!} {O}--pixie{R} set, ignoring WPS-PIN attack{W}')
return False
return False return False

View File

@@ -203,7 +203,7 @@ class Configuration(object):
if args.wps_filter: if args.wps_filter:
Configuration.wps_filter = args.wps_filter Configuration.wps_filter = args.wps_filter
if args.wps_only: if args.wps_only:
Configuration.wps_only = args.wps_only Configuration.wps_only = True
Color.pl('{+} {C}option:{W} will *only* attack non-WEP networks with {G}WPS attacks{W} (no handshake capture)') Color.pl('{+} {C}option:{W} will *only* attack non-WEP networks with {G}WPS attacks{W} (no handshake capture)')
if args.no_wps: if args.no_wps:
Configuration.no_wps = args.no_wps Configuration.no_wps = args.no_wps