-
Notifications
You must be signed in to change notification settings - Fork 859
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
Exec format error on WSL #2121
Comments
@xuing - For bof, that error is expected because WSL supports only 64bit binary. The interesting part is what for flag.
I don't understand how to compile like that. It should be...
Is UPDATE: I don't know why @therealkenc deleted his comment, but from his comment, I noticed |
@sunjoong The following is the echo of Then, I also can run flag in my real linux system. Thank you.
|
@xuing - Ah... the mention of sections has some history of deleted comments; I deleted a comment too after his. Hmm.... in short, I compiled a dummy code;
The a.out file has some sections like the figure of https://en.wikipedia.org/wiki/Executable_and_Linkable_Format . And... you said you could run Strace is a tool to debug the execution of a program in linux, and you were asked the result of it in the template of issues; You might see the line of "* Strace of the failing command, if applicable: (If BTW, are you a student of KAIST? How to find that program? I have a curiosity how to compile it without "for GNU/Linux 2.6.32" or like that. If you be a member of that lab, you could ask them, I think. |
Is it possible this is a duplicate of #330? |
@sunjoong thank you,
Is this the key point? Then I run it on Ubuntu.
Finally,I'm only a Chinese students with poor English, I'm learning pwn(Buffer overflow attack), These is the Website pwnable.kr practice programs. >_< Thanks again for your attention. |
@benhillis ,Yes,you are right |
@benhillis - Oh... what's that? |
@benhillis @xuing - It is the same issue of #330.
|
Thanks for reporting the issue. Closing this out as a duplicate of #330 so we can track it in one place. |
I met the "exec format error" on WSL.
These program
programs.zip
comes from pwnable.kr challenges.
bof(http://pwnable.kr/bin/bof) and flag(http://pwnable.kr/bin/flag)
when I run $file bof I get
then when I run $file flag I get
But no matter which one I run, they are prompted
version Information
if have some mistake,please forgive me.
Thanks
The text was updated successfully, but these errors were encountered: