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
Fixed quote issue on axiom-fleet Also adjusted loop reporting and .called_fn handling in multi_recon
ItsGudEnufad54b6557cdc
diff --git a/reconftw.cfg b/reconftw.cfgindex e4c4a65..d9cf829 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -114,6 +114,7 @@ DIFF=falseREMOVETMP=falsePROXY=falseSENDZIPNOTIFY=false+PRESERVE=false # set to true to avoid deleting the .called_fn files on really large scans# HTTP optionsHEADER="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0"diff --git a/reconftw_axiom.sh b/reconftw_axiom.shindex cdbae35..7132eb1 100755--- a/reconftw_axiom.sh+++ b/reconftw_axiom.sh@@ -1432,7 +1432,7 @@ function axiom_lauch(){[ -n "$AXIOM_FLEET_REGIONS" ] && axiom_args="$axiom_args --regions=\"$AXIOM_FLEET_REGIONS\" "echo "axiom-fleet $AXIOM_FLEET_NAME $axiom_args"- axiom-fleet "$AXIOM_FLEET_NAME $axiom_args"+ axiom-fleet $AXIOM_FLEET_NAME "$axiom_args"axiom-select "$AXIOM_FLEET_NAME*"if [ -n "$AXIOM_POST_START" ]; theneval "$AXIOM_POST_START"@@ -1525,8 +1525,10 @@ function start(){}function end(){- find $dir -type f -empty | grep -v "called_fn" | xargs rm -f &>/dev/null- find $dir -type d -empty | grep -v "called_fn" | xargs rm -rf &>/dev/null+ if [ ! "$PRESERVE" = true ]; then+ find $dir -type f -empty | grep -v "called_fn" | xargs rm -f &>/dev/null+ find $dir -type d -empty | grep -v "called_fn" | xargs rm -rf &>/dev/null+ fiif [ "$REMOVETMP" = true ]; thenrm -rf $dir/.tmp@@ -1736,8 +1738,14 @@ function multi_recon(){faviconcurrently=$(date +"%H:%M:%S")loopend=$(date +%s)- getElapsedTime $loopstart $loopend+ printf "\n\n${reset}#######################################################################\n"printf "${bgreen} $domain finished 1st loop in ${runtime} $currently ${reset}\n"+ if [ -n "$flist" ]; then+ POSINLIST=$(eval grep -nrE "^$domain$" "$flist" | cut -f1 -d':')+ LISTTOTAL=$(cat "$flist" | wc -l )+ printf "\n${yellow} $domain is $POSINLIST of $LISTTOTAL${reset}\n"+ fi+ printf "${reset}#######################################################################\n"donecd "$workdir" || { echo "Failed to cd directory '$workdir' in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }@@ -1756,7 +1764,14 @@ function multi_recon(){currently=$(date +"%H:%M:%S")loopend=$(date +%s)getElapsedTime $loopstart $loopend+ printf "\n\n${reset}#######################################################################\n"printf "${bgreen} $domain finished 2nd loop in ${runtime} $currently ${reset}\n"+ if [ -n "$flist" ]; then+ POSINLIST=$(eval grep -nrE "^$domain$" "$flist" | cut -f1 -d':')+ LISTTOTAL=$(cat "$flist" | wc -l )+ printf "\n${yellow} $domain is $POSINLIST of $LISTTOTAL${reset}\n"+ fi+ printf "${reset}#######################################################################\n\n"donecd "$workdir" || { echo "Failed to cd directory '$workdir' in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }@@ -1783,10 +1798,10 @@ function multi_recon(){waf_checksnuclei_checkfor domain in $targets; do+ loopstart=$(date +%s)dir=$workdir/targets/$domain- called_fn_dir=$dir/.called_fn+ called_fn_dir=$dir/.called_fncd "$dir" || { echo "Failed to cd directory '$dir' in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }- loopstart=$(date +%s)fuzzparamsurlchecks@@ -1794,19 +1809,36 @@ function multi_recon(){currently=$(date +"%H:%M:%S")loopend=$(date +%s)getElapsedTime $loopstart $loopend+ printf "\n\n${reset}#######################################################################\n"printf "${bgreen} $domain finished 3rd loop in ${runtime} $currently ${reset}\n"+ if [ -n "$flist" ]; then+ POSINLIST=$(eval grep -nrE "^$domain$" "$flist" | cut -f1 -d':')+ LISTTOTAL=$(cat "$flist" | wc -l )+ printf "\n${yellow} $domain is $POSINLIST of $LISTTOTAL${reset}\n"+ fi+ printf "${reset}#######################################################################\n\n"doneaxiom_shutdowncloudproviderfor domain in $targets; doloopstart=$(date +%s)+ dir=$workdir/targets/$domain+ called_fn_dir=$dir/.called_fn+ cd "$dir" || { echo "Failed to cd directory '$dir' in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }cms_scannerurl_gfwordlist_gencurrently=$(date +"%H:%M:%S")loopend=$(date +%s)getElapsedTime $loopstart $loopend+ printf "\n\n${reset}#######################################################################\n"printf "${bgreen} $domain finished final loop in ${runtime} $currently ${reset}\n"+ if [ -n "$flist" ]; then+ POSINLIST=$(eval grep -nrE "^$domain$" "$flist" | cut -f1 -d':')+ LISTTOTAL=$(cat "$flist" | wc -l )+ printf "\n${yellow} $domain is $POSINLIST of $LISTTOTAL${reset}\n"+ fi+ printf "${reset}#######################################################################\n\n"donecd "$workdir" || { echo "Failed to cd directory '$workdir' in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }dir=$workdir@@ -1900,6 +1932,8 @@ bannercheck_version+startdir=${PWD}+if [ -z "$1" ]; thenhelptools_installed@@ -1920,6 +1954,19 @@ while getopts ":hd:-:l:m:x:i:varnspxwo:" opt; dod ) domain=$OPTARG;;l ) list=$OPTARG+ if [ -n "$list" ]; then+ if [[ "$list" = ./* ]]; then+ flist="${startdir}/${list:2}"+ elif [[ "$list" = ~* ]]; then+ flist="${HOME}/${list:2}"+ elif [[ "$list" = /* ]]; then+ flist=$list+ else+ flist="$startdir/$list"+ fi+ else+ flist=''+ fi;;x ) outOfScope_file=$OPTARGisAsciiText $outOfScope_file@@ -1955,7 +2002,8 @@ while getopts ":hd:-:l:m:x:i:varnspxwo:" opt; dofiexit;;- n ) if [ -n "$multi" ]; then+ n ) PRESERVE=true+ if [ -n "$multi" ]; thenmulti_osintexitfi