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
Exclude Out Of Scope option && small fixes
six2dezc18bcc88dcea
diff --git a/install.sh b/install.shindex 3719964..d2fbf93 100755--- a/install.sh+++ b/install.sh@@ -26,18 +26,15 @@ printf "\n\n${bgreen}###########################################################printf "${bgreen} reconftw installer script (apt/rpm/pacman compatible)${reset}\n\n"install_apt(){- eval $SUDO apt update -y $DEBUG_STD- eval $SUDO apt install python3 python3-pip ruby git libpcap-dev chromium-browser wget python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev nmap -y $DEBUG_STD+ eval $SUDO apt install python3 python3-pip ruby git libpcap-dev chromium-browser wget python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev nmap jq -y $DEBUG_STD}install_yum(){- eval $SUDO yum update -y $DEBUG_STD- eval $SUDO yum install python3 python3-pip ruby git libpcap-devel chromium wget openssl-devel python3-devel libxslt-devel libffi-devel libxml2-devel nmap zlib-devel -y $DEBUG_STD+ eval $SUDO yum install python3 python3-pip ruby git libpcap-devel chromium wget openssl-devel python3-devel libxslt-devel libffi-devel libxml2-devel nmap zlib-devel jq -y $DEBUG_STD}install_pacman(){- eval $SUDO pacman -Syu -y $DEBUG_STD- eval $SUDO pacman -Sy install python python-pip ruby git libpcap nmap chromium wget -y $DEBUG_STD+ eval $SUDO pacman -Sy install python python-pip ruby git libpcap nmap chromium wget jq -y $DEBUG_STD}#installing latest Golang version@@ -169,6 +166,8 @@ eval wget -O permutations_list.txt https://gist.githubusercontent.com/six2dez/ffeval wget -O ssrf.py https://gist.githubusercontent.com/h4ms1k/adcc340495d418fcd72ec727a116fea2/raw/ea0774de5e27f9bc855207b175249edae2e9ccef/asyncio_ssrf.py $DEBUG_STDeval wget -O fuzz_wordlist.txt https://raw.githubusercontent.com/six2dez/OneListForAll/main/onelistforallmicro.txt $DEBUG_STD+sed -i 's/^miscellaneous/#miscellaneous/' ~/nuclei-templates/.nuclei-ignore+#stripping all Go binarieseval strip -s $HOME/go/bin/* $DEBUG_STDdiff --git a/reconftw.sh b/reconftw.shindex 2becd27..6a1f3a5 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -121,6 +121,7 @@ function tools_installed(){eval type -P unfurl $DEBUG_STD || { printf "${bred} [*] unfurl [NO]\n"; allinstalled=false;}eval type -P crlfuzz $DEBUG_STD || { printf "${bred} [*] crlfuzz [NO]\n"; allinstalled=false;}eval type -P httpx $DEBUG_STD || { printf "${bred} [*] Httpx [NO]\n${reset}"; allinstalled=false;}+ eval type -P jq $DEBUG_STD || { printf "${bred} [*] jq [NO]\n${reset}"; allinstalled=false;}if [ "${allinstalled}" = true ] ; thenprintf "${bgreen} Good! All installed! ${reset}\n\n"@@ -148,7 +149,7 @@ function tools_full(){[ -f $tools/fav-up/favUp.py ] && printf "${bgreen}[*] fav-up [YES]\n" || printf "${bred} [*] fav-up [NO]\n"[ -f $tools/Corsy/corsy.py ] && printf "${bgreen}[*] Corsy [YES]\n" || printf "${bred} [*] Corsy [NO]\n"[ -f $tools/testssl.sh/testssl.sh ] && printf "${bgreen}[*] testssl [YES]\n" || printf "${bred} [*] testssl [NO]\n"- [ -f $tools/JSFinder/JSFinder.py ] && printf "${bgreen}[*] JSFinder [YES]\n" || printf "${bred} [*] JSFinder [NO]\n"+ [ -f $tools/JSFinder/JSFinder.py ] && printf "${bgreen}[*] JSFinder [YES]\n" || printf "${bred} [*] JSFinder [NO]\n"[ -f $tools/fuzz_wordlist.txt ] && printf "${bgreen}[*] OneListForAll [YES]\n" || printf "${bred} [*] OneListForAll [NO]\n"[ -f $tools/LinkFinder/linkfinder.py ] && printf "${bgreen}[*] LinkFinder [YES]\n" || printf "${bred} [*] LinkFinder [NO]\n"[ -f $tools/github-endpoints.py ] && printf "${bgreen}[*] github-endpoints [YES]\n" || printf "${bred} [*] github-endpoints[NO]\n"@@ -169,7 +170,7 @@ function tools_full(){eval type -P subjack $DEBUG_STD && printf "${bgreen}[*] Subjack [YES]\n" || { printf "${bred} [*] Subjack [NO]\n"; }[ -f $tools/subjack/fingerprints.json ] && printf "${bgreen}[*] Subjack fings [YES]\n" || printf "${bred} [*] Subjack fings [NO]\n"eval type -P nuclei $DEBUG_STD && printf "${bgreen}[*] Nuclei [YES]\n" || { printf "${bred} [*] Nuclei [NO]\n"; }- [ -d ~/nuclei-templates ] && printf "${bgreen}[*] Nuclei templates [YES]\n" || printf "${bred} [*] Nuclei templates [NO]\n"+ [ -d ~/nuclei-templates ] && printf "${bgreen}[*] Nuclei templates [YES]\n" || printf "${bred} [*] Nuclei templates [NO]\n"eval type -P aquatone $DEBUG_STD && printf "${bgreen}[*] Aquatone [YES]\n" || { printf "${bred} [*] Aquatone [NO]\n"; }eval type -P naabu $DEBUG_STD && printf "${bgreen}[*] Naabu [YES]\n" || { printf "${bred} [*] Naabu [NO]\n"; }eval type -P gf $DEBUG_STD && printf "${bgreen}[*] Gf [YES]\n" || { printf "${bred} [*] Gf [NO]\n"; }@@ -187,6 +188,7 @@ function tools_full(){eval type -P unfurl $DEBUG_STD && printf "${bgreen}[*] unfurl [YES]\n" || { printf "${bred} [*] unfurl [NO]\n"; }eval type -P crlfuzz $DEBUG_STD && printf "${bgreen}[*] crlfuzz [YES]\n" || { printf "${bred} [*] crlfuzz [NO]\n"; }eval type -P httpx $DEBUG_STD && printf "${bgreen}[*] Httpx [YES]\n${reset}" || { printf "${bred} [*] Httpx [NO]\n${reset}"; }+ eval type -P jq $DEBUG_STD && printf "${bgreen}[*] jq [YES]\n${reset}" || { printf "${bred} [*] jq [NO]\n${reset}"; }printf "\n${yellow} If any tool is not installed under $tools, I trust in your ability to install it :D\n Also remember to set the ${bred}\$tools${yellow} variable at the start of this script.\n If you have any problem you can always ping me ;) ${reset}\n\n"printf "${bblue} Tools check finished\n"@@ -296,6 +298,7 @@ sub_scraping(){thenstart=`date +%s`printf "${yellow} Running : JS scraping subdomain search 4/6${reset}\n"+ touch JS_subs.txtcat ${domain}_subdomains.txt | httpx -follow-redirects -status-code -vhost -threads 100 -silent | sort -u | grep "[200]" | cut -d [ -f1 | sort -u | sed 's/[[:blank:]]*$//' > probed_tmp.txteval python3 $tools/JSFinder/JSFinder.py -f ${domain}_probed_tmp.txt -os JS_subs.txt $DEBUG_STD && touch $called_fn_dir/.${FUNCNAME[0]}if [[ $(cat JS_subs.txt | wc -l) -gt 0 ]]@@ -427,7 +430,7 @@ screenshot(){printf "${bgreen}#######################################################################\n"printf "${bblue} ${bgreen} Web Screenshot ${reset}\n\n"start=`date +%s`- cat ${domain}_probed.txt | aquatone -out screenshots -threads 16 -silent && touch $called_fn_dir/.${FUNCNAME[0]}+ cat ${domain}_probed.txt | aquatone -out screenshots -threads 8 -silent && touch $called_fn_dir/.${FUNCNAME[0]}end=`date +%s`getElapsedTime $start $endprintf "${bblue}\n Web Screenshot Finished in ${runtime}\n"@@ -442,13 +445,13 @@ metadata(){if [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]thenprintf "${bgreen}#######################################################################\n"- printf "${bblue} ${bgreen} Metadat Checks ${reset}\n\n"+ printf "${bblue} ${bgreen} Metadata Checks ${reset}\n\n"start=`date +%s`mkdir -p $dir/metadatapymeta -d ${domain} -s all -m 500 -j 5 -o $dir/metadata -f ${domain}_metadata.csv && touch $called_fn_dir/.${FUNCNAME[0]}end=`date +%s`getElapsedTime $start $end- printf "${bblue}\n Metadat Checks Finished in ${runtime}\n"+ printf "${bblue}\n Metadata Checks Finished in ${runtime}\n"printf "${bblue} Results are saved in in metadata folder and ${domain}_metadata.csv ${reset}\n"printf "${bgreen}#######################################################################\n\n"else@@ -894,11 +897,12 @@ all(){}help(){- printf "\n Usage: $0 [-h] [-i] [-d DOMAIN] [-l list.txt] [-a] [-g] [-w] [-t]"- printf "\n [-s] [--sp] [--sb] [--sr] [--ss] [--sw] [-v] [-o OUTPUT]\n\n"+ printf "\n Usage: $0 [-h] [-i] [-d DOMAIN] [-l list.txt] [-x oos.txt] [-a] [-g] [-w] "+ printf "\n [-t] [-s] [--sp] [--sb] [--sr] [--ss] [--sw] [-v] [-o OUTPUT]\n\n"printf " ${bblue}TARGET OPTIONS${reset}\n"printf " -d DOMAIN Target domain\n"printf " -l list.txt Targets list, one per line\n"+ printf " -x oos.txt Exclude subdomains list (Out Of Scope)\n"printf " \n"printf " ${bblue}MODE OPTIONS${reset}\n"printf " -a Perform all checks\n"@@ -920,8 +924,8 @@ help(){printf " -o output/path Define output folder\n"printf " \n"printf " ${bblue}USAGE EXAMPLES${reset}\n"- printf " Full recon with custom output:\n"- printf " ./reconftw.sh -d example.com -a -o custom/path\n"+ printf " Full recon with custom output and excluded subdomains list:\n"+ printf " ./reconftw.sh -d example.com -x out.txt -a -o custom/path\n"printf " \n"printf " Full Subdomain scanning with multiple targets:\n"printf " ./reconftw.sh -l targets.txt -s\n"@@ -947,7 +951,7 @@ thenexitfi-while getopts ":hd:-:l:vaisxwgto:" opt; do+while getopts ":hd:-:l:x:vaisxwgto:" opt; doverbose=$@if [[ $verbose == *"-v"* ]]; thenunset DEBUG_STD@@ -958,6 +962,8 @@ while getopts ":hd:-:l:vaisxwgto:" opt; do;;l ) list=$OPTARG;;+ x ) outOfScope_file=$OPTARG+ ;;s ) if [ -n "$list" ]thenfor domain in $(cat $list); dodiff --git a/update.sh b/update.shindex c709e83..827dd54 100755--- a/update.sh+++ b/update.sh@@ -44,7 +44,7 @@ printf "${bblue}\n Updating installed python packages is finished ${reset}\n"printf "${bgreen}#######################################################################\n"#Tools to be updated-repos="s0md3v/Arjun six2dez/degoogle_hunter 1ndianl33t/Gf-Patterns gwen001/github-search dark-warlord14/LinkFinder projectdiscovery/nuclei-templates devanshbatham/ParamSpider Threezh1/JSFinder haccer/subjack s0md3v/Corsy pielco11/fav-up tomnomnom/gf codingo/Interlace blechschmidt/massdns devanshbatham/OpenRedireX tillson/git-hound"+repos="s0md3v/Arjun six2dez/degoogle_hunter 1ndianl33t/Gf-Patterns gwen001/github-search dark-warlord14/LinkFinder devanshbatham/ParamSpider Threezh1/JSFinder haccer/subjack s0md3v/Corsy pielco11/fav-up tomnomnom/gf codingo/Interlace blechschmidt/massdns devanshbatham/OpenRedireX tillson/git-hound"printf "\n${bgreen}--==[ ************************************************************************************ ]==--\n"printf "${bred} reconftw updater script (apt/rpm/pacman compatible)${reset}\n"printf "\n${bgreen}--==[ ************************************************************************************ ]==--\n"@@ -104,6 +104,7 @@ printf "${bgreen}###############################################################printf "${bgreen}#######################################################################\n"printf "${bblue} Updating Nuclei templates \n"nuclei -update-templates $DEBUG_STD+sed -i 's/^miscellaneous/#miscellaneous/' ~/nuclei-templates/.nuclei-ignoreprintf "${bblue}\n Updating Nuclei templates is finished ${reset}\n"printf "${bgreen}#######################################################################\n"