Skip to content

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

Leaksearch added

six2dez943795ab8cc8
diff --git a/install.sh b/install.sh
index 696e8c0..8cc5a86 100755
--- a/install.sh
+++ b/install.sh
@@ -106,6 +106,7 @@ repos["gitleaks"]="gitleaks/gitleaks"
repos["trufflehog"]="trufflesecurity/trufflehog"
repos["dontgo403"]="devploit/dontgo403"
repos["SwaggerSpy"]="UndeadSec/SwaggerSpy"
+repos["LeakSearch"]="JoelGMSec/LeakSearch"
function banner() {
tput clear
diff --git a/reconftw.sh b/reconftw.sh
index 7ee6978..81a230c 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -175,6 +175,10 @@ function tools_installed() {
printf "${bred} [*] swaggerspy [NO]${reset}\n"
allinstalled=false
}
+ [ -f "${tools}/LeakSearch/LeakSearch.py" ] || {
+ printf "${bred} [*] LeakSearch [NO]${reset}\n"
+ allinstalled=false
+ }
command -v github-endpoints &>/dev/null || {
printf "${bred} [*] github-endpoints [NO]${reset}\n"
allinstalled=false
@@ -563,7 +567,21 @@ function emails() {
}
[ -s ".tmp/emailfinder.txt" ] && cat .tmp/emailfinder.txt | grep "@" | grep -iv "|_" | anew -q osint/emails.txt
- end_func "Results are saved in $domain/osint/emails.txt" ${FUNCNAME[0]}
+ pushd "${tools}/LeakSearch" >/dev/null || {
+ echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"
+ }
+
+ python3 LeakSearch.py -k $domain -o ${dir}/.tmp/passwords.txt 2>>"$LOGFILE" || {
+ echo "LeakSearch command failed"
+ }
+
+ popd >/dev/null || {
+ echo "Failed to popd in ${FUNCNAME[0]} @ line ${LINENO}"
+ }
+
+ [ -s ".tmp/passwords.txt" ] && cat .tmp/passwords.txt | anew -q osint/passwords.txt
+
+ end_func "Results are saved in $domain/osint/emails|passwords.txt" ${FUNCNAME[0]}
else
if [[ $EMAILS == false ]] || [[ $OSINT == false ]]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"