Skip to content

Commit

Permalink
Reworked logs into solid journal file for all scans
Browse files Browse the repository at this point in the history
  • Loading branch information
OSINT-TECHNOLOGIES authored Aug 21, 2024
1 parent d18add5 commit 0562ac4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions reporting_modules/xlsx_report_creation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
sys.path.append('service')
from logs_processing import logging

try:
from datetime import datetime
Expand Down Expand Up @@ -46,7 +47,6 @@ def create_report(short_domain, url, case_comment, data_array, report_info_array
common_socials = data_array[31]
total_socials = data_array[32]
ps_emails_return = data_array[35]
log_file_name = data_array[36]
casename = report_info_array[0]
db_casename = report_info_array[1]
db_creation_date = report_info_array[2]
Expand Down Expand Up @@ -92,7 +92,6 @@ def create_report(short_domain, url, case_comment, data_array, report_info_array
ws['A6'] = 'DORKING STATUS'
ws['A7'] = 'PAGESEARCH STATUS'
ws['A8'] = 'REPORT CREATION TIME'
ws['A9'] = 'APPROPRIATE LOG FILE NAME'
ws['B1'] = subdomains_amount
ws['B2'] = total_socials
ws['B3'] = robots_txt_result
Expand All @@ -101,7 +100,6 @@ def create_report(short_domain, url, case_comment, data_array, report_info_array
ws['B6'] = dorking_status
ws['B7'] = pagesearch_ui_mark
ws['B8'] = report_ctime
ws['B9'] = log_file_name

ws = wb['WHOIS']
for col in ['1', '2', '3', '4', '5', '6', '7', '8']:
Expand Down Expand Up @@ -272,4 +270,5 @@ def create_report(short_domain, url, case_comment, data_array, report_info_array
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)
except Exception as e:
print(Fore.RED + 'Unable to create XLSX report. Reason: {}'.format(e))
print(Fore.RED + 'Unable to create XLSX report. See journal for details')
logging.error(f'XLSX REPORT CREATION: ERROR. REASON: {e}')

0 comments on commit 0562ac4

Please sign in to comment.