App - Script

Tuesday 12 September 2017, 17:26  #1
Bash - System 1
theSilenter
  • 1 posts

Hi, I’m stuck on first challenge. Can anyone help me?
Thanks!

Saturday 16 September 2017, 23:37  #2
Bash - System 1
mrgroot11
  • 2 posts

Where do you stuck?

Wednesday 20 September 2017, 16:55  #3
Bash - System 1
Noa
Noa
  • 1 posts

Hello,

I don’t really understand the challenge.. What are we supposed to do exactly?

Thursday 21 September 2017, 18:05  #4
Bash - System 1
Manov
  • 1 posts

Hey.

Same here, I would like to edit the C file to be able to read the .passwd after recompilation (due to the r-s right). But I don’t know how I am able to change right on the C file even if I am the owner :x
It said i haven’t permission.
Am I on the right way ?

Wednesday 4 October 2017, 19:09  #5
Bash - System 1
noorqureshi
  • 1 posts

What we have to do exactly? i mean we dont have write permissions for ch11.c and we’re gonna read that .passwd file how? that what i was thinking .... to edit ch11.c and cat .passwd file but we don’t have write permission... im confused what to do here?

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

The related material for this challenge indicates:

 EN Dangers of SUID Shell Scripts (Administration/Unix)
 EN SUID Privileged Programs (Administration/Unix)

Are you familiar with SUID? What is it? What can be dangerous about it?

Sunday 22 October 2017, 08:48  #7
Bash - System 1
BarraBod
  • 1 posts

I’m stuck on this one also. I have managed to edit the ch11.c file and I chmod 777 ch11 (not sure if thats right) but when I "./ch11" it still gives me "Permisson denied". I’m clearly missing something. Am I going wrong somewhere here or have a missed something on the way?

Sunday 12 November 2017, 01:29  #8
Bash - System 1
Ic3-2K
  • 1 posts

You have to think about the permissions of the file you want to read, and about what happens with a program that executes with other permissions. And of course waht happens when you compile a program, what permissions have this program have you compiled, are that enough to read the file?
TIP! I mean user and group permissions, not the read-write-execute permissions you can manage with chmod

Wednesday 13 December 2017, 21:30  #9
Bash - System 1
Kupihleba
  • 1 posts

I tried to modify PATH to /var/tmp and execute cat bash script, but it fails with permissions.
I thought we could manage to run our commands by modifying LD_PRELOAD variable. But it also fails.

Should I keep on thinking about other possibilities, or I’ve done something wrong in my current implementations?

Thanks in advance

Sunday 25 February 2018, 15:19  #10
Bash - System 1
alias
  • 3 posts

The related material for this challenge indicates:

 EN Dangers of SUID Shell Scripts (Administration/Unix)
 EN SUID Privileged Programs (Administration/Unix)

maybe you should take care of this, hopefully this can help .

Sunday 25 February 2018, 15:24  #11
Bash - System 1
alias
  • 3 posts

by the way, God is not only ’God’, It can be everything.

Wednesday 21 March 2018, 02:00  #12
Bash - System 1
4dl0lz
  • 1 posts

SUID is about assigning temporary permissions to files when they are executed by a user.

You may not need to edit the ch11.c file.