|
12 | 12 | from jinja2 import Environment, FileSystemLoader |
13 | 13 | import os |
14 | 14 | from colorama import Fore, Style |
15 | | - import webbrowser |
16 | 15 | import sqlite3 |
17 | 16 | except ImportError as e: |
18 | 17 | print(Fore.RED + "Import error appeared. Reason: {}".format(e) + Style.RESET_ALL) |
@@ -57,7 +56,6 @@ def report_assembling(short_domain, url, case_comment, data_array, report_info_a |
57 | 56 | cpes = data_array[27] |
58 | 57 | tags = data_array[28] |
59 | 58 | vulns = data_array[29] |
60 | | - #dorking_status = data_array[30] |
61 | 59 | common_socials = data_array[30] |
62 | 60 | total_socials = data_array[31] |
63 | 61 | ps_emails_return = data_array[32] |
@@ -171,9 +169,9 @@ def report_assembling(short_domain, url, case_comment, data_array, report_info_a |
171 | 169 | if dorking_status != 'Google Dorking mode was not selected for this scan': |
172 | 170 | with open(dorking_file_path, 'r') as df: |
173 | 171 | dorking_content = df.read() |
174 | | - robots_content, sitemap_content, sitemap_links_content, dorking_content = fp.get_db_columns(report_folder) #, dorking_content was removed here |
| 172 | + robots_content, sitemap_content, sitemap_links_content, dorking_content = fp.get_db_columns(report_folder) |
175 | 173 | pdf_blob = fp.get_blob(html_report_name) |
176 | | - db.insert_blob('HTML', pdf_blob, db_casename, db_creation_date, case_comment, robots_content, sitemap_content, sitemap_links_content, dorking_content) #, dorking_content was removed here |
| 174 | + db.insert_blob('HTML', pdf_blob, db_casename, db_creation_date, case_comment, robots_content, sitemap_content, sitemap_links_content, dorking_content) |
177 | 175 | except Exception as e: |
178 | 176 | print(Fore.RED + 'Unable to create HTML report. See journal for details') |
179 | 177 | logging.error(f'HTML REPORT CREATION: ERROR. REASON: {e}') |
|
0 commit comments