Python CLI tool to block network access of devices in LAN
- WiFi network scanning with scapy.
- Table to display the detected devices info with python-tabulate.
- Block connection of multiple devices simultaneously with ARP spoofing and subprocess.
- Linux root privileges or Windows Administrator privileges.
- Python
- scapy
- python-tabulate
These are examples. You can also download the script in another way and run it.
python3
may need to be replaced by python
depending on your system configuration.
For these examples you need git to clone the repo.
-
In the path you want to save the folder:
git clone https://github.com/fakuventuri/network_blocker
cd network-blocker
sudo python3 network_blocker.py
-
In the path you want to save the folder:
git clone https://github.com/fakuventuri/network_blocker
cd network-blocker
python3 network_blocker.py
Run sh update.sh
to update the scripts. This will clone the main branch into /tmp/network_blocker
and overwrite the local files.
You can also update the cloned repo.
Contributions are very welcome!
This script is for educational and research purposes only. Use it responsibly and ethically, ensuring you have proper authorization and consent from the network owner or administrator. The developer and repository owner are not responsible for any misuse or damages caused by this script. By using it, you accept full responsibility for your actions and agree to comply with all applicable laws and regulations. If you are unsure about legality or ethics, consult a legal or cybersecurity professional.
network_blocker
released under the GPL 3 license.