mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5883c68f54 | ||
|
|
22b51a1ee3 |
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.
|
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.
|
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
|
Resources
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
|||||||
2
scan.php
2
scan.php
@@ -203,7 +203,7 @@ class MalwareScanner
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function addWordpressChecksums($wp_version)
|
public function addWordpressChecksums($wp_version)
|
||||||
{
|
{
|
||||||
$apiurl = 'https://api.wordpress.org/core/checksums/1.0/?version=' . $wp_version;
|
$apiurl = 'https://api.wordpress.org/core/checksums/1.0/?version=' . $wp_version;
|
||||||
$json = json_decode(file_get_contents($apiurl));
|
$json = json_decode(file_get_contents($apiurl));
|
||||||
|
|||||||
Reference in New Issue
Block a user