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…
Commander
Open Source
A command and control (C2) server…
AES-Encoder
Open Source
PowerShell Obfuscator. A PowerShell script anti-virus evasion tool…
MSSprinkler
Open Source
MSSprinkler is a password spraying utility for organizations to test their Microsoft Online accounts…
ntlm_theft
Open Source
Creates malicious files (LNK, SCF, PDF, DOCX, etc.) that force a Windows system to authenticate to a…
Responder (NBT-NS Poisoner)
Open Source
Kali
Rogue authentication server and LLMNR/NBT-NS/mDNS poisoner for Windows networks. Captures NTLM chall…