Merge pull request #55 from scr34m/libmode

Change function visibility to allow usage as library
This commit is contained in:
Győrvári Gábor
2020-06-24 10:17:19 +02:00
committed by GitHub

View File

@@ -104,7 +104,7 @@ class MalwareScanner
}
//Handles pattern loading and saving to the class object
private function initializePatterns()
public function initializePatterns()
{
$dir = dirname(__FILE__);
//Loads either the primary scanning patterns or the base64 patterns depending on -b/--base64 flag
@@ -176,7 +176,7 @@ class MalwareScanner
}
//Loads the whitelist file
private function loadWhitelist()
public function loadWhitelist()
{
if (!is_file(__DIR__ . '/whitelist.txt')) {
return;