DarkCTF 2020: Linux/linux starter

Linux/linux starter

101 points

Don’t Try to break this jail
ssh [email protected] -p 8001 password : wolfie

Solution

The challenge was to escape jail/restricted shell.

linuxstarter1

I’ve found, that PATH environment variable contains /home/wolfie/bin:/home/wolfie/.local/bin:/root/bin

linuxstarter2

So, I’ve simply scp the dash shell into /home/wolfie/.local/bin/
Then, I was able to execute my own shell and find flag in the seconds.

linuxstarter3

darkCTF{h0pey0uusedintendedw4y}

Privacy Policy
luc © 2021