<?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"><channel><title><![CDATA[THM/HTB Writeups]]></title><description><![CDATA[THM/HTB Writeups]]></description><link>https://writeups.dazaionline.org</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1593680282896/kNC7E8IR4.png</url><title>THM/HTB Writeups</title><link>https://writeups.dazaionline.org</link></image><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 13:13:04 GMT</lastBuildDate><atom:link href="https://writeups.dazaionline.org/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[The Game]]></title><description><![CDATA[Introduction
The Game is a reverse-engineering / binary analysis challenge. The premise: a cipher hid critical secrets inside a Tetris binary. The goal is to analyze the supplied binary, extract the e]]></description><link>https://writeups.dazaionline.org/the-game</link><guid isPermaLink="true">https://writeups.dazaionline.org/the-game</guid><category><![CDATA[tryhackme]]></category><category><![CDATA[cybersecurity]]></category><category><![CDATA[THM writeup]]></category><category><![CDATA[CTF Writeup]]></category><dc:creator><![CDATA[Harsh Mishra]]></dc:creator><pubDate>Sun, 12 Apr 2026 09:11:12 GMT</pubDate><content:encoded><![CDATA[<h3><strong>Introduction</strong></h3>
<p>The Game is a reverse-engineering / binary analysis challenge. The premise: a cipher hid critical secrets inside a Tetris binary. The goal is to analyze the supplied binary, extract the embedded data, and decode it to reveal the flag or secret.</p>
<h3><strong>Files in the downloaded ZIP</strong></h3>
<pre><code class="language-plaintext">$ unzip Tetris____.zip (the file name may vary for different users)
</code></pre>
<img src="https://cdn.hashnode.com/uploads/covers/69db5905aadf1107e2abceb9/e640f825-e5eb-405e-b755-245bdface555.png" alt="" />

<p>As you can see in the image provided above we have Tetrix.exe to examine for the hidden flag.</p>
<h3><strong>Recon: basic file checks</strong></h3>
<p>Before deep analysis, run basic checks so you know the type and permissions of the binary.</p>
<pre><code class="language-plaintext">- Check file type
    $ file Tetrix.exe
- Check file permissions
    $ ls -l Tetrix.exe
</code></pre>
<h3><strong>About the</strong> <code>strings</code> <strong>tool</strong></h3>
<p><code>strings</code> extracts sequences of printable characters from binary files. It's handy in reverse-engineering because flags, URLs, error messages and other plaintext artifacts are often embedded in executables or resources. Typical behavior and useful options:</p>
<ul>
<li><p>default extracts ASCII printable runs (commonly minimum length 4).</p>
</li>
<li><p><code>-n N</code> (or <code>--bytes=N</code>) sets the minimum match length to N (useful to avoid short noisy fragments).</p>
</li>
<li><p><code>-a</code> scans the entire file.</p>
</li>
<li><p><code>-t</code> prints offsets (useful to locate the string in the binary). <code>strings</code> is part of GNU binutils and available on most Linux systems. For Unicode/UTF-16 data or exotic encodings, combine <code>strings</code> with other tools (or try different <code>strings</code> flags / a disassembler) to ensure you catch non-ASCII payloads.</p>
</li>
</ul>
<h3><strong>Immediate solution</strong></h3>
<p>Run:</p>
<pre><code class="language-bash">strings -n 6 Tetris.exe | grep -i "thm{"
</code></pre>
<p>Explanation:</p>
<ul>
<li><p><code>strings -n 6</code> only shows printable runs of length ≥ 6 (reduces noise and surfaces longer tokens like flags).</p>
</li>
<li><p><code>grep -i "thm{"</code> filters case-insensitively for the flag prefix <code>thm{}</code>. The matching line printed by this pipeline should contain the flag.</p>
</li>
</ul>
<img src="https://cdn.hashnode.com/uploads/covers/69db5905aadf1107e2abceb9/944e0c84-fa97-4c46-9a78-78840d62ba0c.png" alt="Solution for the flag (The Game)" style="display:block;margin:0 auto" />]]></content:encoded></item></channel></rss>