From 5883c68f54d54bfca1249897cf212ea45d1bf175 Mon Sep 17 00:00:00 2001 From: Gabor Gyorvari Date: Mon, 5 Oct 2020 13:34:16 +0200 Subject: [PATCH] Small example how to use as library, fix #61 --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 9799da9..58fb0d6 100644 --- a/README.md +++ b/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 +setFlagHideWhitelist(true); +$scan->setFlagHideOk(true); +$scan->run('../samples/test'); +``` + Resources ---------