XLMMacroDeobfuscator icon indicating copy to clipboard operation
XLMMacroDeobfuscator copied to clipboard

[Loading Cells] Error [deobfuscator.py:3195 process_file(**vars(args))]:

Open diyarbagis opened this issue 2 years ago • 7 comments

Hello, when I try to analyze, I get an error like this.

File: /home/kali/Downloads/research-1646684671.xls

Unrecognized file format Unencrypted xls file

[Loading Cells] Error [deobfuscator.py:3195 process_file(**vars(args))]:

I researched about this error and encountered this : https://github.com/DissectMalware/XLMMacroDeobfuscator/issues/78

updated xlrd2: pip install -U https://github.com/DissectMalware/xlrd2/archive/master.zip --force

then, again i tried to analyze but I got the same error.

File: /home/kali/Downloads/research-1646684671.xls

Unrecognized file format Unencrypted xls file

[Loading Cells] Error [deobfuscator.py:3195 process_file(**vars(args))]:

Anyone can help me?

diyarbagis avatar Aug 30 '22 20:08 diyarbagis

Yup, got the same error as well :( on the exact file (letsdefend) lab

Aphetoros avatar Oct 27 '22 04:10 Aphetoros

Yes, I was trying to solve a challenge on letsdefend, same error. @Aphetoros

bek01 avatar Nov 12 '22 17:11 bek01

Same error @Aphetoros

Hadiqa-khan avatar Jan 11 '23 19:01 Hadiqa-khan

Sorry for the late response.

@diyarbagis @bek01 @Hadiqa-khan @Aphetoros please share the sample or its hash so I can investigate.

DissectMalware avatar Jan 12 '23 02:01 DissectMalware

i tried to analyze but I got this error.

Unrecognized file format Unencrypted xls file

[Loading Cells] Error [deobfuscator.py:3195 process_file(**vars(args))]:

Anyone can help me? and i set the value to 70 also then also not working

Anonymous4717 avatar Apr 10 '23 10:04 Anonymous4717

oh now i get it

first, edit the formual.py with sudo nano or whatever find assert bv >= 80 #### this function needs updating #### and chnage it to assert bv >= 70

Anonymous4717 avatar Apr 10 '23 11:04 Anonymous4717

Hello @DissectMalware @Anonymous4717 @diyarbagis I'm working on this right now and I get this error: python3 -m pip install -U https://github.com/DissectMalware/xlrd2/archive/master.zip --force Defaulting to user installation because normal site-packages is not writeable Collecting https://github.com/DissectMalware/xlrd2/archive/master.zip Using cached https://github.com/DissectMalware/xlrd2/archive/master.zip Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [30 lines of output] Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-req-build-3ij4azo4/setup.py", line 11, in <module> setup( File "/home/tsurugi/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup _install_setup_requires(attrs) File "/home/tsurugi/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 71, in _install_setup_requires dist = MinimalDistribution(attrs) File "/home/tsurugi/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 53, in __init__ super().__init__(filtered) File "/home/tsurugi/.local/lib/python3.10/site-packages/setuptools/dist.py", line 301, in __init__ for ep in metadata.entry_points(group='distutils.setup_keywords'): File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1021, in entry_points return SelectableGroups.load(eps).select(**params) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 459, in load ordered = sorted(eps, key=by_group) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 1018, in <genexpr> eps = itertools.chain.from_iterable( File "/usr/lib/python3.10/importlib/metadata/_itertools.py", line 16, in unique_everseen k = key(element) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 943, in _normalized_name or super()._normalized_name File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 622, in _normalized_name return Prepared.normalize(self.name) File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 871, in normalize return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_') File "/usr/lib/python3.10/re.py", line 209, in sub return _compile(pattern, flags).sub(repl, string, count) TypeError: expected string or bytes-like object [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

when i switch to python2 python2 -m pip install -U https://github.com/DissectMalware/xlrd2/archive/master.zip --force DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Defaulting to user installation because normal site-packages is not writeable Collecting https://github.com/DissectMalware/xlrd2/archive/master.zip Using cached https://github.com/DissectMalware/xlrd2/archive/master.zip Building wheels for collected packages: xlrd2 Building wheel for xlrd2 (setup.py) ... done Created wheel for xlrd2: filename=xlrd2-1.3.4-py2.py3-none-any.whl size=115834 sha256=ebb2385edd5ff75d53a448ae93a8ee741c9ead5a49a8624763556e0962aa9bf2 Stored in directory: /tmp/pip-ephem-wheel-cache-8Msz6W/wheels/4b/c2/ba/f5501efee71f533947296ea469af8e16f40f57ba09934e29ea Successfully built xlrd2 Installing collected packages: xlrd2 Attempting uninstall: xlrd2 Found existing installation: xlrd2 1.3.4 Uninstalling xlrd2-1.3.4: Successfully uninstalled xlrd2-1.3.4 Successfully installed xlrd2-1.3.4 but then I get the same error running xlmdeobfuscator -f research-1646684671.xls (...) [Loading Cells] Error [deobfuscator.py:3195 process_file(**vars(args))]:

I also switch the assert to be equal 70 but that did not helped. Can anyone help me?

L4Lu avatar Mar 27 '24 09:03 L4Lu