Skip to content

Commit

Permalink
Bugfix in filename parameter that is given to YARA matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Roth committed Jul 30, 2017
1 parent ea3cd41 commit 934979e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lokilogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import socket
from helpers import removeNonAsciiDrop

__version__ = '0.23.1'
__version__ = '0.23.2'

# Logger Class -----------------------------------------------------------------
class LokiLogger():
Expand Down
4 changes: 3 additions & 1 deletion loki.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def scan_path(self, path):
# Scan the read data
try:
for (score, rule, description, matched_strings) in \
self.scan_data(fileData, fileType, filePathCleaned,
self.scan_data(fileData, fileType, filename,
filePathCleaned, extension, md5):
# Message
message = "Yara Rule MATCH: %s SUBSCORE: %s DESCRIPTION: %s" % (rule, score, description)
Expand Down Expand Up @@ -428,6 +428,8 @@ def scan_path(self, path):

def scan_data(self, fileData, fileType="-", fileName="-", filePath="-", extension="-", md5="-"):

# Scan parameters
#print fileType, fileName, filePath, extension, md5
# Scan with yara
try:
for rules in self.yara_rules:
Expand Down

0 comments on commit 934979e

Please sign in to comment.