cleantalk / spbct-heuristic-analyser
CleanTalk SPBCT Heuristic Analyser classes
Installs: 2 009
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Type:cleantalk-spbct-scanner
Requires
Requires (Dev)
- phpcompatibility/php-compatibility: ^9.3
- phpunit/phpunit: ^7.5
- squizlabs/php_codesniffer: 3.*
- vimeo/psalm: ^4.8
- yoast/phpunit-polyfills: ^1.0
- dev-master
- 1.4.40
- 1.4.39
- 1.4.38
- 1.4.37
- 1.4.36
- 1.4.35
- 1.4.34
- 1.4.33
- 1.4.32
- 1.4.31
- 1.4.30
- 1.4.29
- 1.4.28.1
- 1.4.28
- 1.4.27
- 1.4.26
- 1.4.25
- 1.4.24
- 1.4.23
- 1.4.22
- 1.4.21
- 1.4.20
- 1.4.19
- 1.4.18
- 1.4.17
- 1.4.16
- 1.4.15
- 1.4.14
- 1.4.13
- 1.4.12
- 1.4.11
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- dev-New-Variables-Concatenating-from-fake-substr
- dev-is_valid_php_code.ag
- dev-dev_bak.do_not_merge
- dev-handle-urldecode-function
This package is auto-updated.
Last update: 2024-12-02 07:15:35 UTC
README
Install
composer require cleantalk/spbct-heuristic-analyser
Using
<?php // Require composer autoloader require_once 'vendor/autoload.php'; use CleantalkSP\Common\Scanner\HeuristicAnalyser\Controller; use CleantalkSP\Common\Scanner\HeuristicAnalyser\Structures\FileInfo; $file_path = '/bad/index.php'; $root_dir_patn = __DIR__; // Instantiate the scanner module $heuristic_scanner = new Controller(); // Prepare files information $file_to_check = new FileInfo($file_path); $res = $heuristic_scanner->scanFile($file_to_check, $root_dir_patn); var_dump($res); // $res will contain the scanning result var_dump($heuristic_scanner->final_code); // $final_code will contain the de-obfuscated code