<?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 Careless Finch on Medium]]></title>
        <description><![CDATA[Stories by Careless Finch on Medium]]></description>
        <link>https://medium.com/@careless_finch?source=rss-70138eae8b2f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*95KMhnxLuLGNp9vUPwej-Q.jpeg</url>
            <title>Stories by Careless Finch on Medium</title>
            <link>https://medium.com/@careless_finch?source=rss-70138eae8b2f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:49:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@careless_finch/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[Host a CTF for free!]]></title>
            <link>https://medium.com/zh3r0/host-a-ctf-for-free-6ec5a51ce728?source=rss-70138eae8b2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ec5a51ce728</guid>
            <category><![CDATA[zh3r0ctf]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Careless Finch]]></dc:creator>
            <pubDate>Sat, 04 Jul 2020 16:36:01 GMT</pubDate>
            <atom:updated>2021-03-10T17:33:48.356Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3EmORDQyTLP6on_20GLlA.png" /><figcaption>Zh3r0 CTF Banner</figcaption></figure><p>In this blog, I will be talking about how we hosted our CTF for free, the issues we faced and certain tips and tricks that we used to make the user experience smooth. This will provide you with most of the resources and information required to host your own CTF for free.</p><h3><strong>Back Story</strong></h3><p>Before we get started with the tutorial I would like to talk about how this all began.</p><p>Team Zh3r0 began as a group of like minded high school students interested in cyber security and technology. We started playing CTFs from April 2020, and after playing few CTFs we had a desire to host our own CTF. Although we had no prior experience of hosting a CTF, we planned to conduct a test CTF to asses the level of complexity involved and know the responses of the players.</p><p>We conducted Zh3r0-pre-CTF on May 5th 2020 involving more than 150 active users and it gave us a base idea of the complexity involved.</p><p>Around May 15th we started our preparation for the main event.</p><h3>Planning</h3><p>We first discussed about the Authors and the challenges we were going to have. Unfortunately some members of Zh3r0 were not available at those days, but still we decided to proceed with the CTF.</p><p>We planned to have all the common categories as well as some new categories to make the competition more exciting.</p><p>Then we agreed upon the authors and the challenges we were gonna make.</p><p>Then we reached out to some sponsors. Hack The Box and Try Hack Me sponsored our Prizes.</p><h3>Stats</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-3Rms55phR1PKKkXD_FCDg.png" /><figcaption>CTFd stats</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*i-28fJG9qRPpxoF7PP50sQ.png" /><figcaption>Cloud flare stats</figcaption></figure><p>We got over 2000 users registered and over 1000 teams.</p><p>We handled close to 3 Million requests severing around 80 GB of data.</p><p>Our top 5 audience were from India, US ,France, Japan and UK.</p><p>Cloud Flare helped us in reducing the loading times by caching our website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*9dNNAVcdL_bXITkyiVXz4Q.png" /></figure><h3>Infra</h3><p>So we went overkill on infra as we didn’t have any previous experience in hosting a big CTF like this.</p><p>We didn’t have any infra sponsors so we went with all the providers who offered free credits for signing up. We chose three- Digital Ocean, Google Cloud and Microsoft Azure.</p><p>So in Digital Ocean we got $100, GCP $300, Azure $200.</p><h4>For CTFd hosting</h4><p>We chose Azure as GCP were not accepting our quota increase request on cores. We were limited to 12 cores. :(</p><p>We kept 32 cores which was way overkill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KcUX_oI7ESNOekVoUTJAYA.png" /></figure><h4>Issues</h4><p>After the CTF had started we noticed that the site was lagging and only 2 cores were getting used -_-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*2Qm_Tk8AdHchOxosZMY6pg.png" /></figure><p>I looked for solutions online and found that it is due to gunicorn workers were set to 4. So I increased it (65) and the site crashed :(</p><p>Every time I started it, it crashed. So I reduced the core count to 20 and reduced the no. of workers (41). Surprisingly it worked!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pIJFR3yiQQMpAj_yNKZGWw.png" /></figure><p>After that it was smooth. (•‿•)</p><h4>Challenge Servers</h4><p>So for PWN, Crypto and Misc. challenges, we used GCP and for web and Hacking machines we used Digital Ocean.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*c_zYE7mubkXhKddMRrdIyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*B_A3XKm-6BNMBioolG8hyw.png" /></figure><p>For PWN, we had 3 servers to reduce load and for smoother experience. The one in India had 8 cores, Germany and US 4 cores each. We didn’t set up load balancing for PWN as multi region LB is costly. We gave all the to the players.</p><p>For Crypto and Misc. we didn’t had any load balancing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*nTbh6gswMYs-JzjrwOD1WA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/176/1*RSCo43S_jaeZiShViV9Fbw.png" /></figure><p>For web, we used 2 similar servers with 6 cores and did round robin load balancing (setting both server IPs are 2 A records).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/173/1*KqcJjfntBJR3Zy7DM_ZN6g.png" /></figure><p>For hacking machine also we had 2 servers (4 cores) with the same load balancing technique.</p><h3>Technical Part</h3><p>Now onto the technical stuff.</p><h4>It is advised to git clone from <a href="https://github.com/CTFd/CTFd">CTFd/CTFd: CTFs as you need them (github.com)</a> and run</h4><blockquote>docker-compose up</blockquote><h4>You can follow the below procedure also</h4><h4>CTFd</h4><p>To run CTFd from the docker hub image.</p><blockquote>docker run -d -it -p 80:8000 ctfd/ctfd</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Jx-eecA473cq8oz7IFnzEw.png" /></figure><p>Now go to the public IP and it will be up</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vsYh5ZC1CWqAEJvh8EwiIg.png" /><figcaption>I have hosted in my local for this</figcaption></figure><p>It is enough for small CTFs. Just make sure you edit the gunicorn workers.</p><h4>Editing workers</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oRoPe-gLipZfF58gxYV0Lw.png" /></figure><blockquote>docker ps<br>docker exec -it &lt;container id&gt; /bin/sh<br>vi docker-entrypoint.sh</blockquote><p>Get inside the docker and change the workers inside the start script and commit the docker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*irM0c8pQZoaJcr33gt0G6g.png" /></figure><p>After that exit and commit the docker</p><blockquote>docker commit &lt;container id&gt; &lt;name&gt;<br>docker run -d -it -p 80:8000 &lt;name&gt;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*Qn3kT8CwAIrW1-lUjl-qnQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QskPvBiNVtKGWh-VhmwyZQ.png" /></figure><p>CTFd setup is now complete. You can now setup the admin password and other stuff.</p><h4>Cloud Flare</h4><p>I used Cloud Flare as our DNS manager, CDN and for DDOS protection. More over its <strong>free</strong>!</p><p>It also helped us by providing free SSL certificate and also caching some parts of the website. Half of the requests were cached!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GO1Ua9oENieTrm5TA1jl6A.png" /></figure><p>Just point A records to the servers and don’t forget to proxy the CTFd server.</p><p>That’s all!</p><h4>Mail Server</h4><p>I was too lazy to configure mail server so I used <strong>mailgun </strong>as it is very easy to setup. Just add the records as they say and add the API key to CTFd. Done!</p><p>First 5000 mails are free in Mailgun!</p><h3>Conclusion</h3><p>So this was an insight on our CTF hosting pathway. And how we hosted an international CTF for free.<br>Even though we faced some issues, it the event was a great success considering it was our first CTF. This shows that if you are willing to take risks and are determined then you can succeed in anything.</p><p>All enjoyed our CTF. We got good ratings in CTF Time too!</p><p>Moreover hosting Zh3r0 CTF helped me learn a lot of new things.</p><p>If you have any feedback or suggestions please write it down at the response section below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ec5a51ce728" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/host-a-ctf-for-free-6ec5a51ce728">Host a CTF for free!</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-Text madness-Official Write-up]]></title>
            <link>https://medium.com/zh3r0/zh3r0-ctf-text-madness-official-write-up-d17aed038cb3?source=rss-70138eae8b2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d17aed038cb3</guid>
            <category><![CDATA[zh3r0]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[zh3r0ctf]]></category>
            <category><![CDATA[text]]></category>
            <dc:creator><![CDATA[Careless Finch]]></dc:creator>
            <pubDate>Fri, 08 May 2020 07:23:29 GMT</pubDate>
            <atom:updated>2020-05-08T07:23:29.045Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a very easy forensic challenge, You are given 2 text files and an image.</p><p>If you compare text in those two files using any comparison tool like <a href="https://www.diffchecker.com/diff">DiffChecker</a> you will find this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VAWA1u3i7z_FKr-JL5MahQ.png" /></figure><p>You just have to check what is different in each word highlighted, You will get this:</p><blockquote>gregfdtfgedyu</blockquote><p>Now this is the key to steghide</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*Ai6bToJOamENoGb_iLnftg.png" /></figure><p>Flag: <strong>zh3r0{how’s_comparing}</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d17aed038cb3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/zh3r0-ctf-text-madness-official-write-up-d17aed038cb3">zh3r0 CTF-Text madness-Official Write-up</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-Are you the Master? 2 Official Write-up]]></title>
            <link>https://medium.com/zh3r0/zh3r0-ctf-are-you-the-master-2-official-write-up-c8f3e2f69402?source=rss-70138eae8b2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8f3e2f69402</guid>
            <category><![CDATA[zh3r0ctf]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[rsa]]></category>
            <category><![CDATA[zh3r0]]></category>
            <category><![CDATA[masculinity]]></category>
            <dc:creator><![CDATA[Careless Finch]]></dc:creator>
            <pubDate>Thu, 07 May 2020 15:48:42 GMT</pubDate>
            <atom:updated>2020-05-07T15:48:42.763Z</atom:updated>
            <content:encoded><![CDATA[<p>Master 2 is more like a Math problem than a RSA problem.</p><p>So you are given 3 files. 2 from challenge and 1 from Google Drive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*NqklCUmTx0GEaQaahnsdew.png" /></figure><p>From python file:</p><pre>from Crypto.PublicKey import RSA<br>from Crypto.Util.number import *<br>from key import pt<br>p=getPrime(1024)<br>q=getPrime(1024)<br>x=getPrime(1024)<br>y=getPrime(1024)<br>n1=p*q<br>n2=x*y<br>e=65537<br>ct1=pow(pt,e,n1)<br>ct2=pow(pt,e,n2)<br>ootp=”N1 : “+str(n1)+”\nN2 : “+str(n2)+”\nE : 65537\nct1 : “+str(ct1)+”\nct2 : “+str(ct2)<br>aaa=”p+q+r+s: “+str(p+q+r+s)+”\n(p-q)-(x-y): “+str((p-q)-(x-y))<br>red=open(“RSA.txt”,”w”)<br>red.write(ootp)<br>red.close()<br>red=open(“prxy.txt”,”w”)<br>red.write(aaa)<br>red.close()</pre><p>We got to know that it is made up of 4 primes and n1=p*q|n2=x*y</p><p>Now lets get to making script</p><pre>n1 = 12417127080422815737857829178789430387283644656796286644007190181275233038254982650900520208444570033944895679971951177467573644862800675887334791773359856548963510883567782247183009990733340366515218860231712518296231805253324709898640633155086183815927550133617562353243937514697745005568701059532650134387938324758897250094164121081436717576172349562189353547255742022806306628952658668123205041188480195366849528415075164756192945905158788561605088805110011605401289098591967818721785957410628314905762182529466041792601801094942412062721024595217699250282503561387690942463365022141266614422371304745947051066911<br>n2 = 13535742671170343194649874173445485003326954678704056429640294829224266409224232171669448606741290104143837444968157218953588036492336055641208728870300040922937631422614960829636268967870984021444065500833099886484031433400395173560484969029637105065058222908335510602204222935794203521997891554881452372380306145071165640328082610889602712719130949436394915102917587068497410741572114811122786488523349899125527219920591403522973523980874897487583741525542325853756358317440225706520923430697121297492167491992231025785528653319733872313411135278109820094900710129215353037113925434816021050732043191473976761644041<br>e = 65537<br>ct = 3776478243125222658515594635416338601627622074381925747470047865965623614236065341693278202724655814789048471523954172003395524166507583326259250957544858846929239564248292316635638398557784195461238822667662560834324258193103655795748902328797091392483535364256029591727235692999622720632986889258592903607027869408557025837341680731133831338187240101119708022782009249576510526966551941049438189519877273072953206086848387281968052298929142667413389464722377867077939780430741421774157426130552850296605612726411410208158788106389052244165013174051754347396411043231017624630314985276556512095367376194166983202656</pre><pre>#p+q+x+y<br>a = 461865358514192960434982980388049288328080532500468524967649213492976854354009981587975391303842169821869139144259614711715053619184463738325803100173566859332560510654710569094589524171402215115591813322237293103273306369558719284046155313287463229499747397470701965008926099021198426250727264745924621147722<br>#p+y-(q+x)<br>b = 72904645555375913591333808068681895072188978607726716983118482918641130003107637360771239343328911228636046234796389775690478441161899404683856843572593683704394524558615891086457573500744380638740361933791300531356267210630868457364050727161034745914546893554710104131439008766029508068850386010386259775806</pre><pre>#p+y<br>c=(a+b)/2<br>#q+x<br>d=(a-b)/2</pre><pre>#px+qy<br>aa=(c*d)-(n1+n2)</pre><pre>&quot;&quot;&quot;<br>Now its time for Math :P</pre><pre>n1*n2=p*q*x*y<br>so, we can write px as n1*n2<br>                       -----<br>                        q*y<br>so aa becomes:<br>aa = n1*n2 + q*y<br>     -----<br>      q*y<br>so cross multiplying it we get:<br>q*y*aa = n1*n2 + (q*y)^2</pre><pre>so<br>(q*y)^2 - q*y*aa + n1*n2</pre><pre>Now we have to solve quadratic equation<br>     <br>q*y = aa + √(aa^2) - 4*(n1*n2)<br>      ----------------------------<br>                2<br>I am taking q*y as qy<br>&quot;&quot;&quot;<br>qy = aa + (isqrt((aa**2)-(4*n1*n2)))</pre><pre>#q=HCF(n1,qy)<br>q = GCD(n1,qy)<br>p = n1//q<br>phin = (p-1)*(q-1)<br>d = inverse(e,phin)<br>print(long_to_bytes(pow(ct,d,n1)))</pre><p>After running this we get the flag:</p><h3><strong>zh3r0{Th1s_1s_4_K3y_gfh}</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*D5PYCmh2TuzypzHCgl03wg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8f3e2f69402" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/zh3r0-ctf-are-you-the-master-2-official-write-up-c8f3e2f69402">zh3r0 CTF-Are you the Master? 2 Official Write-up</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-Are you the Master? 1 Official Write-up]]></title>
            <link>https://medium.com/zh3r0/zh3r0-ctf-are-you-the-master-1-official-write-up-9cb03cfc5527?source=rss-70138eae8b2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cb03cfc5527</guid>
            <category><![CDATA[areyouthemaster]]></category>
            <category><![CDATA[zh3r0ctf]]></category>
            <category><![CDATA[zh3r0]]></category>
            <category><![CDATA[collision]]></category>
            <category><![CDATA[máster]]></category>
            <dc:creator><![CDATA[Careless Finch]]></dc:creator>
            <pubDate>Thu, 07 May 2020 11:09:00 GMT</pubDate>
            <atom:updated>2020-05-07T13:17:04.507Z</atom:updated>
            <content:encoded><![CDATA[<p>This is just a simple md5collision challenge. When you visit the given link, You are greeted with this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*WSHfA16eFvBsXfwdeyP6kA.png" /></figure><p>If you view the source code it says:</p><p>&lt;!DOCTYPE html&gt; &lt;h1&gt;&lt;b&gt;Hello&lt;/b&gt;&lt;/h1&gt;&lt;h2&gt;Welcome to the best collision&lt;/h2&gt;&lt;br&gt;&lt;img src=’<a href="http://134.209.157.250:9000/extras/lol.webp">extras/lol.webp</a>’&gt;<em>&lt;! — view.php may help you →</em></p><p>If you go to view.php, then you are given the source code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*bcMIWTD03bFrl-l2bvO7nA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/155/1*5Mf4lJ1-Kv5civbsXcI7Mg.png" /></figure><p>You can see that its taking 2 get requests one and two.</p><p>Also it is checking whether one is not equal to two.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*HdGO52D8bLX8JUbGS65ljg.png" /></figure><p>Then it is checking whether md5 hash of one is = to md5 hash of two.</p><p>So if we supply 2 values such that md5(one)=md5(2), It prints the answer.<br>In this case I am using two values I got from <a href="https://github.com/spaze/hashes/blob/master/md5.md">here</a>:</p><blockquote><strong>240610708 </strong>and <strong>QLTHNDT</strong></blockquote><p>You just need to pass it through URL like:</p><p><a href="http://134.209.157.250:9000/?one=240610708&amp;two=QLTHNDT"><strong><em>http://134.209.157.250:9000/?one=240610708&amp;two=QLTHNDT</em></strong></a></p><p>You get a black image click at it, You will get a pop up saying:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*PijPGoY0dzV0ikCODZhXAQ.png" /></figure><p>Flag:<br>zh3r0{<a href="https://tinyurl.com/y8t4hy4u">https://tinyurl.com/y8t4hy4u</a>}</p><p>Also note for md5 collision to work it should be == and not ===. Read more about it <a href="http://www.7codes.info/post/4/difference-between-==-and-===">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cb03cfc5527" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/zh3r0-ctf-are-you-the-master-1-official-write-up-9cb03cfc5527">zh3r0 CTF-Are you the Master? 1 Official Write-up</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-Are you the Master? 0 Official Write-up]]></title>
            <link>https://medium.com/zh3r0/zh3r0-ctf-are-you-the-master-0-official-write-up-c872848a8a17?source=rss-70138eae8b2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c872848a8a17</guid>
            <category><![CDATA[zh3r0ctf]]></category>
            <category><![CDATA[zh3r0]]></category>
            <category><![CDATA[masters]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[areyouthemaster]]></category>
            <dc:creator><![CDATA[Careless Finch]]></dc:creator>
            <pubDate>Thu, 07 May 2020 09:42:09 GMT</pubDate>
            <atom:updated>2020-05-07T10:16:08.244Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a forensic challenge. You are given a corrupted image file.<br>When you open it in hex editor and scroll down you will see a URL like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/162/1*GXK8Pz5vAlFZ6L9BNreZ_Q.png" /></figure><p>On visiting that you will be redirected to google drive where you will be getting a flag.bps file.</p><p>.bps are patch file which can be patched to appropriate ROMs using certain software. In this case I am using <a href="https://www.smwcentral.net/?a=details&amp;id=11474&amp;p=section">flips</a>.</p><p>After than you have to fix the Image headers and remove that link from the footer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*sqnC_nyWj-99P-zMbdnmXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*JUeYOGxuPrgshhbQh5OLHw.png" /></figure><p>Most people who messaged me did a mistake here. They didn’t fix this IDAT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*Zb7_4PVXgXBTIExmTLEkdQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*2dslxECQ488wDJRqxH46zw.png" /></figure><p>After than save it. If everything is fixed it will show purple else it will show black.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*UMRE75Ftqo7t25wBuPwI9Q.png" /></figure><p>After that you just have to Patch the file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*sIg7eeJ-ay9lb9ARfrbfHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*InEGsBtLNrFBkaByE3fKCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GiphhrIurwyJ3Ih7sMBYwA.png" /></figure><h3><strong>Then you get the flag.</strong></h3><p>Hope you all enjoyed this write-up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c872848a8a17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/zh3r0-ctf-are-you-the-master-0-official-write-up-c872848a8a17">zh3r0 CTF-Are you the Master? 0 Official Write-up</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[Writeup for Rivest Shamir Adleman (Crypto)]]></title>
            <link>https://medium.com/zh3r0/writeup-for-rivest-shamir-adleman-crypto-75d11ada4827?source=rss-70138eae8b2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/75d11ada4827</guid>
            <category><![CDATA[rsa]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[houseplant-ctf]]></category>
            <category><![CDATA[riceteacatpandactf]]></category>
            <dc:creator><![CDATA[Careless Finch]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 15:24:49 GMT</pubDate>
            <atom:updated>2020-04-28T15:26:57.724Z</atom:updated>
            <content:encoded><![CDATA[<h3>Writeup for Rivest Shamir Adleman (Crypto) House plant ctf</h3><h3><strong>Rivest Shamir Adleman</strong></h3><blockquote>A while back I wrote a Python implementation of RSA, but Python’s really slow at maths. Especially generating primes.</blockquote><p>The was like one of the basic RSA challenge but it took me a while to figure that out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mtYsq2J57ZiW4rmYcemYVQ.png" /></figure><blockquote><strong>Publickey.json</strong><br>{“n”: 5215102981058174620100754813213017625443626121109099133656454487932754235228856710661075956048331662593471061936196995326042367228980357932444477256496372200491821105922086202549125972429240337409176104237690646206864286971669895986447543904638596421264915837230690039800948447210554706127145724519079487023930504508462885777797916915752532472831523596571484341342780877665593787078959178539369282442522815729401991936772080063808078804309866694041173404657777517753433918322041736500126265865045225739241983004392226366771900174432875800986183772576663590650132115754645829772406067103501861326445534174181231077263, “e”: 5}</blockquote><blockquote><strong>secrets.txt.enc<br></strong>0x20ba6aee3bd1c1b751082bfcb667bad8b632504336f3994606594f4ab756f66e3a24f9782da3a07280aa67cd875e6e33f2c573abf7b7901e5cd428ab8ceb6738b13536fee35a90dac7c2175e41eea5977dfbaff6e68f5b1f6fa3673cba64923b02bff899e2535f7d09afecae6774260ce8be4867f45e63571a2055c645a03dd05d9dd596eec273e1ef4352d712deffc658745d17853cbe5c3bc138574703c994be5374e3ac73279f51f23ec7e55b25b6ab904e06562025c380ce4c4d5ddffc2d649fbd1421b82090d01f24c70254187f1f435e64d7b2bf8395915da3cfdd8680187566b6a51e48146b4a40f08aebdedca8a08557ea3dc5efc2c50377b5764a8c</blockquote><blockquote><strong>component.txt<br></strong>88761620475672281797897005732643499821690688597370440945258776182910533850401433150065043871978311565287949564292158396906865512113015114468175188982916489347656271125993359554057983487741599275948833820107889167078943493772101668339096372868672343763810610724807588466294391846588859523658456534735572626377</blockquote><p>Secrets was the cipher text and component was one of the prime number used to generate public key. So RSA became easy.</p><p>I was too lazy to make a script so I just did it in IDLE.</p><blockquote>In [1]: from Crypto.PublicKey import RSA</blockquote><blockquote>In [2]: from Crypto.Util.number import *</blockquote><blockquote>In [3]: p=88761620475672281797897005732643499821690688597370440945258776182910533850401433150065043871978311565287949564292158396906865512113015114468175188982916489347656271125993359554057983487741599275948833820107889167078943493772101668339096372868672343763810610724807588466294391846588859523658456534735572626377</blockquote><blockquote>In [4]: n=5215102981058174620100754813213017625443626121109099133656454487932754235228856710661075956048331662593471061936196995326042367228980357932444477256496372200491821105922086202549125972429240337409176104237690646206864286971669895986447543904638596421264915837230690039800948447210554706127145724519079487023930504508462885777797916915752532472831523596571484341342780877665593787078959178539369282442522815729401991936772080063808078804309866694041173404657777517753433918322041736500126265865045225739241983004392226366771900174432875800986183772576663590650132115754645829772406067103501861326445534174181231077263</blockquote><blockquote>In [5]: q=n/p</blockquote><blockquote>In [6]: p*q==n<br>Out[6]: True</blockquote><blockquote>In [7]: ct=0x20ba6aee3bd1c1b751082bfcb667bad8b632504336f3994606594f4ab756f66e3a24f9782da3a07280aa67cd875e6e33f2c573abf7b7901e5cd428ab8ceb6738b13536fee35a90dac7c2175e41eea5977dfbaff6e68f5b1f6fa3673cba64923b02bff899e2535f7d09afecae6774260ce8be4867f45e63571a2055c645a03dd05d9dd596eec273e1ef4352d712deffc658745d17853cbe5c3bc138574703c994be5374e3ac73279f51f23ec7e55b25b6ab904e06562025c380ce4c4d5ddffc2d649fbd1421b82090d01f24c70254187f1f435e64d7b2bf8395915da3cfdd8680187566b6a51e48146b4a40f08aebdedca8a08557ea3dc5efc2c50377b5764a8c</blockquote><blockquote>In [8]: e=5</blockquote><blockquote>In [9]: d=inverse(e,(p-1)*(q-1))</blockquote><blockquote>In [10]: long_to_bytes(pow(ct,d,n))<br>Out[10]: ‘VERIFICATION-UpTheCuts-END\n . — .\n/.-. \’ — — — — — .\n\\\’-\’ . — “ — “”-”-\’\n \’ — \’\n\nrtcp{f1xed_pr*me-0r_low_e?}’</blockquote><p><strong>Hence we got the flag</strong></p><blockquote><strong>rtcp{f1xed_pr*me-0r_low_e?}</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75d11ada4827" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/writeup-for-rivest-shamir-adleman-crypto-75d11ada4827">Writeup for Rivest Shamir Adleman (Crypto)</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[Writeup for Pie generator (Pwn 1)]]></title>
            <link>https://medium.com/zh3r0/writeup-for-pie-generator-pwn-1-b95cf5347aad?source=rss-70138eae8b2f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b95cf5347aad</guid>
            <category><![CDATA[houseplant-ctf]]></category>
            <category><![CDATA[careless-finch]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[riceteacatpandactf]]></category>
            <category><![CDATA[pwn]]></category>
            <dc:creator><![CDATA[Careless Finch]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 14:50:08 GMT</pubDate>
            <atom:updated>2020-04-28T15:27:26.022Z</atom:updated>
            <content:encoded><![CDATA[<h3>Writeup for Pie generator (Pwn 1) houseplant ctf</h3><h3><strong>Pie generator</strong></h3><blockquote>This website lets you make a pie and have it too!<br> <a href="http://challs.houseplant.riceteacatpanda.wtf:30007/">http://challs.houseplant.riceteacatpanda.wtf:30007</a></blockquote><p>This was an easy challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*hYSDLOdP4K0KS1FpjkvURw.png" /></figure><p>Go to the URL and open network tab in inspect elements.<br>Enter any number and click submit.<br>You will get output like our number was 56.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*KLulvFFaQ-QAoal-f4Rfpg.png" /></figure><p>You will see a POST request. Right click and select copy URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e-qEIf-4b5BwTSxMepWgWg.png" /></figure><p>You will get something like this</p><blockquote>curl ‘<a href="http://challs.houseplant.riceteacatpanda.wtf:30007/&#39;">http://challs.houseplant.riceteacatpanda.wtf:30007/&#39;</a> -H ‘User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0’ -H ‘Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8’ -H ‘Accept-Language: en-US,en;q=0.5’ — compressed -H ‘Referer: <a href="http://challs.houseplant.riceteacatpanda.wtf:30007/&#39;">http://challs.houseplant.riceteacatpanda.wtf:30007/&#39;</a> -H ‘Content-Type: application/x-www-form-urlencoded’ -H ‘Connection: keep-alive’ -H ‘Cookie: _ga=GA1.2.1700934888.1587754716; _gid=GA1.2.1468691736.1588083039’ -H ‘Upgrade-Insecure-Requests: 1’ — data ‘number=56&amp;timestamp=1588084.684605’</blockquote><p>In my case I have to change number=56 to 78.<br>Then paste it in terminal. <br>You got the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9L5e-QgRZEFnAYFMqcJSwQ.png" /></figure><p><strong>Flag: rtcp{w0w_sO_p53uD0}</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b95cf5347aad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/writeup-for-pie-generator-pwn-1-b95cf5347aad">Writeup for Pie generator (Pwn 1)</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>
    </channel>
</rss>