Skip to content

Commit 6e11969

Browse files
authored
Merge pull request #961 from six2dez/dev
misconfig-mapper and timeout favup
2 parents 0aeb788 + 25f38d1 commit 6e11969

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ declare -A gotools=(
8585
["cent"]="go install -v github.com/xm1k3/cent@latest"
8686
["csprecon"]="go install github.com/edoardottt/csprecon/cmd/csprecon@latest"
8787
["VhostFinder"]="go install -v github.com/wdahlenburg/VhostFinder@latest"
88+
["misconfig-mapper"]="go install github.com/intigriti/misconfig-mapper/cmd/misconfig-mapper@latest"
8889
)
8990

9091
# Declare pipx tools and their paths

reconftw.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,23 @@ function third_party_misconfigs() {
599599
# Extract company name from domain
600600
company_name=$(unfurl format %r <<<"$domain")
601601

602+
# Change directory to Spoofy tool
603+
if ! pushd "${tools}/misconfig-mapper" >/dev/null; then
604+
printf "%b[!] Failed to change directory to %s in %s at line %s.%b\n" \
605+
"$bred" "${tools}/misconfig-mapper" "${FUNCNAME[0]}" "$LINENO" "$reset"
606+
return 1
607+
fi
608+
602609
# Run misconfig-mapper and handle errors
603610
misconfig-mapper -target "$company_name" -service "*" 2>&1 | grep -v "\-\]" | grep -v "Failed" >"${dir}/osint/3rdparts_misconfigurations.txt"
604611

612+
# Return to the previous directory
613+
if ! popd >/dev/null; then
614+
printf "%b[!] Failed to return to previous directory in %s at line %s.%b\n" \
615+
"$bred" "${FUNCNAME[0]}" "$LINENO" "$reset"
616+
return 1
617+
fi
618+
605619
end_func "Results are saved in $domain/osint/3rdparts_misconfigurations.txt" "${FUNCNAME[0]}"
606620

607621
else
@@ -2875,7 +2889,7 @@ function favicon() {
28752889
fi
28762890

28772891
# Run the favicon IP lookup tool
2878-
"${tools}/fav-up/venv/bin/python3" "${tools}/fav-up/favUp.py" -w "$domain" -sc -o favicontest.json 2>>"$LOGFILE" >/dev/null
2892+
timeout 10m "${tools}/fav-up/venv/bin/python3" "${tools}/fav-up/favUp.py" -w "$domain" -sc -o favicontest.json 2>>"$LOGFILE" >/dev/null
28792893

28802894
# Process the results if favicontest.json exists and is not empty
28812895
if [[ -s "favicontest.json" ]]; then

0 commit comments

Comments
 (0)