<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>E-CTF-2025 on Anthrace | CTF Writeups</title><link>https://anthr4ce.github.io/tags/e-ctf-2025/</link><description>Recent content in E-CTF-2025 on Anthrace | CTF Writeups</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 01 Jul 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://anthr4ce.github.io/tags/e-ctf-2025/index.xml" rel="self" type="application/rss+xml"/><item><title>E-CTF-2025 - Crypto</title><link>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/crypto/ascii-everything-but-not-the-flag/</link><pubDate>Tue, 01 Jul 2025 00:00:00 +0000</pubDate><guid>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/crypto/ascii-everything-but-not-the-flag/</guid><description>&lt;hr&gt;&#10;&lt;h2 id="step-1-analyzing-the-challenge"&gt;&#10; &lt;strong&gt;Step 1: Analyzing the Challenge&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-1-analyzing-the-challenge"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;img src="images/chall_screen.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;The challenge provides a series of &lt;strong&gt;ASCII numbers&lt;/strong&gt; along with an intriguing phrase:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;108 100 111 109 123 85 99 49 122 95 106 53 95 79 111 51 95 88 52 116 95 48 109 95 51 111 88 121 90 107 97 106 48 105 125 10 10 69 98 111 98 32 102 112 32 118 108 114 111 32 104 98 118 44 32 100 108 108 97 32 105 114 122 104 32 58 32 72 66 86 72 66 86 10 10 87 101 108 108 32 100 111 110 101 44 32 98 117 116 32 110 111 119 32 100 111 32 121 111 117 32 107 110 111 119 32 97 98 111 117 116 32 116 104 101 32 103 117 121 32 119 104 111 32 103 111 116 32 115 116 97 98 98 101 100 32 50 51 32 116 105 109 101 115 32 63&#10;&lt;/code&gt;&lt;/pre&gt;&lt;hr&gt;&#10;&lt;h2 id="step-2-decoding-ascii"&gt;&#10; &lt;strong&gt;Step 2: Decoding ASCII&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-2-decoding-ascii"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I used &lt;strong&gt;DCode&lt;/strong&gt; to convert the ASCII numbers into text.&lt;/p&gt;</description></item><item><title>E-CTF-2025 - Forensic</title><link>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/capture-the-hidden/</link><pubDate>Tue, 01 Jul 2025 00:00:00 +0000</pubDate><guid>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/capture-the-hidden/</guid><description>&lt;hr&gt;&#10;&lt;p&gt;&lt;img src="images/hidden_1.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;h2 id="step-1-opening-the-zip-file"&gt;&#10; &lt;strong&gt;Step 1: Opening the ZIP File&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-1-opening-the-zip-file"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;The challenge provides a &lt;strong&gt;ZIP file&lt;/strong&gt; containing a &lt;strong&gt;PCAP file&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Objective:&lt;/strong&gt;&#10;Analyze the &lt;strong&gt;PCAP&lt;/strong&gt; to identify &lt;strong&gt;data exfiltration&lt;/strong&gt; and retrieve the &lt;strong&gt;flag&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-2-initial-pcap-analysis"&gt;&#10; &lt;strong&gt;Step 2: Initial PCAP Analysis&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-2-initial-pcap-analysis"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I opened the &lt;strong&gt;PCAP file&lt;/strong&gt; with &lt;strong&gt;Wireshark&lt;/strong&gt; and began analyzing the packets.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Main observations:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Evidence of data exfiltration&lt;/strong&gt; within network traffic.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Interesting endpoints&lt;/strong&gt; used for file transfer.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;A suspicious POST request&lt;/strong&gt;.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;img src="images/hidden_2.png" alt="Screenshot"&gt;&lt;/p&gt;</description></item><item><title>E-CTF-2025 - Forensic</title><link>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/image-stolen/</link><pubDate>Tue, 01 Jul 2025 00:00:00 +0000</pubDate><guid>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/image-stolen/</guid><description>&lt;hr&gt;&#10;&lt;h2 id="challenge-description"&gt;&#10; &lt;strong&gt;Challenge Description&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#challenge-description"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;img src="images/stolen1.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;We are provided with a &lt;strong&gt;.zip&lt;/strong&gt; file containing a &lt;strong&gt;.pcap&lt;/strong&gt; file. The instructions indicate &lt;strong&gt;an image has been stolen&lt;/strong&gt;, and we must recover it from the &lt;strong&gt;PCAP file&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-1-pcap-file-analysis"&gt;&#10; &lt;strong&gt;Step 1: PCAP File Analysis&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-1-pcap-file-analysis"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I opened the &lt;strong&gt;&lt;code&gt;.pcap&lt;/code&gt; file&lt;/strong&gt; with &lt;strong&gt;Wireshark&lt;/strong&gt; to inspect the network traffic.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="images/stolen2.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Observations:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;I noticed &lt;strong&gt;suspicious DNS requests&lt;/strong&gt; sent to &lt;strong&gt;&lt;code&gt;data.exfil.attacker.com&lt;/code&gt;&lt;/strong&gt;.&lt;/li&gt;&#10;&lt;li&gt;This &lt;strong&gt;suggests data exfiltration via DNS&lt;/strong&gt; by encoding the image within domain names.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-2-extracting-exfiltrated-data"&gt;&#10; &lt;strong&gt;Step 2: Extracting Exfiltrated Data&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-2-extracting-exfiltrated-data"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;To extract all &lt;strong&gt;DNS queries&lt;/strong&gt; from the PCAP, I used &lt;strong&gt;Tshark&lt;/strong&gt;:&lt;/p&gt;</description></item><item><title>E-CTF-2025 - Forensic</title><link>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/my-dearest/</link><pubDate>Tue, 01 Jul 2025 00:00:00 +0000</pubDate><guid>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/forensic/my-dearest/</guid><description>&lt;hr&gt;&#10;&lt;p&gt;&lt;img src="images/dearest1.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;h2 id="step-1-downloading-the-zip-file"&gt;&#10; &lt;strong&gt;Step 1: Downloading the ZIP File&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-1-downloading-the-zip-file"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;The challenge provides a &lt;strong&gt;ZIP file&lt;/strong&gt; containing a &lt;strong&gt;DOCX file&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="images/dearest2.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Hypothesis:&lt;/strong&gt;&#10;A &lt;strong&gt;DOCX file&lt;/strong&gt; is actually a &lt;strong&gt;ZIP archive&lt;/strong&gt;, meaning we can &lt;strong&gt;extract&lt;/strong&gt; its internal content.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-2-extracting-the-docx-content"&gt;&#10; &lt;strong&gt;Step 2: Extracting the DOCX Content&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-2-extracting-the-docx-content"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;img src="images/dearest3.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;I used &lt;strong&gt;unzip&lt;/strong&gt; to &lt;strong&gt;extract&lt;/strong&gt; the content of the &lt;strong&gt;DOCX file&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Result:&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Several folders and XML files.&lt;/li&gt;&#10;&lt;li&gt;A folder named &lt;strong&gt;&lt;code&gt;word/&lt;/code&gt;&lt;/strong&gt; containing metadata and content.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-3-analyzing-extracted-files"&gt;&#10; &lt;strong&gt;Step 3: Analyzing Extracted Files&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-3-analyzing-extracted-files"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;I explored &lt;strong&gt;all the files&lt;/strong&gt; extracted from the &lt;strong&gt;DOCX&lt;/strong&gt;, looking for hidden information.&lt;/p&gt;</description></item><item><title>E-CTF-2025 - Web</title><link>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/web/chatroom/</link><pubDate>Tue, 01 Jul 2025 00:00:00 +0000</pubDate><guid>https://anthr4ce.github.io/ctf-writeups/e-ctf-2025/web/chatroom/</guid><description>&lt;hr&gt;&#10;&lt;h2 id="chatroom"&gt;&#10; &lt;strong&gt;Chatroom&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#chatroom"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;img src="images/chatroom_1.png" alt="Screenshot"&gt;&lt;/p&gt;&#10;&lt;p&gt;In this challenge, we are provided with access to a &lt;strong&gt;chatroom&lt;/strong&gt;, where a message indicates that the &lt;strong&gt;admin will read our message in 30 seconds&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;Upon seeing this, I immediately suspect a possible &lt;strong&gt;XSS (Cross-Site Scripting) vulnerability&lt;/strong&gt;, as if the message is stored and executed in the admin’s browser, we could potentially &lt;strong&gt;inject malicious JavaScript&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="step-1---testing-for-xss-injection"&gt;&#10; &lt;strong&gt;Step 1 - Testing for XSS Injection&lt;/strong&gt;&#10; &lt;a class="heading-link" href="#step-1---testing-for-xss-injection"&gt;&#10; &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;&#10; &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;&#10; &lt;/a&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;To verify if the input is vulnerable to &lt;strong&gt;XSS&lt;/strong&gt;, I test a &lt;strong&gt;simple payload&lt;/strong&gt;:&lt;/p&gt;</description></item></channel></rss>