If you're near a coffee shop with a free Wifi network with a guest login that uses a Cisco router, you can use a simple script to automatically login so you have free Wifi without any annoying login pages!
I reverse engineered the compressed JS of the login page to find out how login works (won't go into details it was a few years ago). Anyways, it turns out you can login with a simple curl request. Here's how.
Getting required parameters
First, manually connect to the Wifi, but don't login!.
Now run `ifconfig` or `ipconfig` to get the MAC address of the wifi card of your device and the ipaddress it assigned you.
The MAC address will be a series of hex separated by colons like: `00:AB:CD:EF...`. Note this down.
The IP address will 4 sets of numbers like `192.168.3.100`.
Next get the guest password from the Coffee shop, usually they have them posted inside or just ask them (and buy a cup of coffee!).
Login command Now that we have everything login is pretty simple.
Us…
I reverse engineered the compressed JS of the login page to find out how login works (won't go into details it was a few years ago). Anyways, it turns out you can login with a simple curl request. Here's how.
Getting required parameters
First, manually connect to the Wifi, but don't login!.
Now run `ifconfig` or `ipconfig` to get the MAC address of the wifi card of your device and the ipaddress it assigned you.
The MAC address will be a series of hex separated by colons like: `00:AB:CD:EF...`. Note this down.
The IP address will 4 sets of numbers like `192.168.3.100`.
Next get the guest password from the Coffee shop, usually they have them posted inside or just ask them (and buy a cup of coffee!).
Login command Now that we have everything login is pretty simple.
Us…