<?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 0xEpitome on Medium]]></title>
        <description><![CDATA[Stories by 0xEpitome on Medium]]></description>
        <link>https://medium.com/@0x3pitom3?source=rss-963ad8df9937------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f_61ctYqvlAmqEfS5u2aWg.jpeg</url>
            <title>Stories by 0xEpitome on Medium</title>
            <link>https://medium.com/@0x3pitom3?source=rss-963ad8df9937------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:11:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0x3pitom3/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[Emprisa Maldoc | CyberDefenders Writeup]]></title>
            <link>https://0x3pitom3.medium.com/emprisa-maldoc-cyberdefenders-writeup-f83f2c9ab403?source=rss-963ad8df9937------2</link>
            <guid isPermaLink="false">https://medium.com/p/f83f2c9ab403</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[rtf-maldoc-analysis]]></category>
            <category><![CDATA[cyberdefender]]></category>
            <dc:creator><![CDATA[0xEpitome]]></dc:creator>
            <pubDate>Thu, 13 Apr 2023 20:07:20 GMT</pubDate>
            <atom:updated>2023-04-14T10:35:04.888Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uz8XA4EuOGBoId01CFY2BQ.png" /></figure><p>This is a writeup for the emprisa maldoc challenge on <a href="https://cyberdefenders.org/">cyberdefenders</a>, the challenge can be found <a href="https://cyberdefenders.org/blueteam-ctf-challenges/56#nav-questions">here</a>.</p><p>For this writeup I will be using the remnux Vm machine to analyze the file.</p><p>Let’s get right into it.</p><p>Q1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*wlKAxSAlOe1DIAe_nzSiRA.png" /></figure><p>The question is asking about CVE of the vulnerability. First things first before we start analyzing the malware, we can extract some hashes for instance md5sum and upload it to <a href="https://www.virustotal.com/gui/home/search">virustotal</a> to see if we find anything.</p><pre>md5sum c39-EmprisaMaldoc.rtf</pre><p>Uploading the hash to virustotal, right away we see it is a malicious file and also the CVE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DdisD2VFTLPM_zx7cPtklg.png" /></figure><p>Pretty easy, right?</p><p>PS: You can read more about the CVE on this <a href="https://www.fortinet.com/blog/threat-research/excel-document-delivers-malware-by-exploiting-cve-2017-11882#:~:text=As%20you%20may%20know%2C%20CVE,as%20an%20embedded%20OLE%20object.">link</a></p><p>Q2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*yH3hshViH_WXqzHhn1v1FA.png" /></figure><p>I did some google searches and I got this <a href="https://msrc.microsoft.com/update-guide/vulnerability/CVE-2017-11882">link</a> for microsoft updating on the patches on different office products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hSrL4yqfKnSzm8_NRGUlw.png" /></figure><p>Since the question was asking about Microsoft Office 2007. I clicked the link and I got the patch number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBpiOVn1knzQiQ15w7uThQ.png" /></figure><p>Q3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*EP1JR_GcpwCSWja2iGhUDA.png" /></figure><p>Taking a look at the hint, it said something to do with rtf data dump.</p><p>I found this <a href="https://zeltser.com/analyzing-malicious-documents/">link</a> that has some useful tools for maldoc analysis. There was a tool called rtfdump.py which is used to analyze rtf files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*KHQb8PS9ov4buQRFPttZZg.png" /></figure><p>That tool comes pre-installed in REMnux. You can manually download the tool <a href="https://github.com/DidierStevens/DidierStevensSuite/blob/master/rtfdump.py">here</a>.</p><p>I did the following command to commands to run the tool</p><pre>rtfdump.py -h</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*8RHi9ez76UwH6tbq3Iddrw.png" /></figure><p>I decided to use the -d option to dump.</p><p>Analyzing the output I saw the magic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fiR6wL4D73LgxQMJcR605w.png" /></figure><p>Q3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*KtcFbOaseVorVokvwz_JAQ.png" /></figure><p>Here I did some research on how to analyze an rtf file. This <a href="https://neil-fox.github.io/RTF-Analysis-&amp;-Lokibot/">link</a> was super helpful.</p><p>First I needed to check for presence of OLE files.</p><pre>rtfdump.py -f O c39-EmprisaMaldoc.rtf </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*khy_dUvADopi6uISXq3wng.png" /></figure><p>I found it in ‘Equation.3\x00’. We can go ahead to analyze it further.</p><p>Looking at the help command in rtfdump.py, I found some helpful commands to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*gp7TP4774RaUZtjU2GwiNw.png" /></figure><p>Since I already found the presence of files in ‘Equation.3\x00’ and looking for more information I found out that the data output is printed in hex format, so with that information, I used this command.</p><pre>rtfdump.py c39-EmprisaMaldoc.rtf -s 7 -H -i </pre><ul><li>s is for selecting the number found with OLE files</li><li>-H is for hexdecode</li><li>-i is for printing extra info for selected item.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*skUHyfcYyDc6CVTmWcyrOA.png" /></figure><p>Afterwards, I also tried to dump the hex output only but I did not get anything useful.</p><p>Here I took some time switching from one VM to the other from remnux to flare and so forth.</p><p>Side Note: It was at this moment I knew that one could install procmon in REmnux, LOL!.</p><p>You can manually install procmon for linux <a href="https://github.com/Sysinternals/ProcMon-for-Linux">here</a></p><p>Anyway, I set up procmon and my I fired up my fakenet to see if I would be able to get any connections.</p><p>Second Part Coming soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f83f2c9ab403" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GREP CTF Writeups]]></title>
            <link>https://0x3pitom3.medium.com/grep-ctf-writeups-bf457f3fcc4c?source=rss-963ad8df9937------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf457f3fcc4c</guid>
            <dc:creator><![CDATA[0xEpitome]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 15:39:21 GMT</pubDate>
            <atom:updated>2023-04-03T11:31:32.803Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*NAxTGhpTvFZo-wpe79i_zA.png" /></figure><p>I Participated the GREP CTF together with my team <a href="https://twitter.com/p3rf3ctr00t"><strong>p3rf3ctr00t_ke</strong></a><strong>. </strong>Here are the solutions of the challenges that I tackled.</p><h3>Reverse Engineering.</h3><p>==&gt; simple rev.</p><p>very easy challenge, all you had to do was run strings and get the flag as follows:</p><blockquote>strings -n 8 outfile</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*WLWJzWtFVTnMcs_ZFvXSag.png" /></figure><p>==&gt; EXORcist</p><p>After downloading the file, open it with ghidra for decompilation.</p><p>Go to the main function to see the code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*qcfc1chpfywt2wawK9pfXw.png" /></figure><p>In the main function we see a printf prompting us to enter the flag then call scanf for user input. Next we see a for loop. This for loop iterates over the first 23 bytes of the input string, which are stored in the local_38 buffer. For each byte in the range [0, 0x17], This means that the first byte in the input string is XORed with 0, the second byte with 1, the third byte with 2, and so on, up to the 23rd byte being XORed with 0x17. Basically it xor the strings with 0x17.</p><p>I created a python script to do xor the string “gsgsGQ@|9gn8tRy&gt;c\”Mk$gk”</p><pre>encrypted_flag = b&quot;gsgsGQ@|9gn8tRy&gt;c\&quot;Mk$gk&quot;<br>key = range(0x17)<br>decrypted_flag = bytearray([a ^ b for a,b in zip(encrypted_flag, key)])<br>print(&quot;flag is:&quot; ,decrypted_flag.decode())</pre><p>Run that and gives you the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*6nkVfdEBGWN_rLp9p1_XTg.png" /></figure><h3>Forensics</h3><p>==&gt; Royal Steg</p><p>After downloading the file(steg.jpg). The description had a clue:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*LK5xJb5jnDCVaG470kAGxA.png" /></figure><p>“SEEK” was the clue, So I used stegseek command with the wordlist of rockyou.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*tZXsFaWjgxbBN1SlvBzOEg.png" /></figure><p>Got the passphrase “cuteessort37” and the file extracted to steg.jpg.out is a zip file.</p><p>The zip file was password protected, so to crack it I used fcrackzip tool:</p><pre>fcrackzip -b -D -p /usr/share/wordlists/rockyou.txt -u ./steg.jpg.out</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*_-xk2uvDoPz0o0rGuf-TMg.png" /></figure><p>Found the password “jesuslove” makes sense LOL, the description had a Bible verse.</p><p>Extracted the steg.jpg.out with the password:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*p6DEtTGAfdI0EkaRH4JbTg.png" /></figure><p>Got the flag!</p><p>==&gt; Doctored image</p><p>Downloaded the image “doctored.jpg” since the description said the file was corrupted. That is enough hint, so I went straight to hexedit to edit the image. The header of an image should be “<strong>FF D8 FF”. Looking at the image hex:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zr4hDVrehhDZY0iMdMxZvw.png" /><figcaption>just some zero’s in the header.</figcaption></figure><p>After editing the header:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ujFxbtzpl_yXB1LaPlZGgw.png" /></figure><p>Viewing the image again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*DC2-3JGnt3zrNyMM2ehoUQ.png" /></figure><p>The flag!</p><p>But who loves to type. So I made a little script to help extract text from the image.</p><pre>import pytesseract<br>from PIL import Image<br><br># Load image<br>image = Image.open(&#39;doctored.jpg&#39;)<br><br># Convert image to grayscale<br>image = image.convert(&#39;L&#39;)<br><br># Extract text from image<br>text = pytesseract.image_to_string(image)<br><br># Print extracted text<br>print(text)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*Xbc7TVOnEm1n2y-rq-YDSA.png" /></figure><h3>Misc</h3><p>==&gt; Layouts</p><p>DESCRIPTION: I’ve got this weird keyboard which has all the keys messed up. It’s from someone called the workman.</p><p>So I did a google search and found this “<a href="https://awsm-tools.com/keyboard-layout">site</a>”for converting keyboard layouts. SInce the keyboard layout was workman, I converted from workman to the usual qwerty format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5qDWOAaFOby4KCipczuDw.png" /></figure><p>==&gt; esoF*ck</p><p>DESCRIPTION: I’ve heard about brainf#ck but what the f#ck js this?</p><p>Definitely this was about js f*ck since it was said in the description.</p><p>I used <a href="https://www.dcode.fr/jsfuck-language">dcode</a> and got pasted the contents of the text file and got the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*a7MSbAsTSIgp2zHavIdLiA.png" /></figure><p>esoF*ck 2</p><p>DESCRIPTION: 2 levels of eso should make my message impossible to decipher.</p><p>For those who don’t know this is brainf*k language, one could use <a href="https://www.dcode.fr/cipher-identifier">dcode</a> to identify the language.</p><p>Upon some google search I found this <a href="https://www.splitbrain.org/_static/ook/">tool</a>. I pasted the text and converted from brainfuck to text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*Yl7Gc272prJVlULLtE1keQ.png" /></figure><p>I got something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*RZFiuaco3Gb4WaWGkYwNiw.png" /></figure><p>In that site also I found a button for ook! to text so I converted it and got the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*CmhkEBhwcGAPrugfn45ETA.png" /></figure><h3>Pwn</h3><p>==&gt; Alot of files.</p><p>After downloading the file. I viewed it using strace and got a lot of strings. Since the challenge had said the flag is the characters without .flag with them I used awk command as follows:</p><pre>strace -e trace=file ./release_file-opener |&amp; awk -F&#39;&quot;&#39; &#39;/\.flag/{next} /open/{print $2}&#39;</pre><p>Looking at the bottom of the output there was our flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*0ulld92suz7QiDtaa8oQRg.png" /></figure><p>All we needed to do was remove the spaces and we could have our flag in complete as follows:</p><blockquote>GREP{that_was_easy_1aa9e759139a09f73618689fa0b3287a4ce81b00472d894ff518fe1d189e2858}</blockquote><p>==&gt; Infinite sleep (Level I)</p><p>This challenge was solved by my team member <a href="https://twitter.com/konfushon">konfushon</a>. I got hold of it way later.</p><p>Basically to solve this you need to bypass the sleep function by Removing the many sleeps through hooking the binary. Let’s create a sleep function that just returns 0 and we hook it to our binary using LD_PRELOAD.</p><pre>/*nosleep.c*/<br>#include &lt;stdio.h&gt;<br><br>unsigned int sleep(unsigned int seconds) {<br>  return 0;<br>}<br><br>__attribute__((constructor)) static void setup(void){<br>  fprintf(stderr, &quot;Hooked process,no sleeps!\n&quot;);<br>}</pre><p>Compile the binary.</p><pre>gcc -shared -fPIC -ldl nosleep.c -o nosleep.so</pre><p>Use LD_PRELOAD</p><pre>LD_PRELOAD=&quot;./nosleep.so&quot; ./sleeper1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*Slp89O8PPjksxQdvweFy1g.png" /></figure><p>If you want to understand more you can check this video by 0xdf of <a href="https://youtu.be/lpqtuw-cZ3U?list=PLJt6nPUdQbiTHHXidEWh-Fh9VgNaumNG-">hack the boo CTF 2022.</a></p><p>Thanks for reading, I will be updating more of the solves.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf457f3fcc4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Welcome Ladies and gentlemen to the meruCTF]]></title>
            <link>https://0x3pitom3.medium.com/welcome-ladies-and-gentlemen-to-the-meructf-e9332aee8b9d?source=rss-963ad8df9937------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9332aee8b9d</guid>
            <dc:creator><![CDATA[0xEpitome]]></dc:creator>
            <pubDate>Fri, 03 Mar 2023 07:45:22 GMT</pubDate>
            <atom:updated>2023-03-06T12:11:57.032Z</atom:updated>
            <content:encoded><![CDATA[<p>Here is a poem for you.</p><p>The gift and mystery of the high endeavor, Makes the dusky pall upon the earth forever.</p><p>Here’s a first flag for you:</p><p>meruCTF{Th15_Sh0ULD_G37_0N3_R3@LLY_HYP3D_UP}</p><p>Every dream of innocence, the trail of bliss, Every dream of innocence, a wordless kiss.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9332aee8b9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the scenes | Hackthebox Writeup]]></title>
            <link>https://0x3pitom3.medium.com/behind-the-scenes-hackthebox-writeup-c84cc0be8f6f?source=rss-963ad8df9937------2</link>
            <guid isPermaLink="false">https://medium.com/p/c84cc0be8f6f</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[0xEpitome]]></dc:creator>
            <pubDate>Mon, 27 Feb 2023 08:42:47 GMT</pubDate>
            <atom:updated>2023-02-27T08:42:47.780Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello and welcome to my Blog!</p><p>This is a writeup for behind the scenes hackthebox challenge, which can be found here<em> </em><a href="https://app.hackthebox.com/challenges/behind-the-scenes"><em>https://app.hackthebox.com/challenges/behind-the-scenes</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CX3p8dcCzae4Z2PhWmGh0w.png" /></figure><p>Let’s get right into it.</p><p>After downloading the zip file and extracting it with the password “hackthebox” we get a file, on using file command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SZJPUJsF_bUF3zpDBzqY-g.png" /></figure><p>lets run the file to see what it does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*cpdb4R5SAKC0Xkj953baIw.png" /></figure><p>we see that it requires a password, maybe we can get something on strings</p><pre>strings -n 4 behindthescenes</pre><p>we see something that seems like a flag:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*Z1y3668y_ety5E5xF51NSg.png" /></figure><p>But where is the password?</p><p>From here we can view the hex of the file maybe we can get something, I use xxd:</p><pre>xxd behindthescenes</pre><p>On viewing the output if we scroll down we see the command “./challenge &lt;password&gt;” recall that output when we ran the file, then it is followed by some string, that must be the password, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*28FzM-e1vttykeUVPDT1Xg.png" /></figure><p>If we input the string found as the password:</p><p>NB: You must remove the “.” in between the string found in the hex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*pljSz7QKWzF0aOtsOyo5Sw.png" /></figure><p>We get our flag!</p><p>That’s it thank you for reading this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c84cc0be8f6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>