diff --git a/detection/pyc_detection.py b/detection/pyc_detection.py index d350421..b5fe390 100644 --- a/detection/pyc_detection.py +++ b/detection/pyc_detection.py @@ -1,5 +1,4 @@ from typing import List, Tuple -import uncompyle6 import io import os import subprocess @@ -39,11 +38,7 @@ def disassemble_pyc(file_path: str, pycdc_addr=None) -> str: str: The disassembled code as a string. """ output = io.StringIO() - try: - uncompyle6.main.decompile_file(file_path, output) - return output.getvalue() - except Exception as e: - if pycdc_addr is None: - return "none" - else: - return run_pycdc(pycdc_addr, file_path) + if pycdc_addr is None: + return "none" + else: + return run_pycdc(pycdc_addr, file_path) diff --git a/requirements.txt b/requirements.txt index 4392d2a..4635d41 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,5 @@ requests packaging openai bs4 -uncompyle6 colorama tqdm \ No newline at end of file diff --git a/setup.py b/setup.py index ebd49a5..92cdd19 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,6 @@ setup( "packaging", "openai", "bs4", - "uncompyle6", "tqdm", "colorama", ],