Files
s41r4j-cybot/scripts/toolbox-web-entrypoint.sh
s41r4j 0f03d49514
CI / contracts (push) Canceled after 0s
Website / deploy (push) Canceled after 0s
CI / test (macos-latest) (push) Canceled after 0s
CI / test (ubuntu-24.04) (push) Canceled after 0s
CI / test (ubuntu-24.04-arm) (push) Canceled after 0s
CI / test (windows-latest) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / operation-readiness (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
Initial commit
2026-11-01 09:14:18 +05:30

26 lines
805 B
Bash

#!/bin/sh
set -eu
action="${1:-help}"
shift || true
case "$action" in
cybot) exec /opt/cybot/bin/cybot "$@" ;;
exec) exec "$@" ;;
shell) exec /bin/sh "$@" ;;
health)
for tool in cybot httpx ffuf gobuster whatweb wafw00f corscanner dirsearch ruby python3; do
command -v "$tool" >/dev/null || { echo "Missing web runtime dependency: $tool" >&2; exit 1; }
done
echo 'Web runtime executables are present; real operation validation is separate.' ;;
versions)
cybot --version
httpx -version
ffuf -V
gobuster --version
whatweb --version
wafw00f --version
corscanner --version
dirsearch --version ;;
help) echo 'CYBOT web toolbox: cybot | exec | health | versions | shell' ;;
*) echo "Unsupported web entrypoint action: $action" >&2; exit 2 ;;
esac