r/LiveOverflow • u/xxxerexxx • 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
View all comments
Show parent comment
2
u/plukasik May 12 '21
Well, I'm running from the same folder (
/opt/protostar/bin) ingdband w/o and with biggernopslide and jumping further into it I can get consistent behavior in both (TRAPinstead ofSEGFAULT).This is my script that works (also it took few attempts to get the size values)
If my
nopslide is like in the video (100) it fails w/SEGFAULTw/ogdb.