Last active
May 3, 2022 12:39
-
-
Save dwisiswant0/23cc87d2149202652d265ab6ebe9e85f to your computer and use it in GitHub Desktop.
Automate nuclei
This file contains hidden or 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
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 |
there is no -exclude option in nuclei :)
> GO111MODULE=on go get -u -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@master
how to use this script bro?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there is no -exclude option in nuclei :)