cleantalk/spbct-heuristic-analyser

CleanTalk SPBCT Heuristic Analyser 类

安装数: 1,788

依赖项: 0

建议者: 0

安全性: 0

星标: 2

关注者: 3

分支: 0

开放问题: 0

类型:cleantalk-spbct-scanner

1.4.39 2024-08-05 09:33 UTC

README

安装

composer require cleantalk/spbct-heuristic-analyser

使用

<?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