diff --git a/.gitignore b/.gitignore index 4f18a99..238411b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,11 @@ +# Python artifacts +*.pyc + # Responder logs *.db *.txt *.log +# Generated certificates and keys +certs/*.crt +certs/*.key diff --git a/servers/HTTP.py b/servers/HTTP.py old mode 100755 new mode 100644 index 6afafce..91acf3f --- a/servers/HTTP.py +++ b/servers/HTTP.py @@ -224,8 +224,8 @@ def PacketSequence(data, client, Challenge): 'module': 'HTTP', 'type': 'Basic', 'client': client, - 'user': ClearText_Auth.decode('latin-1').split(':')[0], - 'cleartext': ClearText_Auth.decode('latin-1').split(':')[1], + 'user': ClearText_Auth.decode('latin-1').split(':', maxsplit=1)[0], + 'cleartext': ClearText_Auth.decode('latin-1').split(':', maxsplit=1)[1], }) if settings.Config.Force_WPAD_Auth and WPAD_Custom: