App - System
lundi 29 octobre 2018, 19:17 #1
App - System Stack buffer overflow basic 1
Hi,
I managed to change the check, and the shell is supposed to open, but I got that instead...
[check] 0xdeadbeef
Yeah dude ! You win !
Opening your shell...
Shell closed ! Bye.
Is this supposed to happen ? How should I get the .passwd if I can’t write anything to the shell ?
Artemis
mercredi 7 novembre 2018, 17:19 #2
App - System Stack buffer overflow basic 1
Hi Artemis !
The shell closes because it receives no input.
To keep the shell open, you could write the exploit like this : (python -c "print(overflow and check)" ; cat) | ./challenge
jeudi 8 novembre 2018, 17:05 #3
App - System Stack buffer overflow basic 1
Thanks ! That’s exactly what I was missing to get it, I hadn’t thought about concatenating commands and wrapping with parenthesis ^^
Artemis
lundi 17 juin 2019, 20:58 #6
App - System Stack buffer overflow basic 1
Thank you. I didn’t even think of that. I was sitting in gdb trying to figure out how I could change the argument of system() .