|
7 | 7 | import crawl_processor as cp |
8 | 8 | import dorking_handler as dp |
9 | 9 | import networking_processor as np |
10 | | -from pagesearch_main import normal_search, sitemap_inspection_search |
| 10 | +from pagesearch_main import normal_search |
11 | 11 | from logs_processing import logging |
12 | 12 | from api_virustotal import api_virustotal_check |
13 | 13 | from api_securitytrails import api_securitytrails_check |
|
16 | 16 | from screen_snapshotting import take_screenshot |
17 | 17 | from config_processing import read_config |
18 | 18 | from html_snapshotting import save_page_as_html |
| 19 | + |
19 | 20 | try: |
20 | 21 | import requests |
21 | 22 | from datetime import datetime |
@@ -135,11 +136,11 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k |
135 | 136 | accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = total_links_counter = accessed_links_counter = emails_amount = 'No results because no subdomains were found' |
136 | 137 | ps_emails_return = "" |
137 | 138 | pass |
138 | | - elif pagesearch_flag.lower() == 'si': |
139 | | - print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN START: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) |
140 | | - ps_emails_return, total_links_counter, accessed_links_counter, emails_amount = sitemap_inspection_search(report_folder) |
141 | | - accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = "No results because Sitemap Inspection mode does not gather these categories" |
142 | | - print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN END: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) |
| 139 | + #elif pagesearch_flag.lower() == 'si': |
| 140 | + #print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN START: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) |
| 141 | + #ps_emails_return, total_links_counter, accessed_links_counter, emails_amount = sitemap_inspection_search(report_folder) |
| 142 | + #accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = "No results because Sitemap Inspection mode does not gather these categories" |
| 143 | + #print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN END: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) |
143 | 144 | elif pagesearch_flag.lower() == 'n': |
144 | 145 | ps_emails_return = "" |
145 | 146 | accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = total_links_counter = accessed_links_counter = emails_amount = "No results because user did not selected PageSearch for this scan" |
@@ -223,11 +224,11 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k |
223 | 224 | accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = total_links_counter = accessed_links_counter = emails_amount = 'No results because no subdomains were found' |
224 | 225 | keywords_messages_list = ['No data was gathered because no subdomains were found'] |
225 | 226 | pass |
226 | | - elif pagesearch_flag.lower() == 'si': |
227 | | - print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN START: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) |
228 | | - ps_emails_return, total_links_counter, accessed_links_counter, emails_amount = sitemap_inspection_search(report_folder) |
229 | | - accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = keywords_messages_list = "No results because Sitemap Inspection mode does not gather these categories" |
230 | | - print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN END: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) |
| 227 | + #elif pagesearch_flag.lower() == 'si': |
| 228 | + #print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN START: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) |
| 229 | + #ps_emails_return, total_links_counter, accessed_links_counter, emails_amount = sitemap_inspection_search(report_folder) |
| 230 | + #accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = keywords_messages_list = "No results because Sitemap Inspection mode does not gather these categories" |
| 231 | + #print(Fore.LIGHTMAGENTA_EX + "\n[EXTENDED SCAN END: PAGESEARCH SITEMAP INSPECTION]\n" + Style.RESET_ALL) |
231 | 232 | elif pagesearch_flag.lower() == 'n': |
232 | 233 | accessible_subdomains = files_counter = cookies_counter = api_keys_counter = website_elements_counter = exposed_passwords_counter = total_links_counter = accessed_links_counter = emails_amount = keywords_messages_list = "No results because user did not selected PageSearch for this scan" |
233 | 234 | ps_emails_return = "" |
|
0 commit comments