Skip to content

Commit

Permalink
python/virustotal - Add default comment for virustotal
Browse files Browse the repository at this point in the history
  • Loading branch information
phibos committed Jun 17, 2018
1 parent 0911665 commit fdd7c75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/ihandlers/virustotal.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# grab it from your virustotal account at My account -> My API Key (https://www.virustotal.com/en/user/<username>/apikey/)
apikey: "........."
file: "@DIONAEA_STATEDIR@/vtcache.sqlite"
comment: "This sample was captured in the wild and uploaded by the dionaea honeypot.\n#honeypot #malware #networkworm"
# comment: "This sample was captured in the wild and uploaded by the dionaea honeypot.\n#honeypot #malware #networkworm"
5 changes: 4 additions & 1 deletion modules/python/dionaea/virustotal.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ def __init__(self, path, config=None):
logger.debug("%s ready!" % (self.__class__.__name__))
ihandler.__init__(self, path)
self.apikey = config.get("apikey")
self.comment = config.get("comment")
comment = config.get("comment")
if comment is None:
comment = "This sample was captured in the wild and uploaded by the dionaea honeypot.\n#honeypot #malware #networkworm"
self.comment = comment
self.cookies = {}
self.loop = pyev.default_loop()

Expand Down

0 comments on commit fdd7c75

Please sign in to comment.