Skip to content

Commit 1edba23

Browse files
committed
2.1.6: Support non-ASCII ESSIDs in scanner. Don't silently exit on crash.
Resolves #88 Resolves #92 Might be related to #85
1 parent 96e846a commit 1edba23

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

wifite/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class Configuration(object):
1010
''' Stores configuration variables and functions for Wifite. '''
11-
version = '2.1.5'
11+
version = '2.1.6'
1212

1313
initialized = False # Flag indicating config has been initialized
1414
temp_dir = None # Temporary directory

wifite/tools/airodump.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,9 @@ def get_targets_from_csv(csv_filename):
192192
'''Returns list of Target objects parsed from CSV file.'''
193193
targets = []
194194
import csv
195-
with open(csv_filename, 'rb') as csvopen:
195+
with open(csv_filename, 'r') as csvopen:
196196
lines = []
197197
for line in csvopen:
198-
if type(line) is bytes: line = line.decode('utf-8')
199198
line = line.replace('\0', '')
200199
lines.append(line)
201200
csv_reader = csv.reader(lines,

wifite/util/scanner.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ def __init__(self):
3939
self.err_msg = '\r{!} {R}Airodump exited unexpectedly (Code: %d){O} Command: {W}%s' % (airodump.pid.poll(), " ".join(airodump.pid.command))
4040
raise KeyboardInterrupt
4141

42-
try:
43-
self.targets = airodump.get_targets()
44-
except Exception as e:
45-
break
42+
self.targets = airodump.get_targets()
4643

4744
if self.found_target():
4845
# We found the target we want

0 commit comments

Comments
 (0)