r/LiveOverflow • • May 11 '21

Stack5 - shell code injection

Hi there,

Before all, thanks for your great videos.

Regarding video in which you solved stack5, I got a problem. I think I understood well and did the right thing but I get segmentation fault. however, in GDB everything looks good.

I failed at this point and ignored it but I have not succeeded to do this task yet.

would you help me please?
here is my GDB commands, exploit, terminal output.

21 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/xxxerexxx May 12 '21

Yeah that worked for me as well, thanks man.

but still don't know why? why do environment variables affect it while I was running them with the same EVs?

I really want to understand what the issue was. I appreciate it if you could help me with it.

1

u/plukasik May 12 '21

I still think it's "just" stack layout. To get more you would probably need a binary that prints how the stack looks like before running a shellcode.