Skip to content

Commit

Permalink
Added scan elapsed time output
Browse files Browse the repository at this point in the history
  • Loading branch information
OSINT-TECHNOLOGIES committed Sep 9, 2024
1 parent c2ca214 commit 955d03c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reporting_modules/xlsx_report_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import db_processing as db
import files_processing as fp

def create_report(short_domain, url, case_comment, data_array, report_info_array, pagesearch_ui_mark, pagesearch_keyword):
def create_report(short_domain, url, case_comment, data_array, report_info_array, pagesearch_ui_mark, pagesearch_keyword, end):
try:
ip = data_array[0]
res = data_array[1]
Expand Down Expand Up @@ -318,6 +318,7 @@ def create_report(short_domain, url, case_comment, data_array, report_info_array
report_file = report_folder + "//" + casename
wb.save(report_file)
print(Fore.GREEN + "XLSX report for {} case was created at {}".format(''.join(short_domain), report_ctime) + Style.RESET_ALL)
print(Fore.GREEN + f"Scan elapsed time: {end}" + Style.RESET_ALL)
robots_content, sitemap_content, sitemap_links_content, dorking_content = fp.get_db_columns(report_folder)
xlsx_blob = fp.get_blob(report_file)
db.insert_blob('XLSX', xlsx_blob, db_casename, db_creation_date, case_comment, robots_content, sitemap_content, sitemap_links_content, dorking_content)
Expand Down

0 comments on commit 955d03c

Please sign in to comment.