Script to set specific Wi-Fi interface into monitor mode
- Packages
ip
andiwconfig
must be installed - root rights required (or via sudo)
- For Raspberry PI 4 (Search here) or buy something like ALFA Atheros (AWUS036NHA)
Note: You don't have the required packages installed? Here you will find different other options (combinations) eq ifconfig
, iw
or airmon-ng
to set your interface into monitor mode.
just run it...
# make file executable
$ chmod u+x monitor-mode.sh
# show help (optional)
$ sudo ./monitor-mode.sh -h
# set wlan1 into monitor mode
$ sudo ./monitor-mode.sh -i wlan1
some example from my terminal...
[+2021-03-17_20-01-24] [INFO]: wlan1 selected by user
[+2021-03-17_20-01-24] [INFO]: Set interface wlan1 down
[+2021-03-17_20-01-24] [INFO]: Set interface wlan1 mode monitor
[+2021-03-17_20-01-24] [INFO]: Set interface wlan1 up
[+2021-03-17_20-01-24] [INFO]: Interface wlan1 status is Mode:Monitor