Files
AiRust_Backend/check_tools.bat
T
frostyripper1 61cd0b889d MetaCommit
2026-05-19 13:37:12 +02:00

63 lines
2.0 KiB
Batchfile

@echo off
chcp 65001 >nul
title AiRust — Tool Checker
color 0B
echo.
echo ╔═══════════════════════════════════════════╗
echo ║ AiRust — Cybersecurity Tool Check ║
echo ╚═══════════════════════════════════════════╝
echo.
echo [*] Checking available tools...
echo.
set "FOUND=0"
set "MISSING=0"
call :check_tool "nmap" "nmap" "Network scanning"
call :check_tool "python" "python --version" "Python scripting"
call :check_tool "powershell" "powershell -NoP -Command $PSVersionTable.PSVersion" "PowerShell"
call :check_tool "curl" "curl --version" "HTTP requests"
call :check_tool "wget" "wget --version" "File download"
call :check_tool "git" "git --version" "Source control"
call :check_tool "jq" "jq --version" "JSON processing"
call :check_tool "7z" "7z" "Archive extraction"
call :check_tool "certutil" "certutil" "Certificate/Hash tools"
echo.
if %MISSING% equ 0 (
echo [✓] All common tools available.
) else (
echo [!] %MISSING% tool(s) not found. Some scripts may not work.
echo.
echo Recommended installs:
echo - nmap: https://nmap.org/download.html
echo - Python: https://python.org/downloads
echo - curl: https://curl.se/windows
echo - jq: https://jqlang.github.io/jq/download
)
echo.
echo [*] For full tool coverage, consider installing:
echo - Sysinternals Suite (Microsoft)
echo - Ghidra / x64dbg / dnSpy (Reverse Engineering)
echo - Hashcat / John (Password Cracking)
echo - Wireshark (Packet Analysis)
echo - OpenVPN / Chisel (Tunneling)
echo.
echo [*] Tool knowledge loaded into AI via cyber_tools.jsonl
echo (%FOUND% tools checked)
echo.
pause
exit /b 0
:check_tool
where %~1 >nul 2>&1
if %errorlevel% equ 0 (
echo [✓] %~3: %~1
set /a FOUND+=1
) else (
echo [!] %~3: NOT FOUND
set /a MISSING+=1
)
exit /b 0