<?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 0ur1qu3 on Medium]]></title>
        <description><![CDATA[Stories by 0ur1qu3 on Medium]]></description>
        <link>https://medium.com/@joao.e.ourique?source=rss-abaff01478de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zIP2E-MAieBU4P0c9Eox-Q.jpeg</url>
            <title>Stories by 0ur1qu3 on Medium</title>
            <link>https://medium.com/@joao.e.ourique?source=rss-abaff01478de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:15:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joao.e.ourique/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: RootMe Room Writeup]]></title>
            <link>https://medium.com/@joao.e.ourique/tryhackme-rootme-room-writeup-09931af2bdd3?source=rss-abaff01478de------2</link>
            <guid isPermaLink="false">https://medium.com/p/09931af2bdd3</guid>
            <category><![CDATA[capture-the-flag]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme-rootme]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[0ur1qu3]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 23:40:55 GMT</pubDate>
            <atom:updated>2026-08-27T23:40:55.303Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s been a while since my last Medium post — time to get back into the habit. RootMe is a beginner-friendly room, but it covers a classic scenario that’s well worth walking through, regardless of skill level. Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DSGmfCBGK8ocydf7wGnRww.png" /><figcaption>RootMe Room</figcaption></figure><p>The room is available at this link: <a href="https://tryhackme.com/room/rrootme">https://tryhackme.com/room/rrootme</a></p><p>For this walkthrough, I used TryHackMe’s AttackBox. The first step is simply spinning up the AttackBox along with the target lab machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y28sP41vdi_cRTbeB-mfpw.png" /><figcaption>Virtual machines for the challenge</figcaption></figure><h4><strong>Task 2: Reconnaissance</strong></h4><p>The challenges first task is to begin the reconnaissance phase, which includes five questions to answer.</p><p><strong><em>First question: Scan the machine, how many ports are open?</em></strong></p><p>Since this is a fairly open-ended question — “how many ports are open?” — and I’m also working on refining my own CTF workflow, let’s use Nmap, a powerful open-source network scanning and security auditing tool, to scan all ports initially.</p><pre>sudo nmap -p- 10.129.154.145</pre><p>In this command the -p- tells Nmap to scan <strong>all 65,535 TCP ports</strong>, instead of the default behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*2V_UJwtNDzFAfwnFIPGXLA.png" /><figcaption>Two ports are open</figcaption></figure><p>With the scan complete, we have our first answer: <strong>2 open ports</strong>.</p><p><strong><em>Second question: What version of Apache is running?</em></strong></p><p>Continuing with Nmap, let’s now dig deeper into the services running on the identified ports.</p><pre>sudo nmap -sC -sV 10.129.154.145</pre><p>This time we provide the <strong>-sC</strong> and -<strong>sV</strong> parameters to Nmap. The <strong>-sV </strong>parameter instructs Nmap to probe open ports to detect the service and version running on them and <strong>-sC </strong>runs Nmap’s default set of safe scripts (from the Nmap Scripting Engine) against the open ports, pulling extra info like page titles, banners, or common misconfiguration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*D8JUQ54Vvp-PcWRoGVsTTg.png" /><figcaption>Nmap result after the second scan</figcaption></figure><p>After the second second scan is complete, we have our answer: <strong>2.4.41</strong></p><p><strong><em>Third question: What service is running on port 22?</em></strong></p><p>With the previous scan we can immediately answer the question: <strong>ssh</strong></p><p><strong><em>Forth question: Find directories on the web server using the GoBuster tool.</em></strong></p><p>Let’s use GoBuster with one of the wordlists available on the AttackBox and see what results we get. The <strong>-u</strong> parameter specifies the target URL, the <strong>-w</strong> parameter specifies the wordlist we want to use.</p><pre>gobuster dir -u http://10.129.154.145 -w /usr/share/wordlists/dirbuster/directory-list-2.3-small.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*cKd3bqBryr5avW5gHBqCYg.png" /><figcaption>Result of GoBuster enumeration</figcaption></figure><p><strong><em>Fifth question: What is the hidden directory?</em></strong></p><p>Having explored the directories identified by GoBuster, we’re now in a position to answer the question: <strong>/panel</strong></p><h4>Task 3: Getting a shell</h4><p>The task start with the phrase <em>“Find a form to upload and get a reverse shell, and find the flag.”</em></p><p>Let’s start exploring the website a bit further, keeping in mind that it’s likely built using PHP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*ma-QDn-U7KdrA62qaNJ1pg.png" /><figcaption>Exploring the Website</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZt-P5Ld_oQzZZTWKJ_WFg.png" /><figcaption>We find a way to upload files</figcaption></figure><p>So lets try a reverse shell. There is a great online resource called <strong>Pentestmonkey</strong>, <a href="https://github.com/pentestmonkey">https://github.com/pentestmonkey</a>, that I’ve used before for PHP reverse shells.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XGOhAz8vZs1FYdSQa3RAnw.png" /></figure><p>I downloaded the reverse shell script from Pentestmonkey, updated the necessary configuration parameters.</p><p>Before trying to upload any file lets create a Netcat listener on our AttackerMachine</p><pre>nc -lvnp 1234</pre><p>So the parameter mean the following:</p><p>-l -&gt; Listen mode, to wait for a connection to connect to us.<br>-v -&gt; Verbose mode, so that we know when we receive a connection.<br>-n -&gt; Disable DNS resolution and only connect from/to IPs, to speed up the connection.<br>-p 1234 -&gt; Port number netcat is listening on, and the reverse connection should be sent to.</p><p>And now we can attempt to upload the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*fNUVOExqUkD9c8srONV6wQ.png" /></figure><p>Hmm, it looks like PHP file uploads aren’t allowed. I didn’t notice any obvious client-side filtering, so the restriction is likely being enforced server-side.</p><p>Let’s try a different PHP extension, <strong>.phtml.</strong></p><p>I copy the previous file, change the file extension to <strong>.phtml</strong> and try again to upload the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PwQFLPuqj-ENsGeDInsgQ.png" /><figcaption>File uploaded successfully</figcaption></figure><p>Great, we were able to upload the file and we get the link with the location were the file was uploaded to : <a href="http://10.129.154.145/uploads/shell.phtml">http://10.129.154.145/uploads/shell.phtml</a></p><p>We visit the URL and we get a reverse shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eKE4KJwC5kLizVbPNUUe4A.png" /><figcaption>Reverse shell console</figcaption></figure><p>Now we’re in a position to focus on answering the question and retrieving the flag located in <strong>user.txt</strong>, let’s locate the file.</p><pre>find / -name user.txt 2&gt;/dev/null</pre><p>And we get the file location:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*7F9aEqT50Z3eTWqiknHKlQ.png" /><figcaption>Location of the file user.txt</figcaption></figure><p>We now can get the flag, we just need to:</p><pre>cat /var/www/user.txt</pre><h4>Task 4: Privilege escalation</h4><p>In the final task, we need to perform privilege escalation to gain root access. Currently, we’re unable to delete files or access the root directory, which is exactly what privilege escalation will help us overcome. For example, we can’t even change our own password, since that also requires root privileges.</p><p><strong><em>First question: Search for files with SUID permission, which file is weird?</em></strong></p><p>We need to search for files with SUID permission a look for one that is “weird”. We are going to use the command:</p><pre>find / -user root -perm /4000</pre><p>The command searches the entire filesystem for <strong>SUID binaries owned by root</strong>. Breaking it down:</p><ul><li><strong>find /</strong> — start searching from the root directory (/), covering the whole filesystem</li><li><strong>-user root</strong> — only show files owned by the user root</li><li><strong>-perm /4000</strong> — match files that have <strong>any</strong> of the permission bits in 4000 set (the / means &quot;any of these bits,&quot; as opposed to -perm -4000, which would require <em>all</em> specified bits)</li></ul><p>The unusual file I identified is /usr/bin/python. I selected this one because it&#39;s uncommon to find in this location.</p><p>The answer to the question is: <strong>/usr/bin/python</strong></p><p>Since I don’t know the exact exploit for Python off the top of my head, we can turn to <strong>GTFOBins</strong>, (<a href="https://gtfobins.org/">https://gtfobins.org/</a>) a great resource for this exact situation. On the site, we searched for Python under the SUID category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*scNDV2SRcpVVn_2DFh9OKw.png" /><figcaption>GTFOBins site information</figcaption></figure><pre>cd /usr/bin<br>python -c &#39;import os; os.execl(&quot;/bin/sh&quot;, &quot;sh&quot;, &quot;-p&quot;)&#39;</pre><p>And an interactive system shell is spawn, checking if we are root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*hzUUPonKcq3aaOcOGFglGw.png" /><figcaption>Checking if we are root</figcaption></figure><p>With the privilege escalation to root successfully done, lets look for the file:</p><pre>find / -name root.txt</pre><p>And we get the location:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*vgzKfYHNa5g-3MTQIl7cTw.png" /><figcaption>Location of the root.txt file</figcaption></figure><p>Next we just need to read the flag.</p><pre>cat /root/root.txt</pre><p>That wraps up the RootMe room. Starting from an initial Nmap scan, we identified the open ports and enumerated the services running on them, which led us to a web application built with PHP. By bypassing the upload filter using the <strong>.phtml</strong> extension, we gained an initial foothold on the machine. From there, privilege escalation, via a misconfigured SUID binary on Python — allowed us to escalate to root and retrieve the final flag.</p><p>While this room is aimed at beginners, it’s a solid refresher on the core methodology behind most CTF challenges: enumerate, exploit, escalate. Thanks for reading, and see you in the next write-up!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09931af2bdd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe: Missing Person Writeup]]></title>
            <link>https://medium.com/@joao.e.ourique/tryhackme-missing-person-writeup-faa2664e729e?source=rss-abaff01478de------2</link>
            <guid isPermaLink="false">https://medium.com/p/faa2664e729e</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[0ur1qu3]]></dc:creator>
            <pubDate>Tue, 31 Mar 2026 22:25:04 GMT</pubDate>
            <atom:updated>2026-03-31T22:25:04.573Z</atom:updated>
            <content:encoded><![CDATA[<p>For a long time, writing a writeup felt like something I wasn’t quite ready for — a quiet mix of self-doubt and indecision always seemed to get in the way</p><blockquote>OSINT Challenges, at least for me, are always fun challenges to tackle, so without further a due lets dive in.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*7NT8OHdodzCtaSLiDDgDDw.png" /></figure><h3>The mission</h3><p>Room Link: <a href="https://tryhackme.com/room/missingperson">https://tryhackme.com/room/missingperson</a></p><p>Your task is to trace the footsteps of a missing person — a friend who set off on holiday in 2025 and was never heard from again. You’ll be given a zip file containing a handful of photographs, and using OSINT (Open Source Intelligence) techniques, we’ll work through them together to piece together the journey.</p><p>First action is to unzip the file, lets use the command:</p><pre>unzip &lt;filename&gt;.zip</pre><p>After unzipping the folder we get two pictures. Lets start our investigation.</p><p><strong><em>Q: What is the commercial name of this circuit? </em></strong><br>The first image — MotoGP.jpg — immediately reveals a name and a motorcycle, hinting at some kind of Grand Prix event. However, that alone isn’t enough to answer the first question, and since we’re asked for the full commercial name, we’ll need to dig a little deeper. Let’s turn to Google Images and run a reverse image search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8HRfnBluXsW6G-kFlokSQ.png" /></figure><p>And there we have it — Google immediately identifies the circuit and looking at the links we get:<br><em>- </em><strong><em>Pertamina Mandalika International Street Circuit</em></strong><em>.</em></p><p><strong><em>Q: When did the event take place?<br></em></strong>For this question, the answer lies in the metadata. We’ll use <em>exiftool</em> — a command-line utility that reads, writes, and edits metadata embedded inside files — to examine what information the image might hide.</p><pre>exiftool MotoGP.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*AlpYqxhBrkK_PdyS22kxrg.png" /></figure><p>The output provides the data the picture was taken on <em>October 5th 2025</em>. However we asked for the event duration, let´s check the dates on the MotoGP website <a href="https://www.motogp.com/">https://www.motogp.com/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*IXMKbcYpKftErvCGTy90vw.png" /></figure><p>We have the answer.<br><strong><em>- 03–05/10/2025</em></strong></p><p><strong><em>Q: He told me he ate delicious Mexican food. What is the name of the restaurant?<br></em></strong>The second image — food.jpg — presents a clear restaurant atmosphere, so I started examining it more closely. And there it is: the restaurant’s name is visible right on the tables. Still, let’s not jump to conclusions and verify this with a reverse image search on Google Images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*UGRzvh0V227ZmFUNpnfrUw.png" /></figure><p>And we have confirmation on the name<br><strong><em>- Cantina Mexicana</em></strong></p><p><strong><em>Q: At what time was this photo taken?<br></em></strong>Let´s check again the photo metadata with <em>exiftool</em></p><pre>exiftool food.jpg</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*XZ9Da0Y68Idl6KQgjesRnA.png" /></figure><p>The Date/Time Original field provides the answer:<strong><br>- 19:55:30</strong></p><p>Our investigation yields another clue — a message was sent that reads::<br><em>”Went to this cool MotoGP after party, and became friends with one of the local DJs who played that night. We’re going to visit a cave tomorrow.”</em></p><p>Started to going some Google searches related with “<em>Afterparty”, “Indonesia motogp 2025” </em>and on the top of the links got the following Instagram account : <a href="https://www.instagram.com/reel/DOcVqWAEznb/">https://www.instagram.com/reel/DOcVqWAEznb/</a><br>The post reveled the name of the bar, <strong>Surfersbar</strong>.</p><p><strong><em>Q: What is the full address of the bar’s location?<br></em></strong>With the bar’s name confirmed, the next step is straightforward — a quick Google search for its address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*WcQb2CXQOszRPOT43KwyoQ.png" /></figure><p>And on the search results we get the address of the bar.<br>- <strong>Jl. Raya Kuta, Kuta, Kec. Pujut, Kabupaten Lombok Tengah, Nusa Tenggara Bar</strong></p><p><strong><em>Q: What is the DJ’s stage name?<br></em></strong>Cross-referencing the Instagram post, we can make out the DJ lineup for that night. Only one of them is local — which lines up with the clue left in the message.<br><strong>- Bong Leleh</strong></p><p><strong><em>Q: After digging into the DJ’s other online accounts, what cave does he take tourists to?<br></em></strong>The message mentions plans to visit a cave the following day, so the next logical step was asking to chatGPT for caves in the vicinity of the bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*ZD1YOvTshb1KYCxPLTr6Ow.png" /></figure><p>To cross-reference this finding, we turn to Bong Leleh’s online presence — and his Facebook account provides exactly the confirmation we were looking for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OdXoS0H6HOS0WQy2lhIR9w.png" /></figure><p>This provides the final confirmation.<br><strong>- Goa Sumur</strong></p><p><strong><em>Q: What number did the DJ list for his tour business?<br></em></strong>Returning to the Facebook account we uncovered earlier, we’re able to identify the phone number associated with the profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*5AdwT3RMwBCnBnkfuYRkgg.png" /></figure><p>From this information we can answer the final question.<br><strong>- 085333137345</strong></p><h3>Final Thoughts</h3><p>As mentioned at the start, OSINT challenges never get old. What this particular investigation reinforced is just how much information lies in plain sight — a piece of metadata here, a social media post there. Step by step, it was possible to reconstruct the journey of a missing person from almost nothing</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faa2664e729e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>