Linux PrivEsc Arena
Linux PrivEsc Arena
browser.(https://tryhackme.com/room/linuxprivescarena)
The host key is an important part of the SSH protocol and is used to ensure
the authenticity of the server you are connecting to. The error message
indicates that the server supports two key types: ssh-rsa and ssh-dss, but
your SSH client is not configured to accept these key types. So we will use
the following command
ssh TCM@10.10.58.31 -oHostKeyAlgorithms=+ssh-rsa
retrieve root and other user passwords using the following command
cat /etc/shadow
and now let’s try to crack this password on our own machine
from here we managed to find the root password
Let’s search for files named “id_rsa” starting from the root directory (/) of
the file system
find / -name id_rsa 2> /dev/null
Let’s enter the following command to find ways to increase the authority
sudo -l
let’s exploit it
Linux VM — Terminal 2
Linux VM — Terminal 1
The strings command is used to print printable characters from a binary file,
which can be useful for examining the contents of non-text files such as
executables. When you run lines in an executable, it will try to extract and
display any human-readable lines in the binary.
Exploitation
>Task 14:Privilege Escalation — SUID (Environment Variables #2)
The getcap command is used to get the capabilities of files in a file system.
File capabilities in Linux provide a way to grant certain privileges to specific
processes without giving them full superuser (root) rights.
Exploitation
Enjoy root!
Exploitation
Attacker(My) VM