X-Git-Url: https://code.communitydata.science/nu-vpn-proxy.git/blobdiff_plain/2cf05074ccc024726b28798ed58447a1321ec0f3..66438abc7cf5d17c1093610266fcc9b8319cd9d6:/test-globalprotect-login.py diff --git a/test-globalprotect-login.py b/test-globalprotect-login.py index 81ae8b7..4c325b2 100755 --- a/test-globalprotect-login.py +++ b/test-globalprotect-login.py @@ -114,10 +114,10 @@ Extracted connection cookie from . Use this to connect: elif xml is not None and xml.tag == 'prelogin-response' and None not in (xml.find('saml-auth-method'), xml.find('saml-request')): import webbrowser sam = xml.find('saml-auth-method').text - sr = xml.find('saml-request').text + sr = a2b_base64(xml.find('saml-request').text) if sam == 'POST': with NamedTemporaryFile(delete=False, suffix='.html') as tf: - tf.write(a2b_base64(sr)) + tf.write(sr) if args.browse: print("Got SAML POST, browsing to %s" % tf.name) webbrowser.open('file://' + tf.name)