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

Small Fixes

six2dezbc2328ebb318
diff --git a/reconftw.sh b/reconftw.sh
index ea7deea..93d11a3 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -693,7 +693,7 @@ function portscan(){
printf "${bblue}\n Resolved IP addresses (No WAF) ${reset}\n\n";
[ -s ".tmp/ips_nowaf.txt" ] && cat .tmp/ips_nowaf.txt | sort
printf "${bblue}\n Scanning ports... ${reset}\n\n";
- if [ "$PORTSCAN_PASSIVE" = true ] && [ ! -f "hosts/portscan_passive.txt" ]; then
+ if [ "$PORTSCAN_PASSIVE" = true ] && [ ! -f "hosts/portscan_passive.txt" ] && [ -s "hosts/ips.txt" ] ; then
for sub in $(cat hosts/ips.txt); do
shodan host $sub 2>/dev/null >> hosts/portscan_passive.txt && echo -e "\n\n#######################################################################\n\n" >> hosts/portscan_passive.txt
done
@@ -789,7 +789,7 @@ function fuzz(){
start_func "Web directory fuzzing"
if [ -s "webs/webs.txt" ]; then
mkdir -p $dir/fuzzing
- interlace -tL webs/webs.txt -threads 10 -c "ffuf -mc all -fc 404 -ac -t ${FFUF_THREADS} -sf -s -H \"${HEADER}\" -w ${fuzz_wordlist} -maxtime ${FFUF_MAXTIME} -u _target_/FUZZ -of csv -o _output_/_cleantarget_.csv -ac" -o fuzzing 2>>"$LOGFILE" &>/dev/null
+ interlace -tL webs/webs.txt -threads 10 -c "ffuf -mc all -fc 404 -ac -t ${FFUF_THREADS} -sf -s -H \"${HEADER}\" -w ${fuzz_wordlist} -maxtime ${FFUF_MAXTIME} -u _target_/FUZZ -of csv -o _output_/_cleantarget_.csv" -o fuzzing 2>>"$LOGFILE" &>/dev/null
for sub in $(cat webs/webs.txt); do
sub_out=$(echo $sub | sed -e 's|^[^/]*//||' -e 's|/.*$||')
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index f73bf8b..ce60a26 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -713,7 +713,7 @@ function portscan(){
printf "${bblue}\n Resolved IP addresses (No WAF) ${reset}\n\n";
[ -s ".tmp/ips_nowaf.txt" ] && cat .tmp/ips_nowaf.txt | sort
printf "${bblue}\n Scanning ports... ${reset}\n\n";
- if [ "$PORTSCAN_PASSIVE" = true ] && [ ! -f "hosts/portscan_passive.txt" ]; then
+ if [ "$PORTSCAN_PASSIVE" = true ] && [ ! -f "hosts/portscan_passive.txt" ] && [ -s "hosts/ips.txt" ] ; then
for sub in $(cat hosts/ips.txt); do
shodan host $sub 2>/dev/null >> hosts/portscan_passive.txt && echo -e "\n\n#######################################################################\n\n" >> hosts/portscan_passive.txt
done
@@ -811,7 +811,7 @@ function fuzz(){
if [ -s "webs/webs.txt" ]; then
mkdir -p $dir/fuzzing
- axiom-scan webs/webs.txt -m ffuf -w /home/op/lists/onelistforallmicro.txt -H \"${HEADER}\" -mc all -fc 404 -sf -s -maxtime $FFUF_MAXTIME -o $dir/fuzzing/ffuf-content.csv 2>>"$LOGFILE" &>/dev/null
+ axiom-scan webs/webs.txt -m ffuf -w /home/op/lists/onelistforallmicro.txt -H \"${HEADER}\" -mc all -fc 404 -sf -ac -s -maxtime $FFUF_MAXTIME -o $dir/fuzzing/ffuf-content.csv 2>>"$LOGFILE" &>/dev/null
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