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
Install pipx tools with pipx and update path in reconftw.sh
Patricia Gagnon-Renaud0035016a7d5e
diff --git a/install.sh b/install.shindex cbbc163..5d73396 100755--- a/install.sh+++ b/install.sh@@ -101,12 +101,23 @@ declare -A gotools=(["urlfinder"]="go install -v github.com/projectdiscovery/urlfinder/cmd/urlfinder@latest")-# Declare repositories and their paths-declare -A repos=(- ["dorks_hunter"]="six2dez/dorks_hunter"+# Declare pipx tools and their paths+declare -A pipxtools=(["dnsvalidator"]="vortexau/dnsvalidator"["interlace"]="codingo/Interlace"["wafw00f"]="EnableSecurity/wafw00f"+ ["commix"]="commixproject/commix"+ ["urless"]="xnl-h4ck3r/urless"+ ["ghauri"]="r0oth3x49/ghauri"+ ["xnLinkFinder"]="xnl-h4ck3r/xnLinkFinder"+ ["porch-pirate"]="MandConsultingGroup/porch-pirate"+ ["MetaFinder"]="Josue87/MetaFinder"+ ["EmailFinder"]="Josue87/EmailFinder"+)++# Declare repositories and their paths+declare -A repos=(+ ["dorks_hunter"]="six2dez/dorks_hunter"["gf"]="tomnomnom/gf"["Gf-Patterns"]="1ndianl33t/Gf-Patterns"["Corsy"]="s0md3v/Corsy"@@ -115,17 +126,14 @@ declare -A repos=(["massdns"]="blechschmidt/massdns"["Oralyzer"]="r0075h3ll/Oralyzer"["testssl"]="drwetter/testssl.sh"- ["commix"]="commixproject/commix"["JSA"]="w9w/JSA"["CloudHunter"]="belane/CloudHunter"["ultimate-nmap-parser"]="shifty0g/ultimate-nmap-parser"["pydictor"]="LandGrey/pydictor"["gitdorks_go"]="damit5/gitdorks_go"- ["urless"]="xnl-h4ck3r/urless"["smuggler"]="defparam/smuggler"["Web-Cache-Vulnerability-Scanner"]="Hackmanit/Web-Cache-Vulnerability-Scanner"["regulator"]="cramppet/regulator"- ["ghauri"]="r0oth3x49/ghauri"["gitleaks"]="gitleaks/gitleaks"["trufflehog"]="trufflesecurity/trufflehog"["nomore403"]="devploit/nomore403"@@ -134,10 +142,6 @@ declare -A repos=(["ffufPostprocessing"]="Damian89/ffufPostprocessing"["misconfig-mapper"]="intigriti/misconfig-mapper"["Spoofy"]="MattKeeley/Spoofy"- ["xnLinkFinder"]="xnl-h4ck3r/xnLinkFinder"- ["porch-pirate"]="MandConsultingGroup/porch-pirate"- ["MetaFinder"]="Josue87/MetaFinder"- ["EmailFinder"]="Josue87/EmailFinder")# Function to display the banner@@ -578,26 +582,6 @@ function initial_setup() {eval git -C "${dir}/massdns" pull $DEBUG_STDfi- # Interlace- if [[ ! -d "${dir}/interlace" ]]; then- #printf "${yellow}Cloning Interlace...${reset}\n"- eval git clone https://github.com/codingo/Interlace.git "${dir}/interlace" $DEBUG_STD- eval cd "${dir}/interlace" && eval $SUDO python3 setup.py install $DEBUG_STD- else- #printf "${yellow}Updating Interlace...${reset}\n"- eval git -C "${dir}/interlace" pull $DEBUG_STD- fi-- # wafw00f- if [[ ! -d "${dir}/wafw00f" ]]; then- #printf "${yellow}Cloning wafw00f...${reset}\n"- eval git clone https://github.com/EnableSecurity/wafw00f.git "${dir}/wafw00f" $DEBUG_STD- eval cd "${dir}/wafw00f" && eval $SUDO python3 setup.py install $DEBUG_STD- else- #printf "${yellow}Updating wafw00f...${reset}\n"- eval git -C "${dir}/wafw00f" pull $DEBUG_STD- fi-# gf patternsif [[ ! -d "$HOME/.gf" ]]; then#printf "${yellow}Installing gf patterns...${reset}\n"diff --git a/reconftw.sh b/reconftw.shindex 7458b87..c79e0a0 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -131,13 +131,11 @@ function tools_installed() {["subs_wordlist_big"]="$subs_wordlist_big"["resolvers"]="$resolvers"["resolvers_trusted"]="$resolvers_trusted"- ["commix"]="${tools}/commix/commix.py"["getjswords"]="${tools}/getjswords.py"["JSA"]="${tools}/JSA/jsa.py"["CloudHunter"]="${tools}/CloudHunter/cloudhunter.py"["nmap-parse-output"]="${tools}/ultimate-nmap-parser/ultimate-nmap-parser.sh"["pydictor"]="${tools}/pydictor/pydictor.py"- ["urless"]="${tools}/urless/urless/urless.py"["smuggler"]="${tools}/smuggler/smuggler.py"["regulator"]="${tools}/regulator/main.py"["nomore403"]="${tools}/nomore403/nomore403"@@ -212,6 +210,8 @@ function tools_installed() {["sns"]="sns"["sourcemapper"]="sourcemapper"["jsluice"]="jsluice"+ ["commix"]="commix"+ ["urless"]="urless")# Check for tool files@@ -3554,7 +3554,7 @@ function urlchecks() {grep "$domain" .tmp/url_extract_tmp.txt | grep -E '^((http|https):\/\/)?([a-zA-Z0-9\-\.]+\.)+[a-zA-Z]{1,}(\/.*)?$' | grep "=" | qsreplace -a 2>>"$LOGFILE" | grep -aEiv "\.(eot|jpg|jpeg|gif|css|tif|tiff|png|ttf|otf|woff|woff2|ico|pdf|svg|txt|js)$" | anew -q .tmp/url_extract_tmp2.txtif [[ -s ".tmp/url_extract_tmp2.txt" ]]; then- python3 "${tools}/urless/urless/urless.py" <.tmp/url_extract_tmp2.txt | anew -q .tmp/url_extract_uddup.txt 2>>"$LOGFILE" >/dev/null+ urless <.tmp/url_extract_tmp2.txt | anew -q .tmp/url_extract_uddup.txt 2>>"$LOGFILE" >/dev/nullfiif [[ -s ".tmp/url_extract_uddup.txt" ]]; then@@ -3752,7 +3752,7 @@ function jschecks() {grep -iE "\.js($|\?)" .tmp/subjslinks.txt | anew -q .tmp/url_extract_js.txtfi- python3 "${tools}/urless/urless/urless.py" <.tmp/url_extract_js.txt |+ urless <.tmp/url_extract_js.txt |anew -q js/url_extract_js.txt 2>>"$LOGFILE" >/dev/nullprintf "%bRunning: Resolving JS URLs 2/6%b\n" "$yellow" "$reset"@@ -4638,7 +4638,7 @@ function command_injection() {# Run Commix if enabledif [[ $SQLMAP == true ]]; thenprintf "${yellow}\n[$(date +'%Y-%m-%d %H:%M:%S')] Running: Commix for Command Injection Checks${reset}\n\n"- python3 "${tools}/commix/commix.py" --batch -m ".tmp/tmp_rce.txt" --output-dir "vulns/command_injection" 2>>"$LOGFILE" >/dev/null+ commix --batch -m ".tmp/tmp_rce.txt" --output-dir "vulns/command_injection" 2>>"$LOGFILE" >/dev/nullfi# Additional tools can be integrated here (e.g., Ghauri, sqlmap)