Skip to content

Commit

Permalink
style: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo23x0 committed Oct 19, 2020
1 parent 30b0fce commit 332f044
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions loki.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,17 +705,17 @@ def scan_processes(self, nopesieve, nolisten, excludeprocess, pesieveshellc):
results = self.peSieve.scan(pid, pesieveshellc)
if results["replaced"]:
logger.log("WARNING", "ProcessScan", "PE-Sieve reported replaced process %s REPLACED: %s" %
(process_info, str(results["replaced"])) )
(process_info, str(results["replaced"])))
elif results["implanted_pe"] or results["implanted_shc"]:
logger.log("WARNING", "ProcessScan", "PE-Sieve reported implanted process %s "
"IMPLANTED PE: %s IMPLANTED SHC: %s" % (process_info, str(results["implanted_pe"]),
str(results["implanted_shc"])) )
elif results["patched"]:
logger.log("NOTICE", "ProcessScan", "PE-Sieve reported patched process %s PATCHED: %s" %
(process_info, str(results["patched"])) )
logger.log("NOTICE", "ProcessScan", "PE-Sieve reported patched process %s PATCHED: %s" %
(process_info, str(results["patched"])))
elif results["unreachable_file"]:
logger.log("NOTICE", "ProcessScan", "PE-Sieve reported a process with unreachable exe %s UNREACHABLE: %s" %
(process_info, str(results["unreachable_file"])) )
(process_info, str(results["unreachable_file"])))
else:
logger.log("INFO", "ProcessScan", "PE-Sieve reported no anomalies %s" % process_info)
except WindowsError as e:
Expand Down

0 comments on commit 332f044

Please sign in to comment.