Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions wifite/attack/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def attack_single(cls, target, targets_remaining):
Attacks a single `target` (wifite.model.target).
Returns: True if attacks should continue, False otherwise.
'''
if 'MGT' in target.authentication:
Color.pl("\n{!}{O}Skipping. Target is using {C}WPA-Enterprise {O}and can not be cracked.")
return True

attacks = []

Expand Down
17 changes: 11 additions & 6 deletions wifite/model/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def __init__(self, fields):
13 ESSID (HOME-ABCD)
14 Key ()
'''
self.bssid = fields[0].strip()
self.channel = fields[3].strip()

self.encryption = fields[5].strip()
self.bssid = fields[0].strip()
self.channel = fields[3].strip()
self.encryption = fields[5].strip()
self.authentication = fields[7].strip()
if 'WPA' in self.encryption:
self.encryption = 'WPA'
elif 'WEP' in self.encryption:
Expand Down Expand Up @@ -122,11 +122,16 @@ def to_str(self, show_bssid=False):
channel_color = '{C}'
channel = Color.s('%s%s' % (channel_color, str(self.channel).rjust(3)))

encryption = self.encryption.rjust(4)
encryption = self.encryption.rjust(3)
if 'WEP' in encryption:
encryption = Color.s('{G}%s' % encryption)
elif 'WPA' in encryption:
encryption = Color.s('{O}%s' % encryption)
if 'PSK' in self.authentication:
encryption = Color.s('{O}%s-P' % encryption)
elif 'MGT' in self.authentication:
encryption = Color.s('{R}%s-E' % encryption)
else:
encryption = Color.s('{O}%s ' % encryption)

power = '%sdb' % str(self.power).rjust(3)
if self.power > 50:
Expand Down
6 changes: 3 additions & 3 deletions wifite/util/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ def print_targets(self):
Color.p(' ESSID')
if Configuration.show_bssids:
Color.p(' BSSID')
Color.pl(' CH ENCR POWER WPS? CLIENT')
Color.pl(' CH ENCR POWER WPS? CLIENT')

# Second row: separator
Color.p(' ---')
Color.p(' -------------------------')
if Configuration.show_bssids:
Color.p(' -----------------')
Color.pl(' --- ---- ----- ---- ------{W}')
Color.pl(' --- ----- ----- ---- ------{W}')

# Remaining rows: targets
for idx, target in enumerate(self.targets, start=1):
Expand Down Expand Up @@ -213,7 +213,7 @@ def select_targets(self):
break
if '-' in choice:
# User selected a range
(lower,upper) = [int(x) - 1 for x in choice.split('-')]
(lower, upper) = [int(x) - 1 for x in choice.split('-')]
for i in xrange(lower, min(len(self.targets), upper + 1)):
chosen_targets.append(self.targets[i])
elif choice.isdigit():
Expand Down