App - System

Friday 16 June 2017, 02:07  #1
/bin/dash exiting immediately
haploid
  • 3 posts

Hello. I am able to pop the first binary challenge (ELF x86 - Stack buffer overflow basic 1), but /bin/dash doesn’t remain open long enough for me to do anything at all, let alone read the .passwd:

Yeah dude! You win!
Opening your shell...
Shell closed! Bye.
app-systeme-ch13@challenge02: $

What am I missing, here? Thanks.

Friday 16 June 2017, 09:36  #2
/bin/dash exiting immediately
dagger
  • 7 posts

You’re on the right way but you need one thing more to keep control of the standard input... ;)

Monday 14 August 2017, 00:09  #3
/bin/dash exiting immediately
dff3bc
  • 2 posts

unix.stackexchange.com/questions/16357/usage-of-dash-in-place-of-a-filename

Saturday 27 April 2019, 00:39  #4
/bin/dash exiting immediately
qmi
qmi
  • 7 posts

You said, ’you need one thing more to keep control of the standard input...’ . The ch13 does not seem to allow any command passed as a parameter to the /bin/dash. I would need to stop execution inside. I am stuck there..

Thursday 2 May 2019, 20:17  #5
/bin/dash exiting immediately
qmi
qmi
  • 7 posts

solved 😉 thank you.