mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
Small example how to use as library, fix #61
This commit is contained in:
16
README.md
16
README.md
@@ -113,6 +113,22 @@ It is guaranteed that IF 'base64_decode' was present in the plain text code, the
|
||||
The presence of 'YmFzZTY0X2RlY29kZ' in a block of code may be because 'ase64_decod' was in the original code.
|
||||
ote the missing edge characters which is due to bit misalignment and character bleed.
|
||||
|
||||
Using as library
|
||||
----------------
|
||||
|
||||
The scan.php perform a check, that it's called by commandline or not, so to use as library use different directory than scan.php it self.
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
require_once '../scan.php';
|
||||
|
||||
$scan = new MalwareScanner();
|
||||
$scan->setFlagHideWhitelist(true);
|
||||
$scan->setFlagHideOk(true);
|
||||
$scan->run('../samples/test');
|
||||
```
|
||||
|
||||
Resources
|
||||
---------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user