<?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 Madhu Kanwat on Medium]]></title>
        <description><![CDATA[Stories by Madhu Kanwat on Medium]]></description>
        <link>https://medium.com/@Madhu_Kanwat?source=rss-a34436f3382c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AOsiqqhyl2MIM72Sv-Rw5A.jpeg</url>
            <title>Stories by Madhu Kanwat on Medium</title>
            <link>https://medium.com/@Madhu_Kanwat?source=rss-a34436f3382c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:46:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Madhu_Kanwat/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[ Truths About Bug Bounty for Beginners]]></title>
            <link>https://medium.com/@Madhu_Kanwat/truths-about-bug-bounty-for-beginners-b3f88bdeceaa?source=rss-a34436f3382c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3f88bdeceaa</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[vapt]]></category>
            <dc:creator><![CDATA[Madhu Kanwat]]></dc:creator>
            <pubDate>Sun, 05 Oct 2025 09:48:51 GMT</pubDate>
            <atom:updated>2025-10-05T13:11:05.863Z</atom:updated>
            <content:encoded><![CDATA[<pre>💡 Truths About Bug Bounty for Beginners</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ufO5IlzkpHp_E2XAOwLigg.jpeg" /></figure><p>I’m not a pro hunter — but I truly believe there’s something <em>off</em> about how most beginners are told to start their bug bounty journey.</p><p>When we begin, we’re told to solve labs on <strong>PortSwigger</strong>, <strong>TryHackMe</strong>, or <strong>VulnHub</strong>.<br> That’s not wrong — I started exactly the same way.</p><p>These platforms are <em>great</em> for learning how vulnerabilities work and for understanding concepts in a controlled environment.</p><p>But here’s the truth 👇</p><blockquote><strong><em>Solving labs won’t automatically prepare you for finding real-world bugs.</em></strong></blockquote><p>When you move from practice labs to real targets, you quickly realize how different things are.</p><p>You’ll see multiple layers of security, unexpected logic, and filters that block everything you try.</p><p>That’s when many beginners lose motivation and give up.</p><h3>🧠 Step 1: Change Your Mindset</h3><p>Most of us want quick results.<br> We rush through labs and expect to find bugs and bounties in weeks.<br> But the only thing that comes fast in this journey is <strong>disappointment</strong>.</p><p>You need to rewire your mindset:</p><blockquote><em>🎯 </em><strong><em>Education → Experience → Money</em></strong></blockquote><p>Focus on <strong>learning first</strong>.<br> When your goal is education, even failures feel like wins — because every mistake teaches you something new.</p><p>That’s how you stay consistent without burning out.</p><h3>⚙️ Step 2: Move From Theory to Reality</h3><p>Once you understand how an attack works, stop solving endless labs.<br> Instead, pick a <strong>real target</strong> — maybe a public program on HackerOne, Bugcrowd, or Intigriti.</p><p>Open <strong>Burp Suite</strong>, intercept some requests, and start exploring how things behave.<br> Your first few tries will be messy — and that’s <em>perfectly fine</em>.</p><p>You’ll make silly mistakes, send wrong payloads, and get confused.<br> But next time, you’ll notice fewer errors, smoother workflow, and better understanding of what’s happening under the hood.</p><p>That’s called <strong>progress</strong>.</p><h3>🧩 Step 3: Don’t Overdo Labs</h3><p>Labs are still <strong>important</strong> — don’t ignore them.<br> But the goal is to <em>understand</em> the concept, not to collect lab completions like trophies.</p><blockquote><em>🎓 </em><strong><em>Solve → Understand → Apply → Repeat</em></strong></blockquote><p>After learning a concept, immediately test it on a real target.<br> Even if you don’t find a bug, you’ll start developing instincts — like where to look and what’s unusual.</p><p>If you can find just <strong>one impactful real-world bug</strong>, that’s worth more than solving 100 lab</p><h3>🕰️ Step 4: Enjoy the Long Journey</h3><p>Bug bounty is not a “get-rich-fast” thing.<br> It’s a <strong>get-better-slowly</strong> thing.</p><p>If you chase <strong>excellence</strong>, the <strong>money will follow</strong>.<br> But if you chase <strong>money</strong>, you’ll lose hope too early.</p><p>Celebrate your small wins — the first time you understand a new vulnerability, the first valid report, or even the first rejection you learned from.</p><p>Each step matters.</p><h3>✨ Final Thoughts</h3><p>Every hunter you admire once felt lost too.<br> The only difference is — they <em>didn’t stop</em>.</p><p>So don’t rush, don’t compare, and don’t give up.</p><blockquote><em>Keep learning. Keep breaking. Keep growing.</em></blockquote><p>I hope this write-up helps you even a little bit.<br> Thank you for reading 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3f88bdeceaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️‍♂️ How I Landed Two P1s and My First Bug Bounty]]></title>
            <link>https://medium.com/@Madhu_Kanwat/%EF%B8%8F-%EF%B8%8F-how-i-landed-two-p1s-and-my-first-bug-bounty-3ded6f5f2af6?source=rss-a34436f3382c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ded6f5f2af6</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[vapt]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Madhu Kanwat]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 13:54:03 GMT</pubDate>
            <atom:updated>2025-07-26T17:23:04.454Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zh0sBOFFKK2QOaqtAXl9eA.png" /></figure><p>Back in <strong>May 2025</strong>, I officially stepped into the world of bug bounty. I had been studying cybersecurity for a while but hadn’t actively hunted bugs. So I jumped into platforms like HackerOne and submitted <strong>5–6 reports</strong>. Deep down, I knew they were either invalid or low impact — but I still reported them to gain experience in writing and understanding how platforms work.</p><p>Then I realized something important — I needed a better approach.</p><h3>🔁 The Mindset Shift</h3><p>I started reading <strong>bounty writeups</strong> and <strong>recon guides</strong> from experienced hunters. Like most beginners, I was overwhelmed and wanted to try everything I read — but I quickly realized that was not practical. So I asked myself a simple question:</p><p><strong>“What can I do differently that most beginners don’t?”</strong></p><p>That’s when it hit me:</p><blockquote><em>. Most new hunters do recon… but never actually </em><strong><em>analyze</em></strong><em> what they find.</em></blockquote><ul><li>They collect URLs, parameters, endpoints — and then abandon them because they look boring or irrelevant. That’s where they mess up.</li></ul><h3>🧠 Fixing My Beginner Mistakes</h3><p>I listed every mistake I had made so far:</p><ol><li>❌ Not following a proper recon flow</li><li>❌ Not analyzing outputs properly</li><li>❌ Not believing I could find bounty-worthy bugs</li><li>❌ Constantly switching targets</li><li>❌ Being impatient</li></ol><p>Once I eliminated those habits, <strong>my win rate improved instantly</strong>. That mindset shift was the real game-changer.</p><h3>🧰 My Recon Flow</h3><p>Here’s the recon flow I followed:</p><p>subfinder + assetfinder → httpx →bbot →nikto→ gau + waybackurls → JS file scraping → nuclei → custom scripts</p><p>*Sounds simple, but trust me — it took me <strong>5 full days</strong> to finish the recon and deeply analyze the results. I stored everything that looked remotely interesting.</p><h3>🧨 First P1: A Hidden PHP Config File</h3><p>While digging through one subdomain, I noticed an endpoint like:</p><pre>/send-email</pre><p>It didn’t look interesting at first — probably just a mail-sending endpoint, right?</p><p>But I still tried it, and boom! It opened a <strong>PHP configuration file</strong> leaking sensitive information. At that moment, I didn’t fully understand what I was looking at… but I <strong>knew</strong> it was something big.</p><p>So I reported it immediately. It was my <strong>first valid bug</strong>, and I was super excited. My sir asked me to escalate it, but I couldn’t wait — I submitted it as it was.</p><h3>⚡ Second P1: Database Access .</h3><p>The next day, I opened that PHP config file again and started thinking,</p><blockquote><em>“What else can I extract from this?”</em></blockquote><p>I asked <strong>ChatGPT</strong> to help me understand the contents of the config file line by line.</p><p>I noticed <strong>database credentials</strong> inside — username and password. Naturally, I thought:</p><blockquote><em>“Let’s try to connect!”</em></blockquote><p>But after 2 hours, nothing worked. I assumed the credentials were outdated or the server had additional security layers.</p><p>It was 3 AM. I almost gave up.</p><p>But then… I looked closer.</p><p>It wasn’t an authentication failure — it was an <strong>SSL error</strong>.</p><p>I asked GPT how to bypass SSL verification during connection. It gave me a simple command.</p><p><strong>Boom! I was in.</strong><br> This was my <strong>second P1</strong> — access to a live production database via leaked credentials.</p><p>I reported it right away.</p><h3>💡 Key Learnings</h3><ol><li><strong>Don’t skip steps</strong> — especially as a beginner. Every skipped step is a missed opportunity.</li><li><strong>Analyze everything</strong> — If I had ignored that /send-email endpoint because it looked boring, I would’ve missed two P1s.</li><li><strong>Don’t blame the target</strong> — It’s not about how juicy a target is; it’s about whether you’re exploring it thoroughly.</li><li><strong>Be patient</strong> — Once you hit the vulnerable side of the application, it becomes exciting — not exhausting.</li></ol><h3>💥 Final Thoughts</h3><p>I went from invalid reports to <strong>two P1s and my first bounty </strong>in less than a month — not because I’m special, but because I changed how I approached the game.</p><p>So if you’re a beginner reading this, remember:</p><blockquote><em>“It’s not about how many tools you use — it’s about how deeply you look into the output.”</em></blockquote><p>Keep learning. Keep hunting. Your bounty is just one recon away. 💻🎯</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ded6f5f2af6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Summary]]></title>
            <link>https://medium.com/@Madhu_Kanwat/task-2-reconnaissance-985707db6bfa?source=rss-a34436f3382c------2</link>
            <guid isPermaLink="false">https://medium.com/p/985707db6bfa</guid>
            <dc:creator><![CDATA[Madhu Kanwat]]></dc:creator>
            <pubDate>Wed, 23 Apr 2025 19:31:48 GMT</pubDate>
            <atom:updated>2025-04-25T16:36:39.695Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>RootMe — TryHackMe CTF Walkthrough</em></strong></blockquote><blockquote><strong>NOTE: You will find the answers to all the questions at the end of the article.</strong></blockquote><h4><strong>🔹 Summary</strong></h4><p>→RootMe is an easy Linux machine on TryHackMe that helps you learn:</p><p>1.Basic web scanning</p><p>2.Finding website vulnerabilities</p><p>3.Getting a reverse shell</p><p>4.Privilege escalation</p><h3>Topics Covered</h3><ul><li>Nmap scanning</li><li>Web directory scanning (gobuster)</li><li>Viewing page source</li><li>Uploading a reverse shell</li><li>Using netcat for reverse shell</li><li>Privilege escalation using</li></ul><h3>🛠️ Tools Used</h3><ul><li>nmap</li><li>gobuster</li><li>netcat (nc)</li><li>Linux terminal</li></ul><h4><strong>Task 1: Deploy the Machine</strong></h4><p>Connect to the TryHackMe VPN</p><p>Start the “RootMe” machine and note its IP address.</p><h4>🔍<strong> Task 2: Reconnaissance</strong></h4><p><strong><em>Use Nmap to identify open ports and services:</em></strong></p><pre>nmap -sV -p- &lt;IP&gt;</pre><p><strong>What it does:</strong></p><ul><li>-sV: Detect service versions</li><li>-p-: Scan all 65535 ports</li><li>&lt;IP&gt;: The IP of the target machine</li></ul><blockquote><strong>NOTE: You can use the commands as per your need.</strong></blockquote><blockquote>Visit Website on Port 80</blockquote><blockquote>Go to the IP in browser:</blockquote><pre>http://&lt;IP&gt;</pre><p>Check the <strong>page source</strong> (Ctrl+U) for hints.</p><h4>3.Enumerate Web Directories</h4><p>Use Gobuster to discover hidden directories:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ac7w3A0zvoZz2aeRiixD5A.png" /></figure><ul><li>dir: Directory scan</li><li>-u: Target URL</li><li>-w: Wordlist to try</li></ul><blockquote><strong>Discovered Directories:</strong></blockquote><ul><li>/panel/</li><li>/uploads/</li></ul><h4>2. Prepare a Reverse Shell</h4><p>NOTE: You can Download Or Genrate the PHP reverse shell script:</p><p>Edit it with your IP and port:</p><p><a href="https://www.revshells.com/">https://www.revshells.co</a>m</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BojfH3tr6pX4dCPIdyBTTA.png" /></figure><h4>3. Bypass File Upload Restrictions</h4><p>The upload form may restrict .php files. Rename your script to use a different extension:-shell.phtml ,reverseshell.php5</p><h4>4. Trigger the Reverse Shell</h4><p>Start a Netcat listener on your machine</p><pre>nc -lvnp 4444</pre><p>In your browser, navigate to http://&lt;MACHINE_IP&gt;/panel/shell.phtml to execute the script</p><p>Upon successful execution, you should receive a shell connection as the www-data user.​</p><h4>🔐 Task 4: Privilege Escalation</h4><p>Search for files with the SUID permission:</p><p><strong>SUID</strong> stands for <strong>Set User ID</strong>.</p><p>It is a <strong>special permission</strong> in Linux/Unix that allows a <strong>user to run a file with the permissions of the file’s owner</strong> (usually root), instead of the user who is running the file.</p><pre>find / -type f -perm -4000 2&gt;/dev/null</pre><p>find / Search from root directory</p><p>-type fOnly look at files</p><p>-perm -4000Find files with SUID bit set</p><p>2&gt;/dev/nullSuppress error messages</p><h4>2. Exploit SUID Python Binary</h4><p>Use Python to spawn a shell with elevated privileges:/usr/bin/python -c &#39;import os; os.execl(&quot;/bin/sh&quot;, &quot;sh&quot;, &quot;-p&quot;)&#39;</p><p>Command:- /usr/bin/python -c ‘import os; os.execl(“/bin/sh”, “sh”, “-p”)&#39;</p><h4>3. Retrieve the Root Flag</h4><p>Locate and read the root flag:</p><pre>find / -name root.txt 2&gt;/dev/null<br>cat /root/root.txt</pre><h3>Flags:</h3><p><strong>. User Flag:</strong> Found in /home/&lt;user&gt;/user.txt</p><ul><li><strong>Root Flag:</strong> Found in /root/root.txt</li></ul><p><strong>ANSWERS:</strong></p><blockquote><em>Q:Deploy the machine</em></blockquote><blockquote><em>No answer needed</em></blockquote><p>Q:Scan the machine, how many ports are open?</p><p>Answer : 2</p><p>Q:What version of Apache is running?</p><p>Answer : 2.4.29</p><p>Q:What service is running on port 22?</p><p>Answer : ssh</p><p>Q:Find directories on the web server using the GoBuster tool.</p><p>No answer needed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=985707db6bfa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>