Skip to content

Commit 0a69006

Browse files
Deactivated PageSearch SI module usage
1 parent 37a0af1 commit 0a69006

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

datagather_modules/data_assembler.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import crawl_processor as cp
88
import dorking_handler as dp
99
import networking_processor as np
10-
from pagesearch_main import normal_search, sitemap_inspection_search
10+
from pagesearch_main import normal_search
1111
from logs_processing import logging
1212
from api_virustotal import api_virustotal_check
1313
from api_securitytrails import api_securitytrails_check
@@ -16,6 +16,7 @@
1616
from screen_snapshotting import take_screenshot
1717
from config_processing import read_config
1818
from html_snapshotting import save_page_as_html
19+
1920
try:
2021
import requests
2122
from datetime import datetime
@@ -135,11 +136,11 @@ def data_gathering(self, short_domain, url, report_file_type, pagesearch_flag, k
135136
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'
136137
ps_emails_return = ""
137138
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)
143144
elif pagesearch_flag.lower() == 'n':
144145
ps_emails_return = ""
145146
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
223224
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'
224225
keywords_messages_list = ['No data was gathered because no subdomains were found']
225226
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)
231232
elif pagesearch_flag.lower() == 'n':
232233
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"
233234
ps_emails_return = ""

0 commit comments

Comments
 (0)