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

it shows only these for any exe #42

Open
Mafhoom opened this issue Dec 12, 2020 · 2 comments
Open

it shows only these for any exe #42

Mafhoom opened this issue Dec 12, 2020 · 2 comments
Assignees

Comments

@Mafhoom
Copy link

Mafhoom commented Dec 12, 2020

I install it without any errors but now it shows these with test by any exe
Python39>unipacker
v1.0.3

Your options for today:

    [0]  New sample...

Enter the option ID: 0
Please enter the sample path (single file or directory): 1.exe
OPT Magic: 523
Wrong Optional Header Magic. Aborting...
Could not initialize 1.exe:
Traceback (most recent call last):
File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\unipacker.exe_main
.py", line 7, in
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\unipacker\shell.py", line 738, in main
Shell()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\unipacker\shell.py", line 82, in init
self.shell_event.wait()
AttributeError: 'Shell' object has no attribute 'shell_event'

anybody can help?

@vfsrfs
Copy link
Member

vfsrfs commented Dec 13, 2020

Thank you for the issue. You are trying to unpack a sample, which is a 64bit binary (Optional Header Magic Value 523 = 0x20B = PE32+ https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#optional-header-image-only). Unfortunately, 64-bit binaries are not supported right now, only 32bit binaries. Either way, feel free to share the sample, as it might be useful for us, when adding support for 64-bit binaries. Are you aware, which packer was used to pack that sample?

We should probably modify the message output to informing about the Optional Header Mismatch and replace it by a message stating that 64bit binaries are not supported yet. I don't know if the shell crash only occurs on Windows, as the Windows build is a bit problematic compared to the linux build, but we should improve the error handling to avoid the crash.

@Masrepus Masrepus self-assigned this Dec 13, 2020
@Masrepus
Copy link
Member

Without having looked into this in more detail yet, I think this isn't Windows specific but probably there is some error handling missing for 64bit binaries

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

No branches or pull requests

3 participants