Skip to content

Commit

Permalink
fix: workaround for owner var support in THOR
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed Sep 6, 2021
1 parent e22c79b commit a9f99cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/lokilogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import socket
from .helpers import removeNonAsciiDrop

__version__ = '0.44.0'
__version__ = '0.44.1'


# Logger Class -----------------------------------------------------------------
Expand Down
7 changes: 5 additions & 2 deletions loki.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ def scan_data(self, fileData, fileType="-", fileName=b"-", filePath=b"-", extens
'filepath': filePath.decode('utf-8'),
'extension': extension,
'filetype': fileType,
'md5': md5
'md5': md5,
'owner': "dummy"
})

# If matched
Expand Down Expand Up @@ -1124,6 +1125,7 @@ def initialize_yara_rules(self):
'extension': dummy,
'filetype': dummy,
'md5': dummy,
'owner': dummy,
})
logger.log("DEBUG", "Init", "Initializing Yara rule %s" % file)
rule_count += 1
Expand Down Expand Up @@ -1151,7 +1153,8 @@ def initialize_yara_rules(self):
'filepath': dummy,
'extension': dummy,
'filetype': dummy,
'md5': dummy
'md5': dummy,
'owner': dummy,
})
logger.log("INFO", "Init", "Initialized %d Yara rules" % rule_count)
except Exception as e:
Expand Down

0 comments on commit a9f99cd

Please sign in to comment.