diff --git a/__pycache__/i64tosqlite.cpython-312.pyc b/__pycache__/i64tosqlite.cpython-312.pyc index bce8d4c..8887a2b 100644 Binary files a/__pycache__/i64tosqlite.cpython-312.pyc and b/__pycache__/i64tosqlite.cpython-312.pyc differ diff --git a/comp.py b/comp.py index 5d1b557..3d2503f 100644 --- a/comp.py +++ b/comp.py @@ -38,9 +38,11 @@ def main(): elapsed = time.perf_counter() - start # + # удаляю ненужное os.remove(sqlite1_path) os.remove(sqlite2_path) os.remove(sql_output_path) + # export_to_excel(result_data, excel_output_path, elapsed) print(f"\033[92mResults exported to\033[0m {excel_output_path}") diff --git a/i64tosqlite.py b/i64tosqlite.py index 9a8f34d..c75ee6e 100644 --- a/i64tosqlite.py +++ b/i64tosqlite.py @@ -8,11 +8,11 @@ def create_sqlite_from_i64(ida_executable, i64_path, diaphora_script_path, outpu Пример использования в блоке if __name__ == "__main__" """ if not os.path.exists(ida_executable): - raise FileNotFoundError(f"IDA executable not found: {ida_executable}") + raise FileNotFoundError(f"\033[31mIDA executable not found:\033[0m {ida_executable}") if not os.path.exists(i64_path): - raise FileNotFoundError(f".i64 file not found: {i64_path}") + raise FileNotFoundError(f"\033[31m.i64 file not found:\033[0m {i64_path}") if not os.path.exists(diaphora_script_path): - raise FileNotFoundError(f"Diaphora script not found: {diaphora_script_path}") + raise FileNotFoundError(f"\033[31mDiaphora script not found:\033[0m {diaphora_script_path}") # Формируем команду для запуска IDA Pro с Diaphora cmd = [ @@ -31,11 +31,11 @@ def create_sqlite_from_i64(ida_executable, i64_path, diaphora_script_path, outpu try: subprocess.run(cmd, env=env, check=True) - print(f"SQLite database successfully created: {output_sqlite_path}") + print(f"\033[92mSQLite database successfully created:\033[0m {output_sqlite_path}") except subprocess.CalledProcessError as e: - print(f"Error creating SQLite database: {e}") + print(f"\033[31mError creating SQLite database:\033[0m {e}") except Exception as e: - print(f"Unknown error: {e}") + print(f"\033[31mUnknown error:\033[0m {e}") if __name__ == "__main__": ida_executable = r"C:\tools\IDA\ida.exe" # Путь к IDA Pro