tnich / honssh

HonSSH is designed to log all SSH communications between a client and server.
https://github.com/tnich/honssh
BSD 3-Clause "New" or "Revised" License
372 stars 71 forks source link

No option 'file_download' in section: 'extras' #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
Cloned honssh to server

2.
Started honssh using start.sh

3.
Testing to login in to honeypot. Was able to log in but when issuing any
commands, such as 'ls', the connection is closed.

What is the expected output?
The expected output, on the client side, would be the result of the command 
executed on the server.
The expected output, on the server side (honssh), would be the executed 
commands being populated in the current honssh.log.

What do you see instead?
- On the client side:

root:~# lsConnection to 11.22.33.44 closed by remote host.
Connection to 11.22.33.44 closed.

- On the server side, in honssh.log

2014-02-15 15:12:20+0100 [HonsshServerTransport,0,11.22.33.44] Unhandled Error
    Traceback (most recent call last):
      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)
    --- <exception caught here> ---
      File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
        why = selectable.doRead()
      File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 215, in doRead
        return self._dataReceived(data)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 221, in _dataReceived
        rval = self.protocol.dataReceived(data)
      File "/usr/lib/python2.7/dist-packages/twisted/conch/ssh/transport.py", line 438, in dataReceived
        self.dispatchMessage(messageNum, packet[1:])
      File "/home/loke/honssh/honssh/server.py", line 131, in dispatchMessage
        if self.cfg.get('extras', 'file_download') == 'true':
      File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
        raise NoOptionError(option, section)
    ConfigParser.NoOptionError: No option 'file_download' in section: 'extras'

2014-02-15 15:12:20+0100 [HonsshServerTransport,0,11.22.33.44] connection lost

What version of the product are you using?
Rev 7ceb089043af

On what operating system?
Ubuntu 13.10 

Please provide any additional information below.

Original issue reported on code.google.com by are.hans...@gmail.com on 15 Feb 2014 at 2:23

GoogleCodeExporter commented 9 years ago
Sorry, the config file updates were not pushed with git.

Try release 81dafaef5630 or simply add file_download = false to the extras 
section of the config file.

Original comment by tnn...@googlemail.com on 15 Feb 2014 at 2:40

GoogleCodeExporter commented 9 years ago
Yepp, that did the trick.

Great project you got here, totally awesomeness!
Thanks a million.

Original comment by are.hans...@gmail.com on 15 Feb 2014 at 2:57