Example Usage
<?php
declare(strict_types=1);
require __DIR__.'/vendor/autoload.php';
use Guanguans\SoarPHP\Soar;
$queries = [
<<<'QUERY'
SELECT
DATE_FORMAT (t.last_update, '%Y-%m-%d'),
COUNT(DISTINCT (t.city))
FROM
city t
WHERE
t.last_update > '2018-10-22 00:00:00'
AND t.city LIKE '%Chrome%'
AND t.city = 'eip'
GROUP BY
DATE_FORMAT(t.last_update, '%Y-%m-%d')
ORDER BY
DATE_FORMAT(t.last_update, '%Y-%m-%d');
QUERY,
'SELECT * FROM `foo`;',
];
/**
* Examples of scoring.
*/
$scores = Soar::make()->arrayScores($queries); // Basic scoring
dump($scores);
$scores = Soar::make() // Advanced scoring
->withTestDsn([
'user' => 'you_user',
'password' => 'you_password',
'addr' => 'you_host:you_port',
// 'host' => 'you_host',
// 'port' => 'you_port',
'schema' => 'you_dbname',
// 'disable' => false,
])
->withOnlineDsn([
'user' => 'you_user',
'password' => 'you_password',
// 'addr' => 'you_host:you_port',
'host' => 'you_host',
'port' => 'you_port',
See also
1earn
Free
ffffffff0x 团队维护的安全知识框架,内容包括不仅限于 web安全、工控安全、取证、应急、蓝队设施部署、后渗透、Linux安全、各类靶机writup…
xhunter
Free
Android Penetration Tool [ RAT for Android ]…
username-anarchy
Open Source
Kali
Username tools for penetration testing…
Unicorn
Open Source
Simple tool for using a PowerShell downgrade attack and inject shellcode straight into memory. Works…
ntlm_theft
Open Source
Creates malicious files (LNK, SCF, PDF, DOCX, etc.) that force a Windows system to authenticate to a…
BeEF
Open Source
Kali
Browser Exploitation Framework. Hooks web browsers via JavaScript and provides extensive command mod…