<?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 Fahadmansour on Medium]]></title>
        <description><![CDATA[Stories by Fahadmansour on Medium]]></description>
        <link>https://medium.com/@fahadmansour2022?source=rss-f6d4f1a8ef4f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Fahadmansour on Medium</title>
            <link>https://medium.com/@fahadmansour2022?source=rss-f6d4f1a8ef4f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:14:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fahadmansour2022/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[ZINC CTF2023 ‘Reverse Me’ Writeup]]></title>
            <link>https://medium.com/@fahadmansour2022/zinc-ctf2023-reverse-me-writeup-b2ed9f115dc6?source=rss-f6d4f1a8ef4f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2ed9f115dc6</guid>
            <category><![CDATA[zain]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[cyber-talents]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Fahadmansour]]></dc:creator>
            <pubDate>Sat, 12 Aug 2023 13:47:25 GMT</pubDate>
            <atom:updated>2023-08-12T13:47:25.902Z</atom:updated>
            <content:encoded><![CDATA[<p>It was an elf64 file, I opened it in IDA , it was clear and no packing was used</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*GfRlBei8w-dJ7hmjbPYHXw.png" /></figure><p>after reversing the code , there was several functions and one of them was a bit complicated, but I couldn’t reach something until the writer finally shared a hint (<em>Reverse Me: I found this magic number 0x9e3779b9 now i need to google about the encryption and its variants</em>), after looking up about it , I found that this function is a known encryption called XXTEA, so I took the encrypted bytes in s1[] and tried this string as the key</p><pre>+v{s?psya’#xW`^({Z,M2^</pre><p>, but there was a problem , the key should be 16 bytes only, so I trimmed it .</p><p>I tried different scripts and <a href="https://www.tools4noobs.com/online_tools/xxtea_decrypt/"><strong>online decoders</strong></a> but it didn’t work,<strong><em> </em></strong>then it appeared that i forgot the LittleIndian format used in the binary, after converting to bytes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DchitbYdE1Ehy4J5.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/0*imMxk1Nv1WzmPH5N.png" /></figure><p><strong><em>and submitting the bytes with the key it worked!</em></strong></p><h3><strong>FIRST BLOOD at the last minute!</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2ed9f115dc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>