From 85072b5eaf4697edea9bd9c709e43c576945569d Mon Sep 17 00:00:00 2001 From: nichogenius Date: Sat, 19 Aug 2017 22:29:23 -0600 Subject: [PATCH] 2 typos = 1 fixed bug typo in showHelp - ignore spelled incorrectly typo in pattern file load for the b64 keyword file... broke part of base64 mode. --- scan.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scan.php b/scan.php index a45d0b9..5a4038e 100644 --- a/scan.php +++ b/scan.php @@ -92,7 +92,7 @@ class MalwareScanner } else { $this->patterns_b64functions = $this->loadPatterns(dirname(__FILE__). '/php_functions.txt'); - $this->patterns_b64keywrds = $this->loadPatterns(dirname(__FILE__). '/php_keywords.txt'); + $this->patterns_b64keywords = $this->loadPatterns(dirname(__FILE__). '/php_keywords.txt'); } //Adds additional checks to patterns_raw @@ -470,7 +470,7 @@ class MalwareScanner echo ' -h --help Show this help message' . PHP_EOL; echo ' -d --directory Directory for searching' . PHP_EOL; echo ' -e --extension File Extension to Scan' . PHP_EOL; - echo ' -i --ignore Directory of file to igonre' . PHP_EOL; + echo ' -i --ignore Directory of file to ignore' . PHP_EOL; echo ' -b --base64 Scan for base64 encoded PHP keywords' . PHP_EOL; echo ' -m --checksum Display MD5 Hash/Checksum of file' . PHP_EOL; echo ' -c --comment Display comments for matched patterns' . PHP_EOL;