Skip to content

Commit

Permalink
fix 3rd parties var
Browse files Browse the repository at this point in the history
  • Loading branch information
six2dez committed May 2, 2024
1 parent b327c18 commit a34df22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion reconftw.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ DOMAIN_INFO=true # whois info
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
3RD_PARTIES=true # Check for 3rd parties misconfigs
THIRD_PARTIES=true # Check for 3rd parties misconfigs
METAFINDER_LIMIT=20 # Max 250

# Subdomains
Expand Down
6 changes: 3 additions & 3 deletions reconftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ function domain_info() {
function third_party_misconfigs() {

mkdir -p 3rdparties
if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $3RD_PARTIES == true ]] && [[ $OSINT == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then
if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $THIRD_PARTIES == true ]] && [[ $OSINT == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then
start_func ${FUNCNAME[0]} "Searching for third parties misconfigurations"
company_name=$(echo $domain | unfurl format %r)

Expand All @@ -669,12 +669,12 @@ function third_party_misconfigs() {
end_func "Results are saved in $domain/3rdparties" ${FUNCNAME[0]}

else
if [[ $3RD_PARTIES == false ]] || [[ $OSINT == false ]]; then
if [[ $THIRD_PARTIES == 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 [[ $3RD_PARTIES == false ]] || [[ $OSINT == false ]]; then
if [[ $THIRD_PARTIES == 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"
Expand Down

0 comments on commit a34df22

Please sign in to comment.