From 7a8a2c1c77106b03874198380348a1948816dfa3 Mon Sep 17 00:00:00 2001 From: nichogenius Date: Sat, 19 Aug 2017 17:50:46 -0600 Subject: [PATCH] updated flags updated flags checksum can be -m for md5 comment can be -c for comment --- scan.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scan.php b/scan.php index eefe45c..a632755 100644 --- a/scan.php +++ b/scan.php @@ -176,10 +176,10 @@ class MalwareScanner if (isset($options['base64']) || isset($options['b'])){ $this->flagBase64 = true; } - if (isset($options['checksum']) || isset($options['c'])){ + if (isset($options['checksum']) || isset($options['m'])){ $this->flagChecksum = true; } - if (isset($options['comment']) || isset($options['a'])){ + if (isset($options['comment']) || isset($options['c'])){ $this->flagComments = true; } if (isset($options['extra-check']) || isset($options['x'])) { @@ -421,8 +421,8 @@ class MalwareScanner echo ' -e --extension File Extension to Scan' . PHP_EOL; echo ' -i --ignore Directory of file to igonre' . PHP_EOL; echo ' -b --base64 Scan for base64 encoded PHP keywords' . PHP_EOL; - echo ' -c --checksum Display MD5 Checksum of file' . PHP_EOL; - echo ' -a --comment Display comments for matched patterns' . PHP_EOL; + echo ' -m --checksum Display MD5 Checksum of file' . PHP_EOL; + echo ' -c --comment Display comments for matched patterns' . PHP_EOL; echo ' -x --extra-check Adds GoogleBot and htaccess to Scan List' . PHP_EOL; echo ' -l --follow-symlink Follow symlinked directories' . PHP_EOL; echo ' -k --hide-ok Hide OK aka not infected messages' . PHP_EOL;