RickRollAP creates a bait "Free Wi-Fi" access point that rickrolls users with its captive portal.
- A machine with some kind of Linux installed (Raspberry Pi recommended)
- A Wi-Fi adapter with monitor mode capability and proper drivers installed
- hostapd, dnsmasq, nginx
- Clone this repository and cd into it
git clone https://github.com/gombossb/rickrollAP.git
cd rickrollAP
- Install required tools
# on Debian-based systems
sudo apt update
sudo apt install hostapd dnsmasq nginx
- Copy captive portal to /var/www, captive portal configuration to nginx sites, symlink it to get enabled and remove default site configuration
sudo cp -r rickportal/ /var/www/
sudo cp nginx-site /etc/nginx/sites-available/rickrollap
sudo ln -s /etc/nginx/sites-available/rickrollap /etc/nginx/sites-enabled/
sudo rm /etc/nginx/sites-enabled/default
- Use this sed code to change your Wi-Fi interface if it's not wlan1
sed -i -- 's/wlan1/wlan123/g' $(find . -maxdepth 1 -type f)
Put your wifi interface into monitor mode
sudo airmon-ng start wlan1
Launch script
sudo bash start.sh
Stop the script
sudo bash stop.sh
Kudos to hash3liZer for his article on shellvoide.com(Wayback Machine), it's helped me a lot with this project.