App - System
Monday 29 October 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
Wednesday 7 November 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
Thursday 8 November 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