sslstrip icon indicating copy to clipboard operation
sslstrip copied to clipboard

Some errors

Open y1174804262 opened this issue 7 months ago • 0 comments

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'

I am currently researching TLS related matters and I earnestly request that you provide me with an answer. Thank you very much. I hope you can debug again and update the current version. Of course, if you can guide me to make modifications and updates, my request may delay your time. I am very sorry.

y1174804262 avatar Jul 02 '24 15:07 y1174804262