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
Fix installer and readme
six2dez8ee4e4ccfb13
diff --git a/README.md b/README.mdindex f6252b4..f33b71d 100644--- a/README.md+++ b/README.md@@ -128,30 +128,31 @@ docker run -v $PWD/reconftw.cfg:/root/Tools/reconftw/reconftw.cfg -v $PWD/Recon/```yaml#################################################################-# reconFTW config file #+# reconFTW config file ##################################################################-+# General valuestools=~/ToolsSCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"profile_shell=".$(basename $(echo $SHELL))rc"-reconftw_version=$(git branch --show-current)-$(git describe --tags)+reconftw_version=$(git rev-parse --abbrev-ref HEAD)-$(git describe --tags)update_resolvers=trueproxy_url="http://127.0.0.1:8080/"#dir_output=/custom/output/path-+# Golang Vars (Comment or change on your own)export GOROOT=/usr/local/goexport GOPATH=$HOME/goexport PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH-+# Tools config files#NOTIFY_CONFIG=~/.config/notify/notify.conf # No need to define#SUBFINDER_CONFIG=~/.config/subfinder/config.yaml # No need to defineAMASS_CONFIG=~/.config/amass/config.iniGITHUB_TOKENS=${tools}/.github_tokens--# APIs/TOKENS - Uncomment the lines you set removing the '#' at the beginning of the line++# APIs/TOKENS - Uncomment the lines you want removing the '#' at the beginning of the line+#UDORK_COOKIE="c_user=XXXXXXXXXX; xs=XXXXXXXXXXXXXX"#SHODAN_API_KEY="XXXXXXXXXXXXX"#XSS_SERVER="XXXXXXXXXXXXXXXXX"#COLLAB_SERVER="XXXXXXXXXXXXXXXXX"@@ -161,11 +162,11 @@ GITHUB_TOKENS=${tools}/.github_tokens#findomain_fb_token="XXXXXXXXXXXXXXXXX"#slack_channel="XXXXXXXX"#slack_auth="xoXX-XXX-XXX-XXX"-+# File descriptorsDEBUG_STD="&>/dev/null"DEBUG_ERROR="2>/dev/null"-+# OsintOSINT=trueGOOGLE_DORKS=true@@ -174,8 +175,10 @@ METADATA=trueEMAILS=trueDOMAIN_INFO=trueMETAFINDER_LIMIT=20 # Max 250-+# Subdomains+SUBDOMAINS=true+SUBPASSIVE=trueSUBCRT=trueSUBANALYTICS=trueSUBBRUTE=true@@ -183,25 +186,26 @@ SUBSCRAPING=trueSUBPERMUTE=trueSUBTAKEOVER=trueSUBRECURSIVE=true-SUB_RECURSIVE_PASSIVE=false # Uses a lot of API keys queries+SUB_RECURSIVE_PASSIVE=true # Uses a lot of API keys queriesZONETRANSFER=trueS3BUCKETS=true-+REVERSE_IP=false+# Web detectionWEBPROBESIMPLE=trueWEBPROBEFULL=trueWEBSCREENSHOT=true-UNCOMMON_PORTS_WEB="81,300,591,593,832,981,1010,1311,1099,2082,2095,2096,2480,3000,3128,3333,4243,4567,4711,4712,4993,5000,5104,5108,5280,5281,5601,5800,6543,7000,7001,7396,7474,8000,8001,8008,8014,8042,8060,8069,8080,8081,8083,8088,8090,8091,8095,8118,8123,8172,8181,8222,8243,8280,8281,8333,8337,8443,8500,8834,8880,8888,8983,9000,9001,9043,9060,9080,9090,9091,9200,9443,9502,9800,9981,10000,10250,11371,12443,15672,16080,17778,18091,18092,20720,32000,55440,55672"+UNCOMMON_PORTS_WEB="81,300,591,593,832,981,1010,1311,1099,2082,2095,2096,2480,3000,3128,3333,4243,4567,4711,4712,4993,5000,5104,5108,5280,5281,5601,5800,6543,7000,7001,7396,7474,8000,8001,8008,8014,8042,8060,8069,8080,8081,8083,8088,8090,8091,8095,8118,8123,8172,8181,8222,8243,8280,8281,8333,8337,8443,8500,8834,8880,8888,8983,9000,9001,9043,9060,9080,9090,9091,9092,9200,9443,9502,9800,9981,10000,10250,11371,12443,15672,16080,17778,18091,18092,20720,32000,55440,55672"# You can change to aquatone if gowitness fails, comment the one you don't want-AXIOM_SCREENSHOT_MODULE=webscreenshot # Choose between aquatone,gowitness,webscreenshot-+AXIOM_SCREENSHOT_MODULE=webscreenshot # Choose between gowitness or webscreenshot+# HostFAVICON=truePORTSCANNER=truePORTSCAN_PASSIVE=truePORTSCAN_ACTIVE=trueCLOUD_IP=true-+# Web analysisWAF_DETECTION=trueNUCLEICHECK=true@@ -209,12 +213,13 @@ URL_CHECK=trueURL_GF=trueURL_EXT=trueJSCHECKS=true-PARAMS=trueFUZZ=trueCMS_SCANNER=trueWORDLIST=true-+ROBOTSWORDLIST=true+# Vulns+VULNS_GENERAL=falseXSS=trueCORS=trueTEST_SSL=true@@ -226,22 +231,24 @@ SSTI=trueSQLI=trueBROKENLINKS=trueSPRAY=true-BYPASSER4XX=trueCOMM_INJ=true-+PROTO_POLLUTION=true+# Extra features-NOTIFICATION=false+NOTIFICATION=false # Notification for every function+SOFT_NOTIFICATION=false # Only for start/endDEEP=false+DEEP_LIMIT=500DIFF=falseREMOVETMP=falseREMOVELOG=falsePROXY=falseSENDZIPNOTIFY=false-PRESERVE=false # set to true to avoid deleting the .called_fn files on really large scans-+PRESERVE=true # 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"-+# ThreadsFFUF_THREADS=40HTTPX_THREADS=50@@ -255,17 +262,17 @@ GAUPLUS_THREADS=10DALFOX_THREADS=200PUREDNS_PUBLIC_LIMIT=0 # Set between 2000 - 10000 if your router blows up, 0 is unlimitedPUREDNS_TRUSTED_LIMIT=400-DIRDAR_THREADS=200WEBSCREENSHOT_THREADS=200RESOLVE_DOMAINS_THREADS=150-+PPFUZZ_THREADS=30+# TimeoutsCMSSCAN_TIMEOUT=3600-FFUF_MAXTIME=900 # Seconds-HTTPX_TIMEOUT=10 # Seconds-HTTPX_UNCOMMONPORTS_TIMEOUT=10 # Seconds+FFUF_MAXTIME=900 # Seconds+HTTPX_TIMEOUT=10 # Seconds+HTTPX_UNCOMMONPORTS_TIMEOUT=10 # Seconds-# lists+# Listsfuzz_wordlist=${tools}/fuzz_wordlist.txtlfi_wordlist=${tools}/lfi_wordlist.txtssti_wordlist=${tools}/ssti_wordlist.txt@@ -276,13 +283,20 @@ resolvers_trusted=${tools}/resolvers_trusted.txt# Axiom Fleet# Will not start a new fleet if one exist w/ same name and size (or larger)+AXIOM=falseAXIOM_FLEET_LAUNCH=falseAXIOM_FLEET_NAME="reconFTW"-AXIOM_FLEET_COUNT=5-AXIOM_FLEET_REGIONS=""+AXIOM_FLEET_COUNT=10+AXIOM_FLEET_REGIONS="eu-central"AXIOM_FLEET_SHUTDOWN=true# This is a script on your reconftw host that might prep things your way...-#AXIOM_POST_START="$HOME/bin/yourScript"+#AXIOM_POST_START="~/Tools/axiom_config.sh"++# BBRF+BBRF_CONNECTION=false+BBRF_SERVER=https://demo.bbrf.me/bbrf+BBRF_USERNAME=user+BBRF_PASSWORD=password# TERM COLORSbred='\033[1;31m'@@ -293,7 +307,7 @@ red='\033[0;31m'blue='\033[0;34m'green='\033[0;32m'reset='\033[0m'-+```</details>@@ -329,7 +343,8 @@ reset='\033[0m'|------|-------------|| --deep | Deep scan (Enable some slow options for deeper scan, _vps intended mode_) || -f | Custom config file path |-| -o | Output directory |+| -o | Output directory |+| -v | Axiom distributed VPS |# Example Usage:@@ -345,12 +360,7 @@ reset='\033[0m'./reconftw.sh -l sites.txt -r -o /output/directory/```-**Perform all steps (whole recon + all attacks)**--```bash-./reconftw.sh -d target.com -a-```-+**Perform full recon with more time intense tasks** *(VPS intended only)*```bash@@ -361,8 +371,20 @@ reset='\033[0m'```bash./reconftw.sh -m company -l domains_list.txt -r+```++**Perform recon with axiom integration**++```bash+./reconftw.sh -d target.com -r -v```+ **Perform all steps (whole recon + all attacks) a.k.a. YOLO mode**++```bash+./reconftw.sh -d target.com -a+```+**Show help section**```bash@@ -373,14 +395,13 @@ reset='\033[0m'> Check out the wiki section for more info [Axiom Support](https://github.com/six2dez/reconftw/wiki/5.-Axiom-version)* As reconFTW actively hits the target with a lot of web traffic, hence there was a need to move to Axiom distributing the work load among various instances leading to reduction of execution time.-* During the configuartion of axiom you need to select `reconftw` as provisoner.-* Using ```reconftw_axiom.sh``` script you can take advantage of running **reconFTW** with [Axiom](https://github.com/pry0cc/axiom).-* Its also necessary that you need to create your fleet prior.--```bash-axiom-fleet testy -i=10 # Initialize a fleet named 'testy'-./reconftw_axiom.sh -d target.com -r-```+* During the configuration of axiom you need to select `reconftw` as provisoner.+* You can create your own axiom's fleet before running reconFTW or let reconFTW to create and destroy it automatically just modifying reconftw.cfg file.++# BBRF Support: :computer:+* To add reconFTW results to your [BBRF instance](https://github.com/honoki/bbrf-server) just add IP and credentials on reconftw.cfg file section dedicated to bbrf.+* During the execution of the scans the results will be added dinamically when each step ends.+* Even you can set up locally your BBRF instance to be able to visualize your results in a fancy web UI.# Sample video:@@ -388,34 +409,44 @@ axiom-fleet testy -i=10 # Initialize a fleet named 'testy'# :fire: Features :fire:+ ## Osint- Domain information parser ([domainbigdata](https://domainbigdata.com/))- Emails addresses and users ([theHarvester](https://github.com/laramies/theHarvester), [emailfinder](https://github.com/Josue87/EmailFinder))- Password leaks ([pwndb](https://github.com/davidtavarez/pwndb) and [H8mail](https://github.com/khast3x/h8mail))- Metadata finder ([MetaFinder](https://github.com/Josue87/MetaFinder))- Google Dorks ([degoogle_hunter](https://github.com/six2dez/degoogle_hunter))- Github Dorks ([GitDorker](https://github.com/obheda12/GitDorker))-- Multiple subdomain enumeration techniques (passive, bruteforce, permutations, DNS records, scraping)+## Subdomains- Passive ([subfinder](https://github.com/projectdiscovery/subfinder), [assetfinder](https://github.com/tomnomnom/assetfinder), [amass](https://github.com/OWASP/Amass), [findomain](https://github.com/Findomain/Findomain), [crobat](https://github.com/cgboal/sonarsearch), [waybackurls](https://github.com/tomnomnom/waybackurls), [github-subdomains](https://github.com/gwen001/github-subdomains), [Anubis](https://jldc.me), [gauplus](https://github.com/bp0lr/gauplus) and [mildew](https://github.com/daehee/mildew))- Certificate transparency ([ctfr](https://github.com/UnaPibaGeek/ctfr), [tls.bufferover](tls.bufferover.run) and [dns.bufferover](dns.bufferover.run)))- Bruteforce ([puredns](https://github.com/d3mondev/puredns))- - Permutations ([DNScewl](https://github.com/codingo/DNSCewl))- - JS files & Source Code Scraping ([gospider](https://github.com/jaeles-project/gospider), [analyticsRelationship](https://github.com/Josue87/analyticsRelationship))+ - Permutations ([Gotator](https://github.com/Josue87/gotator))+ - JS files & Source Code Scraping ([gospider](https://github.com/jaeles-project/gospider))- DNS Records ([dnsx](https://github.com/projectdiscovery/dnsx))+ - Google Analytics ID ([AnalyticsRelationships](https://github.com/Josue87/AnalyticsRelationships))+ - Recursive search.+ - DNS Zone Transfer ([dnsrecon](https://github.com/darkoperator/dnsrecon))++## Hosts+- IP and subdomains WAF checker ([cf-check](https://github.com/dwisiswant0/cf-check) and [wafw00f](https://github.com/EnableSecurity/wafw00f))+- Port Scanner (Active with [nmap](https://github.com/nmap/nmap) and passive with [shodan-cli](https://cli.shodan.io/), Subdomains IP resolution with[resolveDomains](https://github.com/Josue87/resolveDomains))+- Port services vulnerability checks ([searchsploit](https://github.com/offensive-security/exploitdb))+- Password spraying ([brutespray](https://github.com/x90skysn3k/brutespray))+- Cloud providers check ([clouddetect](https://github.com/99designs/clouddetect))++## Webs- Nuclei Sub TKO templates ([nuclei](https://github.com/projectdiscovery/nuclei))- Web Prober ([httpx](https://github.com/projectdiscovery/httpx) and [unimap](https://github.com/Edu4rdSHL/unimap))-- Web screenshot ([webscreenshot](https://github.com/maaaaz/webscreenshot))+- Web screenshot ([webscreenshot](https://github.com/maaaaz/webscreenshot) or [gowitness](https://github.com/sensepost/gowitness))- Web templates scanner ([nuclei](https://github.com/projectdiscovery/nuclei) and [nuclei geeknik](https://github.com/geeknik/the-nuclei-templates.git))-- IP and subdomains WAF checker ([cf-check](https://github.com/dwisiswant0/cf-check) and [wafw00f](https://github.com/EnableSecurity/wafw00f))-- Port Scanner (Active with [nmap](https://github.com/nmap/nmap) and passive with [shodan-cli](https://cli.shodan.io/), Subdomains IP resolution with[resolveDomains](https://github.com/Josue87/resolveDomains))- Url extraction ([waybackurls](https://github.com/tomnomnom/waybackurls), [gauplus](https://github.com/bp0lr/gauplus), [gospider](https://github.com/jaeles-project/gospider), [github-endpoints](https://gist.github.com/six2dez/d1d516b606557526e9a78d7dd49cacd3) and [JSA](https://github.com/w9w/JSA))-- Pattern Search ([gf](https://github.com/tomnomnom/gf) and [gf-patterns](https://github.com/1ndianl33t/Gf-Patterns))-- Param discovery ([paramspider](https://github.com/devanshbatham/ParamSpider) and [arjun](https://github.com/s0md3v/Arjun))+- URLPatterns Search ([gf](https://github.com/tomnomnom/gf) and [gf-patterns](https://github.com/1ndianl33t/Gf-Patterns))- XSS ([dalfox](https://github.com/hahwul/dalfox))- Open redirect ([Openredirex](https://github.com/devanshbatham/OpenRedireX))- SSRF (headers [interactsh](https://github.com/projectdiscovery/interactsh) and param values with [ffuf](https://github.com/ffuf/ffuf))- CRLF ([crlfuzz](https://github.com/dwisiswant0/crlfuzz))- Favicon Real IP ([fav-up](https://github.com/pielco11/fav-up))-- Javascript analysis ([LinkFinder](https://github.com/GerbenJavado/LinkFinder), scripts from [JSFScan](https://github.com/KathanP19/JSFScan.sh))+- Javascript analysis ([subjs](https://github.com/lc/subjs), [JSA](https://github.com/w9w/JSA), [LinkFinder](https://github.com/GerbenJavado/LinkFinder), [getjswords](https://github.com/m4ll0k/BBTz))- Fuzzing ([ffuf](https://github.com/ffuf/ffuf))- Cors ([Corsy](https://github.com/s0md3v/Corsy))- LFI Checks ([ffuf](https://github.com/ffuf/ffuf))@@ -423,17 +454,16 @@ axiom-fleet testy -i=10 # Initialize a fleet named 'testy'- SSTI ([ffuf](https://github.com/ffuf/ffuf))- CMS Scanner ([CMSeeK](https://github.com/Tuhinshubhra/CMSeeK))- SSL tests ([testssl](https://github.com/drwetter/testssl.sh))-- Multithread in some steps ([Interlace](https://github.com/codingo/Interlace))- Broken Links Checker ([gospider](https://github.com/jaeles-project/gospider))- S3 bucket finder ([S3Scanner](https://github.com/sa7mon/S3Scanner))-- Password spraying ([brutespray](https://github.com/x90skysn3k/brutespray))-- 4xx bypasser ([DirDar](https://github.com/M4DM0e/DirDar))-- Custom resolvers generated list ([dnsvalidator](https://github.com/vortexau/dnsvalidator))-- DNS Zone Transfer ([dnsrecon](https://github.com/darkoperator/dnsrecon))-- Docker container included and [DockerHub](https://hub.docker.com/r/six2dez/reconftw) integration-- Cloud providers check ([ip2provider](https://github.com/oldrho/ip2provider))+- Prototype Pollution ([ppfuzz](https://github.com/dwisiswant0/ppfuzz))- URL sorting by extension- Wordlist generation++## Extras+- Multithread ([Interlace](https://github.com/codingo/Interlace))+- Custom resolvers generated list ([dnsvalidator](https://github.com/vortexau/dnsvalidator))+- Docker container included and [DockerHub](https://hub.docker.com/r/six2dez/reconftw) integration- Allows IP/CIDR as target- Resume the scan from last performed step- Custom output folder option@@ -441,10 +471,9 @@ axiom-fleet testy -i=10 # Initialize a fleet named 'testy'- Diff support for continuous running (cron mode)- Support for targets with multiple domains- Raspberry Pi/ARM support-- Send scan results zipped over Slack, Discord and Telegram- 6 modes (recon, passive, subdomains, web, osint and all)- Out of Scope Support-- Notification support for Slack, Discord and Telegram ([notify](https://github.com/projectdiscovery/notify))+- Notification system with Slack, Discord and Telegram ([notify](https://github.com/projectdiscovery/notify)) and sending zipped results support# Mindmap/Workflowdiff --git a/install.sh b/install.shindex f5b6b2f..b852d21 100755--- a/install.sh+++ b/install.sh@@ -5,7 +5,7 @@declare -A gotoolsgotools["gf"]="go get -u -v github.com/tomnomnom/gf"gotools["qsreplace"]="go get -u -v github.com/tomnomnom/qsreplace"-gotools["Amass"]="GO111MODULE=on go get -u -v github.com/OWASP/Amass/v3/..."+gotools["Amass"]="GO111MODULE=on go get -v github.com/OWASP/Amass/v3/..."gotools["ffuf"]="go get -u github.com/ffuf/ffuf"gotools["assetfinder"]="go get -u -v github.com/tomnomnom/assetfinder"gotools["github-subdomains"]="go get -u github.com/gwen001/github-subdomains"@@ -213,9 +213,8 @@ cd "$dir" || { echo "Failed to cd to $dir in ${FUNCNAME[0]} @ line ${LINENO}"; eeval sed -i 's/^#random-agent: false/random-agent: true/' ~/.config/nuclei/config.yaml $DEBUG_ERROReval git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git $dir/sqlmap $DEBUG_STDeval git clone --depth 1 https://github.com/drwetter/testssl.sh.git $dir/testssl.sh $DEBUG_STD--sudo git clone https://github.com/offensive-security/exploitdb.git /opt/exploitdb-sudo ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit+eval $SUDO git clone https://github.com/offensive-security/exploitdb.git /opt/exploitdb $DEBUG_STD+eval $SUDO ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit $DEBUG_STD# Standard repos installationrepos_step=0