This repository contains a bash script to automate the process of setting a wireless interface into monitor mode for ethical hacking purposes and reverting it back to managed mode. This script is useful for tools like Bettercap, Aircrack-ng, and other WiFi pentesting utilities.
- Automatically set a wireless interface to monitor mode.
- Automatically revert a wireless interface to managed mode.
- Handle conflicting processes and reset the interface.
- Run custom commands after setting the interface to monitor mode.
- A Linux system with
iw,sudo, andbashinstalled. - A compatible wireless network adapter that supports monitor mode.
- Tools like
NetworkManager,airmon-ng, and any other wireless utilities you might use.
To start hack mode and set the interface to monitor mode, use the following command:
wifi_hackmode_start <interface> <command> [options]For example:
wifi_hackmode_start wlan0 bettercap -iface wlan0To stop hack mode and revert the interface back to managed mode, use the following command:
wifi_hackmode_stop <interface>For example:
wifi_hackmode_stop wlan0This project is licensed under the MIT License - see the LICENSE file for details.
Please feel free to submit issues, fork the repository and send pull requests!
- Bettercap
- Aircrack-ng
- NetworkManager