Skip to content

Commit 0693163

Browse files
Slightly changed color style and improved PageSearch general output in pre-scan summary
1 parent 5f58f81 commit 0693163

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dpulse.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,14 @@ def run():
6767
report_filetype_lowered = report_filetype.lower()
6868
if report_filetype_lowered == 'pdf' or report_filetype_lowered == 'xlsx':
6969
if pagesearch_flag == 'Y' or pagesearch_flag == 'N':
70+
if pagesearch_flag == "N":
71+
pagesearch_ui_mark = 'No'
72+
elif pagesearch_flag == 'Y' and keywords_flag == 1:
73+
pagesearch_ui_mark = f'Yes, with {keywords_list} keywords search'
74+
else:
75+
pagesearch_ui_mark = 'Yes, without keywords search'
7076
print(Fore.LIGHTMAGENTA_EX + "\n[PRE-SCAN SUMMARY]\n" + Style.RESET_ALL)
71-
print(Fore.GREEN + "Determined target: {}\nCase comment: {}\nReport file extension: {}\nPageSearch: {}\n".format(short_domain, case_comment, report_filetype_lowered, pagesearch_flag) + Style.RESET_ALL)
77+
print(Fore.GREEN + "Determined target: {}\nCase comment: {}\nReport file extension: {}\nPageSearch: {}\n".format(short_domain, case_comment, report_filetype_lowered, pagesearch_ui_mark) + Style.RESET_ALL)
7278
print(Fore.LIGHTMAGENTA_EX + "[SCANNING PROCESS]\n" + Style.RESET_ALL)
7379
spinner_thread = ProgressBar()
7480
spinner_thread.start()

0 commit comments

Comments
 (0)