mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
Merge pull request #55 from scr34m/libmode
Change function visibility to allow usage as library
This commit is contained in:
4
scan.php
4
scan.php
@@ -104,7 +104,7 @@ class MalwareScanner
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Handles pattern loading and saving to the class object
|
//Handles pattern loading and saving to the class object
|
||||||
private function initializePatterns()
|
public function initializePatterns()
|
||||||
{
|
{
|
||||||
$dir = dirname(__FILE__);
|
$dir = dirname(__FILE__);
|
||||||
//Loads either the primary scanning patterns or the base64 patterns depending on -b/--base64 flag
|
//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
|
//Loads the whitelist file
|
||||||
private function loadWhitelist()
|
public function loadWhitelist()
|
||||||
{
|
{
|
||||||
if (!is_file(__DIR__ . '/whitelist.txt')) {
|
if (!is_file(__DIR__ . '/whitelist.txt')) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user