Jump to content

Sslstrip Runtime Error


abs0lut3z33r0

Recommended Posts

.I am getting the following error on sslstrip 0.8 and 0.9 on backtrack5 . SSLStrip runs successfuly for sometime (1-2mins) then it crashes with a successful sslstrip.log

159d1328614407-sslstrip-runtime-error-sslstrip_error.png

 sslstrip 0.8 by Moxie Marlinspike running... Traceback (most  recent call last):   File  "/usr/lib/python2.6/dist-packages/twisted/python/log.py", line 84, in  callWithLogger 	return callWithContext({"system": lp}, func, *args,  **kw)   File "/usr/lib/python2.6/dist-packages/twisted/python/log.py",  line 69, in callWithContext 	return context.call({ILogContext:  newCtx}, func, *args, **kw)   File  "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 59,  in callWithContext 	return self.currentContext().callWithContext(ctx,  func, *args, **kw)   File  "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 37,  in callWithContext 	return func(*args,**kw) --- <exception caught  here> ---   File  "/usr/lib/python2.6/dist-packages/twisted/internet/selectreactor.py",  line 146, in _doReadOrWrite 	why = getattr(selectable, method)()    File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line  460, in doRead 	return self.protocol.dataReceived(data)   File  "/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py", line 259,  in dataReceived 	return self.rawDataReceived(data)   File  "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 537, in  rawDataReceived 	self.handleResponseEnd()   File  "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 110, in  handleResponseEnd 	HTTPClient.handleResponseEnd(self)   File  "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 500, in  handleResponseEnd 	self.handleResponse(B)   File  "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 121, in  handleResponse 	self.shutdown()   File  "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 141, in  shutdown 	self.client.finish()   File  "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 900, in  finish 	"Request.finish called on a request after its connection was  lost; " exceptions.RuntimeError: Request.finish called on a request  after its connection was lost; use Request.notifyFinish to keep track of  this. Traceback (most recent call last):   File "./sslstrip.py", line  105, in main 	reactor.run()   File  "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1170,  in run 	self.mainLoop()   File  "/usr/lib/python2.6/dist-packages/twisted/internet/base.py", line 1182,  in mainLoop 	self.doIteration(t)   File  "/usr/lib/python2.6/dist-packages/twisted/internet/selectreactor.py",  line 140, in doSelect 	_logrun(selectable, _drdw, selectable, method,  dict) --- <exception caught here> ---   File  "/usr/lib/python2.6/dist-packages/twisted/python/log.py", line 84, in  callWithLogger 	return callWithContext({"system": lp}, func, *args,  **kw)   File "/usr/lib/python2.6/dist-packages/twisted/python/log.py",  line 69, in callWithContext 	return context.call({ILogContext:  newCtx}, func, *args, **kw)   File  "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 59,  in callWithContext 	return self.currentContext().callWithContext(ctx,  func, *args, **kw)   File  "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 37,  in callWithContext 	return func(*args,**kw)   File  "/usr/lib/python2.6/dist-packages/twisted/internet/selectreactor.py",  line 156, in _doReadOrWrite 	self._disconnectSelectable(selectable,  why, method=="doRead")   File  "/usr/lib/python2.6/dist-packages/twisted/internet/posixbase.py", line  191, in _disconnectSelectable 	selectable.readConnectionLost(f)    File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line  508, in readConnectionLost 	self.connectionLost(reason)   File  "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 677, in  connectionLost 	Connection.connectionLost(self, reason)   File  "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line 519, in  connectionLost 	protocol.connectionLost(reason)   File  "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 489, in  connectionLost 	self.handleResponseEnd()   File  "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 110, in  handleResponseEnd 	HTTPClient.handleResponseEnd(self)   File  "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 500, in  handleResponseEnd 	self.handleResponse(B)   File  "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 121, in  handleResponse 	self.shutdown()   File  "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 141, in  shutdown 	self.client.finish()   File  "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 900, in  finish 	"Request.finish called on a request after its connection was  lost; " exceptions.RuntimeError: Request.finish called on a request  after its connection was lost; use Request.notifyFinish to keep track of  this. Traceback (most recent call last):   File  "/usr/lib/python2.6/dist-packages/twisted/python/log.py", line 84, in  callWithLogger 	return callWithContext({"system": lp}, func, *args,  **kw)   File "/usr/lib/python2.6/dist-packages/twisted/python/log.py",  line 69, in callWithContext 	return context.call({ILogContext:  newCtx}, func, *args, **kw)   File  "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 59,  in callWithContext 	return self.currentContext().callWithContext(ctx,  func, *args, **kw)   File  "/usr/lib/python2.6/dist-packages/twisted/python/context.py", line 37,  in callWithContext 	return func(*args,**kw) --- <exception caught  here> ---   File  "/usr/lib/python2.6/dist-packages/twisted/internet/selectreactor.py",  line 146, in _doReadOrWrite 	why = getattr(selectable, method)()    File "/usr/lib/python2.6/dist-packages/twisted/internet/tcp.py", line  460, in doRead 	return self.protocol.dataReceived(data)   File  "/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py", line 259,  in dataReceived 	return self.rawDataReceived(data)   File  "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 537, in  rawDataReceived 	self.handleResponseEnd()   File  "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 110, in  handleResponseEnd 	HTTPClient.handleResponseEnd(self)   File  "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 500, in  handleResponseEnd 	self.handleResponse(B)   File  "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 121, in  handleResponse 	self.shutdown()   File  "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 141, in  shutdown 	self.client.finish()   File  "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 900, in  finish 	"Request.finish called on a request after its connection was  lost; " exceptions.RuntimeError: Request.finish called on a request  after its connection was lost; use Request.notifyFinish to keep track of  this.

Edited by abs0lut3z33r0
Link to comment
Share on other sites

This is kind of a known issue with sslstrip. It shows up when an ssl connection has been closed at an unexpected time.

It pops up pretty regularly, but can be ignored. I would suggest to upgrading it to 0.9 which is the most recent version: http://www.thoughtcrime.org/software/sslstrip/

I would also make sure that ettercap is upgraded if you are using it. Otherwise it acts really funny with newer versions of the Linux kernel.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...