Skip to content

Commit

Permalink
Fixed wrong PS counters behaviour (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
OSINT-TECHNOLOGIES committed Aug 27, 2024
1 parent 4187324 commit 71cfb42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pagesearch/pagesearch_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def subdomains_parser(subdomains_list, report_folder, keywords, keywords_flag):
total_emails = []
accessible_subdomains = 0
files_counter = 0
website_elements_counter = 0
exposed_passwords_counter = 0
api_keys_counter = 0
cookies_counter = 0

for url in subdomains_list:
try:
Expand Down Expand Up @@ -98,8 +102,6 @@ def subdomains_parser(subdomains_list, report_folder, keywords, keywords_flag):
print(Fore.GREEN + "Page title: " + Fore.LIGHTCYAN_EX + Style.BRIGHT + f"{title}" + Style.RESET_ALL)
print(Fore.GREEN + "Found e-mails: " + Fore.LIGHTCYAN_EX + Style.BRIGHT + f"{', '.join(emails)}" + Style.RESET_ALL)

website_elements_counter = 0
exposed_passwords_counter = 0

if customization_input and customization_input.get('value') is not None and len(customization_input.get('value')) > 0:
print(Fore.GREEN + "Found site customization setting: " + Fore.LIGHTCYAN_EX + Style.BRIGHT + f"{customization_input.get('value')}" + Style.RESET_ALL)
Expand All @@ -116,14 +118,12 @@ def subdomains_parser(subdomains_list, report_folder, keywords, keywords_flag):
print(Fore.GREEN + "Found exposed password: " + Fore.LIGHTCYAN_EX + Style.BRIGHT + f"{password.get('value')}" + Style.RESET_ALL)
exposed_passwords_counter += 1

api_keys_counter = 0
api_keys = soup.find_all('input', attrs={'type': 'apikey'})
for key in api_keys:
key_value = key.get('value')
print(Fore.GREEN + f"Found API Key: " + Fore.LIGHTCYAN_EX + Style.BRIGHT + f"{key_value}")
api_keys_counter += 1

cookies_counter = 0
cookies_dict = response.cookies
for cookie_name, cookie_value in cookies_dict.items():
print(Fore.GREEN + "Found cookie: " + Fore.LIGHTCYAN_EX + Style.BRIGHT + f"{cookie_name}. " + Style.RESET_ALL + Fore.GREEN + "Value: " + Fore.LIGHTCYAN_EX + Style.BRIGHT + f"{cookie_value}" + Style.RESET_ALL)
Expand Down

0 comments on commit 71cfb42

Please sign in to comment.