Skip to content

Instantly share code, notes, and snippets.

@russelldavies
Created December 26, 2014 15:13
Show Gist options
  • Save russelldavies/0cd143f734d18cc5ea8b to your computer and use it in GitHub Desktop.
Save russelldavies/0cd143f734d18cc5ea8b to your computer and use it in GitHub Desktop.
Malaga airport free wifi
# -*- coding: utf-8 -*-
import random
import requests
def random_mac():
return ''.join(('%02x' % i for i in [
0x00, 0x16, 0x3e,
random.randint(0x00, 0x7f),
random.randint(0x00, 0xff),
random.randint(0x00, 0xff)]))
params = {
'mainproduct': 21,
'location': 'aeropuertodemalagacostadelsol',
'landing': 'AeropuertosPeninsul',
'track': 'free',
'eData':'MhCMj9hNdW4KJarhIUed1J%2BxNVhXbQyxDZzy9UMmCKFTXjDUOIqTDrwnOEzIHgBeLS7Zo3hvZrPt7aqcJnbyhOPrhHO75GotYrTFneTC2xADNT1ffo6PLkrd7JfwWFcbWiJGjVYtxn%2B6fxkBYdMG30HVipM45Z3SZeiK2pDFHkZOxQ0oAv%2BIlZrVaZyzJcfq9ysB0fueBjzvDecaCQ9KOg%3D%3D',
'umac': random_mac(),
'register-email': 'a@a.com',
'name': 'a a',
'gender': 'Hombre',
'age': '+65',
'country': 'ES',
'postalcode': '0',
'terms': 'Accept conditions',
'device': 'computer',
'language': 'en',
'redirection_label': 'spring',
'payment': 'Free',
}
r = requests.post('https://portal.kubiwireless.com/aena/payment.php', data=params)
if r.status_code == 200:
print "You are now connected."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment