Skip to content

Instantly share code, notes, and snippets.

@dwisiswant0
Last active May 3, 2022 12:39
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • Save dwisiswant0/23cc87d2149202652d265ab6ebe9e85f to your computer and use it in GitHub Desktop.
Save dwisiswant0/23cc87d2149202652d265ab6ebe9e85f 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
@maverickNerd
Copy link

there is no -exclude option in nuclei :)

@dwisiswant0
Copy link
Author

there is no -exclude option in nuclei :)

> GO111MODULE=on go get -u -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@master

@OviKing123
Copy link

how to use this script bro?

@ooge0
Copy link

ooge0 commented Mar 5, 2021

@maverickNerd

there is no -exclude option in nuclei :)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment