Skip to content

Instantly share code, notes, and snippets.

@secfb
Forked from dwisiswant0/nucleir.sh
Created August 22, 2020 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save secfb/3caa14bdb535321541f835c61a054594 to your computer and use it in GitHub Desktop.
Save secfb/3caa14bdb535321541f835c61a054594 to your computer and use it in GitHub Desktop.
Automate nuclei
nucleir() {
local TPL="$HOME/Documents/nuclei-templates"
[[ -z "${1}" ]] && { echo "-target/-l ?"; return; }
[[ -z "${2}" ]] && { echo "Input target?"; return; }
for i in `ls -1d ${TPL}/*/`; do
if [[ ! "${i}" =~ (brute-force|examples|payloads) ]]; then
nuclei $1 $2 -t ${i} -o "$(basename $2)_nuclei-$(basename $i).txt"
fi
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment