Files
html/api/wevia-dark-bridge.php
2026-04-12 22:57:03 +02:00

15 lines
937 B
PHP

<?php
header("Content-Type: application/json");
$tool = $_GET["tool"] ?? "list";
$tools = [
"nuclei" => ["installed" => !!trim(shell_exec("which nuclei 2>/dev/null")), "type" => "security"],
"gitleaks" => ["installed" => !!trim(shell_exec("which gitleaks 2>/dev/null")), "type" => "security"],
"trivy" => ["installed" => !!trim(shell_exec("which trivy 2>/dev/null")), "type" => "security"],
"sherlock" => ["installed" => !!trim(shell_exec("which sherlock 2>/dev/null")), "type" => "osint"],
"holehe" => ["installed" => !!trim(shell_exec("which holehe 2>/dev/null")), "type" => "osint"],
"nmap" => ["installed" => !!trim(shell_exec("which nmap 2>/dev/null")), "type" => "recon"],
];
if ($tool === "list") echo json_encode(["tools" => $tools, "count" => count($tools)]);
elseif (isset($tools[$tool])) echo json_encode(["tool" => $tool, "info" => $tools[$tool]]);
else echo json_encode(["error" => "unknown tool"]);