Sslstrip error

Unhandled Error
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/twisted/python/”, line 103, in callWithLogger
return callWithContext({“system”: lp}, func, *args, **kw)
File “/usr/local/lib/python2.7/dist-packages/twisted/python/”, line 86, in callWithContext
return{ILogContext: newCtx}, func, *args, **kw)
File “/usr/local/lib/python2.7/dist-packages/twisted/python/”, line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File “/usr/local/lib/python2.7/dist-packages/twisted/python/”, line 85, in callWithContext
return func(*args,**kw)
— —
File “/usr/local/lib/python2.7/dist-packages/twisted/internet/”, line 614, in _doReadOrWrite
why = selectable.doRead()
File “/usr/local/lib/python2.7/dist-packages/twisted/internet/”, line 243, in doRead
return self._dataReceived(data)
File “/usr/local/lib/python2.7/dist-packages/twisted/internet/”, line 249, in _dataReceived
rval = self.protocol.dataReceived(data)
File “/usr/local/lib/python2.7/dist-packages/twisted/protocols/”, line 579, in dataReceived
why = self.rawDataReceived(data)
File “/usr/local/lib/python2.7/dist-packages/twisted/web/”, line 649, in rawDataReceived
File “/usr/local/lib/python2.7/dist-packages/sslstrip/”, line 119, in handleResponseEnd
File “/usr/local/lib/python2.7/dist-packages/twisted/web/”, line 612, in handleResponseEnd
File “/usr/local/lib/python2.7/dist-packages/sslstrip/”, line 131, in handleResponse
self.client.setHeader(‘Content-Length’, len(data))
File “/usr/local/lib/python2.7/dist-packages/twisted/web/”, line 1314, in setHeader
self.responseHeaders.setRawHeaders(name, [value])
File “/usr/local/lib/python2.7/dist-packages/twisted/web/”, line 220, in setRawHeaders
for v in self._encodeValues(values)]
File “/usr/local/lib/python2.7/dist-packages/twisted/web/”, line 40, in _sanitizeLinearWhitespace
return b’ '.join(headerComponent.splitlines())
exceptions.AttributeError: ‘int’ object has no attribute ‘splitlines’

Can you anyone help me to solve this error ?

You have to give more details here. What particular python code are you running, what is the python version? Also, from looking at the error, it says that the int object has no attribute splitlines. It means that you are using splitlines for an int type object. Ideally, splitlines works for list objects and not int objects

It was come from during sslstrip running. I’m use for it python2