<?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 Ronnie on Medium]]></title>
        <description><![CDATA[Stories by Ronnie on Medium]]></description>
        <link>https://medium.com/@Artisan73?source=rss-bd8c35a00d20------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SIzeMbo5B1zfXZxK2lvEtg.jpeg</url>
            <title>Stories by Ronnie on Medium</title>
            <link>https://medium.com/@Artisan73?source=rss-bd8c35a00d20------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:22:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Artisan73/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[Facts season 10 | walkthrough]]></title>
            <link>https://medium.com/@Artisan73/facts-season-10-walkthrough-8a1c69c74c8a?source=rss-bd8c35a00d20------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a1c69c74c8a</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[vulnerability-assessment]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Ronnie]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 09:16:22 GMT</pubDate>
            <atom:updated>2026-06-20T09:16:22.654Z</atom:updated>
            <content:encoded><![CDATA[<p>Facts is an easy-difficulty Linux machine from season 10 on HTB that simulates several real-world security misconfigurations and vulnerabilities. The machine provides valuable insight into the methodologies used by penetration testers and threat actors during the attack lifecycle, including enumeration, initial access, privilege escalation, and post-exploitation. Through exploiting these weaknesses, users gain hands-on experience with common attack vectors and learn how seemingly minor misconfigurations can lead to full system compromise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nZr6OSTZE-oLNIfz.png" /><figcaption>Figure 1.0</figcaption></figure><p>So lets kick start with the machine by starting it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5z9EgyzaZ6qhyYn5.png" /><figcaption>Figure 1. 1</figcaption></figure><p>We will begin with mapping and see open ports on this machine with tools like nmap or rustscan.</p><pre>nmap -sC -sV 10.129.23.141</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8Asimmq_nXvio51X.png" /><figcaption>Fiigure 1.2</figcaption></figure><p>So with this we see that there is a protocol “<strong>http” </strong>and it has a redirect to <a href="http://facts.htb./"><strong>http://facts.htb</strong></a><strong>. </strong>So with this information we will add our ip address and the domain name to our “/etc/hosts”. And after that we will navigate to the URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xsTqYEjUz7cUTcLF.png" /><figcaption>Figure 1.3</figcaption></figure><p>This definitely confirms that there is a website. So lets do directlory bruteforcing and see if we can find any directories with tools like gobuster and ffuf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ybuYCRKYnVHJzlOx.png" /><figcaption>Figure 1.4</figcaption></figure><p>After using <strong>gobuster </strong>for directory traversal we find that there is a directory <strong>“/admin” </strong>so lets navigate to it and we see how it goes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*xFAqVggu15dr4zmp.png" /><figcaption>Figure 1.5</figcaption></figure><p>Well we see that we land on a login page and good thing is we can create an account. So lets create an account and we see.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FlV67pqA14r85O-_.png" /><figcaption>Figure 1.6</figcaption></figure><p>After registering and logging in we see nothing but on the footer we get a hint that we are dealing with a “<strong>CMS</strong>” called <strong>“Camaleon”. </strong>After doing some research we find that Camaleon has a vulnerability “<a href="https://www.cve.org/CVERecord?id=CVE-2025-2304">CVE-2025–2304</a>” and this vulnerability helps a user to elevate there privileges to “<strong>administrator</strong>”.</p><p>After downloading an exploit and running it with the credentials of the account we created early we see that our previously created account with <strong>“Client” </strong>privileges is now upgraded to “<strong>Admin</strong>” privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/0*xlxgLL9IPSwiaJv-.png" /><figcaption>Figure 1.7</figcaption></figure><p>Now lets log back in to the website with our credential since they now authenticate us to an admin dashboard.</p><p>After long hours of looking through the site and rabbit holes here and there we land on this page with some fatty information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*puMGtAP4eb_GJaCV.png" /><figcaption>Figure 1.8</figcaption></figure><p>What could this information lead it to??? Well we find out that facts was hosted on <a href="https://en.wikipedia.org/wiki/Amazon_Web_Services"><strong>AWS</strong></a> and this is the information we can use to connect to the <a href="https://en.wikipedia.org/wiki/Amazon_S3">s3 bucket</a>. To learn how to exploit web applications hosted to AWS I recommend doing a starting point machine called <a href="https://app.hackthebox.com/machines/Three"><strong><em>Three</em></strong></a><strong><em>.</em></strong></p><p>Lets continue. So we will first configure our aws-cli with the information from the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OMp1rO5C5YFrVBTq.png" /><figcaption>Figure 1.9</figcaption></figure><p>After configuring can we list the information in the bucket??? Lets try and see on the endpoint we had from the webapp.</p><pre>aws s3 ls --endpoint http://facts.htb:54321</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/0*pxE_aw0WwoBHAkBa.png" /><figcaption>Figure 2.0</figcaption></figure><p>After running the command it lists two directories and lets try and see if we can get some valuable information from these. And lets first try “<strong>internal</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/0*uwhtaEb6-cluXjOL.png" /><figcaption>Figure 2.1</figcaption></figure><p>On listing we see that there are other directories and if check and see if we can get some information from “<strong>/.ssh/</strong>” folder we see a private file and lets download it and we see what we can get from it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q5v4F43K0JrAr8eS.png" /><figcaption>Figure 2.2</figcaption></figure><p>Having downloaded our file lets give it read and write permissions (600) and use keygen to get more information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zvzx9LVz3JesXFPl.png" /><figcaption>Figure 2.3</figcaption></figure><p>On running the command it asks for the passphrase which we dont know.</p><p>So lets see if we can use john to bruteforce it and enter the passphrase. We we use</p><pre>ssh2john id_rsa &gt; hash.txt</pre><p>And this is the file we will use to crack the passphrase to our id_rsa with john the ripper and a <strong>rockyou</strong> wordlist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gOCGwdlTw24s3FS3.png" /><figcaption>Figure 2.4</figcaption></figure><p>Having gotten the passphrase can we stick to our mission and check the public key???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XoioUF-ceEAouylY.png" /><figcaption>Figure 2.5</figcaption></figure><p>We find that there is a user <strong>trivia</strong> so lets use this ssh key and the username plus the passphrase to connect to the target system with trivia’s ssh key. And guess what! WE ARE IN</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/0*2w8rys5vWxvWZu0O.png" /><figcaption>Figure 2.6</figcaption></figure><p>So its time to hunt for the user flag and on list in the directories of Trivia there is nothing. Can check and see if there is another user on the system??? Yes, could they be having the flag??? Lets find out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nsMoNup5Dc8cvv5N.png" /><figcaption>Figure 2.7</figcaption></figure><p>BINGOOOOOO!!!!! We have gotten our first user flag. So lets hunt for the root flag now. This needs us to elevate our privileges to become admin. But how are we gonna do that. Lets first run</p><pre>sudo -l</pre><p>And and see what information it gives us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V7FXR7s8huTKGCW-.png" /><figcaption>Figure 2.8</figcaption></figure><p>We see in the information that there is a binary called “<strong>facter</strong>”. What could it be??? <strong>Facter</strong> is a system information gathering utility from the Puppet ecosystem. It collects details about a host, including the operating system, hardware specifications, and network configuration. In addition to built-in facts, Facter supports custom facts written in Ruby. Because these custom facts are executed as Ruby code, any instance of Facter running with elevated privileges and capable of loading arbitrary Ruby code can provide a straightforward path to privilege escalation. A review of <a href="https://gtfobins.github.io/?utm_source=chatgpt.com"><strong>GTFOBins</strong></a> shows that Facter has a documented privilege escalation technique.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QPhm7bIepQCu66ps.png" /><figcaption>Figure 2.9</figcaption></figure><p>Lets goo. The GTFOBins privilege escalation method for Facter depends on the <strong>FACTERLIB</strong> environment variable to load arbitrary Ruby-based custom facts. However, because sudo is configured with <strong>env_reset</strong> and <strong>FACTERLIB</strong> is not whitelisted, the variable is stripped when the command is executed with sudo privileges, rendering this technique ineffective in its default form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZQDGuBmk-555lVn8.png" /><figcaption>Figure 3.0</figcaption></figure><p>GREAT. So lets cat the /root/root.txt to get the root flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R3GEVjNi0XB-81ga.png" /><figcaption>Figure 3.1</figcaption></figure><p>BINGOOOOO!!!!!!!!!!!!!, and here we get our root flag.</p><h3>VULNERABILITIES</h3><ul><li>Authentication Flaw (CVE-2025–2304)</li><li>S3 misconfiguration</li><li>Private SSH key exposure</li><li>Weak SSH key Passphrase(Bruteforceable)</li><li>Privilege escalation via Facter</li></ul><p>#Happy Hacking</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a1c69c74c8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DEEP ROOT H4K-IT Writeup]]></title>
            <link>https://medium.com/@Artisan73/deep-root-h4k-it-writeup-819d03b8ec28?source=rss-bd8c35a00d20------2</link>
            <guid isPermaLink="false">https://medium.com/p/819d03b8ec28</guid>
            <category><![CDATA[digital-forensics]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Ronnie]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 03:13:58 GMT</pubDate>
            <atom:updated>2026-04-30T07:16:54.871Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMNeY84s-P7JWbWSJ4ug6Q.png" /><figcaption>Compromised server</figcaption></figure><p>Deep root is a challenge on h4k-it that is categorised under “IncidentResponse”. <a href="https://www.ibm.com/think/topics/incident-response#:~:text=Incident%20response%20(sometimes%20called%20cybersecurity,cyberthreats%2C%20security%20breaches%20or%20cyberattacks.">Incident Response(IR) </a>is a structured, systematic approach an organisation takes to detect, contain, eradicate and recover from cyber incidents. So as the incident responders this time round lets see what will recover this time round.</p><p>Lets get started with our challenge by reading the description.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*PjkUs8utyPlDj7qsT6tlng.png" /><figcaption>Description</figcaption></figure><p>Lets open the website that i provided and see what we need to recover.</p><p>On opening the website it shows us that Umoja microfinance website was hacked and defaced by the hackers called <strong><em>“shadow unit 9”.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGLAmUMFTL6TMqP9WvJVyQ.png" /><figcaption>Defaced website</figcaption></figure><p>Where can we start from??? Can we check the source code???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LB29aqHO6LggymQuHRUIxg.png" /><figcaption>Source code</figcaption></figure><p>Nothing much is there apart from links that lead us to no where other than a 404 page.</p><blockquote>Its a good practice to check if any site has a <strong>robots.txt </strong>file before we can start doing a bruteforce on the site directories…</blockquote><p>So can we check if our site has the robots.txt file???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*LsdCqWoLISMm9NIvuKjfdQ.png" /><figcaption>robots.txt</figcaption></figure><p>Luckily we find something important the two something fishy which is internal and files… Can we traverse to the “/<strong>internal/” </strong>to see what it contains???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZADsBym6YtgheYIXnIthbQ.png" /><figcaption>/internal</figcaption></figure><p>Well it shows us another page of Umoja.. So can we also check out its source code to see how it works or see if we can find something important???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*Dh75-YRy-uiAFFXuCd3Tuw.png" /><figcaption>Comments</figcaption></figure><p>Well we see something commented out… What could it be???</p><pre>&lt;! - cache_ref: .sys_update_cache → <br>&lt;! - module_ver: 1.4 →</pre><p>On taking a deeper look on this comment we realise that <strong><em>“.sys_update_cache” </em></strong>is actually a file. So how can we access it???</p><p>Remember in our robots file we had found two directories and <strong>“/files”</strong> was also among. So can we access it???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kn5FRjbImBHdBxLpCT5G8w.png" /><figcaption>Bad request</figcaption></figure><p>It displays a bad request but remember 400 which is bad request is different from 404 which is page not found. Are we missing something in the URL??? Lets see… could we edit the URL adding the file we got from the source code???</p><pre>http://209.38.92.205:33307/files?name=.sys_update_cache</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2gtWnjGzDFEBaI7Ria5hAA.png" /><figcaption>Python code</figcaption></figure><p>Well its like we have landed on a python script and you can copy it and paste in any preferred IDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*CALFPSxuFt1t3_V9kTTR_w.png" /><figcaption>Py code</figcaption></figure><p>On reading and understanding the code we find that the build_rev variable that has to decode is missing but we had seen it in the <strong>“/internal” </strong>source code so we will go and copy and paste it in our python script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*UJqLGtHLgPqBLpegGJJFKw.png" /></figure><p>We uncomment the line of build_rev and the line of decoded then we print the decoded variable to see its output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UkrpMMm-CZ54jMhqx-NHgA.png" /><figcaption>flag</figcaption></figure><p>Hoooraayy!!!! We can see our flag in auth_key so this is the one we can submit.</p><p>But if you go deep in reading the whole code and you realise its a reverse shell and the its connected to a <strong>c2_host</strong> which is “https://185.220.101.45”. So we can use this information for further investigations if it was an incident.</p><p>#Happy hacking</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=819d03b8ec28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MIGRATION UCC CYBER STARS 3rd EDITION]]></title>
            <link>https://medium.com/@Artisan73/migration-ucc-cyber-stars-3rd-edition-22b6ca429fc1?source=rss-bd8c35a00d20------2</link>
            <guid isPermaLink="false">https://medium.com/p/22b6ca429fc1</guid>
            <category><![CDATA[ucc]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ug-cert]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[uguntu]]></category>
            <dc:creator><![CDATA[Ronnie]]></dc:creator>
            <pubDate>Thu, 30 Oct 2025 08:08:51 GMT</pubDate>
            <atom:updated>2025-11-24T09:54:35.796Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>MIGRATION UCC CYBER STARS 3rd EDITION</blockquote><p>Migration was one of the challenges in the web security challenges in the UCC cyberstars 3rd semi finals competition.</p><p>Thanks to <strong>UCC</strong> and <strong>Ug-CERT</strong> for the opportunity to learn and practice our cyber security skills in safe environments.</p><p>Lets get started on the challenge by reading the description.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*_u8kh5HOEkP8NSa_5DCqfw.png" /><figcaption>Migration</figcaption></figure><p>On clicking the url it led me to a web page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r5mJpxzKTbePpRA4VJJXcg.png" /><figcaption>Web page</figcaption></figure><blockquote>After visiting the URL the web page was asking for url. What could the url be??? Can we try http://google.com???</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*z4MgDQvKQOkEsRsUDzPc8Q.png" /><figcaption>Access denied</figcaption></figure><p>This probably show a common vulnerability called Server Side Request Forgery(SSRF). What could it be???</p><p>According to <a href="https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29/"><strong>owasp top 10</strong></a> an <strong>SSRF</strong> is flaw that occurs whenever a web application is fetching a remote resource without validating the user-supplied url.</p><p>If you are dealing with a web application that is vulnerable to this vulnerability its a best practice to start with local host IP address<strong>(127.0.0.1)</strong>.</p><p>Lets try that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-t4l7kRXH90GTNzMtT5qQ.png" /><figcaption>Local host</figcaption></figure><p>On typing the local host it also displayed a message that said <strong><em>Access Denied! URL is not in white list</em></strong>. This basically means that there is a specific url that was whitelisted by the firewall and that urls we are typing are blacklisted.</p><p>Does that mean we should give up??? No We should dig to find the whitelisted URLs but yes earlier I had given up.</p><p>On using google to search about the payloads to bypass the firewall to exploit an SSRF I found many encoded urls that didnt work and they were displaying <strong>Access Denied </strong>for me until i found an ip (169.254.169.254). On testing it guess what??? It brought something different compared to the IPs I was using before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*6vBULFNDMduGTOfXl5Gr8g.png" /><figcaption>comp</figcaption></figure><p>This is promising since we are not getting the denied message anymore but we are missing the comp. What does that mean??? Are we missing something in our payload???</p><p>On doing more research I found the directories “/latest/meta-data/”. Lets add it on our payload and see what it gives us.</p><p>So we type the following in our input parameter.</p><pre>http://169.254.169.254/latest/meta-data/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8yzQa4YN4bvCUkYqCqrQGQ.png" /><figcaption>payload</figcaption></figure><p>Upon clicking the fetch button looks like there is a directory “<strong><em>iam/” </em></strong>if we also add it to our payload to see what it gives us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*OXp28BV2Rq6yG0czbHON8g.png" /><figcaption>folder</figcaption></figure><p>On entering the security-credentials path too we find a <strong>user “mock-role” </strong>and on adding it to the payload too guess what??? we get alot of information and bingooooo there is the flag too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cru8evDzZHWlMKEH32iRZA.png" /></figure><p>Happy hacking!!!!</p><p>Author: MAGEMBE RONALD</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22b6ca429fc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RootMe | THM writeup]]></title>
            <link>https://medium.com/@Artisan73/rootme-thm-writeup-77c64c0ebb09?source=rss-bd8c35a00d20------2</link>
            <guid isPermaLink="false">https://medium.com/p/77c64c0ebb09</guid>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Ronnie]]></dc:creator>
            <pubDate>Tue, 10 Dec 2024 21:29:27 GMT</pubDate>
            <atom:updated>2024-12-10T21:29:27.407Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>RootMe a CTF for beginners, can you root me???</blockquote><p>RootMe is a Try Hack Me room that focuses on web exploitation. How to compromise a web server.</p><h4>Lets get started.</h4><blockquote>Start the room machine and perform an nmap scan on the target machine with “nmap &lt;target machine&gt;”.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*g3nsRZMA1yH70gPjQsSPdA.png" /><figcaption>nmap 10.10.127.38</figcaption></figure><p>We see that there are only 2 open ports SSH on port 22 and http on port 80. Having gotten the good news that our target machine is having the open ports we can paste the ip address in the browser on http port to see what really is there.</p><p>We can further check if get more information on our target machine by running a command.</p><pre>nmap 10.10.127.38 -A -sC -p- </pre><p>So there is a website on port 80</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7zeyY4KFPaWjHwa2XGl4w.png" /><figcaption>root me</figcaption></figure><p>Haha, trying to mock us to see if we can hack into the server and get the root priviledges. SO since we now know that there is a website we can use gobuster of dirbuster to check the directories that this website has.</p><pre>gobuster dir -u &quot;http://10.10.127.38&quot; -w /usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt</pre><h3>Lets break it down;</h3><blockquote><strong>gobuster</strong>: Is a tool that is used to bruteforce directories and files of a website.</blockquote><blockquote><strong>dir</strong>: Tells the tool to find all the directories that can immediately go after our target ip.</blockquote><blockquote><strong>-u</strong>: Tells the tool that “This is the website url am bruteforcing”.</blockquote><blockquote><strong>w</strong>: Means wordlist in this case which is “/usr/share/wordlists/dirbuster/directory-list-lowercase-2.3-medium.txt”.</blockquote><p>After the bruteforce we see something interesting. We are seeing directories where there is an uploads and panel directory and this looks to be interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*8slOWR5iEKuqRYeAZxCwCw.png" /><figcaption>gobuster</figcaption></figure><p>In the browser we navigate to where there is panel and we see whats there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yisGlA0wM0tECw9aw06Jtw.png" /><figcaption>panel</figcaption></figure><p>Looks like we got where we can upload our reverse shell code from the <strong>/panel</strong> and the <strong>/uploads</strong> for viewing what we have uploaded.</p><p>On uploading a .php reverse shell file we see that its not allowed so we will try changing the file extension to be .phtml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rC0b3_pRjH99G_FaTzcPXg.png" /><figcaption>shell.php</figcaption></figure><p>And we see that a .phtml file is uploaded. This means that the website was sanitised only to reject php files.</p><p>So we check the /uploads folder to see if our file is uploaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uYcdzGHl87JmhZGG28AsZw.png" /></figure><p>Indeed its uploaded and the next step is to set up our netcat listener to listen.</p><pre>nc -lvnp &lt;port number we set&gt;</pre><p>And after that we click on the uploaded file to get a connection.</p><p>Guess what!!!! We are in the server… And we are remaining with privilege escalation to full gain access to the web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*72xOyMTTVHgBzDWCwTzR8A.png" /></figure><p>For privilege escalation we type;</p><pre>find / -user root -perm /4000</pre><p>And we see a /usr/bin/python file that we can use to escalate our privileges. We will use python to read a file in the root folder of the machine which is root/root.txt with the code below.</p><pre>python -c &#39;print(open(&quot;file_to_read&quot;).read())&#39;</pre><p>Thanks for reading</p><p>#Artisan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77c64c0ebb09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Invaded | UCC Cyber Grill 2024 CTF Writeup]]></title>
            <link>https://medium.com/@Artisan73/invaded-ucc-cyber-grill-2024-ctf-writeup-47235420b685?source=rss-bd8c35a00d20------2</link>
            <guid isPermaLink="false">https://medium.com/p/47235420b685</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ucc]]></category>
            <category><![CDATA[ug-cert]]></category>
            <category><![CDATA[forensics]]></category>
            <dc:creator><![CDATA[Ronnie]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 20:20:26 GMT</pubDate>
            <atom:updated>2024-11-21T20:20:26.952Z</atom:updated>
            <content:encoded><![CDATA[<p>Invaded was a room under forensics challenges that required one to know more about networking skills. What does that supposed to mean?</p><p>First things first, I take this opportunity to thank UCC and uguntu plus ug-cert for these CTF challenges to practice and also the author Mr Alfred.</p><p>So with invaded it needed someone to understand well the protocols in order to complete this challenge.</p><blockquote>As it is supposed to be we have to first read the instructions given to us. So what are the instructions?</blockquote><figure><img alt="invaded" src="https://cdn-images-1.medium.com/max/509/1*k-fGQJ1QIX6pNmL5CCF2GA.png" /></figure><blockquote>We see that its a “company or an organisation” where they set up an <a href="https://en.wikipedia.org/wiki/Active_Directory">active directory</a> on the server. Find more info about active directory <a href="https://en.wikipedia.org/wiki/Active_Directory">here</a>, and it shows that the hackers have hacked into the active directory and they have added a user to work for privilege escalation. Find more info about privilege escalation <a href="https://en.wikipedia.org/wiki/Privilege_escalation">here</a>.</blockquote><p>During all this the traffic was captured and the challenge asks us to get the <strong>username</strong> and the <strong>password</strong> that was entered by the user during this privilege escalation.</p><p>So we will download the file <strong>(rogue_user.pcap)</strong> and open it with wireshark(a tool used to analyse traffic on a network).</p><p>On the opening the file we see this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUkvL8URRCdj_GcPFVbhqw.png" /></figure><p>We will then filter out <strong>TCP(Transmission Control Protocol)</strong> packets since with TCP its requires a <strong>handshake</strong> and for the hacker/attacker to get access to the target machine a handshake was supposed to be done to interactive with the server that has the Active Directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rPwVTv3BlaFj8NuGsvjHA.png" /><figcaption>These are the filtered tcp packets.</figcaption></figure><blockquote>What else do we have to do?</blockquote><p>We will look at the TCP packets that have <strong>flag [PSH, ACK]</strong>. What does that mean? The [PSH] flag indicates that there was data that was pushed to the receiving application and the [ACK] flag is for acknolegement. So These are the flags we will follow.</p><p>What we will do is:</p><blockquote>Right click on the packet &gt; Select follow &gt; Choose TCP stream</blockquote><p>What do we have?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m2nPwW_4NSgp9kzhEV77Rw.png" /><figcaption>Packet analysis is Fun!</figcaption></figure><p>Wrong packet. I did the same thing all away to packet number 40 and guess what, i think there is something fishy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H9wn8zVG2P2YuO7aQPeIRw.png" /><figcaption>Packet 40</figcaption></figure><p>These look like the commands the hacker entered plus the response. We can proceed by scrolling down to see more commands that the attacker entered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1H1UwHSbqdan7VNYSdtrCg.png" /></figure><h3>Hooraayyyyy!!!!!!!, We see the command adduser marcelle and the password as password</h3><p>So following the instructions the flag is supposed to be in a format UCC{marcelle:password}.</p><p>#Happy hacking</p><p>#Artisan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47235420b685" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sharks | UCC Cyber Drill 2024 CTF writeup by Artisan]]></title>
            <link>https://medium.com/@Artisan73/sharks-ucc-cyber-drill-2024-ctf-writeup-by-artisan-638417561e61?source=rss-bd8c35a00d20------2</link>
            <guid isPermaLink="false">https://medium.com/p/638417561e61</guid>
            <category><![CDATA[ucc]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[uguntu]]></category>
            <dc:creator><![CDATA[Ronnie]]></dc:creator>
            <pubDate>Tue, 19 Nov 2024 06:27:18 GMT</pubDate>
            <atom:updated>2024-11-19T06:27:18.354Z</atom:updated>
            <content:encoded><![CDATA[<p>It all started by clicking the challenge “Sharks” that was under <a href="https://en.wikipedia.org/wiki/Forensic_science">forensics</a> challenges. So what do we have???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*eZO68WMUqRLDleLYB18x4Q.png" /></figure><p>On reading it shows that there is an insecure protocol <a href="https://en.wikipedia.org/wiki/HTTP">HTTP</a> on a certain website (the .pcapng we have)that can enable a hacker sniff the network and get the credentials of a user. Since we have the file we will use wireshark for this forensics analysing.</p><blockquote>So on opening the file with wireshark we will ignore the other <a href="https://en.wikipedia.org/wiki/Network_packet">packets</a> since they land us to a dead end and we only look at HTTP packets.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K0_QozS7wTTVpARA5PnraQ.png" /></figure><p>Here we see some HTTP packets and one packet is the one that has our username and the password.</p><blockquote>How do we tell that its the one???</blockquote><p>There are two common HTTP requests and that is GET and POST requests, where POST is a request that is used to send data to the server. So hope you know now where to focus.</p><blockquote>This is where things get interesting. Its time now to look for where we can get the credentials that the user entered and where captured.</blockquote><p>What we will do is we will filter out all the HTTP requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KjYUH-tU48tvsG5lxxkjhw.png" /></figure><p>And here we see a request an HTTP request with POST. Guess what??? This is the one that has what we are looking for (Username and Password).</p><p>We click it and we get results like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JE155Nj2gz2ZvfqDoykTpA.png" /></figure><p>We will scroll down and we see something like “HTML Form URL Encoded” with a dropdown.</p><p>So we expand it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_nZwYB-Non4pHoTAhj9NRA.png" /></figure><p>BINGOOO!!!!!!!!. There is the flag. The username “Joel” and the flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gLTIL-pVIdeWoLY_1nwLrg.png" /></figure><p>So we copy that flag and paste in the UCC Cyber Drill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*K3B1wWZVcU40-XY4qxtpGw.png" /></figure><p>Thanks to UCC and Uguntu plus the Author of the challenge Mr Joel</p><p>#Artisan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=638417561e61" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>