sslstrip
sslstrip copied to clipboard
Some errors
First, type error:
File "/home/k/sslstrip/sslstrip/ClientRequest.py", line 55, in getPathFromUri
return self.uri[7:] if self.uri.startswith("http://") else self.uri
builtins.TypeError: startswith first arg must be bytes or a tuple of bytes, not str`
This error can be resolved through `decode()
def getPathFromUri(self):
return self.uri[7:] if self.uri.decode.startswith("http://") else self.uri
Second, type error also:
we can change `path = self.getPathFromUri().decode()` also.
Third, Function name error
There is no isClean method in the self.cookieCleaner class. Upon inspection, it was found that there is an is_clean method in this class. After inspection, you can modify it
if not self.cookieCleaner.is_clean(self.method, client, host, headers):
These errors were all modified in ClientRequest.py
Errors that I cannot solve!!!
File "/home/kali/.local/lib/python3.11/site-packages/twisted/web/http.py", line 735, in rawDataReceived
self.handleResponseEnd()
File "/home/kali/.local/lib/python3.11/site-packages/twisted/web/http.py", line 699, in handleResponseEnd
self.handleResponse(b)
builtins.AttributeError: 'ServerConnection' object has no attribute 'handleResponse'