<?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 Mohamed Mohaseb on Medium]]></title>
        <description><![CDATA[Stories by Mohamed Mohaseb on Medium]]></description>
        <link>https://medium.com/@medohasabo13?source=rss-1263ded1a9f6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Jd2RFFyYpGjC3eOEjOzoSA.jpeg</url>
            <title>Stories by Mohamed Mohaseb on Medium</title>
            <link>https://medium.com/@medohasabo13?source=rss-1263ded1a9f6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:33:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@medohasabo13/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[CYCTF 2025 Qualifications]]></title>
            <link>https://medium.com/@medohasabo13/cyctf-2025-qualifications-b9e192f43a8b?source=rss-1263ded1a9f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9e192f43a8b</guid>
            <dc:creator><![CDATA[Mohamed Mohaseb]]></dc:creator>
            <pubDate>Sat, 15 Nov 2025 00:45:12 GMT</pubDate>
            <atom:updated>2025-11-15T00:45:12.127Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi It is 7asabo,I recently participated in cysheild ctf and here is my writeup for 2/4 DFIR challenges , I hope you enjoy reading it.</p><h3>Hidden In PlainSight Challenge</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/0*8xx6RGnhCG1JgzD4.png" /></figure><ul><li>In this challenge we were given a “ C ” Folder , at first i tried to search for the malicious pdf but i didnot dind any.</li><li>After that I tried to search for any indicators of a malicious activity that this pdf might have done to keep persistance , download another file or exfiltirates data.</li><li>I searched in the scheduled tasks and i found a powershell script in a file called “<strong>MicrosoftOfficeOffice Feature Updates</strong>”.</li></ul><blockquote>C:/Windows/System32/Tasks/MicrosoftOfficeOffice Feature Updates</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCRcl2NwVoJEcWRGH4O67A.png" /></figure><ul><li>So lets see what it reveals</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n0-LGpSf9gK_OakCCt1jwg.png" /></figure><ul><li>The scheduled task loads a byte array from a WMI instance (root\cimv2\windowsupdate, instance MyHiddenPayload), XORs every byte with 0x45 to reverse simple obfuscation, treats the result as Base64, then executes the script (Invoke-Expression).</li><li>It is clear now that we have to find “<strong>MyHiddenPayload</strong>” and decode it with the key given in this script.</li><li>I did a little search on google for the place in which the wmi instance might be in and i found it is in a file called “<strong>OBJECT.DATA</strong>”</li></ul><blockquote>C:\Windows\System32\wbem\Repository\OBJECTS.DATA</blockquote><ul><li>bingooo, Here is our payload</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dId9Qm57YrXhdDalSlv_Nw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GLWcr_E1b_lgzYeMv7jRGA.png" /></figure><ul><li>After decoding it we got the first part which is “<strong>H1d1ng1nPla1nC1MS1ght”</strong></li><li>Now the second part is really easy to find, I just searched with “part2” keyword in autopsy and i found it “<strong>ALittleBITSofData</strong>”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YdRvvt5QHjK0p21sOBEiw.png" /></figure><blockquote>Flag: CyCTF{H1d1ng1nPla1nC1MS1ght_ALittleBITSofData}</blockquote><h3>DokDok cahllenge</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*ad5HTxuJvQzsbl5WJ9ZyEg.png" /></figure><ul><li>In this challenge we were given a docker container then We got the challenge file which is “<strong>dokdok.tar</strong>”</li><li>After decompressing it we got a folder with several files named as 256hashes</li><li>I searched the first 4 gzip files but i didnot find anything helpful until i hit the 5th one i found an ELF file called “Important”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCRUxE38an3nRuzZ1x7syg.png" /></figure><ul><li>If you tried to look at it in ida you wont find any useful code as it is Packed so we unpack it using this command.</li></ul><pre>upx -d Important -o Important.unpacked</pre><ul><li>Now when we investigated the elf file we found our wallet encoded inside “Decode_wallet_internal ” function.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rdgn4NI7dzVw2NgPpsiwYA.png" /></figure><ul><li>I did a simple script to decode it using python</li></ul><pre># Hex-encoded wallet string<br>hex_data = &quot;&quot;&quot;02 00 79 7B 7F 39 26 77 27 77 72<br>55 4C 7E 75 77 6F 74 72 27 71 23<br>05 4E 28 7C 77 1C 7D 76 70 01 22<br>01 49 7A 09 7F 6F 73 05 07&quot;&quot;&quot; <br><br># XOR key (as bytes)<br>key = b&quot;0xMMOXDFDDF&quot;  <br><br># Convert hex to bytes<br>data = bytes.fromhex(hex_data)<br><br># XOR operation<br>decoded = bytes([data[i] ^ key[i % len(key)] for i in range(len(data))])<br><br>print(decoded.decode())</pre><ul><li>and finally we got our wallet</li></ul><blockquote>0x460ab1c34e4388704c5e56e18d904ed117d077cc</blockquote><ul><li>the second part is to get the wallet balance you can get it with this bash command</li></ul><blockquote>ADDR=0x460ab1c34e4388704c5e56e18d904ed117d077cc<br>curl -s “<a href="https://api.ethplorer.io/getAddressInfo/$%7BADDR%7D?apiKey=freekey">https://api.ethplorer.io/getAddressInfo/${ADDR}?apiKey=freekey</a>&quot; | jq ‘.ETH.balance’</blockquote><blockquote>0.08784870748313268</blockquote><ul><li>the third part is really easy,just search by the wallet on google and the apt name will appear “<strong>Lazarus</strong>”</li></ul><blockquote>Flag:CyCTF{0x460ab1c34e4388704c5e56e18D904Ed117D077CC_0.08784870748313268_Lazarus}</blockquote><p>That is the end ,I hope you enjoyed reading this article until we meet again.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9e192f43a8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CONCTF 2025 Qualifications]]></title>
            <link>https://medium.com/@medohasabo13/conctf-2025-qualifications-c3ada867baff?source=rss-1263ded1a9f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3ada867baff</guid>
            <dc:creator><![CDATA[Mohamed Mohaseb]]></dc:creator>
            <pubDate>Fri, 14 Nov 2025 16:04:47 GMT</pubDate>
            <atom:updated>2025-11-14T16:04:47.869Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently participated in connectors ctf and here is my writeup for 3/3 DFIR challenges , I hope you enjoy reading it</p><h3>Deep Trace Challenge</h3><ul><li>In this challenge we have a plank pdf file ,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYVJxlYjxhtxCg6wumFZYA.png" /></figure><ul><li>as a first step i used exiftool to get the metadata of this file by using this command</li></ul><blockquote>exiftool DeepTrace.pdf</blockquote><ul><li>and we get this</li></ul><blockquote>Creator : SW4gdGhpcyBxdWVzdGlvbiwgdGhlIGZsYWcgaGFzIGJlZW4gZGl2aWRlZCBpbnRvIDMgcGFydHMuIFlvdSBoYXZlIGZvdW5kIHRoZSBmaXJzdCBwYXJ0IG9mIHRoZSBmbGFnISEgQ09OQ1RGe0QwMW45X0YwMjNuNTFDNQ</blockquote><ul><li>When we do a base64 decode to it we get the first part</li></ul><blockquote>In this question, the flag has been divided into 3 parts. You have found the first part of the flag!! CONCTF{D01n9_F023n51C5</blockquote><p>(the flag is 2 parts this is just a mistake by the author)</p><ul><li>Then i tried using binwalk and foremost to obtain any embedded files but nothing useful , After that i used a command tool called “pdfimages” to list if there is any image embedded inside</li></ul><blockquote>pdfimages -list DeepTrace.pdf</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gAgoG0_1z9hRtbZvwXLe6A.png" /></figure><ul><li>and we found 5 images so lets extract them with</li></ul><blockquote>pdfimages -all DeepTrace.pdf output</blockquote><ul><li>and we get our second part from the first image</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*g8EuYYpORc0xOb8iDi_HYw.png" /></figure><blockquote>FLAG: CONCTF{D01n9_F023n51C5_ON_pdf_f1L35_15_345y}</blockquote><p>===============================================================</p><h3>Silent Sleeper Challenge</h3><ul><li>In this challenge , we were given access.log file <br>(An access.log file is a server-generated record of all incoming requests, providing details like the IP address of the requester, the requested URL, the time of the request, and the response status code)</li><li>At first i tried to read anything inside that might helps me but nothing interesting appears then i did a strings command on flag keyword and i found these so lets save them to a file</li></ul><p>strings access.log|grep -i &quot;flag&quot;&gt;extracted.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ODm1EfZt0XpG3Eib7UR6dA.png" /></figure><ul><li>This is a url decode of course so i decoded them on cyber chef with URL Decode</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvF5RR5lkzUJslrqIBI4dQ.png" /></figure><ul><li>After that I saved the output to a file <strong>Decoded.txt</strong> and i found a pattern like this</li></ul><blockquote>FROM dvwa.flag ORDER BY id LIMIT 0,1),1,1))!=79)</blockquote><ul><li>some sql injection requests that have ≠ and a number after them ,so i extracted all of them by using</li></ul><blockquote>strings Decoded.txt|grep -oP “(?&lt;=!=)[0–9]+”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BcGqOtLn6rDHsI0yrRzg-w.png" /></figure><ul><li>Again i headed to Cyberchef and used From Decimal</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A8xadkGkQz18DwAiBzwdSw.png" /></figure><blockquote>Flag:CONCTF{t1m3_SQL1_1nj3ct_L0g}</blockquote><p>===============================================================</p><h3>Locked Out Challenge</h3><ul><li>In this challenge we have a “ C ” folder and the flag supposed to be the</li></ul><blockquote>CONCTF{User Password}</blockquote><ul><li>First I pulled out the <strong>SAM</strong> and <strong>SYSTEM</strong> hives from <strong>C:\Windows\System32\config</strong></li></ul><blockquote><strong>SAM:</strong> Contains the password hashes for local user accounts, which are used to authenticate users.</blockquote><blockquote><strong>SYSTEM </strong>: stores critical information about the computer’s hardware, drivers, and boot process including something called <strong>SysKey</strong> (AKA BootKey).</blockquote><ul><li>We need the <strong>sam </strong>and <strong>system </strong>together as to get the <strong>ntlm </strong>hash from <strong>sam </strong>, the key called “ <strong>Syskey</strong>” in system is cruical</li><li>Now to extract the user password we need a tool called “<strong>Mimikatz</strong>”</li></ul><blockquote><a href="https://github.com/gentilkiwi/mimikatz">Mimikatz</a> is an open-source application that allows users to view and save authentication credentials such as <a href="https://www.varonis.com/blog/kerberos-authentication-explained/?hsLang=en">Kerberos tickets</a>.</blockquote><ul><li>We will use it to get the user NTLM password hash ,so here is the command</li></ul><blockquote>lsadump::sam /sam:&lt;path to sam file&gt; /system:&lt;path to system file&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnlYZ65wKB-rurumumgJDQ.png" /></figure><ul><li>and here is our hash: <strong>b963c57010f218edc2cc3c229b5e4d0f</strong></li><li>Now to get the password we need to crack this hash , i will use crackstation to do this</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blJAbwQRwJog8qcDqtYsDw.png" /></figure><ul><li>here is our password “<strong>iloveyou</strong>” , so the flag is</li></ul><blockquote>CONCTF{iloveyou}</blockquote><p>===============================================================</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3ada867baff" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>