threatequation / php-soc-lite
此包的最新版本(dev-master)没有提供许可证信息。
php valnerable 检测和保护的 composer 插件。
dev-master / 1.0.x-dev
2018-11-10 13:11 UTC
Requires
- php: >=5.6.0
- ezyang/htmlpurifier: dev-master
- maximebf/debugbar: ^1.14
- raveren/kint: ^1.1
- sensiolabs/security-checker: ^4.0
Requires (Dev)
- phpunit/phpunit: 5.*
This package is not auto-updated.
Last update: 2024-09-24 18:23:19 UTC
README
#概述
这是一个针对 PHP 的入侵检测系统和预防系统。此插件可以帮助您使您的 Web 应用程序免受恶意攻击。
#功能
###SQL 注入 ####XSS 攻击 ####不安全直接对象引用 ####敏感数据泄露 ####缺失函数级别访问控制
#要求
PHP5.4 ###PHP 扩展 php PDO php-curl php-bigstring
#示例用法
首先加载 composer 包,然后在顶部添加我们的功能。这样,对于每个请求,首先运行我们的应用程序。
try {
// initialize application
$init= new \TE\Init(['product_id'=>'your poduct id',
'api_token'=>' your api token',
'composerLock'=> __DIR__.'/composer.lock']);
// composerLock => path your composer.lock file
// collect data you want to scan
$request = array('GET' => $_GET, 'POST' => $_POST, 'COOKIE' => $_COOKIE);
//run validation
$init->runValidation($request);
} catch (Exception $e) {
printf('ERROR: %s', $e->getMessage());
}
#版本 版本:0.3.0 对象注入版本:0.1.0 21-01-2017 版本:alpha 版本:pre-alpha