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

Ffuf csv output

six2deza5187e857089
diff --git a/reconftw.sh b/reconftw.sh
index efcbb33..7d16a1d 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -770,9 +770,9 @@ function fuzz(){
for sub in $(cat webs/webs.txt); do
printf "${yellow}\n\n Running: Fuzzing in ${sub}${reset}\n"
sub_out=$(echo $sub | sed -e 's|^[^/]*//||' -e 's|/.*$||')
- ffuf -mc all -fc 404 -ac -t $FFUF_THREADS -sf -s -H "${HEADER}" -w $fuzz_wordlist -maxtime 900 -u $sub/FUZZ -or -o $dir/fuzzing/${sub_out}.tmp &>/dev/null
- cat $dir/fuzzing/${sub_out}.tmp 2>>"$LOGFILE" | jq '[.results[]|{status: .status, length: .length, url: .url}]' | grep -oP "status\":\s(\d{3})|length\":\s(\d{1,7})|url\":\s\"(http[s]?:\/\/.*?)\"" | paste -d' ' - - - | awk '{print $2" "$4" "$6}' | sed 's/\"//g' | sort |anew -q $dir/fuzzing/${sub_out}.txt
- rm $dir/fuzzing/${sub_out}.tmp 2>>"$LOGFILE"
+ ffuf -mc all -fc 404 -ac -t $FFUF_THREADS -sf -s -H "${HEADER}" -w $fuzz_wordlist -maxtime $FFUF_MAXTIME -u $sub/FUZZ -or -of csv -o $dir/fuzzing/${sub_out}.csv &>/dev/null
+ [ -f "$dir/fuzzing/${sub_out}.csv" ] && cat $dir/fuzzing/${sub_out}.csv | cut -d ',' -f2,5,6 | tr ',' ' ' | awk '{ print $2 " " $3 " " $1}' | tail -n +2 | sort -k1 | anew -q $dir/fuzzing/${sub_out}.txt
+ rm $dir/fuzzing/${sub_out}.csv 2>>"$LOGFILE"
done
end_func "Results are saved in $domain/fuzzing/*subdomain*.txt" ${FUNCNAME[0]}
else
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index a0466d9..af08f7c 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -775,7 +775,7 @@ function fuzz(){
grep -v "FUZZ,url,redirectlocation" $dir/fuzzing/ffuf-content.csv | awk -F "," '{print $2" "$5" "$6}' | sort > $dir/fuzzing/ffuf-content.tmp
for sub in $(cat webs/webs.txt); do
sub_out=$(echo $sub | sed -e 's|^[^/]*//||' -e 's|/.*$||')
- grep "$sub" $dir/fuzzing/ffuf-content.tmp | awk '{print $2" "$3" "$1}' > $dir/fuzzing/${sub_out}.txt
+ grep "$sub" $dir/fuzzing/ffuf-content.tmp | awk '{print $2" "$3" "$1}' | sort -k1 | anew -q $dir/fuzzing/${sub_out}.txt
done
rm -f $dir/fuzzing/ffuf-content.tmp
end_func "Results are saved in $domain/fuzzing/*subdomain*.txt" ${FUNCNAME[0]}