PHP code example of cleantalk / spbct-heuristic-analyser

1. Go to this page and download the library: Download cleantalk/spbct-heuristic-analyser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cleantalk / spbct-heuristic-analyser example snippets




// Require composer autoloader
sticAnalyser\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