Skip to content

Commit

Permalink
2.1.6: Support non-ASCII ESSIDs in scanner. Don't silently exit on cr…
Browse files Browse the repository at this point in the history
…ash.

Resolves #88
Resolves #92
Might be related to #85
  • Loading branch information
derv82 committed Jun 10, 2018
1 parent 96e846a commit 1edba23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion wifite/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Configuration(object):
''' Stores configuration variables and functions for Wifite. '''
version = '2.1.5'
version = '2.1.6'

initialized = False # Flag indicating config has been initialized
temp_dir = None # Temporary directory
Expand Down
3 changes: 1 addition & 2 deletions wifite/tools/airodump.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,9 @@ def get_targets_from_csv(csv_filename):
'''Returns list of Target objects parsed from CSV file.'''
targets = []
import csv
with open(csv_filename, 'rb') as csvopen:
with open(csv_filename, 'r') as csvopen:
lines = []
for line in csvopen:
if type(line) is bytes: line = line.decode('utf-8')
line = line.replace('\0', '')
lines.append(line)
csv_reader = csv.reader(lines,
Expand Down
5 changes: 1 addition & 4 deletions wifite/util/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ def __init__(self):
self.err_msg = '\r{!} {R}Airodump exited unexpectedly (Code: %d){O} Command: {W}%s' % (airodump.pid.poll(), " ".join(airodump.pid.command))
raise KeyboardInterrupt

try:
self.targets = airodump.get_targets()
except Exception as e:
break
self.targets = airodump.get_targets()

if self.found_target():
# We found the target we want
Expand Down

0 comments on commit 1edba23

Please sign in to comment.