Hello guys I'm Excellenthack today im gonna show you how to sniff wifi with ubuntu,linux.
So lets first install all the software that we need.
By default, capturing network packets needs root privileges. To enable capture for regular users, we will have to set the capability string for the dumpcap utility. Wireshark uses dumpcap to capture packet data from a live network.
Next we need to create the network interface cconfigured in monitor mode.
In the above step, you should replace wlan0 with the name of your wireless network interface.
Optionally, you could also specify which wireless channel to operate in.
In the above step is the channel number.
airmon-ng will create the network interface mon0.
Now fire up wireshark and start capturing using the mon0 interface.
You could use iwconfig to change channels.
You might notice that the channel you set using iwconfig doesnt take effect. This might happen if youre connected to the network using your wireless card. Network Manager will reconfigure your card to operate in same channel as the access point you are using. To stop that, stop network manager.
You should restart the network manager when youre done using the sniffer.
You can also destroy the mon0 interface you created earlier using the below command
Hope this helps.
So lets first install all the software that we need.
Kod:
sudo apt-get install aircrack-ng wireshark libcap2-bin
Kod:
sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap
Kod:
sudo airmon-ng start wlan0
Optionally, you could also specify which wireless channel to operate in.
Kod:
sudo airmon-ng start wlan0
airmon-ng will create the network interface mon0.
Now fire up wireshark and start capturing using the mon0 interface.
You could use iwconfig to change channels.
Kod:
sudo iwconfig mon0 channel 6
Kod:
sudo /etc/init.d/network-manager stop
Kod:
sudo /etc/init.d/network-manager start
Kod:
sudo airmon-ng stop mon0
Son düzenleme: