Last active
July 25, 2021 03:28
-
-
Save netskink/34d86c2fc9f1d57305c4dd3bd02417db to your computer and use it in GitHub Desktop.
script for wireshark setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# have the channels to be the same. | |
DEFAULT_CHANNEL=11 | |
echo "Setting up wifi monitor interface on" $WIPHY | |
#ORIG sudo iw phy $WIPHY interface add mon0 type monitor flags none control otherbss | |
sudo iw $WIPHY interface add mon0 type monitor flags none control otherbss | |
echo "Bringing up $MONIF" | |
#ORIG sudo ifconfig mon0 up promisc | |
# I did this by accident. In case it mattered. I already had the network in use so no telling. | |
sudo ip link set $DEFAULT_WIPHY promisc on | |
sudo ip link set mon0 promisc on up | |
#echo "Setting wifi channel to" $CHANNEL | |
# this command works but no method to read back | |
#sudo iw dev mon0 set channel 11 | |
echo Still need to configure interface options in Wireshark for monitor mode for mon0. | |
echo Use capture on interface mon0 afterwards. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment