<?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 Leendert Coenen on Medium]]></title>
        <description><![CDATA[Stories by Leendert Coenen on Medium]]></description>
        <link>https://medium.com/@leendertcoenen?source=rss-11388e8e36f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SQaw3Cuf1VYo1GbX18LHTg.jpeg</url>
            <title>Stories by Leendert Coenen on Medium</title>
            <link>https://medium.com/@leendertcoenen?source=rss-11388e8e36f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:07:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@leendertcoenen/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[TryHackMe Write Up — SQL Map]]></title>
            <link>https://infosecwriteups.com/tryhackme-write-up-sql-map-8fc4327d53fb?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fc4327d53fb</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[personal-development]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Fri, 12 Jan 2024 08:19:57 GMT</pubDate>
            <atom:updated>2024-01-17T14:47:49.204Z</atom:updated>
            <content:encoded><![CDATA[<h3>TryHackMe Write Up — SQL Map</h3><p>Room: <a href="https://tryhackme.com/room/sqlmap">https://tryhackme.com/room/sqlmap</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/0*5FXxx_dPHguY5xji.png" /><figcaption>TryHackMe Write Up — SQL Map</figcaption></figure><p>In this write up, only the SQLmap challenge will be covered.</p><p>Task 1 and 2 only require to read the write up.</p><p>Note that this write-up will solve the challenge with the POST based method. The alternative is to use the GET based method.</p><h3>Task 1: What is the name of the interesting directory ?</h3><p>This calls for some directory enumeration. I didn’t have the proper wordlists yet, so I installed seclists. Which should suffice for this taks.</p><pre>sudo apt -y install seclists</pre><pre>ffuf -u http://10.10.139.52/FUZZ -w /usr/wordlists/dirbuster/directory-list-2.3-medium.txt</pre><p>After using ffuf, I found nothing. And I have no idea why? Leave a comment below if you know whats wrong here, or why I didn’t find anything.</p><p>Using the same wordlist but a different tool, gobuster, I was able to find the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y0AhmhEqDMd_UktrkBxqPA.png" /><figcaption>Gobuster Scan Results</figcaption></figure><h3>Task 2: Who is the current db user?</h3><p>Task 1 gave away that port 80 is open. Otherwise we would not have to look for a directory. To make sure there weren’t any other services running. I ran nmap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNBZgDILAj4AWrNkpyoBxw.png" /><figcaption>Nmap Scan Results</figcaption></figure><p>The homepage seems to be the standard Nginx landing page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDF4tMA4tzMVUxuW99JjLQ.png" /></figure><p>Moving on to the hidden directory, we find a webapp with the ability to login and register.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sxPoGTMPxdjBaJNKLU-YAg.png" /></figure><p>In the write up it is explained that search functionality has a vulnerable parameter in the request it makes to the server. More specific the blood_group = B%2B part.</p><p>But it seems this is not the only SQL vulnerability that can be used to get inside of the database.</p><p>The Login is also vulnerable to POST-based SQL Injection.</p><p>With Burpsuite we can intercept the login request, and save that request to sql.txt.</p><p>Using tha file in the following command, we find the database running in the back end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RoVMHXIUvJHmRG56rH9yfA.png" /><figcaption>Burp Screen shot 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5KP41JUNRx70SGL12YObw.png" /><figcaption>Burp Screenshot 2</figcaption></figure><pre>sqlmap -r sql.txt — current-db</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*Y5V3IdRkdU8UtXXkL6n76w.png" /><figcaption>Finding the database name</figcaption></figure><blockquote>First we are asked to follow the redirect, which we shouldnt. This confused me for a moment. I thought the command failed.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6nxv2R1xAwZ7gyvVPLE61A.png" /><figcaption>Sql map redirect</figcaption></figure><p>Retrieving the database users:</p><pre>sqlmap -r sql.txt -D blood — current-users</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*INfOjXU8qRUFXVyuG_VQ_Q.png" /><figcaption>sqlmap -r sql.txt -D blood — current-usersc</figcaption></figure><p>Notice SQL map found multiple injection points. Both Usename and Password.</p><p>Also we find the current db user, which is the answer to Task 2.</p><h3>Task 3: What is the final flag?</h3><p>The following command will return the different tables in the database:</p><pre>sqlmap -r sql.txt -D blood -T blood_db --tables</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HWTJG_LJtG1T38GlwBby-Q.png" /></figure><p>Dumping all the tables will provide the contents of the flag table.</p><pre><br>sqlmap -r sql.txt -D blood -T blood_db --dump-all</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CyWPCrwb9mSj1vre5IJfDA.png" /><figcaption>Answer to task 3</figcaption></figure><p>Happy Hacking!</p><p><em>💡 If you want to stay updated with what I’m working on. Follow me and Subscribe! 🔔</em></p><p><a href="https://medium.com/@leendertcoenen/subscribe">Medium </a>— <a href="https://www.linkedin.com/in/coenenleendert/">LinkedIn</a> — <a href="https://twitter.com/LeendertCoenen">Twitter </a>— <a href="https://leendert.substack.com/">Substack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fc4327d53fb" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/tryhackme-write-up-sql-map-8fc4327d53fb">TryHackMe Write Up — SQL Map</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackme Walkthrough: Bounty Hacker]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://infosecwriteups.com/tryhackme-walkthrough-bounty-hacker-4ad13a0dfb48?source=rss-11388e8e36f------2"><img src="https://cdn-images-1.medium.com/max/1054/1*4AOoy4RvJn4IHBeT_Lo0Zg.png" width="1054"></a></p><p class="medium-feed-snippet">In this room we will use the following tools and technologies:</p><p class="medium-feed-link"><a href="https://infosecwriteups.com/tryhackme-walkthrough-bounty-hacker-4ad13a0dfb48?source=rss-11388e8e36f------2">Continue reading on InfoSec Write-ups »</a></p></div>]]></description>
            <link>https://infosecwriteups.com/tryhackme-walkthrough-bounty-hacker-4ad13a0dfb48?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ad13a0dfb48</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Mon, 01 Jan 2024 15:26:17 GMT</pubDate>
            <atom:updated>2024-01-16T03:52:28.098Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to get started with Ethical Hacking]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://infosecwriteups.com/how-to-get-started-with-ethical-hacking-5e1e65bcac36?source=rss-11388e8e36f------2"><img src="https://cdn-images-1.medium.com/max/830/1*l5s-boBAR0FNE20TOe5MrA.png" width="830"></a></p><p class="medium-feed-snippet">The best way to get started with anything, is practical and hands-on experience.</p><p class="medium-feed-link"><a href="https://infosecwriteups.com/how-to-get-started-with-ethical-hacking-5e1e65bcac36?source=rss-11388e8e36f------2">Continue reading on InfoSec Write-ups »</a></p></div>]]></description>
            <link>https://infosecwriteups.com/how-to-get-started-with-ethical-hacking-5e1e65bcac36?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e1e65bcac36</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[techno]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Sat, 30 Dec 2023 19:20:47 GMT</pubDate>
            <atom:updated>2024-01-16T03:52:45.834Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Enhancing Your Reverse Shell]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://infosecwriteups.com/enhancing-your-reverse-shell-f69c5a1f5ae7?source=rss-11388e8e36f------2"><img src="https://cdn-images-1.medium.com/max/1644/1*v15d-JLlQPqR46Ah27tYvQ.png" width="1644"></a></p><p class="medium-feed-snippet">Catching a reverse shell through tools like netcat is a common scenario in penetration testing and ethical hacking. However, the default&#x2026;</p><p class="medium-feed-link"><a href="https://infosecwriteups.com/enhancing-your-reverse-shell-f69c5a1f5ae7?source=rss-11388e8e36f------2">Continue reading on InfoSec Write-ups »</a></p></div>]]></description>
            <link>https://infosecwriteups.com/enhancing-your-reverse-shell-f69c5a1f5ae7?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f69c5a1f5ae7</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Sat, 30 Dec 2023 18:26:16 GMT</pubDate>
            <atom:updated>2024-01-16T03:52:32.522Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[What I learned After Writing For 24 Consecutive days]]></title>
            <link>https://medium.com/@leendertcoenen/what-i-learned-after-writing-for-24-consecutive-days-56d2354e70f0?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/56d2354e70f0</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 10:23:01 GMT</pubDate>
            <atom:updated>2023-12-28T10:23:01.124Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DpHZ4zfewtbaAWzRRxaSwg.png" /><figcaption>What I learned After Writing For 24 Consecutive days</figcaption></figure><h3>The Goal</h3><p>Every year in December TryHackMe hosts The Advent Of Cyber. Everyday a new CTF (Capture the flag) is released, which is aimed at beginners and therefore comes with a very detailed explanation.</p><p>So why did I write a walkthrough everyday for 24 days?</p><p>In this post I will list a few of those reasons and ellaborate on them.</p><p>If you’re intrested in earnings and view count, <a href="https://medium.com/@leendertcoenen/how-much-i-made-after-writing-24-consecutive-days-298fae568930">check out this article.</a></p><h4>1. Understanding the material</h4><p>I often catch myself stopping a CTF challenge once I got all the answers.</p><p>Stopping before I completly understood what was going on and how things worked exactly.</p><p>This phenomenon is pretty humane in my opinion. When you get the treat, why bother chasing it some more?</p><p>When writing a walkthrough, you are obligated to understand the material completely, otherwise you are not able to explain it at all.</p><p>This was the biggest reason for me to do the write-ups, forcing myself to master the material, instead of stopping the moment I got all the answers.</p><p>Not only does it increase the amount of knowledge that is mastered and remembered. In the future you have your own documentation to go back to.</p><h4>2. Improving my writing skills</h4><p>I had written a few articles before, but never quite consistent. In all honesty, I can’t make a list with all the reason behind this. Because I don’t know them myself</p><p>What I do know, is that in order to hone a skill, you need to practice it consistently.</p><p>I knew there would be a challenge everyday for 24 days, so I would have to be consistent.</p><h4>3. Social media and networking</h4><p>Before doing this challenge I had never posted something on social media before that was related to cyber security.</p><p>So nobody knew or will ever know that I took an intrest into it. Hitting the publish button on <a href="https://medium.com/@leendertcoenen/subscribe">Medium </a>— <a href="https://www.linkedin.com/in/coenenleendert/">LinkedIn</a> — <a href="https://twitter.com/LeendertCoenen">Twitter</a> created awareness, and will possibly result in some triggers in my network. Which in turn will create new opportunities.</p><p>When it comes to audience building, I don’t think that aspect was impacted that much. But I will talk about that in<a href="https://medium.com/@leendertcoenen/how-much-i-made-after-writing-24-consecutive-days-298fae568930"> another article.</a></p><h3>Lessons Learned</h3><h4>1. Having continuity is good!</h4><p>Creating the habbit to write, make a thumbnail, solve a ctf, and much more everyday, really provides some productivity flow. Every day tasks go smoother than the day before.</p><h4>2. Making thumbnails</h4><p>I had never made a thumbnail before, using procreate and an Ipad.</p><p>the first few days it took a long time. Simply because I was lacking the skill.</p><h4>3. Deadlines make you more impulsive</h4><p>Because there was a deadline everyday, you are obligated to just go with the flow and to not stop at every little detail.</p><h4>4. The dip after completing the challenge</h4><p>After every challenge I had my write-up sketches ready to be honed into an article.</p><p>Yet everyday some convincing was needed before actually starting to write. I think this is the main reason why I wrote everyday. Because if I didn’t I would have simply stopped there.</p><p>Doing something you dont like is not that bad if you get the gratification in the end. The worst thing is if you don’t.</p><h4>5. Hard challenge means it’s easy to write, easy challenge means it’s hard to write</h4><p>When challenges are easy, it’s easy to make the write up. But it’s hard to start writing about it, cause you won’t gain much new knowledge. And it’s all in your head already anyway!</p><p>When the challenge is hard, a lot of time is spent to gain new knowledge. When not undestanding that knowdlege 100%, it is impossible to start explaining it in writing. You will need to research the topic, which makes it easy to get some notes and start writing.</p><h3>Conclusion</h3><p>I had a blast solving the CTF challenges and writing about them.</p><p>What kind of content would you like to see in the future?</p><p>Happy Hacking!</p><p><em>💡 If you want to stay updated with what I’m working on. Follow me and Subscribe! 🔔</em></p><p><a href="https://medium.com/@leendertcoenen/subscribe">Medium </a>— <a href="https://www.linkedin.com/in/coenenleendert/">LinkedIn</a> — <a href="https://twitter.com/LeendertCoenen">Twitter </a>— <a href="https://leendert.substack.com/">Substack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56d2354e70f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Much I Made After Writing 24 Consecutive Days]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@leendertcoenen/how-much-i-made-after-writing-24-consecutive-days-298fae568930?source=rss-11388e8e36f------2"><img src="https://cdn-images-1.medium.com/max/1280/1*ThWSWyEx0xzA7jjbrg7Cmg.png" width="1280"></a></p><p class="medium-feed-snippet">In short the answer is 0$, I posted all of these articles for free on different platforms. Hoping to help someone out there to solve the&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@leendertcoenen/how-much-i-made-after-writing-24-consecutive-days-298fae568930?source=rss-11388e8e36f------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@leendertcoenen/how-much-i-made-after-writing-24-consecutive-days-298fae568930?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/298fae568930</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Thu, 28 Dec 2023 10:20:49 GMT</pubDate>
            <atom:updated>2024-01-01T18:25:11.589Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Try Hack me — Advent Of Cyber 2023 Day 24 Write Up — You Are on the Naughty List, McGreedy]]></title>
            <link>https://infosecwriteups.com/try-hack-me-advent-of-cyber-2023-day-24-write-up-you-are-on-the-naughty-list-mcgreedy-6d0fbfac9c91?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d0fbfac9c91</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Mon, 25 Dec 2023 15:26:55 GMT</pubDate>
            <atom:updated>2024-01-15T13:22:39.349Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://medium.com/@leendertcoenen/try-hack-me-advent-of-cyber-2023-day-1-write-up-a163ed214858">Try Hack me — Advent Of Cyber 2023 Day 24 Write Up</a> — You Are on the Naughty List, McGreedy</h3><p>Room: <a href="https://tryhackme.com/room/adventofcyber2023">Advent of Cyber 2023 Day</a> 24</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gWEzmnNfIYd9Ek_mfpvErQ.png" /><figcaption><a href="https://medium.com/@leendertcoenen/try-hack-me-advent-of-cyber-2023-day-1-write-up-a163ed214858">Try Hack me — Advent Of Cyber 2023 Day 24 Write Up</a> — You Are on the Naughty List, McGreedy</figcaption></figure><p>Today is the last day of Advent Of Cyber 2023. Creating an image of Tracy Mcgreedy’s smart phone is the last piece of evidence we need to prove is his guilt.</p><p>Digital Forensics is a method of using science to solve crimes. I think this field is fascinating, law enforcement using technology to make a case is pretty new and exciting.</p><p>The thing that makes TryHackMe great is the gamification of cybersecurity and ethical hacking, imagine applying this to solve crimes and help people!</p><h3>Digital Forensics</h3><p>Following the steps in the write up, we open a case in autopsy.</p><p>Adding the image from Tracy Mcgreedy’s phone should make your screen look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lGQuoMcJPRyXiil0qArfgg.png" /><figcaption>Autopsy with added img file</figcaption></figure><p>However, it is not necessary to make the case yourself. I tried and the virtual machine became very slow.</p><p>Just loading the case that has been made already, seems like a better alternative.</p><h4>Task 1: One of the photos contains a flag. What is it?</h4><p>Scrolling through the images folder we can find a flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTptB0a0hdlft5yV4LaVOw.png" /><figcaption>Answer to Task 1</figcaption></figure><h4>Task 2: What name does Tracy use to save Detective Frost-eau’s phone number?</h4><p>In contacts we find all contact in the phone, and notice a strange name that sounds like Detective Frost-eau.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U2C7woSle4GKUpcGDctd5A.png" /></figure><h4>Task 3: One SMS exchanged with Van Sprinkles contains a password. What is it?</h4><p>Scrolling through the messages we find a conversation about a password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XjGkh-ZqvP6USJBsMD5ong.png" /><figcaption>Conversation message 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHiVUHdskmxVj2DqQ49xGQ.png" /><figcaption>Conversation message 2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n6o5RV4lMv--AfYDPo4FiQ.png" /><figcaption>Conversation message 3</figcaption></figure><h3>Jolly judgement day</h3><p>Now that we’ve gathered all the evidence we need, we will make our case in front of a judge.</p><p>Here you will need the knowledge of all AOC 2023 challenges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fNy07KXI87ZYDPnFm7DJ9A.png" /><figcaption>Jolly judgement day</figcaption></figure><h3>Closing thoughts</h3><p>That’s it for Advent Of Cyber 2023, I had an absolute blast! I hope these write-ups helped some of you to solve the challenges, and above all, learn about cybersecurity.</p><p>If they did, let me know!</p><p>I will be posting more content about cybersecurity soon, and other topics aswell. If you have any suggestions or recommendation, let me know!</p><p>Happy Hacking!</p><p><em>💡 If you want to stay updated with what I’m working on. Follow me and Subscribe! 🔔</em></p><p><a href="https://medium.com/@leendertcoenen/subscribe">Medium </a>— <a href="https://www.linkedin.com/in/coenenleendert/">LinkedIn</a> — <a href="https://twitter.com/LeendertCoenen">Twitter </a>— <a href="https://leendert.substack.com/">Substack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d0fbfac9c91" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/try-hack-me-advent-of-cyber-2023-day-24-write-up-you-are-on-the-naughty-list-mcgreedy-6d0fbfac9c91">Try Hack me — Advent Of Cyber 2023 Day 24 Write Up — You Are on the Naughty List, McGreedy</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Try Hack me — Advent Of Cyber 2023 Day 23 Write Up — Relay All the Way]]></title>
            <link>https://infosecwriteups.com/try-hack-me-advent-of-cyber-2023-day-23-write-up-relay-all-the-way-a0ce5f7db14f?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0ce5f7db14f</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Sun, 24 Dec 2023 11:36:17 GMT</pubDate>
            <atom:updated>2024-01-15T13:21:49.513Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://medium.com/@leendertcoenen/try-hack-me-advent-of-cyber-2023-day-1-write-up-a163ed214858">Try Hack me — Advent Of Cyber 2023 Day 23 Write Up</a> — Relay All the Way</h3><p>Room: <a href="https://tryhackme.com/room/adventofcyber2023">Advent of Cyber 2023 Day</a> 23</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h7Pfg2-pmDhLwtWbLptOUg.png" /><figcaption><a href="https://medium.com/@leendertcoenen/try-hack-me-advent-of-cyber-2023-day-1-write-up-a163ed214858">Try Hack me — Advent Of Cyber 2023 Day 23 Write Up</a> — Relay All the Way</figcaption></figure><p>In many organizations, employees can create network file shares without robust security controls, granting potential threats an open door. This poses two major risks:</p><ol><li>🕵️‍♂️ Read Access: Threat actors gaining read access, can sneak away with sensitive data, including credentials and customer documents, often found just lying around in large organizational file shares.</li><li>📂 Write Access: With write access, attackers can manipulate information in the share, potentially overwriting critical files or setting the stage for further attacks.</li></ol><p>🛡️ Due to the global pandemic, VPNs initially disrupted the game, making traditional interception tactics obsolete. Now, creativity is key — enter coercion!</p><h4>Coecion attack step by step</h4><p>Since I’m using my own Kali Linux machine, I start with installing Ntlm Theft.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AthqKTHnoYkxKujpHDD6QA.png" /><figcaption>Installing Ntlm Theft</figcaption></figure><p>Now we’ll use it to generate a file that will coerce authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JMTEzyV3nLNchayLALh7w.png" /><figcaption>Creating stealthy lnk file</figcaption></figure><p>We’ll put that file on the samba file sharing server. Which we have access to since we are the blue team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*j1GwKxN3ex9rV3rnmcbpfg.png" /><figcaption>connecting to Samba file sharing</figcaption></figure><ol><li>Connect to Samba (See picture above)</li><li>Upload stealthy file (See picture above)</li><li>List all files for verification (See picture below)</li><li>Run Responder to listen for incoming authentication attempts. Using ‘responder -I tun0&#39; command</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*tWFj-ja5l_frnyE_VSHcOA.png" /><figcaption>Listening for events</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ljhN-CqGTGEWHxNAXXkB9Q.png" /><figcaption>Make sure the stealthy file is on the Samba service</figcaption></figure><p>Get the greedytext.txt, this is a list of passwords. Which will make our brute force attempt with John The Ripper go mush faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fGHe0t_JiDtk4-9_fMV26w.png" /><figcaption>Get wordlist</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*y1S-XZMh4CsmAuJ6RYRdKQ.png" /><figcaption>Print out wordlist</figcaption></figure><p>After listening a while, we find the hashed password for the Administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aJNks303nQ-OCNt8OxjLmg.png" /><figcaption>Listening and finding the Administrator password hash</figcaption></figure><p>Bruteforcing with the wordlist and hashed password, we find the password in clear text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l6xhzI6f62kdq4UGUwPhcQ.png" /><figcaption>Bruteforcing the Administrator user</figcaption></figure><p>My attackbox did not have Remmina yet, so I installed it first.</p><pre>sudo apt install remmina</pre><p>Then connect to the Samba server with the credentials we’ve found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ufvL-jRmJvhTxpbiiBHSPg.png" /><figcaption>Connect to Samba server with Remmina</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dSSTCMBsvV5Pr-sPV8DQLA.png" /><figcaption>RDP into Samba server</figcaption></figure><p>Going to the desktop folder, we find the flag and last answer to this challenge!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xMk_khXyojzTMMWSy9TnuA.png" /><figcaption>Answer to Task 5</figcaption></figure><p>Happy Hacking!</p><p><em>💡 If you want to stay updated with what I’m working on. Follow me and Subscribe! 🔔</em></p><p><a href="https://medium.com/@leendertcoenen/subscribe">Medium </a>— <a href="https://www.linkedin.com/in/coenenleendert/">LinkedIn</a> — <a href="https://twitter.com/LeendertCoenen">Twitter </a>— <a href="https://leendert.substack.com/">Substack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0ce5f7db14f" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/try-hack-me-advent-of-cyber-2023-day-23-write-up-relay-all-the-way-a0ce5f7db14f">Try Hack me — Advent Of Cyber 2023 Day 23 Write Up — Relay All the Way</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Try Hack me — Advent Of Cyber 2023 Day 22 Write Up — Jingle Your SSRF Bells: A Merry Command &…]]></title>
            <link>https://infosecwriteups.com/try-hack-me-advent-of-cyber-2023-day-22-write-up-jingle-your-ssrf-bells-a-merry-command-7aba6da24fe1?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7aba6da24fe1</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 18:05:48 GMT</pubDate>
            <atom:updated>2024-01-14T13:00:18.814Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://medium.com/@leendertcoenen/try-hack-me-advent-of-cyber-2023-day-1-write-up-a163ed214858">Try Hack me — Advent Of Cyber 2023 Day 22 Write Up</a> — Jingle Your SSRF Bells: A Merry Command &amp; Control Hackventure</h3><p>Room: <a href="https://tryhackme.com/room/adventofcyber2023">Advent of Cyber 2023 Day</a> 22</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RChlQridpUacGtlyvKBO9w.png" /><figcaption><a href="https://medium.com/@leendertcoenen/try-hack-me-advent-of-cyber-2023-day-1-write-up-a163ed214858">Try Hack me — Advent Of Cyber 2023 Day 22 Write Up</a> — Jingle Your SSRF Bells: A Merry Command &amp; Control Hackventure</figcaption></figure><p>Server-Side Request Forgery is a type of security vulnerability where an attacker can manipulate a web application to make requests on behalf of the server. The attacker can typically force the server to perform requests to other resources or services, often internal to the network, that it wouldn’t normally have access to.</p><h3>SSRF walkthrough</h3><p>The tasks are a bit all over the place, so let’s first go step by step on how to do the actual SSRF exploitation.</p><p>First we’ll add the ip to the hosts file of our attackbox. This will allow us to use the domain name, instead of the IP address, in our browser.</p><pre>sudo nano /etc/hosts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYuv2hHp1apqFNqCZRt8fg.png" /><figcaption>Changing the hosts file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7vmEBzF6D1X6iZXjBZFLNw.png" /><figcaption>Nano hosts file</figcaption></figure><p>Be sure to fill in the IP address of your machine (Not your attackbox, the IP THM gave you)</p><p>If that all went well, you can go to the website. We see it is protected with a username and password.</p><p>To get in, we will use a SSRF exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYNCW4pWpclfPyzJWhRoVw.png" /><figcaption>Mc greedy’s Dashboard Login portal</figcaption></figure><p>When pressing the green “Accessing through API” button, we are greeted with some API documentation.</p><p>This documentation provides us with some interesting information. To get messages you can simply make a call to a Word document.</p><pre>http://10.10.10.20/getClientData.php?url=http://10.10.10.10/messages.docx</pre><p>It also says that there is a file called config.php on the server. That contains the credentials to the dashboard. So now we know where to look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hmaWHSQym0B9iO1JDVn5vw.png" /><figcaption>API documentation</figcaption></figure><p>So how do we exploit this?</p><p>The given URL has a URL as a parameter. Which is that last part, what if we try to fetch data from the host, instead of a client IP?</p><p>Since we know the website is running on PHP, we can take a look at the default directory that a PHP website’s index file is located.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TdkhJPRUYLvP6M6PmcYSWg.png" /></figure><p>As expected, it returned the index.php file in clear text. On line 3 we can see it includes the config.php file. To check the credentials that are entered.</p><p>Something else we can try is the /etc/passwd directory. Which includes usernames and passwords on the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Psl40U5CSVUURMr8x_6chg.png" /><figcaption>cat /etc/passwd</figcaption></figure><p>We can see a lot of users, but the passwords are displayed as an “X”</p><p>In the index.php file we saw that config.php is included. This means they live in the same directory. And we should be able to do the same trick as with the index.php page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5V1Or4VZgMF6tpk3kGZWJw.png" /><figcaption>config.php</figcaption></figure><p>Now that we have the credentials, we can log in the dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6rAIcxqHXwdI7zt5_LPvUw.png" /><figcaption>McGreedy C2 Dashboard</figcaption></figure><p>Here we find the answer to Task 2 and Task 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKjz5z2rCw5tQaI-7Wr5JA.png" /><figcaption>Hacked users</figcaption></figure><p>Scrolling down a bit we can see that the dashboard is still collecting information on some people we know, people from Best Festival Company!</p><p>When deleting those, we find the answer to Task 4.</p><p>Happy Hacking!</p><p><em>💡 If you want to stay updated with what I’m working on. Follow me and Subscribe! 🔔</em></p><p><a href="https://medium.com/@leendertcoenen/subscribe">Medium </a>— <a href="https://www.linkedin.com/in/coenenleendert/">LinkedIn</a> — <a href="https://twitter.com/LeendertCoenen">Twitter </a>— <a href="https://leendert.substack.com/">Substack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7aba6da24fe1" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/try-hack-me-advent-of-cyber-2023-day-22-write-up-jingle-your-ssrf-bells-a-merry-command-7aba6da24fe1">Try Hack me — Advent Of Cyber 2023 Day 22 Write Up — Jingle Your SSRF Bells: A Merry Command &amp;…</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Try Hack me — Advent Of Cyber 2023 Day 21 Write Up — Yule be Poisoned: A Pipeline of Insecure Code!]]></title>
            <link>https://infosecwriteups.com/try-hack-me-advent-of-cyber-2023-day-21-write-up-yule-be-poisoned-a-pipeline-of-insecure-code-bb8e1ecbf2cb?source=rss-11388e8e36f------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb8e1ecbf2cb</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Leendert Coenen]]></dc:creator>
            <pubDate>Thu, 21 Dec 2023 19:27:14 GMT</pubDate>
            <atom:updated>2024-01-14T11:24:02.562Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://medium.com/@leendertcoenen/try-hack-me-advent-of-cyber-2023-day-1-write-up-a163ed214858">Try Hack me — Advent Of Cyber 2023 Day 21 Write Up</a> — Yule be Poisoned: A Pipeline of Insecure Code!</h3><p>Room: <a href="https://tryhackme.com/room/adventofcyber2023">Advent of Cyber 2023 Day</a> 21</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*90nIk-CduN_TDwEwNiKx_g.png" /><figcaption><a href="https://medium.com/@leendertcoenen/try-hack-me-advent-of-cyber-2023-day-1-write-up-a163ed214858">Try Hack me — Advent Of Cyber 2023 Day 21 Write Up</a> — Yule be Poisoned: A Pipeline of Insecure Code!</figcaption></figure><p>CI/CD PPE, Continuous Integration, Continuous Deployment, Poisoned Pipeline Execution.</p><p>Continuing the story from the past 2 days.</p><p>After all, the automation in gift-giving, wrapping, and crafting is the reason why BestFestivalCompany bought Antarcticraft.</p><p>The printscreens can be a bit different layout wise. Because I couldn’t get GIT to work on my attackbox on the first try. Due to some credential issues, like missing E-mail address.</p><p>What needed to be done was the following command:</p><pre>git config --global user.email &quot;&lt;&gt;&quot;<br># &lt;&gt; Means empty<br>git config --global user.name &quot;Something&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C1j4Bt-W-lcEV3asGghxUw.png" /><figcaption>Git user config</figcaption></figure><p>There are also different IP’s, because the machines kept going down. I suppose due to rush hour.</p><h4>Task 1: What Linux kernel version is the Jenkins node?</h4><p>We find 2 repositories in the Git system of AntarctiCrafts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*Z8VqAieYWD5rI0RAKEZaXw.png" /><figcaption>The two repositories</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_MXTkOtEzkFNp2fbkLttg.png" /><figcaption>Homepage Git system Antarcticraft</figcaption></figure><p>Let’s clone the gift-wrapper repo to our machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IT4HDhcHSH2UoVyJSIDew.png" /><figcaption>Cloning gift-wrapper repo</figcaption></figure><p>With Nano we can see the pipeline and change the “steps” to “whoami”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVw5mS0l4WEwH_9-r65nYg.png" /><figcaption>nano Jenkinsfile</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*M0FhKPqkdWHdFl8hVeET1Q.png" /><figcaption>Adding the Jenkins file to the Git repo</figcaption></figure><p>Adding the files to the repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xrl3DRaRYVlYXiES0iN-qw.png" /><figcaption>commit failure</figcaption></figure><p>Unfortunatly we are restricted from pushing code to this repo. So let’s inspect the pipeline code!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0blyEL_9yp-pC77IexjYiA.png" /><figcaption>Cloning gift-wrapper-pipeline repo</figcaption></figure><p>Here we find a file “Makefile”, that can execute commands during the build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQFV19pPNJuNIHVxM5_wVw.png" /></figure><p>Let’s execute the command uname, to find out which Linux kernel version the Jenkins node is running on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MnTdyNWTYuazs4xtk38tGA.png" /><figcaption>Changing MakeFile</figcaption></figure><p>Push the pipeline to the repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GnKAWF4gLlsXru103Y-EjA.png" /><figcaption>Push the pipeline to the repo</figcaption></figure><p>One thing I like to add here, is that I always created a new file in the repo. Just changing the Makefile did not give me any changes to commit for some reason.</p><p>Check the console output of the new pipeline build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-sMdJjAIh7PLdPcIuDFLFA.png" /><figcaption>Console output pipeline</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VEIjSA1VvjG3osMmjhqkPw.png" /><figcaption>Answer to Task 1</figcaption></figure><p>And there we have it! The command was executed during the build.</p><h4>Task 2: What value is found from /var/lib/jenkins/secret.key?</h4><p>For task 2 we are doing the same thing, but with a different command!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iKzEFnX2QqLpxWZl7HJdRw.png" /><figcaption>Nano Makefile a 2nd time</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qFzkHqpl1YgEIk1rtoUbHQ.png" /></figure><p>And there is the answer to Task 2!</p><p>Happy Hacking!</p><p><em>💡 If you want to stay updated with what I’m working on. Follow me and Subscribe! 🔔</em></p><p><a href="https://medium.com/@leendertcoenen/subscribe">Medium </a>— <a href="https://www.linkedin.com/in/coenenleendert/">LinkedIn</a> — <a href="https://twitter.com/LeendertCoenen">Twitter </a>— <a href="https://leendert.substack.com/">Substack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb8e1ecbf2cb" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/try-hack-me-advent-of-cyber-2023-day-21-write-up-yule-be-poisoned-a-pipeline-of-insecure-code-bb8e1ecbf2cb">Try Hack me — Advent Of Cyber 2023 Day 21 Write Up — Yule be Poisoned: A Pipeline of Insecure Code!</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>