App - Script

Monday 9 October 2017, 23:29  #1
Bash - System 1
cactux
  • 1 posts

Hi,

Trying this first App-Script challenge.

Here’s what I tried: as ch11 has the sticky bit, so run as root, I’d like it to do a cat instead of ls of the .passwd file.

I tried to copy /bin/cat as ls in a directory other than /bin, and before /bin in the $PATH.

But this fails because I have to permission to write in /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin or /sbin.

I don’t even know if I am going in the correct direction.

Would you have a clue?

Thanks

Thursday 12 October 2017, 04:26  #2
Bash - System 1
frankgrimes
  • 11 posts

If you can’t write to those directories, how might you go about finding other places that are writeable? Are there any places on the system that are writeable???

Saturday 16 December 2017, 12:14  #3
Bash - System 1
cutty853
  • 1 posts

You can create a subdirectory in the /tmp directory. Choose a difficult name and you won’t be annoy by an other user.