-
-
Save MrSuicideParrot/18d59a2949b65cf1cb9234db8a6642c6 to your computer and use it in GitHub Desktop.
#!/bin/bash | |
sudo service networking restart | |
sudo service NetworkManager restart |
Gotcha. From the name, an i guess thevstate of my mind at the time, i thought that maybe this was an exploit. To remote restart the hardware....lol
lol
ver good
Update:
The only services to stop and restat actually are NetworkManage, wpa_supplicant:
sudo airmon-ng check
PID Name
470 NetworkManager
23542 wpa_supplicant
To put your Network Card back into Managed Mode
run Following Comands -->
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode managed
sudo service NetworkManager start
thanks
To put your Network Card back into Managed Mode run Following Comands --> sudo ifconfig wlan0 down sudo iwconfig wlan0 mode managed sudo service NetworkManager start
How can I put those commands in a file in a list, one command per line, the just run one command in the terminal that runs all of those commands in order? So I only have to run one command to run them all. Like automating it?
never mind I got chatgpt to help me
Thanks! The script is old and probably the network-manager was renamed. I will update the snippet.
I don't know if I understood your question correctly. But the ideia of this script is to restart the services that are responsible for handling the network interfaces, when you are done with a interface in monitor mode.