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

7 lines
332 B
PHP

<?php
header("Content-Type: application/json");
$t=$_GET["tool"]??"list";
$ts=["nuclei","gitleaks","trivy","sherlock","holehe","keyhacks","amass","claw-code"];
if($t==="list")echo json_encode(["tools"=>$ts]);
else{$p=trim(shell_exec("which $t 2>/dev/null")??"");echo json_encode(["tool"=>$t,"installed"=>strlen($p)>0,"path"=>$p]);}