mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
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.
This commit is contained in:
4
scan.php
4
scan.php
@@ -92,7 +92,7 @@ class MalwareScanner
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->patterns_b64functions = $this->loadPatterns(dirname(__FILE__). '/php_functions.txt');
|
$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
|
//Adds additional checks to patterns_raw
|
||||||
@@ -470,7 +470,7 @@ class MalwareScanner
|
|||||||
echo ' -h --help Show this help message' . PHP_EOL;
|
echo ' -h --help Show this help message' . PHP_EOL;
|
||||||
echo ' -d <directory> --directory Directory for searching' . PHP_EOL;
|
echo ' -d <directory> --directory Directory for searching' . PHP_EOL;
|
||||||
echo ' -e <file extension> --extension File Extension to Scan' . PHP_EOL;
|
echo ' -e <file extension> --extension File Extension to Scan' . PHP_EOL;
|
||||||
echo ' -i <directory|file> --ignore Directory of file to igonre' . PHP_EOL;
|
echo ' -i <directory|file> --ignore Directory of file to ignore' . PHP_EOL;
|
||||||
echo ' -b --base64 Scan for base64 encoded PHP keywords' . 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 ' -m --checksum Display MD5 Hash/Checksum of file' . PHP_EOL;
|
||||||
echo ' -c --comment Display comments for matched patterns' . PHP_EOL;
|
echo ' -c --comment Display comments for matched patterns' . PHP_EOL;
|
||||||
|
|||||||
Reference in New Issue
Block a user