But every time i run the echo ‘/bin/sh’ > cat , i get bash : cat : permission denied… No matter what i do i get the same error again and again…
Any little hint or help ? I would appreciate it…
Thanks…
I get that SHELL sets the users shell, but it seems to be running “script” and sending the output to null. From googling it seems that script is a kind of command recorder - unclear how his helps! Then I assume the Ctrl-Z is meant to background something (breaks the nc connection for me). stty switches off echoing, ok not sure how this helps.
reset and xterm resets the terminal session.
So I kinda get the individual commands, but can anyone explain how this works as a whole?
Thanks
Right now bugtracker doesn’t have the setuid bit set, so the cat shell just gives you normal permission. Something to check if you are running everything else right and it just doesn’t work.
robert@oopsie:/tmp$ /usr/bin/bugtracker
: EV Bug Tracker :
Provide Bug ID: 1
$ whoami
robert
$ ls -al /usr/bin/bugtracker
-rwxr-xr-x 1 root root 8792 Apr 16 02:56 /usr/bin/bugtracker
However bugtracker.save still has the setuid bit so that can work:
$ ls -al /usr/bin/bugtracker.save
-rwsr-xr-x 1 root bugtracker 8792 Jan 25 10:14 /usr/bin/bugtracker.save
$ /usr/bin/bugtracker.save
@NeoCortex2000 said:
Did any of you manage to get the user flag from this machine? If so where did you manage to find the sucker?
I had the same problem and was fooled by the fact that r̶u̶n̶n̶i̶n̶g̶ misusing locate wasn’t turning anything up. You’ll find what you need if you keep looking.