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
gitlab-subdomains
six2dezf48e3c3b3cb3
diff --git a/install.sh b/install.shindex 9cbafef..f934927 100755--- a/install.sh+++ b/install.sh@@ -50,6 +50,7 @@ gotools["qsreplace"]="go install -v github.com/tomnomnom/qsreplace@latest"gotools["Amass"]="go install -v github.com/OWASP/Amass/v3/[email protected]"gotools["ffuf"]="go install -v github.com/ffuf/ffuf@latest"gotools["github-subdomains"]="go install -v github.com/gwen001/github-subdomains@latest"+gotools["gitlab-subdomains"]="go install github.com/gwen001/gitlab-subdomains@latest"gotools["nuclei"]="go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest"gotools["anew"]="go install -v github.com/tomnomnom/anew@latest"gotools["notify"]="go install -v github.com/projectdiscovery/notify/cmd/notify@latest"@@ -475,6 +476,6 @@ eval strip -s "$HOME"/go/bin/* $DEBUG_STDeval $SUDO cp "$HOME"/go/bin/* /usr/local/bin/ $DEBUG_STD-printf "${yellow} Remember set your api keys:\n - amass (~/.config/amass/config.ini)\n - subfinder (~/.config/subfinder/provider-config.yaml)\n - GitHub (~/Tools/.github_tokens)\n - SSRF Server (COLLAB_SERVER in reconftw.cfg or env var) \n - Blind XSS Server (XSS_SERVER in reconftw.cfg or env var) \n - notify (~/.config/notify/provider-config.yaml) \n - theHarvester (~/Tools/theHarvester/api-keys.yaml or /etc/theHarvester/api-keys.yaml)\n - H8mail (~/Tools/h8mail_config.ini)\n - WHOISXML API (WHOISXML_API in reconftw.cfg or env var)\n\n\n${reset}"+printf "${yellow} Remember set your api keys:\n - amass (~/.config/amass/config.ini)\n - subfinder (~/.config/subfinder/provider-config.yaml)\n - GitLab (~/Tools/.gitlab_tokens)\n - SSRF Server (COLLAB_SERVER in reconftw.cfg or env var) \n - Blind XSS Server (XSS_SERVER in reconftw.cfg or env var) \n - notify (~/.config/notify/provider-config.yaml) \n - theHarvester (~/Tools/theHarvester/api-keys.yaml or /etc/theHarvester/api-keys.yaml)\n - H8mail (~/Tools/h8mail_config.ini)\n - WHOISXML API (WHOISXML_API in reconftw.cfg or env var)\n\n\n${reset}"printf "${bgreen} Finished!${reset}\n\n"printf "\n\n${bgreen}#######################################################################${reset}\n"diff --git a/reconftw.cfg b/reconftw.cfgindex 777aeed..1813016 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -24,6 +24,7 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH#NOTIFY_CONFIG=~/.config/notify/provider-config.yaml # No need to defineAMASS_CONFIG=~/.config/amass/config.iniGITHUB_TOKENS=${tools}/.github_tokens+GITLAB_TOKENS=${tools}/.gitlab_tokens#CUSTOM_CONFIG=custom_config_path.txt # In case you use a custom config file, uncomment this line and set your files path# APIs/TOKENS - Uncomment the lines you want removing the '#' at the beginning of the linediff --git a/reconftw.sh b/reconftw.shindex ca8b356..c01a183 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -66,6 +66,7 @@ function tools_installed(){[ -f "$tools/regulator/main.py" ] || { printf "${bred} [*] regulator [NO]${reset}\n"; allinstalled=false;}which github-endpoints &>/dev/null || { printf "${bred} [*] github-endpoints [NO]${reset}\n"; allinstalled=false;}which github-subdomains &>/dev/null || { printf "${bred} [*] github-subdomains [NO]${reset}\n"; allinstalled=false;}+ which gitlab-subdomains &>/dev/null || { printf "${bred} [*] gitlab-subdomains [NO]${reset}\n"; allinstalled=false;}which gospider &>/dev/null || { printf "${bred} [*] gospider [NO]${reset}\n"; allinstalled=false;}which wafw00f &>/dev/null || { printf "${bred} [*] wafw00f [NO]${reset}\n"; allinstalled=false;}which dnsvalidator &>/dev/null || { printf "${bred} [*] dnsvalidator [NO]${reset}\n"; allinstalled=false;}@@ -381,9 +382,13 @@ function sub_passive(){github-subdomains -d $domain -k -q -t $GITHUB_TOKENS -o .tmp/github_subdomains_psub.txt 2>>"$LOGFILE" &>/dev/nullfifi+ if [ -s "${GITLAB_TOKENS}" ]; then+ gitlab-subdomains -d $domain -t $GITLAB_TOKENS -o .tmp/gitlab_subdomains_psub.txt 2>>"$LOGFILE" &>/dev/null+ fiif [ "$INSCOPE" = true ]; thencheck_inscope .tmp/amass_psub.txt 2>>"$LOGFILE" &>/dev/nullcheck_inscope .tmp/github_subdomains_psub.txt 2>>"$LOGFILE" &>/dev/null+ check_inscope .tmp/gitlab_subdomains_psub.txt 2>>"$LOGFILE" &>/dev/nullfiNUMOFLINES=$(find .tmp -type f -iname "*_psub.txt" -exec cat {} + | sed "s/*.//" | anew .tmp/passive_subs.txt | sed '/^$/d' | wc -l)end_subfunc "${NUMOFLINES} new subs (passive)" ${FUNCNAME[0]}