<?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 0XB@rb! on Medium]]></title>
        <description><![CDATA[Stories by 0XB@rb! on Medium]]></description>
        <link>https://medium.com/@0xMr_M?source=rss-7acf85473616------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*o8DoWDXn8boLJiRtG_P_Hg.jpeg</url>
            <title>Stories by 0XB@rb! on Medium</title>
            <link>https://medium.com/@0xMr_M?source=rss-7acf85473616------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:53:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xMr_M/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[CyberTalents- 5.I am a legend]]></title>
            <link>https://medium.com/@0xMr_M/cybertalents-5-i-am-a-legend-7ada99d309f6?source=rss-7acf85473616------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ada99d309f6</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[code-obfuscation]]></category>
            <dc:creator><![CDATA[0XB@rb!]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 16:33:38 GMT</pubDate>
            <atom:updated>2023-06-30T16:33:38.134Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Here is the 5th challenge from </em><strong><em>introduction to cybersecurity</em></strong><em> course introduced by </em><strong><em>CyberTalents</em></strong><em> , challenge is related to </em><strong>Deobfuscation<em> topic.</em></strong></blockquote><h3>Q: What is Obfuscation ?</h3><p>Change code from one form to another to prevent attacker from understanding it by modifying the script to convert it to a difficult, harder-to-understand format .</p><h3>Q: What is Deobfuscation ?</h3><p>The reverse process of obfuscation, as it rewrites the script again from a very difficult to read to an understandable one. it’s done using many tools.</p><h3><strong>Note:</strong></h3><p>in <strong>encryption</strong> we use key like we do in <a href="https://medium.com/@mohameedabdelsalam24/cybertalents-3-hash3rror-85e8e4289ba6?source=user_profile---------1----------------------------">Hash3rror</a> challenge ,But here we don’t use Key do make Obfuscation .</p><h3>- Let’s start our challenge (I am a legend) :</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*6n2mnNBd-GB9KHgWanVRWw.png" /></figure><p>login again!!,</p><p>So as i always do either (<strong>SQL injection</strong> or <strong>script in Source code</strong>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6thPyq_xJsYFgpmQxhH_jw.png" /><figcaption>right click — view page source</figcaption></figure><p>there is abnormal script obvious in the bottom here , So let’s google how to rewrite it to understandable one .</p><p>you can use this online tool free : <a href="https://filipemgs.github.io/poisonjs/">https://filipemgs.github.io/poisonjs/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*DNvlivo76fZZkMOGlVXNrQ.png" /><figcaption>sheeeeeeeeeeeesh :)</figcaption></figure><p>try this username and password you will get the flag :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ada99d309f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberTalents- 4.who am i?]]></title>
            <link>https://medium.com/@0xMr_M/cybertalents-4-who-am-i-8adbe82f3ed8?source=rss-7acf85473616------2</link>
            <guid isPermaLink="false">https://medium.com/p/8adbe82f3ed8</guid>
            <category><![CDATA[hashing]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[0XB@rb!]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 03:01:46 GMT</pubDate>
            <atom:updated>2023-06-30T03:06:20.534Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Here is the 4th challenge from </em><strong><em>introduction to cybersecurity</em></strong><em> course introduced by </em><strong><em>CyberTalents</em></strong><em> , This challenge is related to </em><strong><em>Encoding topic.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKIZQm4ByPa9_blWl4MjmA.png" /></figure><p>I first tried some random passwords but doesn’t work !!<br>then cause i have to login and send a post request i have to try one of two</p><ol><li>SQL injection</li><li>looking for source code for any staff (comment, script,.etc) — <strong>Burp suite</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*La109zNRuXvAYSnRDF1Gsg.png" /><figcaption>right click — inspect -look for source code .</figcaption></figure><blockquote>we notice that developer forgot a commented username and password ,Let’s Try .</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V4RYvSuFdImElvCU4Ipazw.png" /><figcaption>we have not enough privilige :(</figcaption></figure><blockquote>This is not enough to get the flag , So i need some <strong>privilege escalation.</strong></blockquote><p>Now let’s use <strong>Burb suite</strong> and look what we could get .<br>1) When we look at HTTP history at our (<strong>POST</strong> request and the response) to it ,we could see that we logged in as <strong>Guest </strong>and website creates us an <strong>authentication cookie</strong> , So maybe we could make some modification here and trick website .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q0__y3KeGAQo6gdA3aCWjw.png" /></figure><blockquote>Let’s decode this <strong>authentication cookie , </strong>it seems that it’s encrypted using Base64 ,So I used a website to decode from Base64 and i got</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Coh8fAVamb5E76Uthzchbw.png" /></figure><blockquote>It seems that for each User it creates a cookie with his name <br>so I tried to change Guest7 to <strong>admin</strong> and <strong>Encode </strong>— maybe I could get something.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITmRWZuShLyrFX662FUh0A.png" /></figure><blockquote>Now we need to modify our request with new credentials — <strong>Repeater take turn</strong></blockquote><p>forward request to the repeater</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ubOoLbVWCAVQAtXvfVgIJw.png" /></figure><blockquote>in the left modify old Hash by new one that we edited and press <strong>send</strong></blockquote><blockquote>if you looked at response field in the right you will notice the flag .</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yeONGSG_cXaBBcKH0cPHdA.png" /></figure><h3>NOTE</h3><p>If you are in <strong>intercept mode ,</strong>you could refresh login page and modify intercepted request by new credentials {<em>bG9naW49YWRtaW4}</em><br>then press forward and sheeeeeeesh!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ku7PapceXmqBMGfvPfrhsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8mnvREbObiu2IjhSV0Mylg.png" /><figcaption>enjoy the FLAG :)</figcaption></figure><p>Finally , YOU GOT THE FLAG :) !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8adbe82f3ed8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberTalents- 3.Hash3rror]]></title>
            <link>https://medium.com/@0xMr_M/cybertalents-3-hash3rror-85e8e4289ba6?source=rss-7acf85473616------2</link>
            <guid isPermaLink="false">https://medium.com/p/85e8e4289ba6</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[hashing]]></category>
            <dc:creator><![CDATA[0XB@rb!]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 01:55:55 GMT</pubDate>
            <atom:updated>2023-06-30T03:05:07.344Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Here is the 3rd challenge from </em><strong><em>introduction to cybersecurity</em></strong><em> course introduced by </em><strong><em>CyberTalents</em></strong><em> , This challenge is related to </em><strong><em>Hashing topic.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*t_4nsV0zocm1ZTdb.png" /><figcaption>How hashing work :)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_zCiXmmW3cCUPsoygKS8eg.png" /><figcaption>Challenge !!</figcaption></figure><blockquote>First I used this website to get the length of Hash and i got that it’s 66 character.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LilyUbRgS3U1p5Y9_56g8A.png" /></figure><blockquote>We know that it’s corrupted from description ,so it seems to be maybe 64 characters.</blockquote><p>And because it’s (hexadecimal digits) [0:f] , by LOOKING at Hash we will notice that there is <strong>o</strong> and <strong>i</strong> which are not Hexa characters So remove them and we got 64x4=256 , So YUP it’s (SHA-256).<br><strong>siiiiiiiiiiiiiiiiiiiiiiiiiii ?!! No, wait don’t celebrate now :)</strong></p><blockquote>Then I used website <a href="https://www.dcode.fr/sha256-has">https://www.dcode.fr/sha256-has</a> to decode SHA-256</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jy28_4usD1jMuC87zQ1vhA.png" /></figure><blockquote>we got the <strong>plaintext</strong> { s3cr3tpassword }<br>But in challenge he asked us to get <strong>Hash to password</strong> using “<strong>sha-1</strong>”<br>(password = sha-1(hash-result))</blockquote><p>So I used <strong>CyberChef</strong> to get hash to my plaintext and</p><p>NOW sheeeeeeeeeeesh!!! we got and the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQuTqO61xwuQIU4rQBD1Gg.png" /><figcaption>enjoy the FLAG :)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85e8e4289ba6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberTalents 2.Admin has the power]]></title>
            <link>https://medium.com/@0xMr_M/cybertalents-2-admin-has-the-power-aa1969431853?source=rss-7acf85473616------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa1969431853</guid>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cookies]]></category>
            <dc:creator><![CDATA[0XB@rb!]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 01:24:01 GMT</pubDate>
            <atom:updated>2023-06-30T01:32:13.889Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>CyberTalents- 2</strong>.Admin has the power</h3><blockquote><em>Here is the 2nd challenge from </em><strong><em>introduction to cybersecurity</em></strong><em> course introduced by </em><strong><em>CyberTalents</em></strong><em> , This challenge is related to </em><strong><em>Cookies topic.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0OS6F7kIUl2eZzpF" /><figcaption>privilege escalation</figcaption></figure><blockquote><strong>Q: Administrators only has the power to see the flag , can you be one ?</strong></blockquote><h3><strong>Notes :</strong></h3><p>When you have to login , You should always know that you have some probabilities to go on :</p><p>1) “SQL injection” and try to bypass by admin password .</p><ul><li>i tried username: admin’ or ‘1’=’1</li></ul><p>But I got (login information incorrect !!) , So there is no SQL injection here.</p><ul><li>you could check this link for SQL better understanding :</li></ul><p><a href="https://stackoverflow.com/questions/53688134/what-is-the-meaning-of-admin-or-1-1">https://stackoverflow.com/questions/53688134/what-is-the-meaning-of-admin-or-1-1</a></p><p>2) “source code” look if there is a lookup file included (.txt ) or look for (script , comment , Html …etc ) .</p><p>-look for source code : developer forget <strong>comment</strong> here which may help !!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YrUFfznvPpfRGFgXlAx_w.png" /><figcaption>right click —&gt; inspect for source code .</figcaption></figure><p>Let’s open <strong>Burp Suite</strong> and intercept our request to see how it looks like !!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VwVSmc1Q43It2aRBaJcJAA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqVCzbSwGGKXBNcY5iZi6w.png" /><figcaption>we got only support privilege :(</figcaption></figure><ul><li>let’s send our post request to <strong>repeater</strong> and modify it for some privilege escalation:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JRIb4wdHq46TcPvGMb46cg.png" /><figcaption>send POST request to repeater .</figcaption></figure><ul><li>change the role from <strong>support</strong> to <strong>admin</strong> and press send , you will notice in response that you get the flag :)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-QuHvOhVUt1bslF7lesaQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa1969431853" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberTalents-1.This is Sparta]]></title>
            <link>https://medium.com/@0xMr_M/cybertalents-1-this-is-sparta-22e39483ab28?source=rss-7acf85473616------2</link>
            <guid isPermaLink="false">https://medium.com/p/22e39483ab28</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[0XB@rb!]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 00:19:26 GMT</pubDate>
            <atom:updated>2023-06-30T00:24:34.471Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Here is the first challenge from <strong>introduction to cybersecurity</strong> course introduced by <strong>CyberTalents</strong> , This challenge is related to <strong>JavaScript topic.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*7pUkxgUxq5wH6HZML1nHjw.png" /></figure><p>first I tried random username and password but got nothing .</p><p>Then I go to source code , and if you look at source code you will find Java script code at the end of page , after handling it you will see that :</p><p>var _0xae5b=[</p><p>“\x76\x61\x6C\x75\x65”,</p><p>“\x75\x73\x65\x72”,</p><p>“\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64”,</p><p>“\x70\x61\x73\x73”,</p><p>“\x43\x79\x62\x65\x72\x2d\x54\x61\x6c\x65\x6e\x74”,</p><p>“\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x43\x6F\x6E\x67\x72\x61\x74\x7A\x20\x0A\x0A”,</p><p>“\x77\x72\x6F\x6E\x67\x20\x50\x61\x73\x73\x77\x6F\x72\x64”];</p><p>function check(){</p><p>var _0xeb80x2=document[_0xae5b[2]](_0xae5b[1])[_0xae5b[0]];</p><p>var _0xeb80x3=document[_0xae5b[2]](_0xae5b[3])[_0xae5b[0]];</p><p>if(_0xeb80x2=_0xae5b[4]&amp;&amp;_0xeb80x3=_0xae5b[4]){alert(_0xae5b[5]);} else {alert(_0xae5b[6]);}}</p><h3><strong><em>Notes</em></strong></h3><p>1) {var _0xae5b} is array of 7 elements [0:6]</p><p>2) function check() and if statement</p><p>if ( varx2(usename) == array[4] &amp;&amp; varx3(pass)=array[4] ){</p><p>then show alert array[5]}; which is **Congratz** -if we decode it ,</p><p>else {show alert array[6], which is **wrong Password**}.</p><p>So let’s lets decode array [4] to get it’s content through any website</p><p>I have used <strong>Cyberchef .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pt1Mz9gKIHIJtJqN6IGn9Q.jpeg" /></figure><p>So ; if you tried to login with this Output for both Username and Password you will get the flag in alert message .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22e39483ab28" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>