scan exit unexpectly and no target show user#88
Conversation
when i use the wifite 2.1.0 . I hava found it's exit unexpectly after catch package started some seconds . after take some time i have found when essid in .cvs file include some unicode char it will happen so i search a cure to make it goes well. i have test the cure it's work.
trace bug like this
File "/usr/share/wifite/wifite/tools/airodump.py", line 146, in get_targets
targets = Airodump.get_targets_from_csv(csv_filename)
File "/usr/share/wifite/wifite/tools/airodump.py", line 205, in get_targets_from_csv
for row in csv_reader:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 137-140: ordinal not in range(128)
|
Remember that the latest version is actually v2.1.4 if you clone from the repo. Try cloning from repo to see if the problem is persistent before pushing changes based on the v2.1.0 |
|
sorry i don't know where is the newest code but i have download code from github it's version 2.1.4The problem still exists.Of course, this is indeed my fault. I did not check the latest version in advance. |
|
The newest code is here. Get the v2.1.4 with "git clone https://github.com/derv82/wifite2" and build/install it |
|
Using The bug is likely due to some non-ascii characters in the Airodump CSV output. Wifite already decodes the output to UTF-8: wifite2/wifite/tools/airodump.py Line 194 in 28b2d83 So I'm not sure why/how this is happening. Can you provide the Just run |
|
Hello, recently because of other things rarely on-line, I think cause bug is because |
|
@derv82 I submitted some code, and now the program already supports UTF-8 SSID. The attachment is a sample and I hope to help you. |
| import os | ||
| import sys | ||
|
|
||
| reload(sys) |
There was a problem hiding this comment.
+if sys.version_info.major == 2:
+ reload(sys)
+ sys.setdefaultencoding('utf-8')
+
This exception only happens in python2, python3 is all right, but this patch code is not compatible with python3, so checking the version I think is better.
|
I studied it and found that this method is simpler, the patch is compatible with py2/3 : |
Thanks for finding that out. I'll work on integrating the change -- probably won't be using the Pull Request though. |
|
Change is in |

when i use the wifite 2.1.0 . I hava found it's exit unexpectly after catch package started some seconds . after take some time i have found when essid in .cvs file include some unicode char it will happen so i search a cure to make it goes well. i have test the cure it's work.
trace bug like this
File "/usr/share/wifite/wifite/tools/airodump.py", line 146, in get_targets
targets = Airodump.get_targets_from_csv(csv_filename)
File "/usr/share/wifite/wifite/tools/airodump.py", line 205, in get_targets_from_csv
for row in csv_reader:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 137-140: ordinal not in range(128)