-
Notifications
You must be signed in to change notification settings - Fork 719
OSError: [Errno 2] No such file or directory? #217
Comments
hi, you're right, the problem is your adapter, this chipset does not support monitor mode. but I want to check this. send me output the command bellow: iw list | grep "Supported interface modes" -A 10 |
Well this is interesting... root@kali:~# iw list | grep "Supported interface modes" -A 10 |
When using Mana-toolkit I get this in verbose... hostname WRT54G I can connect to the AP using the same wifi dongle that I use with WiFi-Pumpkin? |
yes, if the Mana-toolkit work fine. try this, you need to remove or comment this line number1329 from file WiFi-Pumpkin/core/main.py. and try start AP. |
#set_monitor_mode(self.SettingsEnable['AP_iface']).setDisable() <<-- line 1329? New error [] Loading debugging mode |
I need to check if your system is installed the ifconfig tool. ifconfig |
root@kali:~# ifconfig lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 |
wait.. I'll add a simple code to check the bug. |
@Mas0x create the file test.py with this code bellow and run "sudo python test.py" in your system. I want to check is the problem is command split from string. after that, send me the output. import shlex
import os
from subprocess import (
Popen,PIPE,call,check_output,
)
interface = 'wlan0'
subnet='10.0.0.0'
router='10.0.0.1'
netmask='255.0.0.0'
SettingsAP = {
'iface':
[
'ifconfig %s up'%(interface),
'ifconfig %s %s netmask %s'%(interface,router,netmask),
'ifconfig %s mtu 1400'%(interface),
'route add -net %s netmask %s gw %s'%(subnet,netmask,router)
],
'kill':
[
'iptables --flush',
'iptables --table nat --flush',
'iptables --delete-chain',
'iptables --table nat --delete-chain',
'ifconfig %s 0'%(interface),
'killall dhpcd',
]}
for item in SettingsAP['iface']:
Popen(shlex.split(item), stdout=PIPE,shell=False,stderr=PIPE)
os.system('ifconfig')
print("\nrestore settings...")
for item in SettingsAP['kill']:
Popen(shlex.split(item), stdout=PIPE,shell=False,stderr=PIPE) |
root@kali:~# python test.py lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 restore settings... |
I've been testing today with WiFi-Pumpkin and Mana-toolkit.... Mana-toolkit basically switches the WiFi adapter on... (Master mode) |
do you card adapter is connected ? |
always connected however Kali does not recognize any driver? and therefore does not see it in ifconfig, BUT does see it when using iwconfig. lo no wireless extensions. eth0 no wireless extensions. |
So when using Mana it WILL create an AP which I can gain access to and has internet connectivity, which is confusing as there is no recognized driver for it? I have ordered an TL-WN722N |
Disconnect the WIFi@REAETECK and run the script above and change the line "os.system('ifconfig')" to os.system('ifconfig -a') |
root@kali:~# python test.py lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1400 restore settings... |
great, I found the problem. before I create a fix for this, I need to test with full code WP. I upload the code fixed in my git dist main code fix. replace the code in file core/main.py and try start AP. |
Ok just found something interesting... I updated my Kali to FULL.. apt-get install kali-linux-full I've not run wifi-pumpkin since, thought I'd try again... not getting that error no more however... hostapd is giving erros. |
send me screenshot |
Thanks for your time so far on this... not sure what's fixed it but it's up and running!! Kali-linux-full fixed it? But unable to run mana atm. working getting this info for you. |
thk for report :D |
hostapd-mana support#enable_mana=1 Limit mana to responding only (0), or not (1)#mana_loud=0 Extend MAC ACLs to probe frames#mana_macacl=0 Put hostapd in white/black list mode#macaddr_acl=0 |
Failed to initate Access Point. checkoutput process hostapd. output:: |
if you want to use hostapd-mana, your need to set path the binary the program hostapd-mana. |
I was just looking at the path.. hostapd C. binary I would think the mana-toolkit has this? |
'_' |
git clone https://github.com/sensepost/hostapd-mana.git I then updated the path to: /root/hostapd-mana/hostapd/ hostapd binary path is not found. should I make && make install? |
change to /root/hostapd-mana/hostapd/hostapd. after that, compile the hostapd. |
Unable to complie Makefile:891: recipe for target '../src/crypto/tls_openssl.o' failed I've read somewhere that the openssl needs to be downgraded in order for it to compile? I guess I can't use mana until it fixed? Perhaps hostapd-2.6? |
the mana-toolkit is alrady installed in your system, as can see above. now you need to find the folder when the hostapd-mana is compiled check in /etc/mana-toolkit/ or use locate "hostapd" and get the path the binary. |
Still unable to compile ... hostapd-2.6 different error. /usr/local/bin/ works? however I get the error that was posted above. |
root@kali: |
root@kali:~# wifi-pumpkin
Loading GUI...
WiFi-Pumpkin Running!
[] Loading debugging mode
[] Current Session::ID [MTIwMTg=]
[*] Configuring hostapd...
Traceback (most recent call last):
File "/usr/share/WiFi-Pumpkin/core/main.py", line 1329, in Start_PumpAP
set_monitor_mode(self.SettingsEnable['AP_iface']).setDisable()
File "/usr/share/WiFi-Pumpkin/core/utils.py", line 54, in setDisable
Popen(['ifconfig', self.interface, 'down'])
File "/usr/lib/python2.7/subprocess.py", line 390, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Can you assist?
EDIT
Looks like this may be down to the fact that my WiFi adapter does not have a working driver, as when using airmon-ng the driver states ??????. Research so far shows it's a driver issue, by the looks of the Traceback it's trying to set_monitor_mode which will fail.
The text was updated successfully, but these errors were encountered: