<?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 Shantanu Saxena on Medium]]></title>
        <description><![CDATA[Stories by Shantanu Saxena on Medium]]></description>
        <link>https://medium.com/@j0ey?source=rss-1afd0e624dd3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aiPaCCVoDr0oJ_Sq.jpg</url>
            <title>Stories by Shantanu Saxena on Medium</title>
            <link>https://medium.com/@j0ey?source=rss-1afd0e624dd3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 02:53:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@j0ey/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[Non-Alphanumeric Payloads for XSS and How they work.]]></title>
            <link>https://j0ey.medium.com/non-alphanumeric-payloads-for-xss-obfuscation-9eb7575c578a?source=rss-1afd0e624dd3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9eb7575c578a</guid>
            <category><![CDATA[obfuscation]]></category>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[xss-bypass]]></category>
            <category><![CDATA[xss-attack]]></category>
            <dc:creator><![CDATA[Shantanu Saxena]]></dc:creator>
            <pubDate>Sat, 10 Dec 2022 06:58:37 GMT</pubDate>
            <atom:updated>2022-12-10T08:15:58.423Z</atom:updated>
            <content:encoded><![CDATA[<p>So I was searching for some Obfuscation and Evasion techniques for XSS payloads when I came across a payload created by Yosuke Hasegawa. I was amazed that something like this actually worked and even after being in InfoSec for over a year, I still never knew about it.</p><p>If you are someone like me, someone who likes to deeply understand the workings of an exploit or a payload, then this blog is for you, It will focus on helping you understand how these payloads work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*BDJ4b9NK7sYianpaBw_hjA.png" /></figure><p>Before we can begin crafting the payload, there are some concepts that you will need to know about. Hopefully, I will be able to explain them well, but if not I will also be providing links to the website to clear any doubts you may have.</p><h3>Truthy and Falsey Values</h3><p>Basically, Truthy and Falsey values are values which, when evaluated, will return a boolean true or false respectively.</p><p>So let’s take ‘[]’ for an example, in JavaScript, ‘[]’ represents an empty array, if we put an empty array in the Boolean() function, it will return us a boolean true.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2V05fKdGlZr0aYXHEOEf9Q.png" /></figure><p>This is because [] is a truthy value.</p><p>Now you don’t need to remember what values are truthy, there are only 6 values that are always Falsey in JS:</p><ul><li>false</li><li>0</li><li>null</li><li>undefined</li><li>NaN (not a number)</li><li>‘’ ”” `` (empty string)</li></ul><p>Everything else is Truthy, even the string, ‘false’ as it is not an empty string.</p><p>You can learn more about truthy and falsey values from <a href="https://www.sitepoint.com/javascript-truthy-falsy/">here</a>.</p><h3>Generating Characters</h3><p>In JS, you can convert an Integer, Boolean value, and even, an entire array to a string by concatenating it with + “”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*KaWxUX96cS-iNyDuKdK6VA.png" /></figure><p>As explained before, [] is a truthy value, but by itself when not being used as a condition or in a logical equation, it is an array object. We can get a boolean value from it by simply using the ! (not) logical operator on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*EPn3Xjq0IJ7Dg2Do34VU7A.png" /></figure><p>So at this point, you must be getting an idea of where I am going with this. Now that we have a string, to extract a character from it, all we need is an Index.</p><p>By the way, true and false are not the only strings you can extract, <a href="https://github.com/aemkei/jsfuck/blob/master/jsfuck.js">here</a> is a list of all the strings you can make using the above-said concept.</p><h3>Generating Numbers</h3><p>Remember, TRUE is 1 and FALSE is 0, We are going to be using that concept to get ourselves integers.</p><p>We will use + Unary Operator with different values to generate Integers. Why this happens because + Unary Operator “attempts to convert its operand into a number”. You can find the full explanation of this behavior <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unary_plus">here.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/173/1*6LiG_Wt9y8-cV77-Xv_U4Q.png" /></figure><p>Now you may say, if [] is a truthy value, why is it being converted to 0 and not 1? Remember I told you that [] is not a boolean value, but an object. When an object is succeeding a unary operator(+[]), the object is first converted to its primitive, For an array, the toString() function is called, which will convert the [] to “”, which is then converted to 0 as it is an empty string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*fw18spOMBzUFk2aLyPq5kw.png" /></figure><p>I know this may not be making sense, To properly understand these please follow the links given below:</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unary_plus">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unary_plus</a></p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#primitive_coercion">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#primitive_coercion</a></p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number#number_coercion">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number#number_coercion</a></p><p>Well now that we have 1 and 0, we can just add them to get 2, 3, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*PEGLpt0TVOUmHlP3vaWsnA.png" /></figure><p>With this, we can start putting together our payload.</p><p>so ‘alert’ will become:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zNTR2hpUnzj_eWY8uKgkqA.png" /></figure><p>you can use <a href="http://jsfuck.com/">http://jsfuck.com</a> to make a complete payload, can’t write all of it on my own, would be tiring.</p><p>So this is basically how Non-Alphanumeric payloads are created in JS. Nowadays WAF will usually identify and catch them pretty easily. But this blog was only for educational purposes.</p><p>Thanks for reading this small blog. Hopefully helped you in some way!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9eb7575c578a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eWPT exam Review and Study Guide! | by Shantanu Saxena]]></title>
            <link>https://j0ey.medium.com/ewpt-exam-review-and-study-guide-by-shantanu-saxena-b59069aea091?source=rss-1afd0e624dd3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b59069aea091</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ewpt]]></category>
            <category><![CDATA[elearnsecurity]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[wapt]]></category>
            <dc:creator><![CDATA[Shantanu Saxena]]></dc:creator>
            <pubDate>Mon, 12 Jul 2021 11:22:13 GMT</pubDate>
            <atom:updated>2021-07-12T11:25:33.990Z</atom:updated>
            <content:encoded><![CDATA[<h3>eWPT exam Review and Study Guide!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*nRDxsZXW3C7sx_0AFzN8zw.png" /></figure><p>Hey!! So you are thinking of getting eWPT certified?</p><p>This blog will briefly give you an idea of what the exam is, what to expect from it, who is it for, how I studied and some useful tips &amp; tricks that helped me during exam. Hopefully this will help you in achieving your goal.</p><p>Let’s begin!</p><h3>About eWPT</h3><p>The eWPT is the certification exam by eLearnSecurity that assesses an individual’s Web Application Penetration testing skills in a real world environment. INE provides the Web Application Penetration Testing Professional course(<strong>WAPT</strong>) to tackle the exam.</p><p>You can read more about it <a href="https://elearnsecurity.com/product/ewpt-certification/">here</a> .</p><h3>Who is it for?</h3><p>The exam covers most of the basics that you need to get into Web App Penetration testing. It is beneficial for Bug Bounty Hunters, Penetration Testers, Security Researchers, CTF-Players as well as Web App Developers.</p><h3>Prerequisites</h3><p>Anyone with basic knowledge of programming in JS and HTML can cruise through the course and give the exam.</p><p>I myself had no knowledge of JS and only basics of HTML but I was able to learn HTML from <a href="https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/">here</a> and the only JS I needed was a one liner code. The exam can be passed through multiple ways and only some require a little bit of programming which you can just google. Reading and understanding PHP code will also help although it is not mandatory.</p><h3>How I prepped for the exam?</h3><p>I bought the INE’s <a href="https://ine.com/pages/cybersecurity">Cyber Security Pass</a>. With the Cyber Security Pass you can go through all the Security related courses that are provided by INE with unlimited access to the labs so that you can practice as much as you want without any restriction.</p><p>So I started the WAPT course and went through all the material(PDFs, Videos and Labs) in 30 days. People can complete it in 15 days as well but I would recommend taking your time and really understand the concepts of each attack and their remediation.</p><p>After reading the PDFs and watching Videos, you get to practice what you have learnt through labs. PLEASE GO THROUGH ALL THE LAB EXERCISES AND CHALLENGES ATLEAST 2 TIMES. I used to spend almost 4-6 hours(Excessive!) on most labs, Toying with ideas, Trying new things, which is why it took me an entire month. But labs can be completed fairly quickly as well.</p><p>Please Take notes! I didn&#39;t took notes at first, but when doing the labs again, I had to go through the entire modules just to lookup something that I forgot. Notes will help you in exam as well.</p><p>Learn how to write a good report. As this was my first time writing a report, it took me a lot of time to come up with a good format. You can access Public Pentesting reports to get an idea of what real world reports look like. A good repository of public pentest reports is provided by juliocesarfort which can be accessed from <a href="https://github.com/juliocesarfort/public-pentesting-reports">here</a>.</p><p>The WAPT course is more than enough for you to pass eWPT exam.</p><h3>The Exam Overview</h3><p>You get 7 days to test a web application, find vulnerabilities and satisfy the goals of the exam. The exam covers a large scope, you are required to find vulnerabilities in multiple places and chain them to reach the exam objective. THIS IS NOT A CTF, IT IS A REAL WORLD PENETRATION TEST. What I mean by that is you have to identify as many vulnerabilities as you can, reaching the exam objective is a necessary condition but not enough to actually pass. Although some vectors that you will read in course don’t make it to exam, still the exam does a good job of testing you on most of the OWASP top 10 attack vectors. After the end of the exam you get another 7 days to write a pen test report and upload it to the exam portal.</p><p>I found 18 types of vulnerabilities, each type having one or more occurrence and it took me over 12 hours to write my report which after much filtering was 47 pages long.</p><p>The exam is definitely challenging and will make you leave your comfort zone, but it is a lot of fun.</p><h3>Tips &amp; Tricks for the exam:</h3><ol><li>Please don’t get demotivated after finding that some people completed the exam in 1 day while you are taking longer. Take your time with the exam environment and find all the possible vulnerabilities. Most people who complete the exam fast can’t find a lot of vulnerabilities and just submit a bad report. As a pentester, make it your principle that you will find all that you can and will report everything that you found in an organized manner.</li><li>Use Burp Suite effectively, Inspect every packet, every header for vulnerabilities. You can get 1 month of free trial for Burp Pro from Port Swigger website, Will help you a lot in finding low hanging fruits.</li><li>Take breaks, it will keep your mind fresh and will help in refocusing.</li><li>Reset the exam environment if you feel that something should work but is not working. You get 4 daily resets.</li><li>People have reported that their Lab VPN is not stable but It worked fine for me. So keep an eye out for this.</li><li>Unofficial INE Discord Server: <a href="https://discord.gg/9dvPVVBhgB">https://discord.gg/9dvPVVBhgB</a></li><li>If you face any problems during your exam, contact the following and you will get a swift response: support@elearnsecurity.com</li><li>Make a good report. It is the only result that clients get and the only thing that matters the most in an entire Pen Test. You can find a good report format by TheMayor in the above mentioned discord server.</li><li>Do not take HD Screenshots of your entire screen to add to your report, the report size can not be higher than 10 MB. Only take shots of the relevant area of the screen, this will reduce the size as well as make your report precise. A good screenshot taking software is G<a href="https://getgreenshot.org/">reenshot</a>, it lets you capture a specific part of screen and edit it on the go.</li><li>Usually most people take screenshots while doing the exam but it breaks my flow, so what I do is I use OBS to screen record my entire testing phase and take the screenshots from the recordings in reporting phase.</li><li>Notes and Google are your best friends. Whenever in doubt, read your notes and google stuff. Google is the bread and butter of every pentester.</li></ol><p><strong><em>A Note from Author</em></strong>:</p><p>This is my first attempt at reviewing/blogging anything so I tried to make it as detailed as possible. I am sorry that it turned out to be big blog, I will make sure that my skills at blogging improve. Thank you for taking the time to read it. Have a nice Day!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b59069aea091" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>