<?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 Mohamed Abd El Moneim  Ghoneim on Medium]]></title>
        <description><![CDATA[Stories by Mohamed Abd El Moneim  Ghoneim on Medium]]></description>
        <link>https://medium.com/@mo7am3d1472003?source=rss-f739607611d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*W86NiN7mPUCEwVLBlxREOA.png</url>
            <title>Stories by Mohamed Abd El Moneim  Ghoneim on Medium</title>
            <link>https://medium.com/@mo7am3d1472003?source=rss-f739607611d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:27:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mo7am3d1472003/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[Agent Sudo CTF TryHackMe (THM)]]></title>
            <link>https://medium.com/@mo7am3d1472003/agent-sudo-ctf-tryhackme-thm-778010b44a1b?source=rss-f739607611d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/778010b44a1b</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[walkthrough]]></category>
            <dc:creator><![CDATA[Mohamed Abd El Moneim  Ghoneim]]></dc:creator>
            <pubDate>Wed, 09 Sep 2026 21:05:59 GMT</pubDate>
            <atom:updated>2026-09-09T21:05:59.439Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>This report documents my complete methodology for penetrating the “ Agent Sudo ” machine from TryHackMe . The engagement involved network reconnaissance , web application analysis , cryptographic obfuscation techniques , and privilege escalation exploitation to gain full control of the target system .</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oC0G1ehHXfdhtPg9cR0eFQ.jpeg" /></figure><p><strong><em>Task [1] : Not Need Answer</em></strong></p><p><strong><em>Task [2] : Reconnaissance &amp; Enumeration</em></strong></p><p><strong><em>Q [1] : How many open ports ?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KcbeWmdbeQf8xf_GTjZu8g.jpeg" /></figure><p><strong><em>Scan Results:</em></strong></p><p><em>The Nmap scan revealed </em><strong><em>3 open ports</em></strong><em>:</em></p><blockquote><strong><em>Port 21 (FTP):</em></strong><em> Running </em><em>vsftpd 3.0.3</em></blockquote><blockquote><strong><em>Port 22 (SSH):</em></strong><em> Running </em><em>OpenSSH 7.6p1 Ubuntu</em></blockquote><blockquote><strong><em>Port 80 (HTTP):</em></strong><em> Running </em><em>Apache httpd 2.4.29 with page title Annoucement</em></blockquote><p><strong><em>Q [2] : How you redirect yourself to a secret page ?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qw7WjQr9XziZl4qaL3GFKQ.png" /></figure><blockquote><em>Navigating to the web server on </em><strong><em>Port 80</em></strong><em>, I was greeted with a message from </em><strong><em>Agent R</em></strong><em>:</em></blockquote><blockquote><em>“Use your own codename as user-agent to access the site.”</em></blockquote><blockquote><em>This indicates that the site filters access based on the </em><strong><em>User-Agent</em></strong><em> HTTP header, expecting a single codename letter (e.g., A, B, C, etc.).</em></blockquote><blockquote><em>To automate finding the correct codename, we can brute-force the </em><em>User-Agent header using </em><em>cURL or </em><strong><em>Burp Suite / Intruder</em></strong><em>.</em></blockquote><p><strong><em>Q [3] : What is the agent name ?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1cRsqgoAMuEN0-sermr64w.png" /></figure><blockquote><em>Discovered Username : </em><strong><em>chris </em></strong><em>(Agent </em><strong><em>C</em></strong><em>)</em></blockquote><blockquote><strong><em>Hint </em></strong><em>: The message explicitly mentions that Chris has a </em><strong><em>weak password </em></strong><em>.</em></blockquote><p><strong><em>Task [3] : Hash cracking and brute — force</em></strong></p><p><strong><em>Q [1] : FTP password</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WihXa6SD3RHg76F7y8gaAw.png" /></figure><p><em>Hydra successfully cracked the password for user </em><em>chris:</em></p><blockquote><strong><em>Username:</em></strong><em> </em><em>chris</em></blockquote><blockquote><strong><em>Password:</em></strong><em> </em><em>crystal</em></blockquote><p><strong><em>Q [2] : Zip file password</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1REU2E3jlVEGFEnrMs4rw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qBI8m5CGoPtyvKqKjKt9Ww.png" /></figure><blockquote><strong><em>Result:</em></strong></blockquote><blockquote><strong><em>Zip Password Found:</em></strong><em> </em><em>alien</em></blockquote><p><strong><em>Q [3] : steg password</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BReCdSSpUC1i6SMJ_qYJDA.png" /></figure><blockquote>Unzipping the archive with the password alien gave us the text file To_agentR.txt. Inside, there was a <strong>Base64 encoded string</strong>: QXJlYTUx.</blockquote><blockquote><strong>Decoded Result:</strong> Area51</blockquote><p><strong>Q [4] : Who is the other agent (in full name) ?</strong></p><blockquote><strong>Result :</strong></blockquote><blockquote>Name is : james</blockquote><p><strong><em>Q [5] SSH password :</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cmKIPEMJ9wU213VnCkd0NA.png" /></figure><blockquote><strong>Credentials Found:</strong></blockquote><blockquote><strong>SSH User:</strong> james</blockquote><blockquote><strong>SSH Password:</strong> hackerrules!</blockquote><p><strong><em>Task [4] : Capture the user flag</em></strong></p><p><strong><em>Q [1] : What is the user flag ?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*CpQrQ3VEPwoR71wljhv0Jg.png" /></figure><blockquote><strong>User Flag :</strong> b03d975e8c92a7c04146cfa7a5a313c7</blockquote><p><strong><em>Q [2] : What is the incident of the photo called ?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oa_-J-uq5HyEyBUfF2MR6g.png" /></figure><blockquote><strong>Answer is :</strong></blockquote><blockquote>roswell alien autopsy</blockquote><p><strong><em>Task [5] : Privilege Escalation :</em></strong></p><p><strong><em>Q [1] : CVE number for the escalation — (Format: CVE-xxxx-xxxx)</em></strong></p><blockquote>Answer is :</blockquote><blockquote>CVE-2019-14287</blockquote><p><strong><em>Q [2] : What is the root flag?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PO8w8gAF6916WnGqll6PyA.png" /></figure><blockquote><strong>Root Flag :</strong></blockquote><blockquote>b53a02f55b57d4439e3341834d70c062</blockquote><p><strong><em>Q [3] : (Bonus) Who is Agent R ?</em></strong></p><blockquote>DesKel</blockquote><h4><em>Behind the Scenes &amp; Lessons Learned</em></h4><p><em>During this lab, I walked through the entire penetration testing lifecycle step-by-step:</em></p><blockquote><strong>Enumeration:</strong> Uncovered open ports using Nmap and manipulated HTTP headers to bypass agent access restrictions.</blockquote><blockquote><strong>Exploitation:</strong> Brute-forced FTP credentials with Hydra, decoded base64 artifacts, and extracted hidden data using steganography tools (binwalk and steghide).</blockquote><blockquote><strong>Privilege Escalation:</strong> Exploited the CVE-2019-14287 Sudo security bypass vulnerability to achieve full root control and extract the final flag.</blockquote><blockquote><strong>Verification:</strong> Transferred the Alien_autospy.jpg image locally via SCP to conduct analysis and confirm target artifacts.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRHSqI6ZGuiTbcsAGf_YVQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=778010b44a1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>