<?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 Mikey on Medium]]></title>
        <description><![CDATA[Stories by Mikey on Medium]]></description>
        <link>https://medium.com/@byteluex?source=rss-d83e04698d81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uPiMfNQ39M-ARoc8ITsHoA.png</url>
            <title>Stories by Mikey on Medium</title>
            <link>https://medium.com/@byteluex?source=rss-d83e04698d81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:12:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@byteluex/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[FLAGYARD CTF | Hasher Writeup]]></title>
            <link>https://byteluex.medium.com/flagyard-ctf-hasher-writeup-d88729243b0b?source=rss-d83e04698d81------2</link>
            <guid isPermaLink="false">https://medium.com/p/d88729243b0b</guid>
            <category><![CDATA[flagyard]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[capture-the-flag]]></category>
            <dc:creator><![CDATA[Mikey]]></dc:creator>
            <pubDate>Wed, 22 Jul 2026 21:38:46 GMT</pubDate>
            <atom:updated>2026-07-22T21:50:31.684Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DCBQhww7KnOSRGFYvRBZig.png" /></figure><p>points: 160</p><p>Difficulty: Med</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-80kMR5k9ZiIOxWfNBh_AA.png" /></figure><p><em>“Malware developers always use hashing to hide things”</em></p><blockquote><strong>Challenge Concept :</strong></blockquote><p>The binary implements a 1-byte verification loop using a custom 32-bit Jenkins One-at-a-time Hash. Instead of processing the input as a unified block, the algorithm isolates each character, computes its independent hash, and compares it directly against a static 32-bit signature stored in a hardcoded lookup table (`local_1c8`). The flag is verified only if all 39 characters match their target hashes sequentially.</p><blockquote><strong>Analysis in Ghidra ;</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*IwYBy8LhLQHFxhke0CFTlA.png" /></figure><p>This is the main validation function `FUN_1400010e0` extracted from Ghidra. The decompiler view reveals a static array initialization where 39 unique 32-bit target hashes are loaded into `local_1c8` sequentially.</p><p>Full Extracted Hashes Array:</p><blockquote>local_1c8 = -0x46629728;<br>local_1c8 = 0x4ea585c0;<br>local_1c8 = 0x93642e87;<br>local_1c8 = 0x52181b4;<br>local_1c8 = 0xe8b4cda3;<br>local_1c8 = 0x858ac814;<br>local_1c8 = 0x45e26648;<br>local_1c8 = 0x93642e87;<br>local_1c8 = 0xcbba9c51;<br>local_1c8 = 0xd659a5a8;<br>local_1c8 = 0x9d07d8da;<br>local_1c8[0xb] = 0x93642e87;<br>local_1c8[0xc] = 0xf2475372;<br>local_1c8[0xd] = 0xcbba9c51;<br>local_1c8[0xe] = 0xd659a5a8;<br>local_1c8[0xf] = 0x930b26e3;<br>local_1c8[0x10] = 0xcfef5b0b;<br>local_1c8[0x11] = 0xea1b9f56;<br>local_1c8[0x12] = 0x9d07d8da;<br>local_1c8[0x13] = 0xea1b9f56;<br>local_1c8[0x14] = 0x70c1a0e1;<br>local_1c8[0x15] = 0x8288d321;<br>local_1c8[0x16] = 0x115ea782;<br>local_1c8[0x17] = 0x45e26648;<br>local_1c8[0x18] = 0xf4c73ebf;<br>local_1c8[0x19] = 0x45e26648;<br>local_1c8[0x1a] = 0x93642e87;<br>local_1c8[0x1b] = 0xcbba9c51;<br>local_1c8[0x1c] = 0xd659a5a8;<br>local_1c8[0x1d] = 0x93642e87;<br>local_1c8[0x1e] = 0x9d07d8da;<br>local_1c8[0x1f] = 0xcbba9c51;<br>local_1c8[0x20] = 0xcfef5b0b;<br>local_1c8[0x21] = 0x930b26e3;<br>local_1c8[0x22] = 0x45e26648;<br>local_1c8[0x23] = 0x93642e87;<br>local_1c8[0x24] = 0x93642e87;<br>local_1c8[0x25] = 0x115ea782;<br>local_1c8[0x26] = 0x303097c9;</blockquote><h4>Exploitation :</h4><p>Since the program verifies the input byte-by-byte, we wrote a Python script to automate the solution.</p><p>The script emulates the custom Jenkins algorithm to brute-force the ASCII charset against each hardcoded target hash. It automatically decodes the lookup table sequentially and extracts the complete flag instantly.</p><blockquote>Automatication Script :</blockquote><pre>import string<br><br>TARGET_HASHES = [<br>    -0x46629728, 0x4ea585c0, 0x93642e87, 0x52181b4, 0xe8b4cda3,<br>    0x858ac814, 0x45e26648, 0x93642e87, 0xcbba9c51, 0xd659a5a8,<br>    0x9d07d8da, 0x93642e87, 0xf2475372, 0xcbba9c51, 0xd659a5a8,<br>    0x930b26e3, 0xcfef5b0b, 0xea1b9f56, 0x9d07d8da, 0xea1b9f56,<br>    0x70c1a0e1, 0x8288d321, 0x115ea782, 0x45e26648, 0xf4c73ebf,<br>    0x45e26648, 0x93642e87, 0xcbba9c51, 0xd659a5a8, 0x93642e87,<br>    0x9d07d8da, 0xcbba9c51, 0xcfef5b0b, 0x930b26e3, 0x45e26648,<br>    0x93642e87, 0x93642e87, 0x115ea782, 0x303097c9<br>]<br><br>def hash_character(char):<br>    uVar4 = ord(char) &amp; 0xFFFFFFFF<br>    uVar17 = (uVar4 ^ (uVar4 * 0x400)) &amp; 0xFFFFFFFF<br>    uVar4 = (uVar17 &gt;&gt; 1) &amp; 0xFFFFFFFF<br>    uVar4 = (uVar17 + uVar4) &amp; 0xFFFFFFFF<br>    uVar4 = (uVar4 ^ (uVar4 * 8)) &amp; 0xFFFFFFFF<br>    uVar4 = (uVar4 + (uVar4 &gt;&gt; 5)) &amp; 0xFFFFFFFF<br>    uVar4 = (uVar4 ^ (uVar4 * 0x10)) &amp; 0xFFFFFFFF<br>    uVar4 = (uVar4 + (uVar4 &gt;&gt; 0x11)) &amp; 0xFFFFFFFF<br>    uVar4 = (uVar4 ^ (uVar4 * 0x2000000)) &amp; 0xFFFFFFFF<br>    iVar9 = ((uVar4 &gt;&gt; 6) + uVar4) &amp; 0xFFFFFFFF<br>    return iVar9<br><br>def solve_ctf():<br>    charset = string.ascii_letters + string.digits + &quot;{}_-!?@#$&quot;<br>    flag = &quot;&quot;<br>    <br>    for target in TARGET_HASHES:<br>        target_unsigned = target &amp; 0xFFFFFFFF<br>        found = False<br>        <br>        for char in charset:<br>            if hash_character(char) == target_unsigned:<br>                flag += char<br>                found = True<br>                break<br>                <br>        if not found:<br>            for b in range(256):<br>                if hash_character(chr(b)) == target_unsigned:<br>                    flag += chr(b)<br>                    found = True<br>                    break<br>    <br>    print(f&quot;Flag: {flag}&quot;)<br><br>if __name__ == &quot;__main__&quot;:<br>    solve_ctf()<br>    input(&quot;\nPress Enter to exit...&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ydjFlrn_SV_Y-vv2fsnpMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*3Xo0KcztBNH5kfZfJOl1jA.jpeg" /><figcaption>Learn RE, skid</figcaption></figure><p>Byeeeeee</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d88729243b0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>