Add `lang' field (set to `en') to the form POSTed in login() - anticapum - Handle Università Politecnica delle Marche captive portal
(HTM) hg clone https://bitbucket.org/iamleot/anticapum
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset 9e3c70a6877f0599f55189838e11b0614551c4d7
(DIR) parent c55133a094f765a308ffb8c1a2f8480effa09f83
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Thu, 11 Jan 2018 21:31:50
Add `lang' field (set to `en') to the form POSTed in login()
Diffstat:
anticapum.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff -r c55133a094f7 -r 9e3c70a6877f anticapum.py
--- a/anticapum.py Thu Jan 11 21:24:58 2018 +0100
+++ b/anticapum.py Thu Jan 11 21:31:50 2018 +0100
@@ -58,7 +58,11 @@
def login(username, password):
"""Login to the captive portal using provided username and password
"""
- auth = parse.urlencode({ 'username': username, 'password': password })
+ auth = parse.urlencode({
+ 'username': username,
+ 'password': password,
+ 'lang': 'en',
+ })
auth = auth.encode('utf-8')
# TODO: Find a way to verify the cert!