Recently, I used the wifi phisher tool in Kali Linux. when I enter the number of AP in the list, I get the following trace in the terminal:
JavaScript
x
Traceback (most recent call last):
File "wifiphisher.py", line 743, in <module>
dhcp(dhcpconf, ap_iface)
File "wifiphisher.py", line 407, in dhcp
Popen(['ifconfig', mon_iface, 'mtu', '1400'], stdout=DN, stderr=DN)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
raise child_exception
TypeError: execv() arg 2 must contain only strings
Any suggestions on this?
Advertisement
Answer
You can check your issues in sophron github, so you can try this changes in your wifiphisher.py: Change to python2 in the header code.
Change this:
JavaScript
#!/usr/bin/env python
to this:
JavaScript
#!/usr/bin/env python2
or while you running the program you must select the network manually:
JavaScript
-a MAC -c CHANAL -jI INTERFACE -aI INTERFACE
similar issues here
NOTE: My first time, I had a problem with wifiphisher, so I fixed it updating Kali Linux repositories and then upgrading softwares.