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

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.cfg
index e4c4a65..d9cf829 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -114,6 +114,7 @@ DIFF=false
REMOVETMP=false
PROXY=false
SENDZIPNOTIFY=false
+PRESERVE=false # set to true to avoid deleting the .called_fn files on really large scans
# HTTP options
HEADER="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.sh
index 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" ]; then
eval "$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
+ fi
if [ "$REMOVETMP" = true ]; then
rm -rf $dir/.tmp
@@ -1736,8 +1738,14 @@ function multi_recon(){
favicon
currently=$(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"
done
cd "$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"
done
cd "$workdir" || { echo "Failed to cd directory '$workdir' in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
@@ -1783,10 +1798,10 @@ function multi_recon(){
waf_checks
nuclei_check
for domain in $targets; do
+ loopstart=$(date +%s)
dir=$workdir/targets/$domain
- called_fn_dir=$dir/.called_fn
+ called_fn_dir=$dir/.called_fn
cd "$dir" || { echo "Failed to cd directory '$dir' in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
- loopstart=$(date +%s)
fuzz
params
urlchecks
@@ -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"
done
axiom_shutdown
cloudprovider
for domain in $targets; do
loopstart=$(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_scanner
url_gf
wordlist_gen
currently=$(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"
done
cd "$workdir" || { echo "Failed to cd directory '$workdir' in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
dir=$workdir
@@ -1900,6 +1932,8 @@ banner
check_version
+startdir=${PWD}
+
if [ -z "$1" ]; then
help
tools_installed
@@ -1920,6 +1954,19 @@ while getopts ":hd:-:l:m:x:i:varnspxwo:" opt; do
d ) 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=$OPTARG
isAsciiText $outOfScope_file
@@ -1955,7 +2002,8 @@ while getopts ":hd:-:l:m:x:i:varnspxwo:" opt; do
fi
exit
;;
- n ) if [ -n "$multi" ]; then
+ n ) PRESERVE=true
+ if [ -n "$multi" ]; then
multi_osint
exit
fi