Skip to content

Instantly share code, notes, and snippets.

@jfinstrom
Created July 25, 2014 15:49
Show Gist options
  • Save jfinstrom/b024a11f583ceaa38620 to your computer and use it in GitHub Desktop.
Save jfinstrom/b024a11f583ceaa38620 to your computer and use it in GitHub Desktop.
For later reference.... This is my keep alive script to prevent the hotel wifi from dropping me in to a captive portal
#!/usr/bin/env python
import requests
data=[('res','login'),('value','1012'),('gw_addr','10.10.12.1'),('gw_port','2060'),('password','newspaper'),('submit', 'True')]
r = requests.post('http://192.168.182.1:2060/index.php?res=login&gw_id=1012&gw_address=10.10.12.1&gw_port=2060&gw_mac=00%3A15%3A6D%3AC9%3A46%3AA7&username=&password=&mac=54%3A35%3A30%3A8c%3Ab2%3A83&url=http%253A%252F%252Fallviewnetworksdb.com%252Flocalproject%252FpageV2%252F%253Fid%253D2056"', data=data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment