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
truffle + gitleaks for git repo scan
six2dez825d481ba70a
diff --git a/README.md b/README.mdindex b9b68e2..13bf657 100644--- a/README.md+++ b/README.md@@ -479,7 +479,7 @@ reset='\033[0m'- Metadata finder ([MetaFinder](https://github.com/Josue87/MetaFinder))- Google Dorks ([dorks_hunter](https://github.com/six2dez/dorks_hunter))- Github Dorks ([gitdorks_go](https://github.com/damit5/gitdorks_go))-- GitHub org analysis ([enumerepo](https://github.com/trickest/enumerepo) and [gitleaks](https://github.com/gitleaks/gitleaks))+- GitHub org analysis ([enumerepo](https://github.com/trickest/enumerepo), [trufflehog](https://github.com/trufflesecurity/trufflehog) and [gitleaks](https://github.com/gitleaks/gitleaks))## Subdomainsdiff --git a/install.sh b/install.shindex 0bbd728..f9b02bc 100755--- a/install.sh+++ b/install.sh@@ -117,6 +117,7 @@ repos["byp4xx"]="lobuhi/byp4xx"repos["Infoga"]="m4ll0k/Infoga"repos["ghauri"]="r0oth3x49/ghauri"repos["gitleaks"]="gitleaks/gitleaks"+repos["trufflehog"]="trufflesecurity/trufflehog"function banner_web(){@@ -558,11 +559,13 @@ if [ "$double_check" = "true" ]; theneval $SUDO python3 setup.py install $DEBUG_STDfiif [ "massdns" = "$repo" ]; then- eval make $DEBUG_STD && strip -s bin/massdns && eval $SUDO cp bin/massdns /usr/local/bin/ $DEBUG_ERROR+ eval make $DEBUG_STD && strip -s bin/massdns && eval $SUDO cp bin/massdns /usr/local/bin/ $DEBUG_ERRORelif [ "gf" = "$repo" ]; then- eval cp -r examples ~/.gf $DEBUG_ERROR+ eval cp -r examples ~/.gf $DEBUG_ERRORelif [ "Gf-Patterns" = "$repo" ]; then- eval mv ./*.json ~/.gf $DEBUG_ERROR+ eval mv ./*.json ~/.gf $DEBUG_ERROR+ elif [ "trufflehog" = "$repo" ]; then+ eval go install $DEBUG_STDficd "$dir" || { echo "Failed to cd to $dir in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }donediff --git a/reconftw.sh b/reconftw.shindex f5ba94e..6dca8db 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -113,6 +113,7 @@ function tools_installed(){which gau &>/dev/null || { printf "${bred} [*] gau [NO]${reset}\n${reset}"; allinstalled=false;}which subgpt &>/dev/null || { printf "${bred} [*] subgpt [NO]${reset}\n${reset}"; allinstalled=false;}which gitleaks &>/dev/null || { printf "${bred} [*] gitleaks [NO]${reset}\n${reset}"; allinstalled=false;}+ which trufflehog &>/dev/null || { printf "${bred} [*] trufflehog [NO]${reset}\n${reset}"; allinstalled=false;}if [ "${allinstalled}" = true ]; thenprintf "${bgreen} Good! All installed! ${reset}\n\n"@@ -178,7 +179,8 @@ function github_repos(){mkdir -p .tmp/github_repos 2>>"$LOGFILE" &>/dev/null[ -s ".tmp/company_repos_url.txt" ] && interlace -tL .tmp/company_repos_url.txt -threads ${INTERLACE_THREADS} -c "git clone _target_ .tmp/github_repos/_cleantarget_" 2>>"$LOGFILE" &>/dev/null[ -d ".tmp/github/" ] && ls .tmp/github_repos > .tmp/github_repos_folders.txt- [ -s ".tmp/company_repos_url.txt" ] && interlace -tL .tmp/github_repos_folders.txt -threads ${INTERLACE_THREADS} -c "gitleaks detect --source .tmp/github_repos/_target_ --no-banner --no-color -r ./tmp/github/gh_secret_cleantarget_.json" 2>>"$LOGFILE" &>/dev/null+ [ -s ".tmp/github_repos_folders.txt" ] && interlace -tL .tmp/github_repos_folders.txt -threads ${INTERLACE_THREADS} -c "gitleaks detect --source .tmp/github_repos/_target_ --no-banner --no-color -r ./tmp/github/gh_secret_cleantarget_.json" 2>>"$LOGFILE" &>/dev/null+ [ -s ".tmp/company_repos_url.txt" ] && interlace -tL .tmp/company_repos_url.txt -threads ${INTERLACE_THREADS} -c "trufflehog git _target_ -j | jq -c > _output_/_cleantarget_" -o .tmp/github/ 2>>"$LOGFILE" &>/dev/null[ -d ".tmp/github/" ] && cat .tmp/github/* | jq -c | jq -r > osint/github_company_secrets.json 2>>"$LOGFILE" &>/dev/nullelseprintf "\n${bred} Required file ${GITHUB_TOKENS} not exists or empty${reset}\n"