This is a simple website and set of configuration files that turns a Raspberry Pi Zero W (or other Pi with WiFi) into a rogue access point.
Installation after a fresh install of Raspbian Buster Lite:
sudo apt update && sudo apt upgrade
sudo apt install git
git clone https://github.com/amin-nna/rogue-captive-autohotspot
cd rogue-captive-autohotspot
chmod +x install.sh
sudo ./install.sh
sudo reboot
During installation, macchanger will ask whether or not MAC addresses should be changed automatically - choose "No". The startup script in rc.local will perform this task more reliably. When the raspberry reboots it should connect to an exising wifi network if the attempt is not successfull it launches the hotspot.
Part of the tools here borrow ideas from https://github.com/braindead-sec/rogue-captive and https://github.com/RaspberryConnect/AutoHotspot-Installer