updated flags

updated flags

checksum can be -m for md5
comment can be -c for comment
This commit is contained in:
nichogenius
2017-08-19 17:50:46 -06:00
committed by GitHub
parent dea08acd2e
commit 7a8a2c1c77

View File

@@ -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 <file extension> --extension File Extension to Scan' . PHP_EOL;
echo ' -i <directory|file> --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;