Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in OSX: "No such file or directory" (airmon-ng missing) #45

Open
0xakrem opened this issue Aug 9, 2017 · 12 comments
Open

Error in OSX: "No such file or directory" (airmon-ng missing) #45

0xakrem opened this issue Aug 9, 2017 · 12 comments
Labels

Comments

@0xakrem
Copy link

0xakrem commented Aug 9, 2017

[+] option: scanning for targets on channel 7

[!] Error: [Errno 2] No such file or directory

[!] Full stack trace below

[!] Traceback (most recent call last):
[!] File "./Wifite.py", line 201, in
[!] w.main()
[!] File "./Wifite.py", line 38, in main
[!] Configuration.get_interface()
[!] File "/home/akrem/pen/wifite2/py/Configuration.py", line 106, in get_interface
[!] Configuration.interface = Airmon.ask()
[!] File "/home/akrem/pen/wifite2/py/Airmon.py", line 173, in ask
[!] Airmon.terminate_conflicting_processes()
[!] File "/home/akrem/pen/wifite2/py/Airmon.py", line 235, in terminate_conflicting_processes
[!] out = Process(['airmon-ng', 'check']).stdout()
[!] File "/home/akrem/pen/wifite2/py/Process.py", line 81, in init
[!] self.pid = Popen(command, stdout=sout, stderr=serr, cwd=cwd, bufsize=bufsize)
[!] File "/usr/lib/python2.7/subprocess.py", line 711, in init
[!] errread, errwrite)
[!] File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
[!] raise child_exception
[!] OSError: [Errno 2] No such file or directory

[!] Exiting

Exception AttributeError: "'Process' object has no attribute 'pid'" in <bound method Process.del of <py.Process.Process object at 0x7fe3b6bb1350>> ignored

@ritiek
Copy link
Contributor

ritiek commented Aug 10, 2017

Are you sure you have the aircrack-ng package installed?

@MisterBianco
Copy link
Contributor

What OS are you using?

Sent from my Samsung SM-N900T using FastHub

@kimocoder
Copy link
Contributor

kimocoder commented Aug 10, 2017

I remember this "crash" I think.. was it when there where no adapters plugged or something?

Anyway, your issue report is missing more information. Please give more details, which command was used/where the error occoured so others may reproduce it for a potiensial fix for it.

@trickpattyFH20
Copy link

trickpattyFH20 commented Aug 17, 2017

I'm getting the same error.
I do have aircrack-ng installed.
running on OSX 10.12.6

commands run:

$ git clone https://github.com/derv82/wifite2.git
$ cd wifite2
$ sudo ./Wifite.py --wep

(I also tried running Wifite.py as the root user, instead of using sudo and I get the same error)

stack trace (click to expand) [+] option: targeting WEP-encrypted networks

[!] Error: [Errno 2] No such file or directory

[!] Full stack trace below

[!] Traceback (most recent call last):
[!] File "./Wifite.py", line 201, in
[!] w.main()
[!] File "./Wifite.py", line 38, in main
[!] Configuration.get_interface()
[!] File "/Users/patricklawler/Documents/projects/wifite2/py/Configuration.py", line 106, in get_interface
[!] Configuration.interface = Airmon.ask()
[!] File "/Users/patricklawler/Documents/projects/wifite2/py/Airmon.py", line 173, in ask
[!] Airmon.terminate_conflicting_processes()
[!] File "/Users/patricklawler/Documents/projects/wifite2/py/Airmon.py", line 235, in terminate_conflicting_processes
[!] out = Process(['airmon-ng', 'check']).stdout()
[!] File "/Users/patricklawler/Documents/projects/wifite2/py/Process.py", line 81, in init
[!] self.pid = Popen(command, stdout=sout, stderr=serr, cwd=cwd, bufsize=bufsize)
[!] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init
[!] errread, errwrite)
[!] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
[!] raise child_exception
[!] OSError: [Errno 2] No such file or directory

[!] Exiting

Exception AttributeError: "'Process' object has no attribute 'pid'" in <bound method Process.del of <py.Process.Process object at 0x10ccf0650>> ignored

@kimocoder
Copy link
Contributor

Ok. im on my home from holidays now, will take a look tomorrow

@MisterBianco
Copy link
Contributor

My guess is subprocess is using a sys call that only works on Linux.

Because this tool is only meant to run on Kali Linux.

@ritiek
Copy link
Contributor

ritiek commented Aug 17, 2017

I just tested on my friend's Mac.

It seems like airmon-ng is not available for OSX (although other tools like airodump-ng, aireplay-ng, aircrack-ng are available). I tried installing it with both Brew and MacPorts but no luck. Someone mentioned it in this forum post as well.

Unless there is another way to put a WiFi interface into monitor mode, Mac users are going to be out of luck.

@kimocoder
Copy link
Contributor

Do it manually with:

ifconfig down
iwconfig mode monitor
ifconfig up

@kimocoder
Copy link
Contributor

Btw!

The "[!] File "./Wifite.py", line 201, in " error displays when there are NO ADAPTERS FOUND. Just tested this on my setup and got the same output as mentioned.

@MisterBianco
Copy link
Contributor

Try going to my profile and downloading my boopsuite repo and using

./boop.py -i wlan1

and tell me if it works on mac

@MisterBianco
Copy link
Contributor

@kimocoder

If you have a Mac will you test my tool and see if it works? I'm curious

@ritiek
Copy link
Contributor

ritiek commented Aug 18, 2017

@kimocoder iwconfig is not available on Mac.

@derv82 derv82 mentioned this issue Feb 27, 2018
@derv82 derv82 added the OSX label Feb 27, 2018
@derv82 derv82 changed the title [!] File "./Wifite.py", line 201, in <module> Error in OSX: "No such file or directory" (airmon-ng missing) Feb 27, 2018
cbrunnkvist pushed a commit to cbrunnkvist/wifite2 that referenced this issue Jun 4, 2023
Updated hashcat.py to use new 22000 hash format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants