问题
I successfully installed aircrack-ng using macports (i know it worked because when i enter aircrack-ng in terminal it shows the version and options) on my macbook pro. However when I use the airmon-ng command i get "command not found."
回答1:
As far as I know, you can't use airmon-ng
on MacOs, they're for Linux only.
The best way I can suggest for you is using sudo airport -s
to determine which SSID and its channel you want to attack, after that, sudo airport en0 sniff x
to capture packages of all SSIDs which located at channel x, en0 or en1 is the wifi setting of your mac, you can go to "About this mac -> System Report -> Network ->
Wifi -> BSD Device name" to check out.
For example you want to capture packages from all SSIDs or from your determined SSID which have channel 6 sudo airport en0 sniff 6
.
Here's guide for attacking WPA/WPA2 wifi for terminal MacOS:
https://www.youtube.com/watch?v=G6MXOzGIJZ4
Hope that can help.
来源:https://stackoverflow.com/questions/45314589/airmon-ng-not-working-in-terminal-command-not-found