Easy WiFi traffic capture with wireshark running on Wifi hotspot from an ordinary WiFi interface of a notebook.
- Operating system: Ubuntu 16.04 bionic amd64 with LXDE desktop environment
- Further required: network-manager and wireshark
Open the context menu of the network-manager and choose 'Create New Wi-Fi Network...'
Enter a name for your WiFi network and select for now Wi-Fi security: None
- Connection: New
- Network name: <Yournetworkname>
- Wi-Fi security: None
Confirm with Create.
After creation go for the context menu and choose 'Edit Connections ...', select your recently created Wi-Fi connection and 'Edit'. Then choose at the 'Mode:' option 'Hotspot' and press 'Save'. If you do not save in between there is no option 'WPA & WPA2 Personal' shown in the WiFi-Security submenu.
Again choose 'Edit Connections ...' and select your recently created Wi-Fi connection and 'Edit'. Now you can select 'WPA & WPA2 Personal'shown in the WiFi-Security submenu and enter a password and press 'Save' again.
You can also manipulate the connection configuration by CLI
sudo nano /etc/NetworkManager/system-connections/<Yournetworkname>
and restart the network-manager
sudo service network-manager restart
Check your WiFi interface with
Connect the device you are examining to the new Hotspot and capture the traffic with wireshark on this WiFi interface.
Notebook with WiFi interface