<?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 Amun-Ra on Medium]]></title>
        <description><![CDATA[Stories by Amun-Ra on Medium]]></description>
        <link>https://medium.com/@amun_rha?source=rss-8c0e7ee5c107------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*56wfcRzpyMgiJoP2xMI5bg.jpeg</url>
            <title>Stories by Amun-Ra on Medium</title>
            <link>https://medium.com/@amun_rha?source=rss-8c0e7ee5c107------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:21:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amun_rha/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[HSCTF’7 Write Up — Part 1]]></title>
            <link>https://medium.com/@amun_rha/hsctf7-write-up-part-1-1879b14433ba?source=rss-8c0e7ee5c107------2</link>
            <guid isPermaLink="false">https://medium.com/p/1879b14433ba</guid>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[hsctf7]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Amun-Ra]]></dc:creator>
            <pubDate>Mon, 08 Jun 2020 00:19:53 GMT</pubDate>
            <atom:updated>2020-06-08T00:19:53.749Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h3>HSCTF’7 Write Up — Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*K13F0jkKaATdLFU5cxcoFQ.png" /><figcaption>HSCTF’7 organized by High Schoolers</figcaption></figure><p>This is one of the few CTF where I felt like I quenched my thirst for knowledge and was satisfied when the CTF ended. This CTF had all types of well-designed and Informative Challenges for Beginners as well as Intermediate Players! So, here I am sharing what I learnt in this CTF with you guys. This part will contain some Easy Forensics Challenges. Hope you find this useful!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*fFfKS2wv5b8Abb3whcX4_g.png" /><figcaption><a href="http://www.freepik.com/">Designed by rawpixel.com / Freepik</a></figcaption></figure><h3>Comments — Forensics Challenge 1</h3><blockquote>I found this file on my Keith’s computer… what could be inside?</blockquote><blockquote>Author: AC</blockquote><p>Download Challenge File — <a href="https://github.com/AmunRha/CTF-Challenges/raw/master/ChallengeFiles/HSCTF7/Forensics/Comments/Comments.zip">Comments.zip</a></p><p>Let’s start with one of the easiest challenge in the bunch.</p><p>As usual I started unzipping all the consecutive files in this but I only got trolled doing that! Then checking the title again, gave me the solution to this challenge.</p><h4>Final Solution</h4><p>So, the solution of this challenge was given in the title, a simple google search with the keywords “Comments ZIP File” will land you in the right spot!</p><p>So, the question arises,</p><blockquote>What are Comments in a ZIP File?</blockquote><p>From — <a href="http://kb.winzip.com/help/winzip/help_comment.htm">http://kb.winzip.com/help/winzip/help_comment.htm</a></p><p><em>A comment is optional text information that is embedded in a Zip file. It can be viewed, created, edited, or deleted using the Comment window. Simply type in your text or use any common Windows cut, copy, or paste method. This feature is available for Zip files only (.zip or .zipx).</em></p><p>So, this is how we extract the comment without any tool but with a simple python script for any ZIP file.</p><pre>import zipfile</pre><pre>file = zipfile.ZipFile(&#39;&lt;zip file name&gt;&#39;)</pre><pre>text = file.infolist()<br>for info in text:<br>    print(info.comment)</pre><p>Running this script with all the ZIP files extracted gives us the flag,</p><p><strong>Flag — flag{4n6}</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*fFfKS2wv5b8Abb3whcX4_g.png" /></figure><h3>Picture Lab: Activity 10 — Forensics Challenge 2</h3><blockquote>Dear APCSA students,</blockquote><blockquote>You thought you were done with Picture Lab.</blockquote><blockquote>Unfortunately, <strong>you were wrong.</strong></blockquote><blockquote>We’re sorry. We should not have pushed this challenge out, it was irresponsible for us to deploy a meme challenge in the middle of a very <em>serious</em> “Catch-The-Flag” competition. We originally wrote this challenge as a joke, hoping that it would poke fun at Collegeboard’s APCSA “Picture Lab”; however, we now realize that this decision was insensitive and outright disrespectful to all those who have to solve the challenge. In the future, we promise that our challenges will not make you suffer as much as this trivial challenge does. We apologize in advance to all those who will suffer at the hands of this beginner-level challenge. I hope you are able to forgive us.</blockquote><blockquote>Sincerely,</blockquote><blockquote>AC/PMP/JC</blockquote><p>Download Challenge Files — <a href="https://github.com/AmunRha/CTF-Challenges/raw/master/ChallengeFiles/HSCTF7/Forensics/PictureLab/mogodb">mogodb</a> <a href="https://github.com/AmunRha/CTF-Challenges/raw/master/ChallengeFiles/HSCTF7/Forensics/PictureLab/PictureLabStudentGuide.pdf">PictureLabStudentGuide.pdf</a></p><p>This challenge is based on correcting the File Headers/Magic Numbers and few of the File Chunks, here it was PNG File Chunks.</p><blockquote>What are Magic Numbers?</blockquote><p>From — <a href="https://www.ibm.com/support/pages/what-magic-number">https://www.ibm.com/support/pages/what-magic-number</a></p><p><em>A </em><strong><em>magic number</em></strong><em> is a numeric or string constant that indicates the </em><strong><em>file</em></strong><em> type.</em></p><p>The first thing I did was to read the PDF given to me, this gave me the required foothold on the challenge. It mentioned a tool called <a href="http://www.libpng.org/pub/png/apps/pngcheck.html">pngcheck,</a> which is a tool used to check the integrity of the given PNG files mainly using its various Data Chunks.</p><p>The file name “mongodb” is not to be confused with the original database MongoDB. This was given as a misdirection which u can confirm from the hexdump of the file.</p><p>To install Pngcheck in linux based systems,</p><pre>$ sudo apt install pngcheck</pre><p>Basic usage,</p><pre>$ pngcheck -v sample.png</pre><p>For more info on the tool,</p><pre>$ man pngcheck</pre><pre>$ pngcheck -h</pre><p>But, for me from some failed and successful experiences with PNG Headers and Data Chunks in previous CTFs, it was easy for me to solve this and get one of my First Blood! This proved failure is always an opportunity to learn more, and you never lose any knowledge failing anything.</p><h4>Final Solution</h4><p>So, the hexdump of the file “mongodb” gives us,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*4C35p7IquXWxu9IL7FbJAg.png" /><figcaption>Hexdump of given file in GHex</figcaption></figure><p>The few initial Hex digits suggested that it was a PNG File header and to support that assumption the chunk “IHDR” was also visible as “.H.R”</p><p>PNG File Headers and it’s Important Chunks:</p><pre>File Header/Magic number - <strong>89 50 4E 47 0D 0A 1A 0A</strong></pre><pre>Critical Chunks:</pre><pre><strong>IHDR</strong> - Must be the first chunk; it contains the image&#39;s width, height, etc<br><strong>PLTE </strong>- Contains the list of colors<br><strong>IDAT </strong>- Chunk contains the actual image data<br><strong>IEND</strong> - Marks the image end</pre><p>For more info — <a href="https://en.wikipedia.org/wiki/Portable_Network_Graphics">https://en.wikipedia.org/wiki/Portable_Network_Graphics</a></p><p>So, correcting those specific chunks which I can find from the few characters given, the final output will be,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*83GiQ6dNjbbONYJXnLJHGQ.png" /><figcaption>Final corrected Chunks, File Header, IDAT, IHDR</figcaption></figure><p>and,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*H6dyfaEpx5AOCL4_s0MVjw.png" /><figcaption>Final corrected chunk IEND marking the end of PNG file</figcaption></figure><p>And thus, saving this output gave us the required Image and the flag in it,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*_cjPWAOjDgldB9ogm0A3og.png" /><figcaption>Final Image produced after correcting all the Magic Number and Chunks</figcaption></figure><p><strong>Flag — flag{and_y0u_th0ught_p1ctur3_l4b_was_h4rd}</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*fFfKS2wv5b8Abb3whcX4_g.png" /></figure><h3>We Love Puppies — Forensics Challenge 3</h3><blockquote>Can you find what’s hidden here?</blockquote><blockquote><a href="https://we-love-puppies.web.hsctf.com/">https://we-love-puppies.web.hsctf.com/</a></blockquote><blockquote>Author: Madeleine</blockquote><p>If the link is not working then download the images from the files here, <a href="https://github.com/AmunRha/CTF-Challenges/tree/master/ChallengeFiles/HSCTF7/Forensics/WeLovePuppies">puppiesImages</a></p><p>Although the whole challenge was simple, the number of solves was comparatively less due to the way this was presented which made it confusing. I was lucky to find it fast enough because of my checklist of certain things to work and try on the given files. So, folks keep in mind to always go with the basics first, you may never know what you can find there.</p><p>This challenge is based on simple <a href="http://steghide.sourceforge.net/documentation.php">steghide</a> extraction.</p><h4>Final Solution</h4><p>After downloading all the images, and running steghide on each and every one of them without password gave me a text file from one of the image,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*OBq6scW0P2decw7kXMA7eA.png" /><figcaption>The text file extracted from the image using steghide without password.</figcaption></figure><p>Now, again running steghide with the password we got on all files we get yet another file from another image which contained the flag,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*xNzDMScluRqM11nrAuNA3g.png" /><figcaption>The text file extracted from one of the image using steghide with password</figcaption></figure><p><strong>Flag — flag{w3_sUr3_d0_l0v3_pupp13s_45654}</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*fFfKS2wv5b8Abb3whcX4_g.png" /></figure><p>That’s it for this part! Part 2 will contain tougher and more advanced Reconnaissance and Forensics Challenge, usage of tools like autopsy, FMOD extractor.</p><p>Check out my other write ups from yet another CTF,</p><p><a href="https://medium.com/zh3r0/houseplant-ctf-write-up-part-1-3253f8dd32f4">Houseplant CTF Write Up Part 1</a></p><p>Feel free to contact me through,</p><ul><li>Discord — @Amun-Ra#3245</li><li>Instagram — <a href="https://www.instagram.com/amun.rha/">@Amun_rha</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1879b14433ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Houseplant CTF Write Up Part 2]]></title>
            <link>https://medium.com/zh3r0/houseplant-ctf-write-up-part-2-2abc1621510a?source=rss-8c0e7ee5c107------2</link>
            <guid isPermaLink="false">https://medium.com/p/2abc1621510a</guid>
            <category><![CDATA[cipher]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[fun]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Amun-Ra]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 21:44:37 GMT</pubDate>
            <atom:updated>2020-06-15T22:25:55.515Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*du9K65TOOuqjUvGKeH0xww.png" /><figcaption>Houseplant CTF front page</figcaption></figure><p>Welcome to Part 2! This part will covers some of the Cryptography challenges I did with our Team <a href="https://medium.com/zh3r0">ZH3R0</a> for Houseplant CTF organized by RiceTeaCatPanda CTF Team.</p><p>If you haven’t checked the first part, check it out below,</p><p><a href="https://medium.com/zh3r0/houseplant-ctf-write-up-part-1-3253f8dd32f4">Houseplant CTF Write Up Part 1</a></p><p>Let’s get started!</p><h3>11 — Cryptography Challenge 1</h3><blockquote>I wrote a quick script, would you like to read it? — Delphine<br> <br> (doorbell rings)<br> delphine: Jess, I heard you’ve been stressed, you should know I’m always ready to help!<br> Jess: Did you make something? I’m hungry…<br> Delphine: Of course! Fresh from the bakery, I wanted to give you something, after all, you do so much to help me all the time!<br> Jess: Aww, thank you, Delphine! Wow, this bread smells good. How is the bakery?<br> Delphine: Lots of customers and positive reviews, all thanks to the mention in rtcp!<br> Jess: I am really glad it’s going well! During the weekend, I will go see you guys. You know how much I really love your amazing black forest cakes.<br> Delphine: Well, you know that you can get a free slice anytime you want.<br> (doorbell rings again)<br> Jess: Oh, that must be Vihan, we’re discussing some important details for rtcp.<br> Delphine: sounds good, I need to get back to the bakery!<br> Jess: Thank you for the bread! ❤<br> <br> Dev: Delphine<br> <br> edit: This has been a source of confusion, so: the code in the first hint isn’t exactly the method to solve, but is meant to give you a starting point to try and decode the script. Sorry for any confusion.</blockquote><blockquote><strong>Hint!</strong> I was eleven when I finished A Series of Unfortunate Events.</blockquote><blockquote><strong>Hint!</strong> Flag is in format:<br> <br> rtcp{.*}<br> <br> add _ (underscores) in place of spaces.</blockquote><blockquote><strong>Hint!</strong> Character names count too</blockquote><p>This is a fairly a simple cipher that can be manually broken. So, what cipher is this?</p><p>During the event the first thing I did was google the hint, as it looked like some sort of book.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TlM-txQUtAgpB8ru0eTjnQ.png" /><figcaption>Google search of A Series Of Unfortunate Events</figcaption></figure><p>And we got a hit! But this didn’t give me a lot of information as to how to solve the challenge. I then searched for “A Series Of Unfortunate Events Cipher”, which landed me on a page which said about <a href="https://snicket.fandom.com/wiki/Sebald_Code"><strong>Sebald cipher</strong></a><strong>.</strong></p><p>Apparently this is a popular cipher used in that movie and some other movies too.</p><blockquote>How does a Sebald cipher work?</blockquote><p>A keyword mostly variations of “rings”, “bell” or “ringing” starts and ends the cipher just like the flower brackets used in programming. The encoded text can be inside a paragraph, a dialogue conversation, etc.</p><p>To find the decoded text one must count the first word immediately after the keyword and every 11th word from it until the next keyword occurs. This will result in the final decoded text. For example check the solution.</p><p>I tried to count the words as to how the cipher must be solved, but this had some modification. So, instead of counting from the word immediately followed by the keyword and all the 11th word from it where the result would be,</p><p>“delphine always Delphine…” and so on.</p><p>Note:- As the hint suggested the speakers name must be counted.</p><p>But the final result didn&#39;t make sense.</p><h4>Solution</h4><p>So, to get the flag you would need to count from the 11th word from the keyword rather than from the word immediately starting from it. And the final result would be as such,</p><blockquote>(doorbell rings)<br> delphine: Jess, I heard you’ve been stressed, you should know<strong> I’m</strong> always ready to help!<br> Jess: Did you make something? I’m <strong>hungry</strong>…<br> Delphine: Of course! Fresh from the bakery, I wanted to <strong>give</strong> you something, after all, you do so much to help <strong>me</strong> all the time!<br> Jess: Aww, thank you, Delphine! Wow, this <strong>bread</strong> smells good. How is the bakery?<br> Delphine: Lots of customers <strong>and</strong> positive reviews, all thanks to the mention in rtcp!<br> Jess: <strong>I</strong> am really glad it’s going well! During the weekend, I <strong>will</strong> go see you guys. You know how much I really <strong>love</strong> your amazing black forest cakes.<br> Delphine: Well, you know that <strong>you</strong> can get a free slice anytime you want.<br> (doorbell rings again)</blockquote><pre><em>I’m hungry give me bread and I will love you</em></pre><p>Format the sentence and you would get the flag.</p><p><strong>Flag — rtcp{I’m_hungry_give_me_bread_and_I_will_love_you}</strong></p><h3>Post-Homework Death — Cryptography Challenge 2</h3><blockquote>My math teacher made me do this, so now I’m forcing you to do this too.<br> <br> Flag is all lowercase; replace spaces with underscores.<br> <br> Dev: Claire</blockquote><blockquote><strong>Hint!</strong> When placing the string in the matrix, go up to down rather than left to right.</blockquote><blockquote><strong>Hint!</strong> Google matrix multiplication properties if you’re stuck.</blockquote><p>Download challenge file — <a href="https://github.com/ZH3R0/HouseplantCTF/blob/master/posthomeworkdeaths.txt"><em>posthomeworkdeaths.txt</em></a></p><p>This is a simple high school math-related problem of <strong>Matrix Multiplication </strong>and a simple substitution cipher called <strong>Letter Number (A1Z26)</strong>. If you know how to manipulate Matrix and Multiply them then this is easy as pie.</p><p>The given file contains two important things we require to solve the challenge, the decoding matrix and the string matrix. So, let’s get to the solution.</p><p><em>To know more about matrix please google on Matrix Multiplication.</em></p><h4><strong>Solution</strong></h4><p>As the hint mentioned place the numbers below the string in the matrix from up to down giving you a <strong>3x7</strong> matrix like this.</p><pre>String-<br>37 34 160 58  66 143 11</pre><pre>36 27 237 110 93 210 33</pre><pre>-1 -7 56  44  22  49 22</pre><p>and the <strong>3x3 </strong>decoding matrix,</p><pre>decoding matrix-<br>1.6  -1.4  1.8</pre><pre>2.2  -1.8  1.6</pre><pre>-1     1    -1</pre><p>multiplying both matrix in the given order <strong>string matrix * decoding matrix </strong>to get the final product as a <strong>3x7.</strong></p><pre>Product-<br>7   4  25  18  15  23  11</pre><pre>15 15  15  0   13  15   0</pre><pre>0   0  21  8   5   18   0</pre><p>This is another cipher called <strong>Letter Number (A1Z26) Cipher </strong>we must again solve.</p><p>In this cipher the numbers are substituted with letters, no not ASCII values, just simple A=1;B=2, etc, and solving it from up to down considering 0 as space gives you,</p><pre><em>go do your homework</em></pre><p>Format it and you get the flag.</p><p><strong>Flag — rtcp{go_do_your_homework}</strong></p><h3>[To Be DONE! ;)]</h3><h3>Sizzle — Cryptography Challenge 4</h3><blockquote>Due to the COVID-19 outbreak, we ran all out of bacon, so we had to use up the old stuff instead. Sorry for any inconvenience caused…<br> <br> Dev: William</blockquote><blockquote><strong>Hint!</strong> Wrap your flag with rtcp{}, use all lowercase, and separate words with underscores.</blockquote><blockquote><strong>Hint!</strong> Is this really what you think it is?</blockquote><p>Download challenge file —<a href="https://github.com/ZH3R0/HouseplantCTF/blob/master/encoded.txt"><em> encoded.txt</em></a></p><p>This was a fairly easy challenge. This challenge is based upon a simple substitution cipher called <a href="https://en.wikipedia.org/wiki/Bacon%27s_cipher"><strong>Bacon Cipher</strong></a><strong> </strong>which in the given file looks like Morse Code. But remember that Morse Code doesn’t exceed 4 characters for alphabets and 5 characters for digits.</p><p><em>Tip:- While decoding something which looks like a Morse Code if u get ‘#’, ‘$’, ‘%’ or something similar repeatedly in the website you decode, it may mean that they had an error decoding it. Thus, it could mean that it isn&#39;t even Morse Code in the first place you were trying to decode. If so, try out other variations of Morse Code like Fractionated Morse, etc.</em></p><blockquote>How does Bacon Cipher work?</blockquote><p>Bacon Cipher works with any <strong>two characters</strong> and a particular coded set for each alphabet, numbers. It doesn&#39;t matter if the characters are alphabets or numbers, you could always substitute the characters with any thing you like.</p><p>The below table has a few examples with different pair of characters</p><pre>Letter    Encoded Set Types        Letter    Encoded Set Types</pre><pre>A         aaaaa   00000   .....    N         abbab   01101   .--.-<br>B         aaaab   00001   ....-    O         abbba   01110   .---. <br>C         aaaba   00010   ...-.    P         abbbb   01111   .----<br>D         aaabb   00011   ...--    Q         baaaa   10000   -....<br>E         aabaa   00100   ..-..    R         baaab   10001   -...-<br>F         aabab   00101   ..-.-    S         baaba   10001   -..-.<br>G         aabba   00110   ..--.    T         baabb   10011   -..--<br>H         aabbb   00111   ..---    U         babaa   10011   -.-..<br>I         abaaa   01000   .-...    V         babab   10101   -.-.-<br>J         abaab   01001   .-..-    W         babba   10110   -.--.<br>K         ababa   01010   .-.-.    X         babbb   10111   -.---<br>L         ababb   01011   .-.--    Y         bbaaa   11000   --...<br>M         abbaa   01100   .--..    Z         bbaab   11000   --..-</pre><h4>Solution</h4><pre>Encoded text-<br>....- ..... ...-. .--.- .--.. ....- -..-- -..-. ..--. -.... .-... .-.-. .-.-. ..-.. ...-- ..... .--.. ...-- .-.-- .--.- -.... -...- .-... ..-.- .-... ..-.. ...--</pre><p>Copying the encoded text to any online decoder and decoding it gives the following text,</p><pre><em>baconbutgrilledandmorsified</em></pre><p>Format it and you get the flag.</p><p><strong>Flag — rtcp{baconbutgrilledandmorsified}</strong></p><h3>Broken Yolks — Cryptography Challenege 5</h3><blockquote>Fried eggs are the best.<br>Oh no! I broke my yolk… well, I guess I have to scramble it now.<br> <br> Ciphertext: smdrcboirlreaefd<br> <br> Dev: Delphine</blockquote><blockquote><strong>Hint!</strong> words are separated with underscores</blockquote><p>This is by far the easiest cipher to solve. This was a simple children’s game.</p><p>As said in the challenge description this is a scrambled sentence.</p><h4>Solution</h4><p>The first thing i did was put it on an online scrambler to solve it, but it didn&#39;t return anything useful. After some time of scratching my head, I noticed that the ciphertext contained the word “scrambled” in it, isolating that word from the text gave me,</p><pre>scrambled.......oirrefd</pre><p>What do you see? You can immediately notice the other two words being,</p><pre>scrambled or fried</pre><p>Format it resulting text and we got the flag.</p><p><strong>Flag — rtcp{scrambled_or_fried}</strong></p><p>And that concludes the write up of cryptography challenge I did. In the next part I will be talking about some interesting challenge you wouldn&#39;t have even heard about. Check out my fellow teammates write up below,</p><ul><li><a href="https://medium.com/zh3r0/houseplant-ctf-writeup-b356db48d3a3">Houseplant CTF Writeup</a></li><li><a href="https://medium.com/zh3r0/writeup-for-rivest-shamir-adleman-crypto-75d11ada4827">Writeup for Rivest Shamir Adleman (Crypto)</a></li><li><a href="https://medium.com/zh3r0/houseplant-ctf-jesss-guitar-writeup-c3adee1bc782">HousePlant CTF :Jess’s Guitar Writeup</a></li></ul><p>Visit our <a href="https://www.medium.com/zh3r0">Team ZH3R0</a> Blog.</p><p>Feel free to contact me,</p><ul><li>Discord — @Amun-Ra#3245</li><li>Instagram — <a href="https://www.instagram.com/amun.rha/">@Amun_rha</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2abc1621510a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/houseplant-ctf-write-up-part-2-2abc1621510a">Houseplant CTF Write Up Part 2</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[Houseplant CTF Write Up Part 1]]></title>
            <link>https://medium.com/zh3r0/houseplant-ctf-write-up-part-1-3253f8dd32f4?source=rss-8c0e7ee5c107------2</link>
            <guid isPermaLink="false">https://medium.com/p/3253f8dd32f4</guid>
            <category><![CDATA[houseplant-ctf]]></category>
            <category><![CDATA[forensics]]></category>
            <category><![CDATA[deepsound]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[diit]]></category>
            <dc:creator><![CDATA[Amun-Ra]]></dc:creator>
            <pubDate>Mon, 27 Apr 2020 14:27:45 GMT</pubDate>
            <atom:updated>2020-04-28T21:48:47.561Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*du9K65TOOuqjUvGKeH0xww.png" /><figcaption>Houseplant CTF organized by RiceTeaCatPanda CTF Team</figcaption></figure><p>This was by far one of the most enjoyable as well as most informative CTF me and our Team <a href="https://medium.com/zh3r0">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!</p><h3><strong>Vacation Pics — Forensics Challenge 1</strong></h3><blockquote>So weird… I was gonna send two pictures from my vacation but I can only find one… where did the other one go??<br> <br>Dev: Delphine</blockquote><p>Download challenge file — <a href="https://github.com/ZH3R0/HouseplantCTF/blob/master/pictures.zip">pictures.zip</a></p><p>This was an interesting challenge, this is an image stegnography challenge as mentioned in the challenge description.</p><p>So the given <em>pictures.zip</em> file contains a <em>pictures.bmp</em> file. As usual I opened my terminal and tried to use <a href="http://steghide.sourceforge.net/"><strong>steghide</strong></a> on it without password but nothing turned up. Then i thought to implement the check list of all ctf, I tried binwalk, <a href="https://github.com/zardus/ctf-tools/tree/master/stegsolve"><strong>stegsolve,</strong></a><strong> </strong>tried out the usual stuff, but nope, nothing turned up of much use.</p><p>Going through other CTF write ups and information on what could be possibly hidden, I came across several information but none of them proved to be useful. I then pinged the admin for what could possibly be that i am missing, she hinted on “<a href="http://diit.sourceforge.net/">Digital Invisible Ink Toolkit</a>”, searching up for that term provided me with information required to solve the challenge further.</p><blockquote><strong>Why didnt steghide work?</strong></blockquote><p>Steghide is a popular stegnography tool. Just like steghide, DIIT(Digital Invisible Ink Toolkit) is a stegnography tool but both of them has a major difference. They both use different algorithms to encode the images, and DIIT is a superior tool than steghide too.<br>Steghide generally implements <em>Rijndael algorithm</em> by default, i tried with all the other algorithms provided by steghide too, to check if it works.</p><p>To get the different algorithms implemented by steghide enter this command,</p><pre>$ steghide --encinfo</pre><p>The output will be ,</p><pre>encryption algorithms:<br>&lt;algorithm&gt;: &lt;supported modes&gt;…<br>cast-128: cbc cfb ctr ecb ncfb nofb ofb<br>gost: cbc cfb ctr ecb ncfb nofb ofb<br>rijndael-128: cbc cfb ctr ecb ncfb nofb ofb<br>twofish: cbc cfb ctr ecb ncfb nofb ofb<br>arcfour: stream<br>cast-256: cbc cfb ctr ecb ncfb nofb ofb<br>loki97: cbc cfb ctr ecb ncfb nofb ofb<br>rijndael-192: cbc cfb ctr ecb ncfb nofb ofb<br>saferplus: cbc cfb ctr ecb ncfb nofb ofb<br>wake: stream<br>des: cbc cfb ctr ecb ncfb nofb ofb<br>rijndael-256: cbc cfb ctr ecb ncfb nofb ofb<br>serpent: cbc cfb ctr ecb ncfb nofb ofb<br>xtea: cbc cfb ctr ecb ncfb nofb ofb<br>blowfish: cbc cfb ctr ecb ncfb nofb ofb<br>enigma: stream<br>rc2: cbc cfb ctr ecb ncfb nofb ofb<br>tripledes: cbc cfb ctr ecb ncfb nofb ofb</pre><p>DIIT implements various other algorithms like <em>BattleSteg</em>, <em>Blindhide, HideSeek, FilterFirst, DynamicBattleSteg, DynamicFilterFirst.</em></p><h4><strong>Final Solution</strong></h4><p>Download the tool called DIIT from <a href="http://diit.sourceforge.net/download.php">here</a> and make sure you have java installed in your system.</p><p>After downloading it go to the folder the <em>.jar</em> file contains and enter the command,</p><pre>$ java -jar -Xmx512m diit-1.5.jar</pre><p>You can define the argument after <strong><em>-Xmx&lt;cache size&gt;</em></strong><em> </em>to a size greater than the file size as in case the tool fails to decode.</p><p>After initializing it you will be met with an interface like this,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*NPhYaIAw_3QeKTQ-pgQWQA.png" /><figcaption>DIIT(Digital Invisible Ink Toolkit) superior stegnography tool.</figcaption></figure><p>Go to <strong>Decode </strong>section and set the <strong>Get Image </strong>with your input image, let the algorithm be BattleSteg and <strong>Set Message </strong>to the output file name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*y6iVYEbYSQhps3fnHmHPXg.png" /><figcaption>DIIT decode how to</figcaption></figure><p>Press go and wait for it to complete and go to the folder you selected and you have the output image, open it and there you go! Successfully retrieved the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*kCWR9yhjxLAscyKfD4CaFg.png" /><figcaption>flag of the challenge</figcaption></figure><h4>Flag — rtcp{stay_home}</h4><h3>Deep Lyrics— Forensics Challenge 2</h3><blockquote>Yay, more music!</blockquote><blockquote>Dev: Delphine</blockquote><p>Download challenge file — <a href="https://github.com/ZH3R0/HouseplantCTF/blob/master/more%20music.wav">more-music.wav</a></p><p>This challenge was very obvious to solve, for those who didn&#39;t get it yet the title of the challenge is a big hint as to how to solve it.</p><p>Looking at the title i immediately came to know what i should do, for those who don&#39;t know it yet, this challenge is expected to be solved by a tool called <a href="http://jpinsoft.net/DeepSound"><strong>DeepSound</strong></a>, it was popularly shown in and used in the hacking series Mr.Robot<em>(I loved that series).</em></p><p>DeepSound is a popular stegnography tool used to hide data inside audio tracts as well as decode it. So the solution was obvious, download it and decode the file.</p><h4>Solution</h4><p>Download DeepSound from <a href="http://jpinsoft.net/DeepSound/Download.aspx">here</a> and install it in Windows<em>(not sure if it works in Linux), </em>open it and you will be met with this interface,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*aVeDwScmuP3VIsVjsqZViw.jpeg" /></figure><p>Click on <strong>Open carrier files </strong>and select your audio file and extract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*O8u0gT_p-dJEm3Ih3o82Qw.jpeg" /><figcaption>extracted file called — notsorry.txt</figcaption></figure><p>Opening the extracted file gives you the flag,</p><h4>Flag —rtcp{got_youuuuuu}</h4><p>That’s it for this part, In the next part i will be talking about the cryptography challenges i solved. Check out my team mates write ups for other challenges below,</p><ul><li><a href="https://medium.com/zh3r0/houseplant-ctf-1591102c7f57">Houseplant CTF</a></li><li><a href="https://medium.com/zh3r0/writeup-for-adventure-revisited-f4931f3983d8">Writeup for Adventure-Revisited</a></li><li><a href="https://medium.com/zh3r0/houseplant-ctf-catography-writeup-76d46d16cb81">HousePlant CTF :Catography Writeup</a></li></ul><p>Visit our teams blog <a href="https://www.medium.com/zh3r0">Team ZH3R0</a>.</p><p>Feel free to contact me through,</p><ul><li>Discord — @Amun-Ra#3245</li><li>Instagram — <a href="https://www.instagram.com/amun.rha/">@Amun_rha</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3253f8dd32f4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zh3r0/houseplant-ctf-write-up-part-1-3253f8dd32f4">Houseplant CTF Write Up Part 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>