From 4ee7744d7d0b4c28ab90f243ec93b1d82866dcdd Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Sun, 29 Mar 2020 09:54:13 -0700 Subject: [PATCH] need to base64-decode URLs from SAML REDIRECT too --- test-globalprotect-login.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test-globalprotect-login.py b/test-globalprotect-login.py index 4c325b2..f964a83 100755 --- a/test-globalprotect-login.py +++ b/test-globalprotect-login.py @@ -124,6 +124,7 @@ elif xml is not None and xml.tag == 'prelogin-response' and None not in (xml.fin else: print("Got SAML POST, saved to:\n\t%s" % tf.name) elif sam == 'REDIRECT': + sr = a2b_base64(sr) if args.browse: print("Got SAML REDIRECT, browsing to %s" % sr) webbrowser.open(sr) -- 2.39.5