<?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 Hamza Haroon on Medium]]></title>
        <description><![CDATA[Stories by Hamza Haroon on Medium]]></description>
        <link>https://medium.com/@hamzaharooon?source=rss-cb2046ea66cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gGZRCEgmz05wV0HPEcIo3Q.jpeg</url>
            <title>Stories by Hamza Haroon on Medium</title>
            <link>https://medium.com/@hamzaharooon?source=rss-cb2046ea66cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:16:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hamzaharooon/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[MultiVerse — Forensics | BlackHat MEA Quals 2025]]></title>
            <link>https://hamzaharooon.medium.com/multiverse-forensics-blackhat-mea-quals-2025-d6b2632195a9?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6b2632195a9</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Sat, 13 Sep 2025 09:50:01 GMT</pubDate>
            <atom:updated>2025-09-13T09:51:44.920Z</atom:updated>
            <content:encoded><![CDATA[<h3>MultiVerse — Forensics — BlackHat MEA CTF Quals 2025</h3><p>This is a Velociraptor forensic collection from a Windows 11 machine named “jsmith”. Velociraptor collected KAPE triage artifacts including SANS triage, server triage, antivirus data, and cloud storage metadata — totaling 1,997 files</p><p>We simply open the folder within Autopsy for easy analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*vhngG56Ck0eRf-EkPWJbJA.png" /></figure><p>🎯 Key Observations:</p><ul><li>Multiple user accounts: jsmith, jwilliams, lgarcia, mjohnson, pbrown, rjones</li><li>ZeroTier.lnk found — This is a network virtualization/VPN tool that could be the threat actor’s persistence mechanism</li><li>Rich forensic artifacts: NTFS metadata ($MFT, USN Journal), Windows Event Logs (178 .evtx files), Prefetch files (290), Registry hives</li></ul><p>Within $MFT file we find credentials for rclone which is a command-line program to sync files and directories to and from different cloud storage providers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9914aBzWHlD-urnDDYBLw.png" /></figure><pre>rclone.conf0<br>RCLONE~1.CON<br>[rreemote]<br>type = mega<br>user = <br>cattheflag@gmail.com<br>pass = T2u5o4B6v95bquKOOl1ukRuEXNlnQg5wXR0ZDENhTLPpbITFV4BgAHV0Kdb3iFLS1bm5VgAnD0j0Cuoej_TA</pre><p>Used this to create a rclone.conf locally and used rclone docker.</p><pre>docker pull rclone/rclone<br>docker run -it --rm -v ~/.config/rclone:/tmp/ rclone/rclone --config=/tmp/rclone.conf<br>docker run -it --rm \\n  -v ~/.config/rclone:/config \\n  rclone/rclone --config=/config/rclone.conf ls rreemote:</pre><p>We had a zip file named bhmea2025/ZXk6IEJIRmxhZ1kxMjMKdWM4N1N1aHNYZEtNZ1J4TGxUaWxl.zip</p><p>Decoding this brings us to</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C2-njnICH4b2FpZpy1M9cA.png" /></figure><p>Unzipping we had these files within Corporate\Users\pbrown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z-0kwjeFGq-j-EvV7rKY2A.png" /></figure><p>The word file contained the following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wducHNHs_4N4Ia9Kq6i8Qw.png" /></figure><pre>MSt6cWlSVU9veHoyOEdoWndmby9ycEI4OEl0NDMrWTdDdz0=</pre><p>The folder name decoded to the following</p><p>MS4gRGVjb2RlIEJhc2U2NAoyLiBEZWNyeXB0IFJDNAoJLSBL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ySclBYQjDxes5fBQtpPMRw.png" /></figure><p>Combining MS4gRGVjb2RlIEJhc2U2NAoyLiBEZWNyeXB0IFJDNAoJLSBL and ZXk6IEJIRmxhZ1kxMjMKdWM4N1N1aHNYZEtNZ1J4TGxUaWxl gave us</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Nzvo9VfIcoPYK7kCJfXoA.png" /></figure><p>Now using BHFlagY123 as key for RC4, this is the final solution to get the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ywwM4V0gkLn3DoVWYI98QA.png" /></figure><p>You can see the exact Cyberchef combination at below link..</p><p><a href="https://gchq.github.io/CyberChef/#recipe=From_Base64(&#39;A-Za-z0-9%2B/%3D&#39;,true,false/disabled)RC4(%7B&#39;option&#39;:&#39;UTF8&#39;,&#39;string&#39;:&#39;BHFlagY123&#39;%7D,&#39;Base64&#39;,&#39;Latin1&#39;)&amp;input=dWM4N1N1aHNYZEtNZ1J4TGxUaWxlMSt6cWlSVU9veHoyOEdoWndmby9ycEI4OEl0NDMrWTdDdz0&amp;oeol=FF">CyberChef</a></p><p>It was very tricky and guessy at some point too. Although I was the 14th solve to this challenge. Later on it was leaked within some online circle which was disappointing but thanks to BlackHat team which took a timely action and banned most of the teams found in flag sharing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6b2632195a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artifact — BlackHat MEA 24 Qualifications Forensics Writeup]]></title>
            <link>https://hamzaharooon.medium.com/artifact-blackhat-mea-24-qualifications-forensics-writeup-d5b096cc519f?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5b096cc519f</guid>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[blackhat]]></category>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Mon, 28 Oct 2024 07:11:20 GMT</pubDate>
            <atom:updated>2024-10-28T07:11:20.510Z</atom:updated>
            <content:encoded><![CDATA[<h3>Artifact — BlackHat MEA 24 Qualifications Forensics Writeup</h3><h3>Artifact (Easy — 90pts)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-LSdyPdBmtZ2BPaw.png" /></figure><p>The challenge provided a Registry Hive file renamed as “execution” (which can be identified as the SYSTEM hive). You can open it using Registry Explorer from Eric Zimmerman’s toolset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*luoyy8wuxNuWYKGTDcwRTg.png" /></figure><p>Since the question focuses on “the executable” related to impersonation tools, we can examine relevant registry entries like “AppCompatCache” located under:</p><pre>HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCache\AppCompatCache</pre><p>Here, you’ll find the following entries at the beginning:</p><pre>Cache Entry Position    Program Name    Modified Time<br>0   C:\Users\Labib\Desktop\AmcacheParser\8bKpGWGh.exe   2024-08-09 23:05:18<br>1   C:\Users\Labib\Desktop\AmcacheParser\DeadPotato-NET4.exe    2024-08-09 22:42:13<br>2   C:\Users\Labib\Desktop\AmcacheParser\AmcacheParser.exe  2023-05-21 18:49:06<br>3   SIGN.MEDIA=2715636E DeadPotato-NET4.exe 2024-08-09 22:42:13<br>4   SIGN.MEDIA=BD586BEC DeadPotato-NET4.exe 2024-08-09 22:42:13<br>5   C:\Users\Labib\Desktop\DeadPotato-NET4.exe  2024-08-09 22:42:13</pre><p>From here, you can search online for “DeadPotato” and find that it’s a Windows privilege escalation tool that exploits the SeImpersonate privilege to gain SYSTEM-level access.</p><p>Therefore, the flag would be:</p><pre>BHFlagY{DeadPotato-NET4.exe_09/08/2024_22:42:13}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9xBeMStU5sK2u2Yh.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5b096cc519f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TTTCCCPPP — Network Forens — AirTech 2024]]></title>
            <link>https://hamzaharooon.medium.com/tttcccppp-network-forens-airtech-2024-fceee24fed87?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fceee24fed87</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 07:21:01 GMT</pubDate>
            <atom:updated>2024-03-03T07:21:01.538Z</atom:updated>
            <content:encoded><![CDATA[<h3>TTTCCCPPP — Network Forensics — AirTech 2024</h3><h3>Description:</h3><p>captured some reliable network traffic.</p><p>Hint: why would someone send data in the first part of the TCP handshake</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*gIuMfbXf6KJJonta0PlH7Q.png" /></figure><h3>Solution</h3><p>Visualizing the file in Wireshark gave me lots of TCP traffic and considering the hint of the challenge gave me an idea to check the TCP traffic. This can be achieved using filter expressions in tools like Wireshark or tcpdump.</p><p>One such filter expression is:</p><pre>tcp.flags.syn==1 &amp;&amp; tcp.flags.ack ==0</pre><p>This filters serves to identify packets involved in the initial step of a TCP three-way handshake. Let’s break down the components:</p><ul><li>tcp.flags.syn==1: This segment ensures that the TCP SYN flag is set to 1. In TCP communication, the SYN (synchronize) flag is employed by the initiating party to establish a connection with the receiving party.</li><li>&amp;&amp;: The logical AND operator connects the two conditions. Both conditions must be satisfied for the filter to match.</li><li>tcp.flags.ack == 0: This portion verifies that the TCP ACK (acknowledgment) flag is set to 0. In TCP, the ACK flag is used to acknowledge received packets. A value of 0 indicates that the acknowledgment for received packets hasn&#39;t been made yet.</li></ul><p>Running the following filter on tshark gives the following output</p><pre>└─$ tshark -r tttcccppp.pcapng -Y &quot;tcp.flags.syn==1 &amp;&amp; tcp.flags.ack==0&quot; -x <br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 fa 10 00 00 fd 03 41 00   ....`. .......A.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 e7 10 00 00 fd 03 54 00   ....`. .......T.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 09 11 00 00 fd 03 32 00   ....`. .......2.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 07 11 00 00 fd 03 34 00   ....`. .......4.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 c0 10 00 00 fd 03 7b 00   ....`. .......{.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 e7 10 00 00 fd 03 54 00   ....`. .......T.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 e7 10 00 00 fd 03 54 00   ....`. .......T.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 e7 10 00 00 fd 03 54 00   ....`. .......T.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 f8 10 00 00 fd 03 43 00   ....`. .......C.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 f8 10 00 00 fd 03 43 00   ....`. .......C.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 f8 10 00 00 fd 03 43 00   ....`. .......C.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 eb 10 00 00 fd 03 50 00   ....`. .......P.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 eb 10 00 00 fd 03 50 00   ....`. .......P.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 eb 10 00 00 fd 03 50 00   ....`. .......P.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 dc 10 00 00 fd 03 5f 00   ....`. ......._.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 0a 11 00 00 fd 03 31 00   ....`. .......1.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 06 11 00 00 fd 03 35 00   ....`. .......5.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 dc 10 00 00 fd 03 5f 00   ....`. ......._.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 e9 10 00 00 fd 03 52 00   ....`. .......R.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 08 11 00 00 fd 03 33 00   ....`. .......3.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 cf 10 00 00 fd 03 6c 00   ....`. .......l.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 d2 10 00 00 fd 03 69 00   ....`. .......i.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 da 10 00 00 fd 03 61 00   ....`. .......a.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 d9 10 00 00 fd 03 62 00   ....`. .......b.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 cf 10 00 00 fd 03 6c 00   ....`. .......l.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 d6 10 00 00 fd 03 65 00   ....`. .......e.<br>0000  02 00 00 00 45 00 00 2c 00 01 00 00 40 06 7c c9   ....E..,....@.|.<br>0010  7f 00 00 01 7f 00 00 01 22 b8 27 0f 00 00 00 00   ........&quot;.&#39;.....<br>0020  00 00 00 00 60 02 20 00 be 10 00 00 fd 03 7d 00   ....`. .......}.</pre><p>Here we can see that the flag is being sent as second-last character in the 0020 coloumn of the output. We can write this down manually or do some tshark magic with awk and get us the flag in one liner.</p><pre>└─$ tshark -r tttcccppp.pcapng -Y &quot;tcp.flags.syn==1 &amp;&amp; tcp.flags.ack==0&quot; -x | awk &#39;/^0020/ {printf substr($0, length($0)-1, 1)}&#39; | tr -d &#39;\n&#39;; echo<br><br>AT24{TTTCCCPPP_15_R3liable}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fceee24fed87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HideOut — Web — AirTech 2024]]></title>
            <link>https://hamzaharooon.medium.com/hideout-web-airtech-2024-53f979c6aada?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/53f979c6aada</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 07:17:42 GMT</pubDate>
            <atom:updated>2024-03-03T07:17:42.060Z</atom:updated>
            <content:encoded><![CDATA[<h3>HideOut — Web — AirTech 2024</h3><h3>Description:</h3><p>Evil-Corp launched their public website for users to access their data. Unfortunately, BANDITS hackers breached the admin account and stole sensitive information.</p><p>Flag Format: AT24{}</p><p>Author: fanimalikhack</p><h3>Solution</h3><p>The main page shows a simple login page where it is asking for some kind of secret password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QzvkDMwV8tUrzewXzz3oEw.png" /></figure><p>Using dirsearch to look for hidden files or folders using dirsearch -u http://ip:port/ I found a file named /index.php.bak which gave the following response when I opened it on browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cLhTz8OhyMIronqUwp445w.png" /></figure><p>Notice how we see php code on the top left of the page. Going to inspect element and looking into the code, we get the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3h4qJf6wy1X71NdKA6TfVg.png" /></figure><pre>&lt;?php<br>include &#39;flag.php&#39;;<br>if($_SERVER[&#39;REQUEST_METHOD&#39;] == &quot;POST&quot;){<br>    $fani = rand();<br>    extract($_POST);<br>    <br>    if($secretpasswd == $fani){<br>        echo(&#39;&lt;h1&gt;&lt;div class=&quot;alert alert-success centered&quot; role=&quot;alert&quot;&gt; Flag: &#39;.$flag.&#39; &lt;/div&gt;&lt;/h1&gt;&#39;);   <br>    }else{<br>        echo(&#39;&lt;h1&gt;&lt;div class=&quot;alert alert-danger centered&quot; role=&quot;alert&quot;&gt;hehehe, wrong Password!&lt;/div&gt;&lt;/h1&gt;&#39;);   <br>    }    <br>die;<br>}<br>?&gt;</pre><p>This script includes a file named “flag.php”, generates a random number using rand(), and then extracts variables from the POST data. If the extracted variable $secretpasswd matches the random number generated ($fani), it seems like it’s attempting to echo some HTML.</p><p>This code contains variable overwrite which is exploitable. In this case, the extract() function is particularly dangerous because it extracts variables from an array (in this case, the $_POST array) into the symbol table of the script. If any of the keys in the $_POST array conflict with existing variables, those variables will be overwritten.</p><p>The get the flag we simply run the following curl command which is explained below.</p><p>curl http://170.187.248.180:3001/ -d &quot;secretpasswd=fani&amp;fani=fani&quot;</p><ul><li>The -d flag is used to specify data to be sent in the HTTP request body. In this case, it’s sending POST data.</li><li>The data provided after the -d flag is in the form of key-value pairs separated by an ampersand (&amp;). Each key-value pair represents a variable and its corresponding value.</li><li>In the exploit -d “secretpasswd=fani&amp;fani=fani”, two variables are being sent: secretpasswd and fani.</li><li>Both variables are assigned the value fani. This is significant because $fani is the random number generated within the PHP script using rand().</li><li>The PHP script then uses extract($_POST) to extract variables from the POST data. Since the POST data includes fani=fani, the variable $fani gets overwritten with the value fani.</li><li>Consequently, when the script checks if $secretpasswd is equal to $fani, it compares the user-provided value of secretpasswd (which is also fani) with the overwritten value of $fani, which is now fani.</li></ul><p>As a result, the condition $secretpasswd == $fani evaluates to true, regardless of what value the user provides for secretpasswd. This allows the exploit to bypass the intended authentication mechanism and echo the flag.</p><p>We simply get our flag :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jqaJXx7e6-b5ZgQESwT6IQ.png" /></figure><p>AT24{so_your_h3r3_w3b_exp00rt}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53f979c6aada" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eCPPTv2 Exam Review (2024)]]></title>
            <link>https://hamzaharooon.medium.com/ecpptv2-exam-review-2024-0a93b7134807?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a93b7134807</guid>
            <category><![CDATA[exam]]></category>
            <category><![CDATA[ecppt]]></category>
            <category><![CDATA[ecpptv2]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Fri, 09 Feb 2024 19:25:53 GMT</pubDate>
            <atom:updated>2024-02-09T19:25:53.069Z</atom:updated>
            <content:encoded><![CDATA[<p>I started my eCPPTv2 exam on February 2nd, 2024 and pwned all the 5 machines on 5th. Submitted my report the next day and received a much awaited email the same day stating:</p><p>Hello Hamza, Congratulations! You are now an eCPPTv2! Your shiny certificate is waiting for you.&quot;</p><h3>Background</h3><p>Preparing for the eLearnSecurity Certified Professional Penetration Tester (eCPPTv2) exam is really important because it’s a big deal in the world of cybersecurity. This certification, offered by INE/eLearnSecurity, is all about testing your skills in things like finding weaknesses in websites, networks, and dealing with security issues.</p><p>The exam itself is hands-on and practical, which means you’ll be doing real tasks to show what you can do. It’s not just about answering questions — you’ll actually be testing out your skills in a simulated environment.</p><p>One important part of the exam is writing up a professional report based on what you find. This is a key skill in the field because you need to be able to communicate your findings clearly. After you submit your report, it usually takes about a month to get your results back.</p><h3>Who Am I?</h3><p>I am an undergraduate student currently starting my 6th semester (as of now) with a little over one year experience in penetration testing. I am a regular CTF player since an year. Other than that, I am Cyber Security Challenge Developer where I develop CTF challenges for Web, Reversing, Forensics and Boot2Root.</p><h3>Why I chose eCPPT without eJPT?</h3><p>I went through eJPT course content and found it to be same as of my knowledge in November, 2023 so I decided to take a leap of faith and prepare myself for a higher cert.</p><h3>Material and Labs</h3><p>I bought just the exam voucher for 400 USD. Since, I didnt have the official course material, I opted for self study focused on the following topics.</p><ul><li>Pivoting (<em>must</em>)</li><li>Port Forwarding</li><li>Enumeration</li><li>Buffer Overflow</li><li>Privilege Escalation</li><li>Proxychains</li><li>Metasploit/Meterpreter</li></ul><h3>Preparation</h3><p>Here are some useful resources that I found during my study which will give you a rough idea about what to do when preparing.</p><h3>Pivoting</h3><p>This is a big portion of the exam. Practice using autoroute / proxychains / port forwarding. Metasploit 6 might give you a tough time due to depreceated scripts and you will have to work your way around it.</p><ul><li><a href="https://tryhackme.com/room/wreath">Wreath</a> on THM</li><li><a href="https://youtu.be/QNoIX1au_CM?si=0aU0FM5TzvB2QcCv">This</a> is a great video tbvh by <a href="https://www.youtube.com/@overgrowncarrot1">OvergrownCarrot1 Hacking</a>, helped me clear most of my concepts</li><li>Practice the <a href="https://tryhackme.com/module/hacking-active-directory">Active Directory Path</a> on TryHackMe</li><li>This is a <a href="https://pentest.blog/explore-hidden-networks-with-double-pivoting/">great article</a> and explains the double pivoting concepts very well.</li><li><a href="https://medium.com/axon-technologies/how-to-implement-pivoting-and-relaying-techniques-using-meterpreter-b6f5ec666795">Pivoting and Relaying Techniques using Meterpreter</a></li></ul><h3>HackTheBox</h3><p>Honestly, just practice Linux/Windows Priv Escalation. After spending some time doing HackTheBox to build a stronger foundation, if you are able to understand and replicate the steps for the Easy/Medium Boxes in HackTheBox, you’re good to go.</p><h3>TryHackMe</h3><p>Do practice the following rooms on THM. They will help you during your exam.</p><ul><li>Wreath</li><li>Internal</li><li>Empline</li><li>ContainMe</li></ul><h3>Buffer Overflow</h3><p>Being average at Buffer Overflows, this was the part I was most scared of but I found it to be the most interesting part of the exam. Follow this checklist when preparing for BOFs since they can get a little tricky.</p><ul><li><a href="https://www.youtube.com/playlist?list=PLLKT__MCUeix3O0DPbmuaRuR_4Hxo4m3G">TCM Buffer Overflow Video</a></li><li><a href="https://tryhackme.com/room/bufferoverflowprep">Tiberius BOF Room</a> on THM</li><li><a href="https://tryhackme.com/room/gatekeeper">Gatekeeper***</a> on THM</li><li><a href="https://tryhackme.com/room/brainpan">Brainpan**</a> on THM</li></ul><h3>Exploit Development</h3><ul><li><a href="https://github.com/Tib3rius/Pentest-Cheatsheets/blob/master/exploits/buffer-overflows.rst">https://github.com/Tib3rius/Pentest-Cheatsheets/blob/master/exploits/buffer-overflows.rst</a></li><li><a href="https://github.com/TheFlash2k/bof-scripts">https://github.com/TheFlash2k/bof-scripts</a></li></ul><h3>Reporting</h3><p>Reporting is a crucial element of the exam. Make sure to take ALOT of screenshots of each step as it will help you redo your exam in case you mess up with the machine and have to reset it. Although there is MORE than enough time for reporting which I think, to be honest should only be a day or two.</p><p>I used <a href="https://github.com/noraj/OSCP-Exam-Report-Template-Markdown">OSCP Template</a> by <a href="https://github.com/noraj">Noraj</a> which takes your Markdown file and converts it to a properly formatted PDF file. I highly recommend using this tool. You can use Notion or Obsidian to make regular notes during your exam.</p><ul><li><a href="https://www.youtube.com/watch?v=NEz4SfjjwvU&amp;list=WL&amp;index=12&amp;ab_channel=ITPro">https://www.youtube.com/watch?v=NEz4SfjjwvU&amp;list=WL&amp;index=12&amp;ab_channel=ITPro</a></li><li><a href="https://www.youtube.com/watch?v=Ohm0LhFFwVA&amp;ab_channel=Conda">https://www.youtube.com/watch?v=Ohm0LhFFwVA&amp;ab_channel=Conda</a></li></ul><h3>Additional Resources</h3><ul><li><a href="https://drive.google.com/file/d/1wC7RMTrWjt74rO8u4X-zM89T_hZzF_A5/edit">eCPPT Field Manual</a>: probably a blessing as it genuinely will help you alot.</li><li><a href="https://www.sans.org/posters/pivot-cheat-sheet/">Pivoting Cheatsheet</a></li><li><a href="https://github.com/thegr1ffyn/Notes/blob/main/Red%20Team%20Notes.md">Red Team Notes</a></li></ul><p>Overall, it was a fun exam. Don&#39;t OVERCOMPLICATE things, take multiple breaks, and enjoy the exams. The VPN connection used OpenVPN and it was very smooth and stable. If you know how to pivot properly and work your way around Windows/Linux boot2root machines then you should have little to no problem doing this exam.</p><p>Lastly some <strong>TIPS:</strong></p><ul><li><strong>Screenshot EVERYTHING</strong>. I mean, everything. Your commands, web pages, scans, any exploit code, etc. It will save you a LOT of time during the report.</li><li><strong>ENUMERATE EVERYTHING</strong>. Check everywhere. Don’t just depend on enumeration scripts, poke around at everything.</li><li>Make sure you take good notes and use a program that you can add screenshots to easily. I used Notion and it was perfect.</li><li>Read over your report like 4–5 times. Make sure you include everything and plus point if you look into the details like formatting, overall look, and presentation, and add diagrams where needed.</li><li>For pivoting, whenever you feel stuck, draw your network and debug how networks talk to each other.</li><li>Remember to sleep and take breaks. Don&#39;t be like me who rooted 4/5 machines in less than 8 hours and got braindrain for the last pivot. Give it your time and enjoy the exam.</li></ul><p>So this was it, gonna start studying for <strong>OSCP</strong> now xD</p><p>Last but not least, here is my shiny certificate ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*l7YDvSORfSfv4jKXUtS-BA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a93b7134807" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ignite National CyberSecurity Hackathon 2023 Finals | Network Security Writeup]]></title>
            <link>https://hamzaharooon.medium.com/ignite-national-cybersecurity-hackathon-2023-finals-network-security-writeup-1cf025328635?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cf025328635</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[malware]]></category>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Fri, 29 Dec 2023 19:41:56 GMT</pubDate>
            <atom:updated>2023-12-29T19:48:26.427Z</atom:updated>
            <content:encoded><![CDATA[<p>There were two challenges named Maltraffic 101 and Maltraffic 102 in the Network Security category.</p><h3>Maltraffic 101 (100 points)</h3><p>We were asked to find the malicious IP, its origin, and the name of the malware.</p><p>I uploaded the .pcap file on Dynamite Lab’s successor to PacketTotal. The file is available to be viewed at the following link:</p><p><a href="https://lab.dynamite.ai/pcaps/7ba4785a-9d0c-4ef1-8d65-9c6defef4901?tab=network">DynamiteLab - A Free Online PCAP File Viewer and Analyzer</a></p><p>This tool makes it very easy to analyze .pcap files although I would recommend not uploading sensitive files as it retains the files in its database and is available to be viewed by anyone over the internet.</p><p>Simply opening the file on the online tool tells us the malicious IP 47.28.203.160 which becomes the first part of our flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4N9kvurKy0bWoYo04h4V5A.png" /></figure><p>Running the IP on location finder tells us the origin as unitedstates</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*o2fMxFZZUaIurKGY3rBVkA.png" /></figure><p>For the final part, analyzing the file on the same tool to look for the Malware shows us the name of the malware as AsyncRAT</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*L1Q6RfdODUPT2kOGsyHsaQ.png" /></figure><p>Final flag</p><p>Flag{47.28.203.160_unitedstates_asyncrat}</p><p>I was the second solve to this challenge.</p><h3>Maltraffic 102 (200 points)</h3><p>I followed the same strategy for this challenge as well. Opened the file on the same tool. You can find the file here:</p><p><a href="https://lab.dynamite.ai/pcaps/eeaea477-5d53-4574-8c94-7731fed8a651?tab=network">DynamiteLab - A Free Online PCAP File Viewer and Analyzer</a></p><p>This time, we were asked to find the malicious IP and the type of malware.</p><p>Following the same strategy we can easily find the malicious IP. After analysis I found this IP to be malicious 86.59.21.38</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yNRtMLkryxirGRbmZKFlug.png" /></figure><p>Upon analysis on VirusTotal.com, I found out that this IP relates to WannaCry which is a popular ransomware malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aswhIGFfZIHQTIIP3nOo6w.png" /></figure><p>This completed the hunt to find the flag and I was able to solve this challenge within 3 minutes along with a first blood.</p><p>Flag{86.59.21.38_ransomware}</p><p>This was an easy way to do PCAP analysis and helped me a lot throughout the event.</p><p>Do give me a follow if you liked the writeup.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cf025328635" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BlackHat MEA CTF Qualifications 2023 | USB 10Forensics Writeup]]></title>
            <link>https://hamzaharooon.medium.com/blackhat-mea-ctf-qualifications-2023-usb-10forensics-writeup-e5f5b432ce78?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5f5b432ce78</guid>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Mon, 13 Nov 2023 20:42:48 GMT</pubDate>
            <atom:updated>2023-11-13T20:42:48.219Z</atom:updated>
            <content:encoded><![CDATA[<h3>BlackHat MEA CTF Qualifications 2023 | USB 100 Forensics Writeup</h3><p>This is my writeup for BlackHat MEA 2023 Qualification Forensics challenges.</p><p><strong>USB 100 (100 points)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*tZUBYZnnXV3KquPE.png" /></figure><p>We are given a PCAP file for analysis</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*tdVKFJuoTTfgMoKVjqMYew.png" /></figure><p>After opening the PCAP file (send.pcppng), you will notice that it contains 1064 packets, all of which are related to the USB protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iYahlFbaFIrzkhvZOL_VqQ.png" /></figure><p>Now, I can show you the presence of ‘URB_BULK’ along with its corresponding file headers. Notably, you’ll notice a ‘JFIF’ header, specifically linked to an image file type (JPEG). As you export the packet bytes, you’ll come across a folder that contains an image. Thus, packets that share the same magic byte or file header ‘JFIF’ are likely connected to images. However, further investigation will be needed to determine if there is any other type of data involved.</p><p>To export files you can do <strong>Files &gt; Export Packet Bytes &gt;</strong> choose the dir / name of the file to be saved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*66XGz_W3rycxknlT7oggmQ.png" /></figure><p>As I delved into other packets, I stumbled upon another fascinating revelation. We pinpointed an ‘MZ’ file header, commonly linked to executable files. Just as we exported the image file earlier, I’ll export this file too and move forward to try running it, either through the command line (CMD) or graphical user interface (GUI).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHJWCxpAHwMs0WgQ6x2UIg.png" /></figure><p>When we tried running it in the graphical user interface (GUI), it briefly opened a command prompt window and then closed. However, when we executed it from the command line, the flag became visible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9QNPM_tetnhndGzRzx4iJg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5f5b432ce78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CTFZone Quals | OSINT | Hamsters are taking over the World]]></title>
            <link>https://hamzaharooon.medium.com/ctfzone-quals-osint-hamsters-are-taking-over-the-world-709556d666fe?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/709556d666fe</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Thu, 17 Aug 2023 12:06:51 GMT</pubDate>
            <atom:updated>2023-08-17T12:06:51.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*AnFdTGXtLrJldXJbmWoqvw.png" /></figure><p>This was the OSINT challenge with the least solves in <a href="https://ctf.bi.zone/challenges">CTFZone Quals</a>. We were given an email ronaldhamst_xyz@gmail.com and told that there is a mistake somewhere. This is all we had, I tried different combination by substituting different alphabets in the _ place but I got no valid email. Then I thought it might be that ronaldhamst_xyz is a domain so I tried <a href="http://ronaldhamst.xyz/">ronaldhamst.xyz</a> and it came up to an actual website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B8vdCMG5scxJf2fC_AKsHQ.png" /></figure><p>The website contained some text along with 2 hyperlinks, one to a YouTube video and one to a blog page.</p><p><a href="https://youtu.be/OTMCWA_4LKE">https://youtu.be/OTMCWA_4LKE</a></p><p><a href="https://dzen.ru/a/XiSaoexXWwCtO2ww?utm_referer=www.google.com">https://dzen.ru/a/XiSaoexXWwCtO2ww?utm_referer=www.google.com</a></p><p>After looking into it for quite a while, I considered this a dead end. That’s where I hit an idea to dork for 5 of the hamster names that were highlighted in the text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHjjEMwkavi3TI4OaQ9pSg.png" /></figure><p>This seemed helpful</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ltJWKKs-dq17vyQkEAoFpA.png" /></figure><p>Here we found an email address as well:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wF3Fr0a-OKQXFW4oQYHeFw.png" /></figure><p>By closer inspection, I looked into its source code and found a link to a Facebook profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LF3Sfif-6pxpFSIJ8HEb4g.png" /></figure><p>This opened to a profile named Oliver Lee</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bTgzqycz2BcZWHmchpNF-A.png" /></figure><p>By roaming around the profile, I found a relevant post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*HECxyb4h2UQ_-rINf6MCZw.png" /></figure><p><a href="https://github.com/cedricbonhomme/Stegano">GitHub - cedricbonhomme/Stegano: A pure Python steganography module.</a></p><p>Now this talked about how Oliver changed this code. Direct changes in the code were not possible through commits on this tool as I checked all the contributors of this tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ddC9-NQMDt6MyVsOpw5M3A.png" /></figure><p>I got an idea to check if some user had forked it in last 2 weeks and thankfully I found one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*Qun7oWLWLsT2jLw3jgj75A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJRyk0kWUbMJb1zwOPWYCg.jpeg" /></figure><p>I was pretty sure this was Oliver Lee’s ID as this ID was made just few weeks ago and had only 1 fork of the repository we were looking for.</p><p>I checked the commits and changes made into the code as the Facebook post talked about how he changed this tool for his friends.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yqVLLqozt8o3ihlm64Ur-g.png" /></figure><p>and lucky enough, it had the flag.</p><p><a href="https://github.com/cedricbonhomme/Stegano/compare/master...hamstoliv:Stegano:master">Comparing cedricbonhomme:master...hamstoliv:master · cedricbonhomme/Stegano</a></p><p>Decoding this through Base-64 gave me the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A-SmddoZRXQfJk2Q-zi08g.png" /></figure><p>Finally the flag was:<br><strong>ctfzone{Y0u_have_fu0nd_the_flag_0f_2_hamsters}</strong></p><p>Thank You for reading this till the end. Make sure you follow me on Medium.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=709556d666fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cryptography | aupCTF 2023]]></title>
            <link>https://hamzaharooon.medium.com/cryptography-aupctf-2023-21b780802ec6?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/21b780802ec6</guid>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Sun, 25 Jun 2023 17:15:20 GMT</pubDate>
            <atom:updated>2023-06-25T17:17:07.054Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Challenge Name: Rotation</strong></p><p>We’ve employed a unique technique to encode the message, one that goes beyond the traditional limits of the Caesar cipher. Keep your wits about you and explore every possible avenue — the answer may be closer than you think</p><p>0*%pgs8.K*H5K*#3H&quot;N:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ws4XG8tRvNFkAdj3iAy77w.png" /></figure><p>Use the following combination to get to the first step then:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8t2fG9rgs4VwITAu_YjjlQ.png" /></figure><p>Flag: aupCTF{y0u-f0und-m3}</p><p><strong>Challenge Name: Ancient Cipher</strong></p><p>Meet Bob, the world’s worst cryptographer. His encryption skills are so bad that his messages are basically gibberish. One time, he tried to send a secret message to his friend Alice, but it was so poorly encrypted that his dog was able to decode it. Needless to say, Bob’s not winning any cryptography awards anytime soon.</p><p>rlgTKW{S0s&#39;j_Sru_Tipgk0xirgyp_5b1ccj}</p><p>Use cyberchef with following to get the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ytJHopn_XnI7jzSMIlggzA.png" /></figure><p>Flag: aupCTF{B0b’s_Bad_Crypt0graphy_5k1lls}</p><p><strong>Challenge Name: Enigma</strong></p><p>I found an old enigma machine and was messing around with it. can you decipher it</p><p><strong>MACHINE TYPE: </strong><strong>kriegsmarine 3 rotors<br>REFLECTOR: </strong><strong>B<br>ROTORS: </strong><strong>I, II, III<br>INITIAL POSITIONS OF THE ROTORS: </strong><strong>X, Y, Z<br>POSITION OF THE ALPHABET WHEEL: </strong><strong>A, B, C<br>PLUGBOARD: </strong><strong>AT BS DE FM IR KN LZ OW PV XY<br>CIPHER: </strong><strong>LXFUZLVHEJLEWZRIXIS</strong></p><p>remember to put the flag in format: aupCTF{answer} answer in UPPERCASE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lfZ4l20aarBWin91a0Mtrw.png" /></figure><p>flag: aupCTF{ENIGMAISFASCINATING}</p><p><strong>Challenge Name: Disorder</strong></p><p>utsa}Ts0aXa{1_eC1ngXph__XF_tmX</p><p>By using Transpositional Cipher we get the flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*rOGLfXjwTTOctE6sTKtPhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*Jm8MEADkXhth2nUS4IB4kA.jpeg" /></figure><p>flag: aupCTF{th1s_1s_n0t_a_game}</p><p><strong>Challenge Name: Swiss Army Knife</strong></p><p>I converted the given to binary by replacing X with 0 and Y with 1</p><pre>01001100 01010011 00110000 01110100 01001001 01000011 00110100 01110100 01001100 01101001 01000001 01110100 01001100 01101001 00110100 01110100 01001001 01000011 00110000 01110100 01001100 01101001 01000001 01110101 01001100 01101001 00110100 01100111 01001100 01101001 00110100 01110101 01001100 01010011 01000001 01110101 01001100 01101001 00110100 01100111 01001100 01010011 00110100 01100111 01001100 01101001 00110000 01110101 01001100 01101001 01000001 01110101 01001100 01101001 00110000 01110101 01001001 01000011 00110100 01110101 01001100 01101001 00110100 01110101 01001001 01000011 00110100 01110100 01001100 01010011 01000001 01110100 01001100 01010011 01000001 01110101 01001100 01101001 00110100 01110100 01001100 01010011 01000001 01110101 01001100 01010011 00110100 01100111 01001100 01101001 00110000 01110101 01001001 01000011 00110000 01110101 01001001 01000011 00110100 01110101 01001100 01101001 00110000 01100111 01001100 01101001 00110000 01110101 01001001 01000011 00110000 01110100 01001100 01101001 01000001 01110101 01001100 01101001 00110100 01100111 01001100 01010011 00110000 01100111 01001100 01101001 00110000 01110100 01001100 01010011 01000001 01110100 01001001 01000011 00110100 01110101 01001100 01010011 00110100 01100111 01001100 01101001 00110100 01110100 01001001 01000011 00110000 01110100 01001100 01101001 00110100 01100111 01001100 01101001 00110000 01110100 01001001 01000011 00110000 01110100 01001100 01010011 01000001 01110101 01001100 01101001 00110100 01110101 01001100 01101001 01000001 01110101 01001100 01010011 00110100 01100111 01001100 01010011 00110000 01110101 01001100 01010011 01000001 01110100 01001100 01010011 00110000 01100111 01001100 01101001 00110100 01110101 01001100 01101001 00110000 01100111 01001100 01010011 00110100 01110100 01001100 01010011 01000001 01110101 01001100 01010011 00110000 01100111 01001100 01010011 00110000 01110100 01001001 01000011 00110000 01110101 01001100 01101001 00110100 01110101 01001001 01000011 00110100 01110100 01001100 01101001 01000001 01110101 01001100 01101001 00110100 01110100 01001001 01000011 00110100 01110101 01001100 01010011 00110100 01100111 01001100 01101001 00110100 01110101 01001100 01010011 01000001 01110100 01001100 01101001 00110100 01110100 01001001 01000011 00110000 01110101 01001100 01101001 01000001 01110100 01001100 01101001 00110000 01100111 01001100 01010011 00110000 01100111 01001100 01101001 00110100 01110101 01001100 01010011 00110000 01100111 01001100 01010011 00110100 01110101 01001100 01010011 01000001 01110101 01001100 01010011 00110000 01110101 01001001 01000011 00110100 01110101 01001100 01010011 01000001 01110100 01001100 01101001 00110100 01110101 01001100 01010011 01000001 01110100 01001100 01101001 00110100 01110101 01001100 01010011 01000001 01110100 01001100 01101001 00110100 01110101 01001100 01010011 01000001 01110100 01001100 01101001 00110100 01110101 01001100 01010011 01000001 01110100 01001100 01101001 00110100 01110101 01001100 01010011 01000001 01110100 01001100 01101001 00110100 01110101 01001100 01010001 00111101 00111101</pre><p>Now binary to text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y0La4AgwYNN6RoYzck4Ckw.png" /></figure><p>Now Base64</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyB-EDxo8htQeJh5ZIyvxA.png" /></figure><p>Now Morse to text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yUN7KTAbtLmkZfkPUIQtYQ.png" /></figure><p>Now to Base32</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LHaEGWog2VQrO0XHJQWnLQ.png" /></figure><p>Finally we get the flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l8PreTR-wDLYx-_EJIzVEQ.png" /></figure><p>flag: aupCTF{mu1tip13–3nc0d1ng5-u53d}</p><p><strong>Challenge Name: Battista’s Bet</strong></p><p>My friend is a big fan of the famous Italian cryptographer <strong>Giovan Battista Bellaso</strong>, he has challenged me to crack this ciphertext. I have been struggling to decode it, Can you help me out</p><p>syrTXY{T3pnr50A0ndhD3Gv0nv}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aod-ej6oRPYBVvY30pPy9Q.png" /></figure><p>FLAG: aupCTF{B3lla50W0uldB3Pr0ud}</p><p><strong>Challenge Name: RSA</strong></p><p>Just remember, the key to success is staying calm, cool, and collected. Oh, and maybe a little bit of math.</p><p>I made this script to get the flag:</p><pre>from Crypto.Util.number import long_to_bytes, inverse<br><br># Given values<br>n = 114451512782061350994183549689132403225242966062482357218929786202609314635625168402975465116960672539381904935689924074978793017604108838426275397024126351435336388859375577638687615733448645699186377194544704879027804400841223407182597828299190404980916587708863068950664207317360099871904794302327240026597<br>e = 0x10001<br>c = 77973874950946982309998238055233832655056168217930252243355819182449120246116674359138553216317477143768434108918799869104308920311195408379262816485377057853246446992573203590942762693635615621774057306679349618708293741847308966437868706668452083656318895155238523224237514077565164105837790895618179891869<br><br># Step 1: Factorize the modulus n into p and q<br>p_plus_q = 21400959789031198835597502268226110838410793429486235013163818172148759394109297013195530163943463063090162742198192075506990494863858727035693527345539878<br>p_minus_q = 441620610348849769847261104024471204541391170160225757260110727514761526074769013762749528928112909396341014808517549368576708910310103233373547986477636<br><br># Calculate p and q<br>p = (p_plus_q + p_minus_q) // 2<br>q = (p_plus_q - p_minus_q) // 2<br><br># Step 2: Calculate the private key d<br>phi = (p - 1) * (q - 1)<br>d = inverse(e, phi)<br><br># Step 3: Decrypt the ciphertext<br>m = pow(c, d, n)<br><br># Step 4: Convert the decrypted message back to bytes<br>flag = long_to_bytes(m)<br><br>print(&quot;Decrypted flag:&quot;, flag.decode())</pre><p>flag: aupCTF{3a5y_tw0_3quat10n5_and_hax3d_3}</p><p>Crypto pwned hehe</p><p>If you like the writeup do give a follow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21b780802ec6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GEOINT for Beginners | Ukarine Khakovka Dam]]></title>
            <link>https://hamzaharooon.medium.com/geoint-for-beginners-ukarine-khakovka-dam-90782570bddf?source=rss-cb2046ea66cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/90782570bddf</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[russia-ukraine-war]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Hamza Haroon]]></dc:creator>
            <pubDate>Wed, 14 Jun 2023 17:11:55 GMT</pubDate>
            <atom:updated>2023-06-14T17:11:55.509Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone, today I will guide you how to start GEOINT from satellite imagery. For todays writeup, we are taking the following image as a target:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*7b-v-7PwkMrGyp665bgDOg.png" /></figure><p>Now we want to know what place this exactly is.</p><p>We look closely in the photograph and make a list of what we see</p><ol><li>Lots of water</li><li>Some broken Infrastructure over a river (possibly a dam)</li><li>A bit of greenery to the left</li></ol><p>Now our first step is that we reverse search this image. Google Reverse Imaging is a good way to start but if you are getting a photo where its not avalaible on the web before then that is where <a href="https://yandex.com/images/">Yandex</a> comes in handy.</p><p>I reverse search this image on <a href="https://yandex.com/images/">Yandex</a> and see the results</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6rbiKxlcID7FefKK-CgJgA.png" /></figure><p>Now we see that we have some Russian text and alongwith some photos of a dam. But it seems like our dam is destroyed so we have to compare to other photos to see if this is the same dam as our search results.</p><p>For example we take the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aTw4x1OKQrjjIx3s.jpg" /></figure><p>Now if we look at the landmarks we see how this is similar to the searched image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*jtLfRwtssEKPl2IZ7oyZkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GgvRKLfLh9jsWpvXNjYTBA.png" /></figure><p>This photo is from the Nova Khakova Dam. You can find it at the following coordinates.</p><pre>46.779140, 33.369227</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90782570bddf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>