Skip to content

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

Merge branch 'main' into main

rt-bast29916ccdae2f
diff --cc reconftw.sh
index f3ecd9f,a30b3c8..805e031
--- a/reconftw.sh
+++ b/reconftw.sh
@@@ -1322,9 -1280,8 +1322,9 @@@ function s3buckets()
function geo_info() {
+ mkdir -p hosts
if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $GEO_INFO == true ]]; then
- start_func ${FUNCNAME[0]} "Running: ipinfo via ipapi.co"
+ start_func ${FUNCNAME[0]} "Running: ipinfo and geoinfo"
ips_file="${dir}/hosts/ips.txt"
if [ ! -f $ips_file ]; then
echo "File ${dir}/hosts/ips.txt does not exist."
@@@ -1675,27 -1625,28 +1675,29 @@@ function waf_checks()
function nuclei_check() {
+ mkdir -p {.tmp,webs,subdomains,nuclei_output}
if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $NUCLEICHECK == true ]]; then
start_func ${FUNCNAME[0]} "Templates based web scanner"
- nuclei -update 2>>"$LOGFILE" >/dev/null
- mkdir -p nuclei_output
+ nuclei -update 2>>"$LOGFILE" >/dev/null+
+ [[ -n $multi ]] && [ ! -f "$dir/subdomains/subdomains.txt" ] && echo "$domain" > "$dir/subdomains/subdomains.txt" && touch webs/webs.txt webs/webs_uncommon_ports.txt
[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt
[ ! -s ".tmp/webs_subs.txt" ] && cat subdomains/subdomains.txt webs/webs_all.txt 2>>"$LOGFILE" | anew -q .tmp/webs_subs.txt
+ [ -s "$dir/fuzzing/fuzzing_full.txt" ] && cat $dir/fuzzing/fuzzing_full.txt | grep -e "^200" | cut -d " " -f3 | anew -q .tmp/webs_fuzz.txt
+ cat .tmp/webs_subs.txt .tmp/webs_fuzz.txt 2>>"$LOGFILE" | anew -q .tmp/webs_nuclei.txt
if [[ $AXIOM != true ]]; then # avoid globbing (expansion of *).
IFS=',' read -ra severity_array <<<"$NUCLEI_SEVERITY"
for crit in "${severity_array[@]}"; do
- printf "${yellow}\n Running : Nuclei $crit ${reset}\n\n"
+ printf "${yellow}\n[$(date +'%Y-%m-%dT%H:%M:%S%z')] Running : Nuclei $crit ${reset}\n\n"
- cat .tmp/webs_subs.txt 2>/dev/null | nuclei $NUCLEI_FLAGS -severity $crit -nh -rl $NUCLEI_RATELIMIT -jle nuclei_output/${crit}.json
+ cat .tmp/webs_nuclei.txt 2>/dev/null | nuclei $NUCLEI_FLAGS -severity $crit -nh -rl $NUCLEI_RATELIMIT -o nuclei_output/${crit}.txt
done
printf "\n\n"
else
- if [[ -s ".tmp/webs_subs.txt" ]]; then
+ if [[ -s ".tmp/webs_nuclei.txt" ]]; then
IFS=',' read -ra severity_array <<<"$NUCLEI_SEVERITY"
for crit in "${severity_array[@]}"; do
- printf "${yellow}\n Running : Nuclei $crit, check results on nuclei_output folder${reset}\n\n"
+ printf "${yellow}\n[$(date +'%Y-%m-%dT%H:%M:%S%z')] Running : Nuclei $crit, check results on nuclei_output folder${reset}\n\n"
- axiom-scan .tmp/webs_subs.txt -m nuclei --nuclei-templates ${NUCLEI_TEMPLATES_PATH} -severity ${crit} -nh -rl $NUCLEI_RATELIMIT -jle nuclei_output/${crit}.json $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" >/dev/null
- [ -s "nuclei_output/${crit}.json" ] && jq -r '.|[.info.severity,.host,.info.nameo,.url]|@csv' |tr -d '"' nuclei_output/${crit}.json
+ axiom-scan .tmp/webs_nuclei.txt -m nuclei --nuclei-templates ${NUCLEI_TEMPLATES_PATH} -severity ${crit} -nh -rl $NUCLEI_RATELIMIT -o nuclei_output/${crit}.txt $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" >/dev/null
+ [ -s "nuclei_output/${crit}.txt" ] && cat nuclei_output/${crit}.txt
done
printf "\n\n"
fi