<?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 Yousef khalaf on Medium]]></title>
        <description><![CDATA[Stories by Yousef khalaf on Medium]]></description>
        <link>https://medium.com/@yousefmohammadkhalaf?source=rss-849f7fdcb442------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ODDSwyfZKihzlES4XohwPg.jpeg</url>
            <title>Stories by Yousef khalaf on Medium</title>
            <link>https://medium.com/@yousefmohammadkhalaf?source=rss-849f7fdcb442------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:03:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yousefmohammadkhalaf/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[Today, I’m going to solve all Challenges from the Network analysis , and three from the Forensics…]]></title>
            <link>https://medium.com/@yousefmohammadkhalaf/today-im-going-to-solve-all-challenges-from-the-network-analysis-and-three-from-the-forensics-e99318cfe3f5?source=rss-849f7fdcb442------2</link>
            <guid isPermaLink="false">https://medium.com/p/e99318cfe3f5</guid>
            <category><![CDATA[network-analysis]]></category>
            <category><![CDATA[dfir]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Yousef khalaf]]></dc:creator>
            <pubDate>Sat, 21 Dec 2024 19:25:34 GMT</pubDate>
            <atom:updated>2024-12-21T19:26:45.969Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cyber Legion CTF Write up</h3><p>Today, I’m going to solve all Challenges from the Network analysis , and three from the Forensics section: <strong>“corrupted”, “passphrase”, “Mystery Message”</strong>.</p><p>Lets start with <strong>brainstorming</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*CYhXPKCRjPtZiTn-0z4hWg.png" /></figure><p>As we can see from the description of the question,There is an SOC team that discovered that one of its employees was leaking important information to another employee. We must discover this important data that is leaked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xG5Mkno5VnWVGJG687fzQA.png" /></figure><p>We have a large amount of packets, let’s see what IP there is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*tpQMOM62VuR844wvAcDINw.png" /></figure><p>There are many IPs, but he said that the information was exchanged between employees of the company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8VeH0fEgmJIS1ZKugoXUBA.png" /></figure><p>Hmmmm , The traffic here is strange and interesting .</p><p>Let’s make a filter on the TCP protocol…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQ5-tSe0j320CI19CMuJbw.png" /></figure><p>There is nothing suspicious, but for a moment I feel that there is something suspicious in the destination Port .</p><p>Wait a minute, they are octal values, but each value is repeated twice. Let us take one value from each repeated number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pAiMcq8CB1K4QBW6UVK3DQ.png" /></figure><p>We got the flag: CLTCTF{This_1$ Br4instorming}</p><p><strong>EVIL</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*Tq1nq9rwMJ8XttNM0okCFg.png" /></figure><p>The challenge description says: We have intercepted communications from the evil base, but the content appears to be encrypted. Can you recover the hidden message?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZIA3C-CI4BIN1C2PyZaTQ.png" /></figure><p>All packets are the same. What should we do?</p><p>Hmmm…</p><p>There is one thing that cannot be repeated in the packets, which is the <strong>checksum , </strong>Let’s check it out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*Y4hNlTbf_C5M6nmFPwntrg.png" /></figure><p>Let’s extract the <strong>checksum </strong>using tshark .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*ZpIt55ER-eKuhQYfYnfY_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*yvCTlW2x7rjnhA0DIo5Mfw.png" /></figure><p>We got 400 values, and I noticed that there are two formats that could mean 0 and 1 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2kXdjGXRCLNgAE4rOsxKbw.png" /></figure><p>Oh my God, I’ve got flag . I replaced <strong>0xe6cc </strong>with <strong>1</strong>, replaced <strong>0x66cd </strong>with <strong>0</strong>, and then converted it <strong>from binary </strong>to <strong>ASCII</strong>.</p><p>It was very hard …</p><p>flag : flag{3v1l_34sy_by_$cr1pt_3v3ry_7h1ng_w0rks_h1dd3n}</p><p>The next Challenge is SQL AK-1 from SQL AK-4:</p><p>The challenge says that there is a person carrying out an attack and we must know some things about this attack.</p><p><strong>SQL AK -1 :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*wkpQhp1Ut0HiKxPHS8m15g.png" /></figure><p>The attacker used a SQL injection (SQLi) vulnerability to compromise the targeted system. The attack started from a specific IP address and involved exploiting a vulnerable script to execute unauthorized database queries. We should know this IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IZFieceGW34CiIunUwWpRg.png" /></figure><p>Let’s search the existing IPs, maybe we will find something .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pQrzqd-_4oCkU3TLYGDgGQ.png" /></figure><p>We found this IP injecting SQL statements .</p><p>Yes , it’s true</p><p>flag : CLCTF{111.224.250.131}</p><p><strong>SQL AK -2</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*l67eTGth3-3saTdilPjzkQ.png" /></figure><p>He wants to know the attacker’s city of origin.</p><p>This is very easy , Let’s go to this site <a href="https://whatismyipaddress.com/"><strong>whatismyipaddress</strong></a> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*oTTleq6td-PgpxWSY6Btxg.png" /></figure><p>Really this is very easy it is from <strong>Shijiazhuang</strong></p><p>flag: CLCTF{Shijiazhuang}</p><p><strong>SQL AK -3 </strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*xagtcb_cz-FDKQ7DPnps7Q.png" /></figure><p>It wants us to provide the name of the weak script.</p><p>Let’s go back to WereShare and increase the precision of our search. Let’s see only the http requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sExUbGO9IlEVpiRtK-DkCw.png" /></figure><p>It’s right in front of us, it’s search.php</p><p>flag : CLCTF{search.php}</p><p><strong>SQL AK -4</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*X-nlrZVtg1n_Du6h8iFYBQ.png" /></figure><p>He wants the attacker’s first attempt at SQLi, which is already in front of us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sExUbGO9IlEVpiRtK-DkCw.png" /></figure><p>flag : CLCTF{/search.php?search=book%20and%201=1;%20 — %20-}</p><p>_______________________</p><p>Now we will start with the DF challenges :</p><p><strong>Mystery Message</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*i8eyOtEfWH2A_01XAKAoQg.png" /></figure><p>There is a hidden message to be discovered and it is right in front of us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ai0pzYsPg201MfAasl0rgQ.png" /></figure><p>After searching a little we found it.</p><p>flag : CLCTF{cyber_5555_0legion}</p><p><strong>corrupted</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*Z7yvPIO5b2jON4I4qTz6gA.png" /></figure><p>There seems to be a problem with the image and it cannot be opened. Let’s see the hex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*OpHCWNxypzqXzSq34uIBhg.png" /></figure><p>There is a problem with the image header, let’s fix it.</p><p>We can find out the header of any file from a website : <a href="https://en.wikipedia.org/wiki/List_of_file_signatures"><strong>List_of_file_signatures</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*v16uFRnTblfCY5elMqBFAg.png" /></figure><p>I fixed it, let’s see the picture now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*eQgbQ-emF4UAlSsYDyhc-Q.png" /></figure><p>flag : clctf{did_u_like_it}</p><p><strong>passphrase</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*j8Tggzraxm7EjQG7No2gNA.png" /></figure><p>Let’s download the image …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*QfSij71t2OH0za_r9Q-1rw.png" /></figure><p>There seems to be something hidden inside the picture,Hmmm</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*ndxVQ-sBoEqX_0tSQCqV-w.png" /></figure><p>Could you “<strong>passphrase: cl</strong>” is a password for something …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*UktxaCIwPOANc2TA2Gsz8w.png" /></figure><p>He asked for the passphrase value, that’s great, we have it, and he extracted the flag file.</p><p>flag : clctf{hiiii}</p><p>I want to thank the question writers for this wonderful contest, and I hope I’ve helped anyone who was looking to writeup .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e99318cfe3f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ZUCTF V1]]></title>
            <link>https://medium.com/@yousefmohammadkhalaf/zuctf-v1-9d74418f2cd3?source=rss-849f7fdcb442------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d74418f2cd3</guid>
            <dc:creator><![CDATA[Yousef khalaf]]></dc:creator>
            <pubDate>Thu, 25 Jul 2024 17:12:52 GMT</pubDate>
            <atom:updated>2024-07-25T17:12:52.820Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>crypto</strong></p><p>Agent Sudo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*x2__PEBf3Bj_m-QUK9Ou8A.png" /></figure><p>It’s a Morse code audio file …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hv3liD0mDKoW_GINxUGZhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HcuMu-_aXL-UmEp04DXx8g.png" /></figure><p>We’ve cracked the code and secured the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*xw4Hd69km36p4FGYliw3-w.png" /></figure><p>We got it : “ZUCTF{AG3NT_OF_S3CR3T}”</p><p><strong>X</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*lCOy0IFmRa7UbryYvBL90Q.png" /></figure><p>We will click on “Go” and we will be directed to “X”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*IrVV_e4pR3ivNPvweaXVlg.png" /></figure><p>We got this post and it appears to be encrypted text, let’s decrypt it.</p><p>We will use this site : <a href="https://holloway.nz/steg/">https://holloway.nz/steg/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C_0PQXz3sUUJnGtIFr4n8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*hOCXL8NzJud-8kohuSOVkQ.png" /></figure><p>We got it : “ZUCTF{elon_musk_sucks}”</p><p><strong>math4child</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*5-LBwYVkniYlSs1_nZiPDQ.png" /></figure><p>He wants us to find the remainder of the quadratic equation, then calculate its square root. Of the two possible roots, send the smaller root.</p><p>Let’s write a simple Python code to solve the question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*Yh98Sk158zIUVPJaDLuEyw.png" /></figure><p>We got it : “ZUCTF{12595191}</p><p><strong>Prime</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*ZuUyHQuRKSSXvYJbILyeKg.png" /></figure><p>Let’s upload the files .</p><p>After understanding the code, it appears that it generates RSA public keys randomly using large prime numbers, and then uses these keys to encrypt a text message into an encrypted form.</p><p>We must reach the first two numbers and then decrypt the encryption. Let us write Python code to solve the question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oa5cqu9v-mZXDPUwxhUESg.png" /></figure><p>After running this code we got the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*eiSgfUY5eaVT4kmuEruqWw.png" /></figure><p>We got it : “ZUCTF{Bruteforce_is_Fun}”</p><p><strong>3nc0d1ng</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*ifi58GJ-0usl5lXiqrNewQ.png" /></figure><p>We will connect to the ssh server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*QE67bwq_5vAIFH1khZwi6A.png" /></figure><p>It seems that he is giving us encrypted values ​​and wants us to decrypt them every time, but it seems that the process is very long.</p><p>Let’s write a simple script that takes the ciphertext, decrypts it based on its encryption type, and places it as input for the value that follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*vISR72fMA8klcIip31rdoA.png" /></figure><p>Let’s run the code .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*LH92ffJq5r8P7rF_LD6LOA.png" /></figure><p>Oh we got the flag .</p><p>flag : “ZUCTF{3NC0D1NG_ld7hfuiiw8hkjns9}”</p><p>_________________________________________________________________</p><p><strong>Red Green</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*xL1sOz0vu75OReAT73C42A.png" /></figure><p>Let’s download the file .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*dZFkfHn1Q_cNPjrS_UFcJw.png" /></figure><p>Oh wow it looks like it has too many numbers …</p><p>Is it possible that it refers to RGB ? hmmmm</p><p>Let’s write a Python code that converts these numbers into an image .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5eDzsUS5o-CCy-WXUG79OQ.png" /></figure><p>After running the code, we will get the image directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bgQsub9tgpK26qd7-DkrvQ.png" /></figure><p>Oh it is, we’ve got the flag .</p><p>flag : “ZUCTF{R6G3B_Is_N1c3}”</p><h4>written by : d3f4lt</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d74418f2cd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ZUCTF V1]]></title>
            <link>https://medium.com/@yousefmohammadkhalaf/zuctf-v1-e292e9efc2ee?source=rss-849f7fdcb442------2</link>
            <guid isPermaLink="false">https://medium.com/p/e292e9efc2ee</guid>
            <dc:creator><![CDATA[Yousef khalaf]]></dc:creator>
            <pubDate>Wed, 24 Jul 2024 21:22:33 GMT</pubDate>
            <atom:updated>2024-07-24T21:30:48.963Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Digital Forensic</em></strong></p><p><strong>routed back</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*5hubh0qccVCBnrq-WUdCww.png" /></figure><p>The writer tells us in the description: You have ever heard about loopback. Let’s search for loop back on Google :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*43pTzw4AUxH2qK9j3L2rMA.png" /></figure><p>It’s IP 127.0.0.1</p><p>Let’s create a filter on the wire to share this IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*R0wdOMNUywiWswN-wd8pHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*CfFchZI9bRaY4iKdtsDEcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*nBo4eV4W-E66NJ8Kb69JvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*xk2MVy_LSAIdN6A6lktfhA.png" /></figure><p>We notice that there are some familiar letters , “Z ,U,C,…”</p><p>Let’s collect these letters from packets…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*XFiPU13Vojm12HfdEZ2aCw.png" /></figure><p>We got the flag : “ZUCTF{welcome_to_your_virtual_world}”</p><p><strong>The lion says raaaaar xoxo</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*0n-anVRPn6WIGNYbyBMzKA.png" /></figure><p>In describing the challenge, the writer hints at something, which is hmmm …</p><p>Perhaps what is meant by raaaaar is that there is a compressed file in RAR format .</p><p>Let’s take a look at the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*V-uyhSPPIpa01EapprHTNw.png" /></figure><p>Oh, there is a file called flag.txt</p><p>Let’s extract it …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*3xqzz1-YKSDgq9yaV5iWHg.png" /></figure><p>And we modify the show data to <strong>RAW</strong> …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*wOyJ3obfzn815_RevFyXzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*6pUDqriJgeg-Jx1Q53S0Nw.png" /></figure><p>We’ve got a zip file and it looks like there’s a password on it , Let’s break it down .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*EE5zVdx6eKiI8lDK7Rs1-g.png" /></figure><p>We broke it after extracting its hash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*a9qOILJ-PK1Tb6mShTVVhw.png" /></figure><p>We got the flag : “ZUCTF{C4n_You_C4pTur3_m3}”</p><p><strong>TCP — UDP</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*rbLdRxavRz5ihZ7AzTHSfQ.png" /></figure><p>Let’s see what the challenge description will do for us</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*cavQmuqSKbRH434LaXNcHA.png" /></figure><p>There are texts that appear to be base64 .</p><p>Let’s use tshark</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*9XQlE9OexC4HsVFvma45JQ.png" /></figure><p>Now let’s replace “example.com” on cyber chef and decrypt it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*78LYjP3m51V0lkxuln5zwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*BC7yh1I5u4_kYnaOCatYig.png" /></figure><p>It seems that the capital letter at the beginning of every beauty refers to the flag …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*k_QdFMkqQCIGz8kzVUQvZw.png" /></figure><p>Yes it is, we got the flag : “ZUCTF{GOOD_PACKET_CHALLENGE}”</p><p><strong>logs</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*ZAVZcYhgx_77UIZEfmnCig.png" /></figure><p>It appears to be a logs file .</p><p>Let’s see what the file contains …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*WNPe2tScliv7y5rKqmygrg.png" /></figure><p>There are many users such as Admin, Aziz, Salman, and Mustafa …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*9RuvcmGF2twaksGNpk55UA.png" /></figure><p>Now we will take the x values ​​and convert them from decimal to ascii</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*06ZOBfj2RNTrwBGV3OzTNA.png" /></figure><p>We got the flag : “ZUCTF{1mpres1ve_Logs_3nAlyz1ng}”</p><h4>written by : d3f4lt</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e292e9efc2ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investigation 1]]></title>
            <link>https://medium.com/@yousefmohammadkhalaf/investigation-1-4802031b301d?source=rss-849f7fdcb442------2</link>
            <guid isPermaLink="false">https://medium.com/p/4802031b301d</guid>
            <dc:creator><![CDATA[Yousef khalaf]]></dc:creator>
            <pubDate>Wed, 03 Jul 2024 22:34:20 GMT</pubDate>
            <atom:updated>2024-07-03T22:38:00.101Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone I’ll be showing you how I solved Investigation 1 challenge from NCSC ctf 2024</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*FEf9XKjfathruim51dU8VA.png" /></figure><p>First of all we read the description which said Our system was under attack, the user tried to execute some weird stuff (2 weird files to be exact) but was not able to finalize his process eventually. Analyse what happened.</p><p>I searched the tcp stream</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*A7VAF9wuQvmtkS8tL-v64Q.png" /></figure><p>Oh, I got the first file.</p><p>Let’s continue searching for the second file …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*YXJrd9E1QlpjX7I8TPhfWA.png" /></figure><p>It was really tiring getting to him …</p><p>It uses the http protocol .</p><p>And Used Web Service Protocol is : wsman</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*AYHN3dgMwhchFFB10wTisQ.png" /></figure><p>So constructing the flag gives us : “flag{BetterSafetyKatz.exe_RandomName.exehttp_wsman}”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4802031b301d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Safest Encryption]]></title>
            <link>https://medium.com/@yousefmohammadkhalaf/the-safest-encryption-47424b741baf?source=rss-849f7fdcb442------2</link>
            <guid isPermaLink="false">https://medium.com/p/47424b741baf</guid>
            <dc:creator><![CDATA[Yousef khalaf]]></dc:creator>
            <pubDate>Fri, 21 Jun 2024 18:38:02 GMT</pubDate>
            <atom:updated>2024-06-21T18:58:42.384Z</atom:updated>
            <content:encoded><![CDATA[<p>In this challenge prompt, the author tells us that he intercepted a zip file, the contents of which appear to be encrypted, but the key also appears to be in there. Huh?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*7ceNFW6pAJ8GsS6T2ga-Gw.png" /></figure><p>First we got a zip file, and after decompressing it we got two files, the first in PDF format and the other in txt format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*YXz_T-iFhm2OsGwo2OsPow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WlzqfBQmhsWWgWkIcttwIw.png" /></figure><p>As we can see, there is no point in opening it. Nothing is understood yet.</p><p>Let&#39;s use the <strong>wc</strong> command to find out the number of words and bites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*dlmx0DXy1SofJtclF0Dhjw.png" /></figure><p>This sounds interesting. There is a match in the number of bits. Hmm…</p><p>Maybe we can do XOR. Let&#39;s try it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4-AZpelDl1_MiKdkV1ocQ.png" /></figure><p>We will download <a href="https://www.nirsoft.net/utils/xorfiles.html"><strong>this</strong></a> program to generate XOR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*f8SwUu9DVK7ZwGHOFJHQmQ.png" /></figure><p>I have created a blank PDF file so that the output can be stored within it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*6bkYCuC1nyZ8FW0qDKTcMg.png" /></figure><p>amazing !! We got the science and it was easy.</p><p>CTFlearn{CTFlearn_is_fun_hope_you_enjoyed_it!}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47424b741baf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>