Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors during desobfuscation #233

Open
Gouvernathor opened this issue Jul 26, 2024 · 2 comments
Open

Errors during desobfuscation #233

Gouvernathor opened this issue Jul 26, 2024 · 2 comments
Labels

Comments

@Gouvernathor
Copy link
Contributor

These seem not to be unrpyc just failing because the file is too obfuscated, but just having an internal bug.

Error while decompiling C:\Users\Armise\Desktop\Visual Novels Workspace\Innocent_Witches-0-11-alpha-pc\game\scripts\plot\act_2_new\chapter_2\unforgettable_night_quest.rpyc:
Traceback (most recent call last):
  File "C:\Users\Armise\Desktop\git temp\unrpyc\deobfuscate.py", line 305, in read_ast
    data, stmts, d = try_decrypt_section(raw_data)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Armise\Desktop\git temp\unrpyc\deobfuscate.py", line 345, in try_decrypt_section
    raise ValueError("\n".join(diagnosis))
ValueError: performed a round of decrypt_zlib
Did not know how to decrypt data.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Armise\Desktop\git temp\unrpyc\unrpyc.py", line 246, in worker_common
    decompile_rpyc(
  File "C:\Users\Armise\Desktop\git temp\unrpyc\unrpyc.py", line 190, in decompile_rpyc
    ast = get_ast(input_filename, try_harder, context)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Armise\Desktop\git temp\unrpyc\unrpyc.py", line 164, in get_ast
    ast = deobfuscate.read_ast(in_file, context)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Armise\Desktop\git temp\unrpyc\deobfuscate.py", line 307, in read_ast
    diagnosis.append(e.message)
                     ^^^^^^^^^
AttributeError: 'ValueError' object has no attribute 'message'
@CensoredUsername
Copy link
Owner

Probably python3 porting residue. Thanks for the report!

@CensoredUsername
Copy link
Owner

Also fixed in dev!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants