["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"]);