Skip to content

Instantly share code, notes, and snippets.

@minkione
Forked from dwisiswant0/nucleir.sh
Created January 26, 2021 21:19
Show Gist options
  • Select an option

  • Save minkione/cab0d08972bac41d532ce59ff1a884e8 to your computer and use it in GitHub Desktop.

Select an option

Save minkione/cab0d08972bac41d532ce59ff1a884e8 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; }
local T=""
for i in `ls -1d ${TPL}/*/`; do
if [[ ! "${i}" =~ (brute-force|examples|payloads) ]]; then
T+="-t ${i} "
fi
done
eval "nuclei -c 200 ${1} ${2} ${T} \
-exclude ${TPL}/technologies/tech-detect.yaml \
-o \"$(basename $2)_nuclei-results.txt\""
}
nucleir $1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment