reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
nuclei severity option
six2dez5fb7ee403f2a
diff --git a/reconftw.cfg b/reconftw.cfgindex 578133f..4aed2b9 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -80,6 +80,7 @@ CLOUD_IP=true# Web analysisWAF_DETECTION=trueNUCLEICHECK=true+NUCLEI_SEVERITY="info,low,medium,high,critical"URL_CHECK=trueURL_GF=trueURL_EXT=truediff --git a/reconftw.sh b/reconftw.shindex 951c1c0..48529a4 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -990,47 +990,34 @@ function nuclei_check(){nuclei -update-templates 2>>"$LOGFILE" &>/dev/nullmkdir -p nuclei_outputif [ ! "$AXIOM" = true ]; then- printf "${yellow}\n Running : Nuclei Info${reset}\n\n"- cat subdomains/subdomains.txt webs/webs.txt 2>/dev/null | nuclei -silent -t ~/nuclei-templates/ -severity info -r $resolvers_trusted -o nuclei_output/info.txt- printf "${yellow}\n\n Running : Nuclei Low${reset}\n\n"- cat subdomains/subdomains.txt webs/webs.txt 2>/dev/null | nuclei -silent -t ~/nuclei-templates/ -severity low -r $resolvers_trusted -o nuclei_output/low.txt- printf "${yellow}\n\n Running : Nuclei Medium${reset}\n\n"- cat subdomains/subdomains.txt webs/webs.txt 2>/dev/null | nuclei -silent -t ~/nuclei-templates/ -severity medium -r $resolvers_trusted -o nuclei_output/medium.txt- printf "${yellow}\n\n Running : Nuclei High${reset}\n\n"- cat subdomains/subdomains.txt webs/webs.txt 2>/dev/null | nuclei -silent -t ~/nuclei-templates/ -severity high -r $resolvers_trusted -o nuclei_output/high.txt- printf "${yellow}\n\n Running : Nuclei Critical${reset}\n\n"- cat subdomains/subdomains.txt webs/webs.txt 2>/dev/null | nuclei -silent -t ~/nuclei-templates/ -severity critical -r $resolvers_trusted -o nuclei_output/critical.txt- if [ "$BBRF_CONNECTION" = true ]; then- [ -s "nuclei_output/info.txt" ] && cat nuclei_output/info.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:info 2>>"$LOGFILE" &>/dev/null- [ -s "nuclei_output/low.txt" ] && cat nuclei_output/low.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:low 2>>"$LOGFILE" &>/dev/null- [ -s "nuclei_output/medium.txt" ] && cat nuclei_output/medium.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:medium 2>>"$LOGFILE" &>/dev/null- [ -s "nuclei_output/high.txt" ] && cat nuclei_output/high.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:high 2>>"$LOGFILE" &>/dev/null- [ -s "nuclei_output/critical.txt" ] && cat nuclei_output/critical.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:critical 2>>"$LOGFILE" &>/dev/null- fi+ set -f # avoid globbing (expansion of *).+ array=(${NUCLEI_SEVERITY//,/ })+ for i in "${!array[@]}"+ do+ crit=${array[i]}+ printf "${yellow}\n Running : Nuclei $crit ${reset}\n\n"+ cat subdomains/subdomains.txt webs/webs.txt 2>/dev/null | nuclei -silent -t ~/nuclei-templates/ -severity $crit -r $resolvers_trusted -o nuclei_output/${crit}.txt+ doneprintf "\n\n"else[ ! -s ".tmp/webs_subs.txt" ] && cat webs/webs.txt subdomains/subdomains.txt 2>>"$LOGFILE" | anew -q .tmp/webs_subs.txtif [ -s ".tmp/webs_subs.txt" ]; then- printf "${yellow}\n Running : Nuclei Info${reset}\n\n"- axiom-scan .tmp/webs_subs.txt -m nuclei -severity info -o nuclei_output/info.txt 2>>"$LOGFILE" &>/dev/null- printf "${yellow}\n\n Running : Nuclei Low${reset}\n\n"- axiom-scan .tmp/webs_subs.txt -m nuclei -severity low -o nuclei_output/low.txt 2>>"$LOGFILE" &>/dev/null- printf "${yellow}\n\n Running : Nuclei Medium${reset}\n\n"- axiom-scan .tmp/webs_subs.txt -m nuclei -severity medium -o nuclei_output/medium.txt 2>>"$LOGFILE" &>/dev/null- printf "${yellow}\n\n Running : Nuclei High${reset}\n\n"- axiom-scan .tmp/webs_subs.txt -m nuclei -severity high -o nuclei_output/high.txt 2>>"$LOGFILE" &>/dev/null- printf "${yellow}\n\n Running : Nuclei Critical${reset}\n\n"- axiom-scan .tmp/webs_subs.txt -m nuclei -severity critical -o nuclei_output/critical.txt 2>>"$LOGFILE" &>/dev/null- if [ "$BBRF_CONNECTION" = true ]; then- [ -s "nuclei_output/info.txt" ] && cat nuclei_output/info.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:info 2>>"$LOGFILE" &>/dev/null- [ -s "nuclei_output/low.txt" ] && cat nuclei_output/low.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:low 2>>"$LOGFILE" &>/dev/null- [ -s "nuclei_output/medium.txt" ] && cat nuclei_output/medium.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:medium 2>>"$LOGFILE" &>/dev/null- [ -s "nuclei_output/high.txt" ] && cat nuclei_output/high.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:high 2>>"$LOGFILE" &>/dev/null- [ -s "nuclei_output/critical.txt" ] && cat nuclei_output/critical.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:critical 2>>"$LOGFILE" &>/dev/null- fi+ for i in "${!array[@]}"+ do+ crit=${array[i]}+ printf "${yellow}\n Running : Nuclei $crit ${reset}\n\n"+ axiom-scan .tmp/webs_subs.txt -m nuclei -severity ${crit} -o nuclei_output/${crit}.txt 2>>"$LOGFILE" &>/dev/null+ doneprintf "\n\n"fifi+ if [ "$BBRF_CONNECTION" = true ]; then+ [ -s "nuclei_output/info.txt" ] && cat nuclei_output/info.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:${crit} 2>>"$LOGFILE" &>/dev/null+ [ -s "nuclei_output/low.txt" ] && cat nuclei_output/low.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:${crit} 2>>"$LOGFILE" &>/dev/null+ [ -s "nuclei_output/medium.txt" ] && cat nuclei_output/medium.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:${crit} 2>>"$LOGFILE" &>/dev/null+ [ -s "nuclei_output/high.txt" ] && cat nuclei_output/high.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:${crit} 2>>"$LOGFILE" &>/dev/null+ [ -s "nuclei_output/critical.txt" ] && cat nuclei_output/critical.txt | cut -d' ' -f6 | sort -u | bbrf url add - -t nuclei:${crit} 2>>"$LOGFILE" &>/dev/null+ fiend_func "Results are saved in $domain/nuclei_output folder" ${FUNCNAME[0]}elseif [ "$NUCLEICHECK" = false ]; then