diff --git a/wifite/attack/all.py b/wifite/attack/all.py index 6db4d3718..03ecced0b 100755 --- a/wifite/attack/all.py +++ b/wifite/attack/all.py @@ -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 = [] diff --git a/wifite/model/target.py b/wifite/model/target.py index 9f3422095..bbb5bdb32 100755 --- a/wifite/model/target.py +++ b/wifite/model/target.py @@ -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: @@ -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: diff --git a/wifite/util/scanner.py b/wifite/util/scanner.py index 29b11db28..c5cc7632b 100755 --- a/wifite/util/scanner.py +++ b/wifite/util/scanner.py @@ -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): @@ -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():