File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ declare -A gotools=(
85
85
[" cent" ]=" go install -v github.com/xm1k3/cent@latest"
86
86
[" csprecon" ]=" go install github.com/edoardottt/csprecon/cmd/csprecon@latest"
87
87
[" VhostFinder" ]=" go install -v github.com/wdahlenburg/VhostFinder@latest"
88
+ [" misconfig-mapper" ]=" go install github.com/intigriti/misconfig-mapper/cmd/misconfig-mapper@latest"
88
89
)
89
90
90
91
# Declare pipx tools and their paths
Original file line number Diff line number Diff line change @@ -599,9 +599,23 @@ function third_party_misconfigs() {
599
599
# Extract company name from domain
600
600
company_name=$( unfurl format %r <<< " $domain" )
601
601
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
+
602
609
# Run misconfig-mapper and handle errors
603
610
misconfig-mapper -target " $company_name " -service " *" 2>&1 | grep -v " \-\]" | grep -v " Failed" > " ${dir} /osint/3rdparts_misconfigurations.txt"
604
611
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
+
605
619
end_func " Results are saved in $domain /osint/3rdparts_misconfigurations.txt" " ${FUNCNAME[0]} "
606
620
607
621
else
@@ -2875,7 +2889,7 @@ function favicon() {
2875
2889
fi
2876
2890
2877
2891
# 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
2879
2893
2880
2894
# Process the results if favicontest.json exists and is not empty
2881
2895
if [[ -s " favicontest.json" ]]; then
You can’t perform that action at this time.
0 commit comments