-
-
Save secfb/b100141983b8d830a6e7bf62ceea5f15 to your computer and use it in GitHub Desktop.
Automate nuclei for given hosts
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment