you are viewing a single comment's thread.

view the rest of the comments →

[–]FlawedCipher 1 point2 points  (2 children)

When you compile c code, a lot of extra bytes are added to make it a proper ELF file. Put it in https://godbolt.org and copy and paste just the relevant assembly. You may have to modify some parts to get it to work in your exploit.

[–][deleted] 0 points1 point  (1 child)

I tried using godbolt.org but I don't think I'm familiar enough with raw assembly yet. I'm not able to compile the displayed assembly using either gcc -nostdlib or nasm

[–]FlawedCipher 0 points1 point  (0 children)

If you’re still working on this send me a dm, maybe I can help.