I have no internet - Penomatikus/monitorSH GitHub Wiki
I have no internet
You just have one device
If you just have one device and put it into monitoring mode. Well, then read the quote from the Wireshark wiki
In monitor mode the SSID filter mentioned above is disabled and all packets of all SSID's from the currently selected channel are captured.
Even in promiscuous mode, an 802.11 adapter will only supply to the host packets of the SSID the adapter has joined, assuming promiscuous mode works at all; even if it "works", it might only supply to the host the same packets that would be seen in non-promiscuous mode. Although it can receive, at the radio level, packets on other SSID's, it will not forward them to the host.
Therefore, in order to capture all traffic that the adapter can receive, the adapter must be put into "monitor mode", sometimes called "rfmon mode". In this mode, the driver will put the adapter in a mode where it will supply to the host packets from all service sets. Depending on the adapter and the driver, this might disassociate the adapter from the SSID, so that the machine will not be able to use that adapter for network traffic, or it might leave the adapter associated, so that it can still be used for network traffic. If it disassociates the adapter from the SSID, and the host doesn't have any other network adapters, it will not be able to:
- resolve addresses to host names using a network protocol such as DNS;
- save packets to a file on a network file server; etc..
So all you need to do is type:
sudo ./monitor.sh <device-name> up
The device is again in managed mode and you have access to the internet again.
My device failed to set to monitor mode
monitorSH will check if the change took effect and your device is in monitor mode. If the change was not successful it will change the mode back to default ( managed ). In addition monitorSH tries to connect to the internet ( stackoverflow ). If this fails you are asked, if monitorSH should restart your network-manager. After restarting the network-manager, you should have access to the internet again.
All you have to do now is to answer with y
or Y
after this output:
[-] Offline. Do you want to restart your network-manager by monitorSH? [ y / n ]