diff --git a/sslstrip/URLMonitor.py b/sslstrip/URLMonitor.py index 863ecfc..e74f9cc 100644 --- a/sslstrip/URLMonitor.py +++ b/sslstrip/URLMonitor.py @@ -58,6 +58,11 @@ class URLMonitor: methodIndex = url.find("//") + 2 method = url[0:methodIndex] pathIndex = url.find("/", methodIndex) + + if pathIndex is -1: + pathIndex = len(url) + url += "/" + host = url[methodIndex:pathIndex].lower() path = url[pathIndex:]