Awesome Open Source
Awesome Open Source

Hack Captive portals script

This script is using MAC-spoofing technique. This method is the only one which is present in all wireless and some wired
Captive portals by design. Once a host is authorized by the Captive portal, its MAC and IP address are allowed
unrestricted access.
All we need to do is sniff traffic on the network, find a host that is authorized, and spoof its IP and MAC address.
Spoofing a MAC is dependent on your network card and driver but most modern network devices today support it.
The downside of course is that you have to observe someone already authenticated, but in places such as a crowded airport
lobby this may be less difficult than it seems.

Hack Captive portal

Installation and usage

You need sipcalc and nmap for this script. Then download .sh script and run it.

sudo apt -y install sipcalc nmap
sudo chmod u+x
sudo ./

Tested in Ubuntu 16.04 with different Captive portals in airports and hotels all over the world.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
shell (9,709
linux (2,273
bash (591
ubuntu (324
wifi (181
script (171
hack (164
hotspot (21

Find Open Source By Browsing 7,000 Topics Across 59 Categories