@@ -46,17 +46,17 @@ def subdomains_parser(subdomains_list, report_folder, keywords, keywords_flag):
46
46
emails = re .findall (email_pattern , soup .text )
47
47
if not emails :
48
48
emails = ['None' ]
49
- print (Fore .GREEN + "Page URL: " + Fore .RESET + f"{ url } " + Style .RESET_ALL )
50
- print (Fore .GREEN + "Page title: " + Fore .RESET + f"{ title } " + Style .RESET_ALL )
51
- print (Fore .GREEN + "Founded e-mails: " + Fore .RESET + f"{ ', ' .join (emails )} " + Style .RESET_ALL )
49
+ print (Fore .GREEN + "Page URL: " + Fore .LIGHTCYAN_EX + Style . BRIGHT + f"{ url } " + Style .RESET_ALL )
50
+ print (Fore .GREEN + "Page title: " + Fore .LIGHTCYAN_EX + Style . BRIGHT + f"{ title } " + Style .RESET_ALL )
51
+ print (Fore .GREEN + "Founded e-mails: " + Fore .LIGHTCYAN_EX + Style . BRIGHT + f"{ ', ' .join (emails )} " + Style .RESET_ALL )
52
52
links = soup .find_all ('a' )
53
53
for link in links :
54
54
href = link .get ('href' )
55
55
if href :
56
56
#print(f"Found link: {href}") # Debugging line
57
57
if href .lower ().endswith (('.docx' , '.xlsx' , '.csv' , '.pdf' , '.pptx' , '.doc' , '.ppt' , '.xls' , '.rtf' )):
58
58
document_url = 'http://' + url + href
59
- print (Fore .GREEN + "Found document: " + Fore .RESET + f"{ document_url } " + Style .RESET_ALL )
59
+ print (Fore .GREEN + "Found document: " + Fore .LIGHTCYAN_EX + Style . BRIGHT + f"{ document_url } " + Style .RESET_ALL )
60
60
response = requests .get (document_url )
61
61
if response .status_code == 200 :
62
62
if href and href .lower ().endswith (('.docx' )):
@@ -123,7 +123,7 @@ def subdomains_parser(subdomains_list, report_folder, keywords, keywords_flag):
123
123
try :
124
124
pdf_results = find_keywords_in_pdfs (ps_docs_path , keywords )
125
125
for pdf_file , found_keywords in pdf_results .items ():
126
- print (Fore .GREEN + f"Keywords " + Fore .RESET + f"{ ', ' .join (found_keywords )} " + Fore .GREEN + f" found in '{ pdf_file } '" )
126
+ print (Fore .GREEN + f"Keywords " + Fore .LIGHTCYAN_EX + Style . BRIGHT + f"{ ', ' .join (found_keywords )} " + Style . RESET_ALL + Fore .GREEN + f" found in '{ pdf_file } '" )
127
127
except Exception as e :
128
128
print (Fore .RED + f"Can't find keywords. Reason: { e } " )
129
129
elif keywords_flag == 0 :
0 commit comments