Skip to content

keeping crash after unpacking with upx3.94w #3

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

Closed
ruleil opened this issue Sep 9, 2018 · 5 comments
Closed

keeping crash after unpacking with upx3.94w #3

ruleil opened this issue Sep 9, 2018 · 5 comments

Comments

@ruleil
Copy link

ruleil commented Sep 9, 2018

Hi

I'm facing crash issues after unpack WH2018.exe with upx394w\upx.exe. The unpacked file are keeping crash. Could you give me some suggestion? Thanks.

I have attached the file I'm trying to unpack.

WH2018_pe_fixed2.zip

@stong
Copy link
Member

stong commented Sep 9, 2018

Hi! Thanks for reading my writeup.

I compared your version with the one from the repo. I think your imports data directory size is wrong.

image

vs

image

(correct one)

Hope that helps.

@ruleil
Copy link
Author

ruleil commented Sep 10, 2018

Hi RollSafe

Thanks for your information. This is a pretty good write up. I'm new for CTF and I learned a lot from your write up.

I followed your write up again, and found that the imported directory size is 3B4 after fixing PE structure. So do we need to modify it manually? I didn't see this step within your write up.

Thanks

@stong
Copy link
Member

stong commented Sep 10, 2018 via email

@ruleil
Copy link
Author

ruleil commented Sep 10, 2018

Hi,

Thanks a lot. You are really good at CTF and documentation.

@ruleil
Copy link
Author

ruleil commented Sep 10, 2018

Hi Sir

Find a solution that can fix the crash issue from this write up: https://github.com/p4-team/ctf/blob/master/2018-08-18-whitehat/re04/README.md

The binary is crashing because of memory misaligment issues, to solve that we have to turn on the Relocation information is stripped from the file bit:

image

@ruleil ruleil closed this as completed Sep 10, 2018
stong pushed a commit that referenced this issue Oct 11, 2018
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

2 participants