Skip to content

Instantly share code, notes, and snippets.

@michaellcader
Forked from dwisiswant0/nuclei-scan.sh
Last active July 9, 2020 06:26
Show Gist options
  • Save michaellcader/6561e3cc8a11317a8d7bd1b7f3108f95 to your computer and use it in GitHub Desktop.
Save michaellcader/6561e3cc8a11317a8d7bd1b7f3108f95 to your computer and use it in GitHub Desktop.
Automate nuclei for given hosts
#!/bin/bash
OUT=~/nuclei-results/$1
TPL=~/nuclei-templates
mkdir -p ${OUT}
SUB=$(subfinder -d $1 -silent | httprobe | tee ${OUT}/$1.txt)
cd ${TPL}; git pull origin master && cd -
for tpl in $(find $TPL -name "*.yaml"); do $GOPATH/bin/nuclei -l ${OUT}/$1.txt -t $tpl -o "${OUT}/$(basename "$tpl" .yaml).txt"; done
find ${OUT} -name "*.txt" -size 0 -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment