Last active
September 11, 2024 18:47
-
-
Save pythoninthegrass/0a57637e380dbe0717331ed9bfbf0de4 to your computer and use it in GitHub Desktop.
nikto docker shim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
help() { | |
cat <<- DESCRIPTION >&2 | |
Shim to run nikto in a container. | |
SETUP | |
git clone https://github.com/sullo/nikto | |
cd nikto/program | |
docker build -t sullo/nikto . | |
USAGE | |
$(basename "$0") -h <IP|DOMAIN> Run nikto against an IP (port is optional via ':<PORT>') or domain | |
$(basename "$0") -Help Built-in help | |
DESCRIPTION | |
} | |
if [ "$#" -eq 0 ]; then | |
help | |
fi | |
image="sullo/nikto" | |
case "$1" in | |
-h) | |
docker run -it --rm "${image}" "$@" | |
;; | |
--help) | |
help | |
;; | |
-Help) | |
docker run -it --rm "${image}" -Help | |
;; | |
*) | |
help | |
exit 1 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
build nikto docker container
See: https://github.com/sullo/nikto
clone gist and create symlink
usage