mushorg / glastopf

Web Application Honeypot
http://glastopf.org
560 stars 168 forks source link

Disable hpfeed #119

Closed Shortfinga closed 11 years ago

Shortfinga commented 11 years ago

I wanted to disabel hpfeed in the config, but a error occurred. I found the solution: log_hpfeeds.py line 41-52 else: self.options = {'enabled': False}

johnnykv commented 11 years ago

Thanks for raising this issue. Could you please provide the exact error you was getting, and a copy/paste from the hpfeeds section of glastopf.cfg?

Shortfinga commented 11 years ago

Section of glastopf.cfg: [hpfeed]

enabled = True

enabled = False

host = hpfriends.honeycloud.net

port = 20000

secret = 3wis3l2u5l7r3cew

channels comma separated

chan_events = glastopf.events

chan_files = glastopf.files

ident = x8yer@hp1

Error: root@testserver:/home/glastopf# glastopf-runner Traceback (most recent call last): File "/usr/local/bin/glastopf-runner", line 85, in honeypot.start_background_workers() File "/usr/local/lib/python2.7/dist-packages/glastopf/glastopf.py", line 97, in start_background_workers self.loggers = logging_handler.get_aux_loggers(self.data_dir) File "/usr/local/lib/python2.7/dist-packages/glastopf/modules/logging_handler.py", line 50, in get_aux_loggers if logger_instance.options['enabled']: AttributeError: 'HPFeedsLogger' object has no attribute 'options'

johnnykv commented 11 years ago

This issue was fixed in the developer version, commit: cdefbd3214a8682cedaf438c45574ae3cb528458. The fix will be pushed to PYPI when we do the next minor release.