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

spoofable domains

six2dez611e8ba9f0f9
diff --git a/install.sh b/install.sh
index e7b9837..303b01b 100755
--- a/install.sh
+++ b/install.sh
@@ -108,6 +108,7 @@ repos["SwaggerSpy"]="UndeadSec/SwaggerSpy"
repos["LeakSearch"]="JoelGMSec/LeakSearch"
repos["ffufPostprocessing"]="Damian89/ffufPostprocessing"
repos["misconfig-mapper"]="intigriti/misconfig-mapper"
+repos["Spoofy"]="MattKeeley/Spoofy"
function banner() {
tput clear
diff --git a/reconftw.cfg b/reconftw.cfg
index a659f3b..e894157 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -54,6 +54,7 @@ REVERSE_WHOIS=true # amass intel reverse whois info, takes some time
IP_INFO=true # Reverse IP search, geolocation and whois
API_LEAKS=true # Check for API leaks
THIRD_PARTIES=true # Check for 3rd parties misconfigs
+SPOOF=true # Check spoofable domains
METAFINDER_LIMIT=20 # Max 250
# Subdomains
diff --git a/reconftw.sh b/reconftw.sh
index 7cbe6ae..90c4ef6 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -189,6 +189,10 @@ function tools_installed() {
printf "${bred} [*] misconfig-mapper [NO]${reset}\n"
allinstalled=false
}
+ [ -f "${tools}/Spoofy/spoofy.py" ] || {
+ printf "${bred} [*] spoofy [NO]${reset}\n"
+ allinstalled=false
+ }
[ -f "${tools}/SwaggerSpy/swaggerspy.py" ] || {
printf "${bred} [*] swaggerspy [NO]${reset}\n"
allinstalled=false
@@ -660,7 +664,7 @@ function third_party_misconfigs() {
pushd "${tools}/misconfig-mapper" >/dev/null || {
echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"
}
- ./misconfig-mapper -target $company_name -service "*" | grep "\[-\]" > ${dir}/3rdparties/visma_misconfigurations.txt
+ ./misconfig-mapper -target $company_name -service "*" | grep "\[-\]" > ${dir}/3rdparties/3rdparts_misconfigurations.txt
popd >/dev/null || {
echo "Failed to popd in ${FUNCNAME[0]} @ line ${LINENO}"
@@ -684,6 +688,39 @@ function third_party_misconfigs() {
}
+function spoof() {
+
+ mkdir -p spoof
+ if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SPOOF == true ]] && [[ $OSINT == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then
+ start_func ${FUNCNAME[0]} "Searching for spoofable domains"
+
+ pushd "${tools}/Spoofy" >/dev/null || {
+ echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"
+ }
+ ./spoofy.py -d $domain > ${dir}/spoof/spoof.txt
+
+ popd >/dev/null || {
+ echo "Failed to popd in ${FUNCNAME[0]} @ line ${LINENO}"
+ }
+
+ end_func "Results are saved in $domain/3rdparties" ${FUNCNAME[0]}
+
+ else
+ if [[ $SPOOF == false ]] || [[ $OSINT == false ]]; then
+ printf "\n${yellow}[$(date +'%Y-%m-%d %H:%M:%S')] ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
+ elif [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then
+ return
+ else
+ if [[ $SPOOF == false ]] || [[ $OSINT == false ]]; then
+ printf "\n${yellow}[$(date +'%Y-%m-%d %H:%M:%S')] ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
+ else
+ printf "${yellow}[$(date +'%Y-%m-%d %H:%M:%S')] ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
+ fi
+ fi
+ fi
+
+}
+
function ip_info() {
mkdir -p osint