Skip to content

Commit

Permalink
Merge pull request #33 from CommunityHoneyNetwork/version_bump
Browse files Browse the repository at this point in the history
Version bump
  • Loading branch information
amerck authored Oct 30, 2019
2 parents f4898e3 + bc833ed commit db25766
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions output/hpfeeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from twisted.python import log

import cowrie.core.output
from cowrie.core.config import CONFIG
from cowrie.core.config import CowrieConfig

try:
buffer # Python 2
Expand Down Expand Up @@ -257,19 +257,19 @@ def __init__(self):
log.msg("Early version of hpfeeds-output, untested!")

try:
self.tags = [tag.strip() for tag in CONFIG.get('output_hpfeeds', 'tags').split(',')]
self.tags = [tag.strip() for tag in CowrieConfig().get('output_hpfeeds', 'tags').split(',')]
except Exception as e:
self.tags = []

cowrie.core.output.Output.__init__(self)

def start(self):

server = CONFIG.get('output_hpfeeds', 'server')
port = CONFIG.getint('output_hpfeeds', 'port')
ident = CONFIG.get('output_hpfeeds', 'identifier')
secret = CONFIG.get('output_hpfeeds', 'secret')
debug = CONFIG.getboolean('output_hpfeeds', 'debug')
server = CowrieConfig().get('output_hpfeeds', 'server')
port = CowrieConfig().getint('output_hpfeeds', 'port')
ident = CowrieConfig().get('output_hpfeeds', 'identifier')
secret = CowrieConfig().get('output_hpfeeds', 'secret')
debug = CowrieConfig().getboolean('output_hpfeeds', 'debug')
self.client = hpclient(server, port, ident, secret, debug)
self.meta = {}

Expand Down
2 changes: 1 addition & 1 deletion vars/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

cowrie_repo: http://github.com/cowrie/cowrie

cowrie_version: 1.5.2
cowrie_version: 1.9.7

cowrie_dir: /opt/cowrie
cowrie_user: cowrie
Expand Down

0 comments on commit db25766

Please sign in to comment.