0x0 App - System

lundi 29 octobre 2018, 19:17  #1
App - System Stack buffer overflow basic 1
artemis-hlr
  • 2 posts

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
Lenstras95
  • 1 posts

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
artemis-hlr
  • 2 posts

Thanks ! That’s exactly what I was missing to get it, I hadn’t thought about concatenating commands and wrapping with parenthesis ^^

Artemis