<?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 Subh Dhungana on Medium]]></title>
        <description><![CDATA[Stories by Subh Dhungana on Medium]]></description>
        <link>https://medium.com/@shubhdhungana?source=rss-9aee5d122c83------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sm4lwxf4mPkHfsC1NIR-bQ.jpeg</url>
            <title>Stories by Subh Dhungana on Medium</title>
            <link>https://medium.com/@shubhdhungana?source=rss-9aee5d122c83------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:40:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shubhdhungana/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[Find Your First 5 Bug Bounties in Easy Ways [Guaranteed Method!!]]]></title>
            <link>https://shubhdhungana.medium.com/find-your-first-5-bug-bounties-in-easy-ways-3aaca5c57a2d?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/3aaca5c57a2d</guid>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Sat, 07 Sep 2024 12:22:23 GMT</pubDate>
            <atom:updated>2024-09-14T06:14:04.923Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*1bc2165JFuacrORUgZHmbw.png" /></figure><p>Bug bounty hunting is a fun way to earn money by finding security issues in websites and apps. If you’re just starting, don’t worry! In this article, I’ll teach you how to find 5 <strong>easy bugs</strong> step by step.</p><p>You don’t need to be an expert, just follow these simple methods, examples, and commands, and you’ll be on your way to your first bug bounty!</p><h3>1. Find an XSS (Cross-Site Scripting) Bug</h3><p>XSS allows an attacker to insert malicious scripts into a website. It’s one of the easiest bugs to find.</p><h4>Example: Basic XSS Test in Search Bar</h4><p>Let’s say you’re testing a website and it has a search bar. Try typing the following code into the search bar:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwQeM9gXSA-dztTHlz4A_g.png" /></figure><pre>&lt;script&gt;alert(&#39;XSS Found!&#39;)&lt;/script&gt;</pre><p>If you see a pop-up alert saying “XSS Found!”, you’ve found a vulnerability! This means the website is allowing your script to run, which can be dangerous.</p><h4>Steps:</h4><ol><li>Go to a website with a search or input box.</li><li>Enter the script above and hit enter.</li><li>If an alert box pops up, you’ve found an XSS bug.</li></ol><h4>Practice:</h4><ul><li>You can practice XSS on websites like <strong>Google Gruyere</strong> or <strong>bWAPP</strong>.</li><li>Try finding XSS bugs on bug bounty platforms like <strong>HackerOne</strong> and <strong>Bugcrowd</strong>.</li></ul><h3>2. Find an Open Redirect Bug</h3><p>Open Redirect happens when a website allows users to be redirected to any URL without proper validation. This can be used to trick users into going to malicious sites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*_laIpoJM2L87BVTWwUlaAQ.png" /></figure><h4>Example: Testing a Redirect URL</h4><p>Let’s say you find a URL on a website like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*viweSf47OAw-VV9ky_jQZg.png" /></figure><pre>https://example.com/redirect?url=https://goodsite.com</pre><p>Try changing the goodsite.com to another website, like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*itKwMVkWvCeE_5FZtjF1Ew.png" /></figure><pre>https://example.com/redirect?url=https://evilsite.com</pre><p>If the website takes you to evilsite.com, you’ve found an <strong>Open Redirect</strong> bug!</p><h4>Steps:</h4><ol><li>Look for URLs that contain “redirect” or “url=”.</li><li>Change the destination URL to something else (like <a href="https://evilsite.com)./">https://evilsite.com).</a></li><li>If the website sends you to that new URL, you’ve found a bug.</li></ol><h4>Practice:</h4><ul><li>Try finding Open Redirect bugs on bug bounty programs. Look for URLs with parameters like url=, redirect=, or next=.</li></ul><h3>3. Find a CSRF (Cross-Site Request Forgery) Bug</h3><p>CSRF tricks a user into making unwanted requests, like changing their password, without their knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*WZIBfj9REj35hIDmW8pnFw.png" /></figure><h4>Example: Basic CSRF Attack</h4><p>If you find a form to change a password on a website, try crafting a fake form like this:</p><pre>&lt;form method=&quot;POST&quot; action=&quot;https://example.com/change_password&quot;&gt;<br>  &lt;input type=&quot;hidden&quot; name=&quot;new_password&quot; value=&quot;hackedpassword123&quot; /&gt;<br>  &lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;<br>&lt;/form&gt;</pre><p>If this fake form can change the password without the user’s permission, the website is vulnerable to CSRF.</p><h4>Steps:</h4><ol><li>Find a form that performs a critical action (like changing a password).</li><li>Copy the form’s action URL and inputs.</li><li>Create a fake form using HTML like the example above.</li><li>Try submitting the form and see if it performs the action without authentication.</li></ol><h4>Practice:</h4><ul><li>You can practice CSRF on websites like <strong>DVWA (Damn Vulnerable Web App)</strong> or <strong>bWAPP</strong>.</li></ul><h3>4. Find a SQL Injection Bug</h3><p>SQL Injection happens when you can manipulate a website’s database by inserting malicious SQL code. This is one of the most dangerous bugs but also easy to find.</p><h3>Example: SQL Injection in a Login Form</h3><p>If you find a login form on a website, try entering the following into the username or password field:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*bowC7jI4AX7ZPX7LtZXO9w.png" /></figure><pre>&#39; OR 1=1 --</pre><p>This code tricks the website into thinking you’re logged in without needing a password.</p><h4>Steps:</h4><ol><li>Find a login form or input field.</li><li>In the username or password field, enter the SQL code above.</li><li>If you gain access or see an error related to SQL, you’ve found a bug.</li></ol><h4>Practice:</h4><ul><li>Try SQL injection on platforms like <strong>SQLi Labs</strong> or <strong>DVWA</strong>.</li></ul><h3>5. Find a Subdomain Takeover</h3><p>Subdomain Takeover happens when a subdomain points to a service that is no longer in use, but you can take control of it.</p><h4>Example: Finding Vulnerable Subdomains</h4><p>Use a tool like <strong>Sublist3r</strong> to find subdomains:</p><pre>sublist3r -d example.com</pre><p>If a subdomain points to a service like Amazon S3, but the bucket doesn’t exist anymore, you can take over the subdomain and potentially find sensitive data.</p><h4>Steps:</h4><ol><li>Use <strong>Sublist3r</strong> or similar tools to find subdomains.</li><li>Look for subdomains that point to services like Amazon S3 or Heroku.</li><li>Check if the service is no longer in use by visiting the subdomain.</li><li>If it’s unclaimed, you can take over the subdomain.</li></ol><h4>Tools:</h4><ul><li><strong>Sublist3r</strong>: Finds subdomains of a website.</li></ul><h4>Learn More:</h4><ul><li><a href="https://github.com/aboul3la/Sublist3r">Sublist3r on GitHub</a></li></ul><h3>Final Tips:</h3><ul><li><strong>Practice Makes Perfect</strong>: Use platforms like <strong>HackerOne</strong>, <strong>Bugcrowd</strong>, and <strong>Open Bug Bounty</strong> to find real bug bounty opportunities.</li><li><strong>Use Tools</strong>: Tools like <strong>Burp Suite</strong>, <strong>OWASP ZAP</strong>, and <strong>Sublist3r</strong> will help you automate some of the searching.</li></ul><h3>Recap:</h3><p>Here’s a quick summary of the easiest bugs to find:</p><ol><li><strong>XSS</strong>: Insert scripts into input fields and check for alerts.</li><li><strong>Open Redirect</strong>: Modify URLs with redirect= or url= to test where they take you.</li><li><strong>CSRF</strong>: Create fake forms to test if sensitive actions can be performed.</li><li><strong>SQL Injection</strong>: Insert SQL code into login fields to manipulate the database.</li><li><strong>Subdomain Takeover</strong>: Use tools to find subdomains that point to abandoned services.</li></ol><p>By following these easy steps and practicing, you’ll be able to find your first 5 bug bounties in no time. Good luck! Happy hunting!</p><blockquote>Thank You</blockquote><blockquote>Subham</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3aaca5c57a2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Get Started in Bug Bounty Hunting: A Comprehensive Beginner’s Guide]]></title>
            <link>https://infosecwriteups.com/how-to-get-started-in-bug-bounty-hunting-a-comprehensive-beginners-guide-4cdaf3dcd910?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cdaf3dcd910</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[hackerone]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Sat, 31 Aug 2024 11:17:29 GMT</pubDate>
            <atom:updated>2024-09-01T19:11:47.897Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*KXoMHU9Kit7RcvrRZywZtg.png" /></figure><h3>Introduction</h3><p>Welcome to the thrilling world of bug bounty hunting — where finding glitches in software is not just a hobby but a gateway to potential riches and recognition! Imagine being a digital detective, solving mysteries that most folks wouldn’t even notice, and getting rewarded for it. In this guide, we’ll unravel the basics of bug bounty hunting, give you a step-by-step walkthrough of unearthing common vulnerabilities, and share some nifty resources to get you started. Buckle up, it’s going to be a bug-tastic ride!</p><h3>What is Bug Bounty Hunting?</h3><p>Bug bounty hunting is like being a superhero in the realm of cybersecurity, but without the flashy suit. It involves sniffing out and reporting security vulnerabilities in systems, apps, or websites. Companies run bug bounty programs to lure ethical hackers (like you) into spotting and reporting these weak spots, which helps them beef up their security. In return, you get rewards, recognition, or at least a virtual high-five from the tech community.</p><h3>Step 1: Learn the Basics of Web Security</h3><p>Before you start hunting bugs, you need to get comfy with the basics of web security. Think of it as learning the ABCs of cyber sleuthing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*HwtA25QBjmqTZajT9kWYNg.png" /></figure><ul><li><strong>HTTP &amp; HTTPS</strong>: These are like the postal services of the web. HTTP is the standard protocol, while HTTPS is its secure cousin that encrypts data between the browser and the server. Always go for HTTPS — it’s like wearing a seatbelt on the web.</li><li><strong>OWASP Top 10</strong>: This is your cheat sheet to the top 10 web security risks. Familiarize yourself with these troublemakers:</li><li><strong>SQL Injection (SQLi)</strong>: When hackers play with your database like it’s a toy.</li><li><strong>Cross-Site Scripting (XSS)</strong>: When bad scripts crash the party on your website.</li><li><strong>Broken Authentication</strong>: When your login system is as secure as a paper lock.</li><li><strong>Sensitive Data Exposure</strong>: When your private info goes public like it’s on a billboard.</li><li><strong>XML External Entities (XXE)</strong>: When your XML files are sneaky troublemakers.</li><li><strong>Broken Access Control</strong>: When users access more than they should, like breaking into the VIP section.</li><li><strong>Security Misconfiguration</strong>: When your security settings are as mixed up as a puzzle.</li><li><strong>Cross-Site Request Forgery (CSRF)</strong>: When attackers make your site do things it shouldn’t.</li><li><strong>Insecure Deserialization</strong>: When data being processed gets all messed up.</li><li><strong>Using Components with Known Vulnerabilities</strong>: When using outdated parts is like bringing a leaky bucket to the party.</li><li><strong>Networking Basics</strong>: Learn how IP addresses, DNS, and data travel over networks. It’s like understanding how letters get to your mailbox, but with a lot more technical mumbo jumbo.</li></ul><h3>Step 2: Get Familiar with Tools of the Trade</h3><p>Every superhero needs their gadgets, and for bug bounty hunting, you’ve got some cool tools:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*esB4fV2xoa2DafsCJYfoPA.png" /></figure><ul><li><strong>Burp Suite</strong>: Think of it as your magnifying glass for HTTP requests and responses. It’s powerful and comes in a community edition if you’re just starting out. Check out the Burp Suite Community Edition and Burp Suite Tutorial for Beginners.</li><li><strong>Nmap</strong>: Your go-to tool for scanning networks and discovering open ports. It’s like your radar for finding weak spots. Explore the <a href="https://nmap.org/">Nmap Official Site</a> and Nmap Tutorial for Beginners.</li><li><strong>OWASP ZAP</strong>: An open-source security scanner that helps you spot vulnerabilities. It’s like having a sidekick that never sleeps. Check out the OWASP ZAP Official Site and the OWASP ZAP User Guide.</li><li><strong>Google Dorking</strong>: Use advanced search operators to dig up information exposed on the internet. It’s like using a super-powered search engine to find hidden gems. Read up on Google Dorking Guide.</li></ul><h3>Step 3: Choose a Bug Bounty Platform</h3><p>Now, where do you actually hunt these bugs? Here are some platforms where you can get started:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*1fDF2jOW4bmr5igxvHdEYQ.png" /></figure><ul><li><strong>HackerOne</strong>: The big leagues with programs from major companies. Check out <a href="https://www.hackerone.com/">HackerOne</a> and their Beginner’s Guide.</li><li><strong>Bugcrowd</strong>: Another top platform with various programs to explore. Visit <a href="https://www.bugcrowd.com/">Bugcrowd</a> and Bugcrowd University.</li><li><strong>Synack</strong>: A more exclusive platform with an application process. Head over to <a href="https://www.synack.com/">Synack</a> if you’re feeling fancy.</li><li><strong>Open Bug Bounty</strong>: Focuses on responsible disclosure even if you don’t have a formal program. Check out <a href="https://www.openbugbounty.org/">Open Bug Bounty</a>.</li></ul><h3>Step 4: Finding Vulnerabilities — Step-by-Step Examples</h3><p>Let’s put on our detective hats and dive into some classic vulnerabilities:</p><h3><strong>Example 1: Cross-Site Scripting (XSS)</strong></h3><p>XSS is like a prankster who injects malicious scripts into web pages. Here’s how to catch them:</p><ul><li><strong>Identify Input Fields</strong>: Look for places where you can type stuff — search boxes, comment sections, or profiles.</li><li><strong>Inject Test Script</strong>: Drop a simple script like:</li><li>&lt;script&gt;alert(&#39;XSS&#39;)&lt;/script&gt;</li><li>into the input field and hit submit.</li><li><strong>Check for Execution</strong>: If you see an alert box popping up, you’ve found an XSS vulnerability. Congrats!</li><li><strong>Report the Vulnerability</strong>: Describe your findings in a report — explain how you did it, the impact, and offer suggestions for fixing it. It’s like writing a detective’s report.</li></ul><p><strong>Example: Testing a search field</strong></p><ul><li>Enter &lt;script&gt;alert(&#39;Test&#39;)&lt;/script&gt; in the search box.</li><li>If an alert box appears, it’s an XSS vulnerability.</li></ul><h3><strong>Example 2: Remote Code Execution (RCE)</strong></h3><p>RCE is when hackers can run commands on a server from afar. Here’s how to find it:</p><ul><li><strong>Find User Input</strong>: Look for places where users can upload files or enter commands.</li><li><strong>Test File Uploads</strong>: Upload a file with an extension for executable code, like .php or .asp. Try this payload:</li><li>&lt;?php system($_GET[&#39;cmd&#39;]); ?&gt;</li><li><strong>Execute Command</strong>: Access the uploaded file via the web and pass a command using URL parameters. For example: <a href="http://example.com/uploads/yourfile.php?cmd=ls">http://example.com/uploads/yourfile.php?cmd=ls</a></li><li><strong>Observe Output</strong>: If the command runs and you see the output, the server is vulnerable to RCE.</li><li><strong>Report the Vulnerability</strong>: Detail how you uploaded the file, executed the command, and the potential impacts.</li></ul><p><strong>Example: Upload a PHP file</strong></p><ul><li>Upload a file named shell.php with the content &lt;?php phpinfo(); ?&gt;.</li><li>Access it via http://example.com/uploads/shell.php to see if it executes.</li></ul><h3><strong>Example 3: Server-Side Request Forgery (SSRF)</strong></h3><p>SSRF is when an attacker tricks the server into making requests to internal resources. Here’s how to sniff it out:</p><ul><li><strong>Identify URL Parameters</strong>: Look for parameters that accept URLs or IP addresses.</li><li><strong>Inject Malicious URL</strong>: Test with URLs pointing to internal resources, like:</li><li>http://localhost/admin <a href="http://127.0.0.1/">http://127.0.0.1</a></li><li><strong>Observe Response</strong>: Check if the server returns data from the internal URL.</li><li><strong>Report the Vulnerability</strong>: Explain how you injected the URL, the responses you observed, and potential impacts.</li></ul><p><strong>Example: Manipulate a URL parameter</strong></p><ul><li>Change a parameter like http://example.com/fetch?url=http://localhost to other internal addresses.</li></ul><h3>Example 4: SQL Injection (SQLi)</h3><p><strong>SQL Injection (SQLi)</strong> involves injecting malicious SQL queries into an application to manipulate the database. Here’s how to test for SQLi:</p><ol><li><strong>Identify Input Fields</strong>: Find fields where you can input data that interacts with a database, such as login forms or search bars.</li><li><strong>Inject SQL Payload</strong>: Use SQL injection payloads to test the input fields. For example:</li></ol><ul><li>&#39; OR &#39;1&#39;=&#39;1</li></ul><ol><li><strong>Observe Response</strong>: If the application returns unexpected results or database errors, it may be vulnerable to SQLi.</li><li><strong>Report the Vulnerability</strong>: Provide details of the injection, the responses, and potential impacts.</li></ol><p><strong>Example</strong>: Testing a login form:</p><ul><li>Enter admin&#39; OR &#39;1&#39;=&#39;1 as the username and password. If it logs you in, the site is vulnerable.</li></ul><h3>Step 5: Learn From the Community</h3><p>Engaging with the bug bounty community can enhance your skills and knowledge:</p><ol><li><strong>Write-Ups</strong>: Reading write-ups from experienced hunters can provide insights into different techniques and approaches. Websites like Hack The Box Write-Ups offer valuable information.</li><li><strong>Forums and Discord Channels</strong>: Join forums and Discord channels for bug bounty hunters. These platforms are great for asking questions and sharing knowledge.</li></ol><ul><li>Bugcrowd Forum</li><li>HackerOne Community</li></ul><ol><li><strong>Blogs and Videos</strong>: Follow cybersecurity blogs and YouTube channels for updates and tutorials.</li></ol><ul><li><a href="https://securityweekly.com/">Security Weekly</a></li><li><a href="https://www.bugbountyhub.io/">The Bug Bounty Hub</a></li><li><a href="https://www.youtube.com/c/LiveOverflow">LiveOverflow’s YouTube Channel</a></li></ul><h3>Additional Tips for Bug Bounty Hunting</h3><ol><li><strong><em>Understand the Scope</em></strong><em>: Each bug bounty program has a defined scope that specifies which applications, domains, or functionalities are in scope for testing. Always read and follow the program’s rules to avoid testing unauthorized areas.</em></li></ol><ul><li><em>HackerOne Scope Policy</em></li></ul><p><strong><em>2. Stay Updated</em></strong><em>: The cybersecurity landscape is always evolving. Keep up with the latest vulnerabilities, tools, and techniques by following industry news and updates.</em></p><ul><li><a href="https://www.cvedetails.com/"><em>CVE Details</em></a></li><li><a href="https://www.exploit-db.com/"><em>Exploit Database</em></a></li></ul><p><strong><em>3. Practice Ethically</em></strong><em>: Always use your skills responsibly. Respect the rules of each bug bounty program and avoid causing harm to systems or users.</em></p><p><strong><em>4. Document Everything</em></strong><em>: Keep detailed records of your findings, including the steps to reproduce the vulnerability, the impact, and any mitigation advice. This will help you write better reports and communicate effectively with program managers.</em></p><p><strong><em>5. Use Automation Wisely</em></strong><em>: While automated tools can help identify vulnerabilities, manual testing is crucial for discovering complex issues. Use automation as a supplement, not a replacement for manual analysis.</em></p><h3>Example Scenarios: Bug Bounty Hunting in Action</h3><h3>Scenario 1: Finding XSS on a Search Page</h3><p><strong>Step-by-Step Example</strong>:</p><ol><li><strong>Navigate to the Search Page</strong>: Open the search page of the target application.</li><li><strong>Test Input Fields</strong>: In the search box, input &lt;script&gt;alert(&#39;XSS&#39;)&lt;/script&gt;.</li><li><strong>Submit and Observe</strong>: Click the search button and observe if an alert box pops up.</li><li><strong>Verify and Report</strong>: If the script executes, it indicates an XSS vulnerability. Write a report detailing the affected URL, the payload used, and the impact.</li></ol><h3>Scenario 2: Exploiting RCE via File Upload</h3><p><strong>Step-by-Step Example</strong>:</p><ol><li><strong>Locate File Upload Functionality</strong>: Find a section of the application that allows file uploads, such as an avatar or document upload feature.</li><li><strong>Prepare Malicious File</strong>: Create a PHP file with the following content:</li></ol><ul><li>&lt;?php system($_GET[&#39;cmd&#39;]); ?&gt;</li></ul><ol><li><strong>Upload the File</strong>: Upload the PHP file to the server.</li><li><strong>Access the File</strong>: Visit the file via URL, e.g., http://example.com/uploads/malicious.php?cmd=ls, to execute a command.</li><li><strong>Verify Execution</strong>: If you see the output of the command, the server is vulnerable to RCE. Report the issue with details on the file upload process and the commands executed.</li></ol><h3>Scenario 3: Exploiting SSRF via URL Parameter</h3><p><strong>Step-by-Step Example</strong>:</p><ol><li><strong>Find URL Parameter</strong>: Look for a URL parameter in the application that accepts user input, such as a URL fetching feature.</li><li><strong>Inject Internal URLs</strong>: Enter URLs like http://localhost/admin or http://127.0.0.1 in the parameter.</li><li><strong>Check Responses</strong>: Observe if the application returns information from the internal URL or service.</li><li><strong>Report the Vulnerability</strong>: Document the URL parameter, the injected payloads, and the responses.</li></ol><h3>Scenario 4: SQL Injection in Login Form</h3><p><strong>Step-by-Step Example</strong>:</p><ol><li><strong>Locate Login Form</strong>: Find the login form on the target website.</li><li><strong>Inject SQL Payload</strong>: Enter admin&#39; OR &#39;1&#39;=&#39;1 as both username and password.</li><li><strong>Submit the Form</strong>: Click login and see if you gain unauthorized access.</li><li><strong>Document and Report</strong>: If successful, report the SQL injection with details on the payload and its effect.</li></ol><h3>Links and Resources</h3><h4>Learning Platforms and Tutorials</h4><ul><li><strong><em>Hacker101</em></strong><em>: </em><a href="https://www.hacker101.com/"><em>Hacker101 — Free Online Security Training</em></a></li><li><strong><em>PortSwigger Web Security Academy</em></strong><em>: Learn Web Security for Free</em></li><li><strong><em>Bugcrowd University</em></strong><em>: Free Bug Bounty Training</em></li><li><strong><em>OWASP (Open Web Application Security Project)</em></strong><em>: </em><a href="https://owasp.org/"><em>OWASP Resources</em></a></li></ul><h4>Practice Platforms</h4><ul><li><strong><em>Hack The Box</em></strong><em>: </em><a href="https://www.hackthebox.com/"><em>Hack The Box — Practice Cybersecurity</em></a></li><li><strong><em>TryHackMe</em></strong><em>: </em><a href="https://tryhackme.com/"><em>TryHackMe — Learn Cybersecurity</em></a></li><li><strong><em>VulnHub</em></strong><em>: </em><a href="https://www.vulnhub.com/"><em>VulnHub — Vulnerable By Design</em></a></li><li><strong><em>CTFtime</em></strong><em>: </em><a href="https://ctftime.org/"><em>Capture The Flag Events</em></a></li></ul><h4>Bug Bounty Programs and Platforms</h4><ul><li><strong><em>HackerOne</em></strong><em>: </em><a href="https://www.hackerone.com/"><em>HackerOne — Bug Bounty Platform</em></a></li><li><strong><em>Bugcrowd</em></strong><em>: </em><a href="https://www.bugcrowd.com/"><em>Bugcrowd — Find and Report Bugs</em></a></li><li><strong><em>Synack</em></strong><em>: </em><a href="https://www.synack.com/"><em>Synack — Managed Bug Bounty</em></a></li><li><strong><em>Cobalt</em></strong><em>: </em><a href="https://cobalt.io/"><em>Cobalt — Pentesting as a Service</em></a></li></ul><h4>Tools and Resources</h4><ul><li><strong><em>Burp Suite</em></strong><em>: Burp Suite — Web Vulnerability Scanner</em></li><li><strong><em>OWASP ZAP (Zed Attack Proxy)</em></strong><em>: </em><a href="https://www.zaproxy.org/"><em>OWASP ZAP — Free Security Scanner</em></a></li><li><strong><em>Nmap</em></strong><em>: </em><a href="https://nmap.org/"><em>Nmap — Network Scanner</em></a></li><li><strong><em>Nikto</em></strong><em>: Nikto — Web Server Scanner</em></li></ul><h4>Learning and Community</h4><ul><li><strong><em>The Hacker News</em></strong><em>: </em><a href="https://thehackernews.com/"><em>Stay Updated on Security News</em></a></li><li><strong><em>Krebs on Security</em></strong><em>: </em><a href="https://krebsonsecurity.com/"><em>Krebs on Security Blog</em></a></li><li><strong><em>Reddit — NetSec</em></strong><em>: </em><a href="https://www.reddit.com/r/netsec/"><em>NetSec Subreddit</em></a></li><li><strong><em>Twitter — Follow Security Experts</em></strong><em>: </em><a href="https://twitter.com/"><em>List of Security Experts on Twitter</em></a></li></ul><h4>Documentation and Reporting</h4><ul><li><strong><em>Exploit-DB</em></strong><em>: </em><a href="https://www.exploit-db.com/"><em>Exploit Database — Exploits and Vulnerabilities</em></a></li><li><strong><em>CVE Details</em></strong><em>: </em><a href="https://www.cvedetails.com/"><em>CVE Details — Vulnerability Database</em></a></li><li><strong><em>Security Focus</em></strong><em>: </em><a href="https://www.securityfocus.com/"><em>Security Focus — Vulnerability Database</em></a></li></ul><h3>Conclusion</h3><p>Bug bounty hunting is like a fun treasure hunt for finding security flaws on the web. It’s exciting and can be super rewarding if you play by the rules, keep good notes, and use your tools wisely. Imagine yourself as a superhero saving the day, but instead of a cape, you’ve got a keyboard. Keep your adventures ethical, document your discoveries like a treasure map, and use automation as your trusty sidekick, not your only tool. Happy hunting, and may you find bugs that are as elusive as a needle in a haystack! 🚀💻🔍</p><p>For further learning and practice:</p><ul><li><strong>Bug Bounty Tutorials</strong>: <a href="https://www.hacker101.com/">Hacker101</a></li><li><strong>CTF Platforms</strong>: <a href="https://www.hackthebox.com/">Hack The Box</a>, <a href="https://tryhackme.com/">TryHackMe</a></li><li><strong>Cybersecurity Blogs</strong>: <a href="https://thehackernews.com/">The Hacker News</a>, <a href="https://krebsonsecurity.com/">Krebs on Security</a></li></ul><p>Happy hunting, and may your bug bounty journey be both rewarding and educational!</p><blockquote>Thank you for reading, and happy hunting! 🚀💻🔍</blockquote><blockquote>— Subham</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cdaf3dcd910" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/how-to-get-started-in-bug-bounty-hunting-a-comprehensive-beginners-guide-4cdaf3dcd910">How to Get Started in Bug Bounty Hunting: A Comprehensive Beginner’s Guide</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Paths of Becoming Security Engineer]]></title>
            <link>https://shubhdhungana.medium.com/paths-of-becoming-security-engineer-1d1bacce42e4?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d1bacce42e4</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 09:05:24 GMT</pubDate>
            <atom:updated>2023-10-29T09:05:24.496Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Picture this: you’re in a world that’s more interconnected than ever, where your personal and professional life relies on digital technology. But who’s keeping it safe from the bad actors out there? That’s where security engineers step in. Let’s dive into the world of security engineering, and I’ll walk you through what it takes to become one, and the vital role they play in defending our digital realm.</p><p>The digital world is like a constantly shifting puzzle. It’s a space where hackers with dubious intentions lurk, and where our digital guardians, security engineers, are ever-watchful. They are the ones tasked with staying ahead of the cybercriminals, using their knowledge and skills to shield organizations, users, and the internet itself from harm.</p><p><strong>Responsibilities of Security Engineer</strong></p><p>Security engineers have a multifaceted job. Here’s what they do:</p><ol><li><strong>Risk Assessment and Management</strong>: They’re like digital risk assessors, identifying vulnerabilities and assessing potential threats to an organization. They then develop strategies to keep your data safe, making sure it’s confidential, integral, and available.</li><li><strong>Implementing Security Measures</strong>: Think of them as architects, building the defenses to keep your digital castle safe. They set up firewalls, intrusion detection systems, encryption, and access controls. All these are crucial to protect your data and ensure everyone’s following the rules.</li><li><strong>Incident Response</strong>: When trouble strikes, they’re the first responders. Like digital detectives, they investigate breaches, analyze attack patterns, and work to minimize the damage. Their quick thinking is key in reducing the impact of a security breach.</li><li><strong>Security Awareness</strong>: They’re also teachers. They educate employees and users about the best security practices. Their job is to create a culture of security awareness, reducing the chances of human errors leading to vulnerabilities.</li><li><strong>Staying Informed</strong>: Staying up to date with the latest threats and security technologies is non-negotiable. They’re like digital sponges, soaking up knowledge and staying ahead in the cat-and-mouse game of cybersecurity.</li></ol><h3>The Journey to Becoming a Security Engineer</h3><p><strong>Education and Background</strong></p><p>Becoming a security engineer usually starts with a strong background in computer science, IT, or a related field. Many of them have bachelor’s degrees in computer science or information security. However, some take a different path, entering the field with relevant certifications and real-world experience. Certifications like CISSP, CEH, and CompTIA Security+ are like gold stars on their resumes.</p><p><strong>Hands-On Experience</strong></p><p>Just like learning to swim by jumping into the pool, they often start their careers as network administrators, system administrators, or helpdesk technicians. Real-world experience teaches them the ins and outs of the technology they’re protecting and hones their problem-solving skills.</p><p><strong>Never-Ending Learning</strong></p><p>In the world of cybersecurity, there’s no finish line. Security engineers must be committed to lifelong learning. They constantly keep an eye on the latest threats, tools, and best practices. It’s like a never-ending adventure in the world of digital defense, with new challenges waiting at every turn.</p><h3>The Future of Security Engineering</h3><p>As technology marches forward, security engineers will only become more essential. With the rise of the Internet of Things (IoT), cloud computing, and artificial intelligence, new horizons for cyberattacks open up. Security engineers will be the ones adapting to these changes and keeping us safe.</p><p>Moreover, as data privacy and regulations get stricter, organizations will rely on these guardians of the digital realm to navigate the complexities and ensure compliance.</p><h3>In Conclusion</h3><p>In a world where data is currency and information is power, security engineers are the unsung heroes, tirelessly protecting our digital lives. If you’re considering becoming one, remember, it’s a journey of constant learning, adapting, and staying vigilant. Technology evolves, and so do those sworn to protect it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d1bacce42e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OWASP Top 10 Vulnerabilities Cheatsheet]]></title>
            <link>https://shubhdhungana.medium.com/owasp-top-10-vulnerabilities-cheatsheet-ca6d98e660b9?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca6d98e660b9</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[owasp]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Thu, 03 Aug 2023 04:49:08 GMT</pubDate>
            <atom:updated>2023-08-03T04:49:08.941Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*9tic8Dk_8b1sHANifGC5ow.png" /></figure><p>In today’s digital world, software and web applications are everywhere. But with convenience comes risks. Cyber attackers are always looking for weak points to exploit. That’s where the OWASP Top 10 vulnerabilities come in — a list that shows common security risks web apps face. In this article, we’ll explore these vulnerabilities using real-life examples to understand them better.</p><p>Let’s get ready to navigate the OWASP Top 10 cheatsheet and protect our digital world!</p><h3><strong>1. Broken Access Control</strong></h3><p>Imagine a big, fancy library with many restricted sections that only certain people, like librarians, can access. However, one day, a clever thief sneaks into the library unnoticed. The thief discovered that some hidden doors are not properly locked and can be opened without a key or permission. Once inside, the thief gains access to valuable and secret books, reading sensitive information they weren’t supposed to see. This is what happens when a web application doesn’t set proper restrictions, and unauthorized users can access sensitive parts of the system, leading to data breaches and unauthorized access.</p><p><em>Code example: Directly accessing an admin page without proper authentication.</em></p><pre># URL meant for privileged users (admins)<br>http://example.com/admin-page<br><br># Attacker accesses the admin page without proper authentication<br>http://example.com/admin-page (without login)</pre><ul><li><em>Meaning &amp; Theory: Broken access control occurs when an application does not properly enforce restrictions on what authenticated users can access. It allows unauthorized users to gain access to sensitive resources or perform actions they shouldn’t have permissions for.</em></li><li><em>Technical Explanation: Web applications typically use session tokens or cookies to authenticate users. If an attacker manipulates these tokens or bypasses the authentication process, they can access privileged functionalities or data.</em></li><li><em>Example: An attacker intercepts the session token of an authenticated user, modifies it to have admin privileges, and gains unauthorized access to admin functions.</em></li><li><em>Impact: Attackers can view sensitive information, modify data, or perform administrative actions, compromising the application’s security.</em></li></ul><p>Imagine a museum with a special exhibition room for VIPs. Each VIP has a unique badge to access the room. However, a mischievous child copies a VIP’s badge and gains access to the restricted area. This relates to broken access control because the child bypassed the proper restrictions and accessed the VIP room without permission.</p><h3><strong>2. Cryptographic Failures</strong></h3><p>Let’s say you have a top-secret journal that you want to keep safe. Instead of locking it in a secure box, you leave it lying around with no protection whatsoever. Anyone who finds it can easily read all your secrets. Similarly, if a website stores your passwords or sensitive information without proper encryption, attackers can easily steal that information and use it for malicious purposes.</p><p><em>Code example: Storing a password in plain text instead of encrypting it.</em></p><pre># Storing password without encryption (unsafe)<br>password = &quot;mysecretpassword&quot;</pre><ul><li><em>Meaning &amp; Theory: Cryptographic failures occur when encryption, hashing, or other cryptographic functions are implemented incorrectly, leading to weak protection of sensitive data.</em></li><li><em>Technical Explanation: Weak cryptographic algorithms or poorly managed keys can be exploited by attackers to decrypt encrypted data or forge signatures.</em></li><li><em>Example: Storing passwords in a database without proper hashing and salting, making it easy for attackers to obtain the original passwords.</em></li><li><em>Impact: Sensitive data becomes exposed, leading to data breaches and loss of user trust.</em></li></ul><p>Picture a treasure chest with a weak lock that’s easily breakable. Even though the chest is supposed to keep valuables safe, a thief easily picks the lock and steals the treasures. This is similar to cryptographic failures where weak encryption or poor key management allows attackers to steal sensitive data.</p><h3><strong>3. Injection</strong></h3><p>Imagine you have a magical notebook that can execute any spell you write in it. But what if someone secretly writes a harmful spell in your notebook? Without you knowing, the notebook performs that dangerous spell, causing chaos. In the same way, if a web application doesn’t properly handle user inputs, attackers can sneak in harmful code, like SQL queries, and execute them on the server, leading to data theft or system compromise.</p><p><em>Code example: Performing an SQL injection attack on a login form.</em></p><pre># Malicious SQL injection<br>username = &quot;&#39; OR 1=1; --&quot;<br>password = &quot;&#39; OR 1=1; --&quot;<br>SELECT * FROM users WHERE username = &#39;&#39; OR 1=1; -- &#39; AND password = &#39;&#39; OR 1=1; --&#39;;</pre><ul><li><em>Meaning &amp; Theory: Injection vulnerabilities happen when untrusted data is sent to an interpreter as part of a command or query, allowing attackers to execute arbitrary code.</em></li><li><em>Technical Explanation: Applications that use dynamic queries without proper input validation and parameterization are susceptible to injection attacks.</em></li><li><em>Example: An attacker crafts a malicious SQL query that gets executed by the application, allowing unauthorized access to the database.</em></li><li><em>Impact: Attackers can manipulate data, steal information, or even gain control over the entire system.</em></li></ul><p>In a restaurant, the chef prepares a salad, and a customer sneaks in their own homemade dressing without anyone noticing. The customer’s dressing gets mixed with the restaurant’s salad, causing chaos. Similarly, injection vulnerabilities allow attackers to sneak malicious code into the application, leading to unexpected outcomes.</p><h3><strong>4. Insecure Design</strong></h3><p>Picture a castle built without considering any security measures, like having open gates and windows everywhere. It looks grand from the outside, but intruders can easily sneak inside and steal valuable treasures. Similarly, if an application’s design doesn’t take security into account, attackers can exploit its vulnerabilities, leading to data breaches and security problems.</p><p><em>Code example: Lacking proper access controls in a web application.</em></p><pre>// Insecure JavaScript code (no access control)<br>if (userType == &quot;admin&quot;) {<br>    // Perform admin actions<br>}</pre><ul><li><em>Meaning &amp; Theory: Insecure design refers to security weaknesses stemming from flawed application architecture and design decisions.</em></li><li><em>Technical Explanation: Lack of proper threat modeling, access controls, or separation of duties can lead to unintended exposure of sensitive functionalities or data.</em></li><li><em>Example: Allowing direct database access from the frontend, making it easy for attackers to perform unauthorized database operations.</em></li><li><em>Impact: The application becomes vulnerable to attacks, data leakage, and other security issues due to inadequate design choices.</em></li></ul><p>Imagine a maze with open paths that allow people to bypass walls and reach the center directly. The maze is poorly designed, making it easy for anyone to cheat and reach the destination without following the correct path. Similarly, insecure application design provides attackers with easy routes to bypass security measures.</p><h3><strong>5. Security Misconfiguration</strong></h3><p>Imagine you bought a high-tech security system for your house, but you forgot to set the alarm or left the doors unlocked. Even with the best security tools, your house is vulnerable due to misconfigurations. Similarly, web applications with incorrect settings or exposed default credentials can become easy targets for attackers.</p><p><em>Code example: Leaving default credentials unchanged in a configuration file.</em></p><pre># Insecure configuration file (default credentials)<br>database.username=admin<br>database.password=admin123</pre><ul><li><em>Meaning &amp; Theory: Security misconfiguration arises from not applying secure settings or configurations for applications, frameworks, or platforms.</em></li><li><em>Technical Explanation: Leaving default credentials, exposing unnecessary services, or failing to apply access controls can expose critical resources to attackers.</em></li><li><em>Example: A server with default credentials allows attackers to log in and gain full control over the system.</em></li><li><em>Impact: Attackers can exploit misconfigurations to access sensitive data, manipulate systems, or perform unauthorized actions.</em></li></ul><p>You have a fancy safe, but you accidentally leave the door unlocked. Anyone who comes across the safe can open it and take its contents. This is similar to security misconfiguration, where applications or systems are left with default settings or improper configurations, making them vulnerable to attacks.</p><h3><strong>6. Vulnerable and Outdated Components</strong></h3><p>Think of an app as a fancy car. If you use old, rusty parts or faulty components, the car becomes unreliable and unsafe. Likewise, if an application uses outdated or vulnerable software components, attackers can exploit those weaknesses to break into the system.</p><p><em>Code example: Using an outdated library with known security vulnerabilities.</em></p><pre>// Java code using a vulnerable library<br>import outdated.library.Version1;</pre><ul><li><em>Meaning &amp; Theory: Using outdated or vulnerable software components introduces security risks into the application.</em></li><li><em>Technical Explanation: Third-party libraries, frameworks, or plugins with known security flaws can be exploited by attackers to compromise the application.</em></li><li><em>Example: A web application integrates an outdated library with a known Remote Code Execution (RCE) vulnerability, enabling attackers to execute arbitrary code.</em></li><li><em>Impact: Attackers can exploit vulnerabilities in outdated components, leading to data breaches, system compromise, or unauthorized access.</em></li></ul><p>You have a shiny new bike, but you never replace the old, worn-out tires. As a result, you frequently get flat tires and can’t ride efficiently. This connects to using outdated or vulnerable components in an application, making it susceptible to attacks due to known weaknesses.</p><h3><strong>7. Identification and Authentication Failures</strong></h3><p>Suppose you have a secret club with a secret handshake for members to prove their identity. However, the handshake is too simple, and anyone can easily guess it or imitate it. As a result, impostors can gain access to the club. Similarly, weak authentication mechanisms and poor password policies make it easier for attackers to impersonate users and gain unauthorized access.</p><p><em>Code example: Weak password policy in a user registration process.</em></p><pre>&lt;!-- Weak password policy --&gt;<br>&lt;input type=&quot;password&quot; name=&quot;password&quot; minlength=&quot;4&quot; maxlength=&quot;8&quot;&gt;</pre><ul><li><em>Meaning &amp; Theory: Identification and authentication failures relate to weaknesses in user identification and verification mechanisms.</em></li><li><em>Technical Explanation: Weak password policies, lack of multi-factor authentication, or flawed session management can lead to unauthorized access.</em></li><li><em>Example: Allowing users to set weak passwords like “123456” or not enforcing password changes periodically.</em></li><li><em>Impact: Attackers can gain unauthorized access to user accounts, leading to account takeover and potential data breaches.</em></li></ul><p>In a game, a character’s password is a simple word like “password123.” Any player who guesses this password gains control of the character, even if they aren’t the real owner. This illustrates identification and authentication failures, as weak authentication mechanisms allow unauthorized access.</p><h3><strong>8. Software and Data Integrity Failures</strong></h3><p>Imagine a restaurant where the chef doesn’t check the ingredients’ quality before using them in dishes. Customers may end up eating spoiled or contaminated food. Similarly, if software updates are not verified for their integrity, attackers can inject malicious code during the update process, leading to compromised systems.</p><p><em>Code example: Lack of code signing in a software update process.</em></p><pre># Insecure software update without verification<br>sudo apt-get update<br>sudo apt-get install vulnerable-software</pre><ul><li><em>Meaning &amp; Theory: Software and data integrity failures occur when the integrity of software updates, critical data, or continuous integration/continuous deployment (CI/CD) pipelines is compromised.</em></li><li><em>Technical Explanation: Failing to validate software updates, not using code signing, or allowing unauthorized changes can lead to malicious code injection.</em></li><li><em>Example: An attacker modifies a software update package to include a backdoor, and users unknowingly install the compromised update.</em></li><li><em>Impact: Attackers can compromise the system, manipulate data, and execute unauthorized code due to integrity failures.</em></li></ul><p>You order a new phone online, but the delivery person swaps the brand-new phone with a cheap, damaged one before delivering it to you. This is similar to integrity failures where attackers manipulate software or data during transit, leading to compromised systems.</p><h3><strong>9. Security Logging and Monitoring Failures</strong></h3><p>Think of a detective investigating a crime scene without any tools to collect evidence or record important details. They would have a hard time solving the case and might miss crucial clues. Similarly, if a system lacks proper logging and monitoring, security incidents may go unnoticed, allowing attackers to continue their activities undetected.</p><p><em>Code example: Inadequate logging of a failed login attempt.</em></p><pre>// Incomplete logging<br>if (loginSuccess) {<br>    log(&quot;Successful login by user: &quot; + username);<br>}</pre><ul><li><em>Meaning &amp; Theory: Security logging and monitoring failures refer to inadequate practices that hinder timely detection and response to security incidents.</em></li><li><em>Technical Explanation: Insufficient logging, lack of real-time alerts, or not monitoring critical events can make it difficult to identify ongoing attacks.</em></li><li><em>Example: An application fails to log failed login attempts, making it challenging to identify brute-force attacks on user accounts.</em></li><li><em>Impact: Attackers can operate undetected for longer periods, leading to prolonged compromise and difficulty in investigating security incidents.</em></li></ul><p>A guard is supposed to watch the entrance of a building, but they fall asleep on the job. An intruder sneaks in, commits a crime, and leaves without anyone noticing. This relates to security logging and monitoring failures, where inadequate monitoring allows attacks to go undetected.</p><h3><strong>10. Server-Side Request Forgery</strong></h3><p>Imagine a cunning spy who can pretend to be someone else and access secure areas by tricking the guards. In the same way, an attacker can manipulate a web application into making unauthorized requests to internal or external systems, potentially gaining access to sensitive data and resources.</p><p><em>Code example: Forging a request to access an internal API endpoint.</em></p><pre>import requests<br><br># Forged request to access internal API<br>response = requests.get(&#39;http://example.com/internal-api&#39;, params={&#39;data&#39;: &#39;sensitive_info&#39;})</pre><ul><li><em>Meaning &amp; Theory: Server-Side Request Forgery (SSRF) vulnerabilities allow attackers to make unauthorized requests from the server to other internal or external systems.</em></li><li><em>Technical Explanation: Web applications often make HTTP requests to other servers. If the application does not properly validate user-supplied URLs, attackers can trick the server into making unintended requests.</em></li><li><em>Example: An attacker sends a specially crafted URL to a vulnerable application, causing the server to fetch sensitive internal information and relay it back to the attacker.</em></li><li><em>Impact: Attackers can abuse SSRF to access sensitive resources, bypass firewalls, or retrieve internal data, leading to unauthorized access and potential data leaks.</em></li></ul><p>Imagine a magical genie that can retrieve anything you ask for. But an evil sorcerer tricks the genie into fetching forbidden items from the spirit world, causing chaos. In a similar fashion, server-side request forgery vulnerabilities allow attackers to trick the server into making unauthorized requests, accessing restricted resources.</p><p>Understanding security risks doesn’t need to be complicated. By being vigilant and using strong passwords, we can make our digital world safer. Whether we’re developers or tech-savvy users, we all play a part in building a secure digital future. Let’s keep learning and adapting to protect ourselves and others online.</p><p>Thank You</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca6d98e660b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Top 50 Most Used Commands!]]></title>
            <link>https://shubhdhungana.medium.com/linux-top-50-most-used-commands-a300517bed2?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/a300517bed2</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[unix]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Fri, 28 Jul 2023 08:23:48 GMT</pubDate>
            <atom:updated>2023-07-28T08:23:48.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KwB0V3Ce8Ks3h2Zo" /></figure><p>In this article, I’m going to share linux most used commands based on my experience. I’m going too list down the most used commands in unix terminal that I often use it.</p><p>Commands name would be listed in this article with its meaning, use case, example and syntax each.</p><ol><li><strong>ls</strong></li></ol><ul><li><strong>Meaning:</strong> List files and directories.</li><li><strong>Uses:</strong> Display the contents of a directory.</li><li><strong>Example:</strong> <strong>ls /home/user/documents</strong></li><li><strong>Syntax:</strong> <strong>ls [options] [directory]</strong></li></ul><p><strong>2. cd</strong></p><ul><li><strong>Meaning:</strong> Change the current working directory.</li><li><strong>Uses:</strong> Move between directories.</li><li><strong>Example:</strong> <strong>cd /var/log</strong></li><li><strong>Syntax:</strong> <strong>cd [directory]</strong></li></ul><p><strong>3. pwd</strong></p><ul><li><strong>Meaning:</strong> Print the current working directory.</li><li><strong>Uses:</strong> Display the path of the current directory.</li><li><strong>Example:</strong> <strong>pwd</strong></li><li><strong>Syntax:</strong> <strong>pwd</strong></li></ul><p><strong>4. mkdir</strong></p><ul><li><strong>Meaning:</strong> Make a new directory.</li><li><strong>Uses:</strong> Create a new directory in the current location.</li><li><strong>Example:</strong> <strong>mkdir new_directory</strong></li><li><strong>Syntax:</strong> <strong>mkdir [directory_name]</strong></li></ul><p><strong>5. rmdir</strong></p><ul><li><strong>Meaning:</strong> Remove an empty directory.</li><li><strong>Uses:</strong> Delete a directory that is empty.</li><li><strong>Example:</strong> <strong>rmdir empty_directory</strong></li><li><strong>Syntax:</strong> <strong>rmdir [directory_name]</strong></li></ul><p><strong>6. cp</strong></p><ul><li><strong>Meaning:</strong> Copy files or directories.</li><li><strong>Uses:</strong> Duplicate files or move them to a different location.</li><li><strong>Example:</strong> <strong>cp file.txt /destination</strong></li><li><strong>Syntax:</strong> <strong>cp [source] [destination]</strong></li></ul><p><strong>7. mv</strong></p><ul><li><strong>Meaning:</strong> Move or rename files or directories.</li><li><strong>Uses:</strong> Move files to a different location or rename them.</li><li><strong>Example:</strong> <strong>mv file.txt new_file.txt</strong></li><li><strong>Syntax:</strong> <strong>mv [source] [destination]</strong></li></ul><p><strong>8. rm</strong></p><ul><li><strong>Meaning:</strong> Remove files or directories.</li><li><strong>Uses:</strong> Delete files or directories permanently.</li><li><strong>Example:</strong> <strong>rm file.txt</strong></li><li><strong>Syntax:</strong> <strong>rm [file]</strong></li></ul><p><strong>9. cat</strong></p><ul><li><strong>Meaning:</strong> Concatenate and display file content.</li><li><strong>Uses:</strong> Display the contents of a file.</li><li><strong>Example:</strong> <strong>cat file.txt</strong></li><li><strong>Syntax:</strong> <strong>cat [file]</strong></li></ul><p><strong>10. more</strong></p><ul><li><strong>Meaning:</strong> View file content page by page.</li><li><strong>Uses:</strong> Display large file contents interactively.</li><li><strong>Example:</strong> <strong>more big_file.txt</strong></li><li><strong>Syntax:</strong> <strong>more [file]</strong></li></ul><p><strong>11. less</strong></p><ul><li><strong>Meaning:</strong> View file content with backward navigation.</li><li><strong>Uses:</strong> Display file contents with interactive scrolling and search capabilities.</li><li><strong>Example:</strong> <strong>less long_log_file.txt</strong></li><li><strong>Syntax:</strong> <strong>less [file]</strong></li></ul><p><strong>12. head</strong></p><ul><li><strong>Meaning:</strong> Display the beginning lines of a file.</li><li><strong>Uses:</strong> Show the first few lines of a file.</li><li><strong>Example:</strong> <strong>head -n 5 file.txt</strong></li><li><strong>Syntax:</strong> <strong>head [options] [file]</strong></li></ul><p><strong>13. tail</strong></p><ul><li><strong>Meaning:</strong> Display the last lines of a file.</li><li><strong>Uses:</strong> Show the last few lines of a file (e.g., log files).</li><li><strong>Example:</strong> <strong>tail -n 10 log.txt</strong></li><li><strong>Syntax:</strong> <strong>tail [options] [file]</strong></li></ul><p><strong>14. grep</strong></p><ul><li><strong>Meaning:</strong> Search for patterns in files.</li><li><strong>Uses:</strong> Find specific text patterns in files.</li><li><strong>Example:</strong> <strong>grep &quot;error&quot; log.txt</strong></li><li><strong>Syntax:</strong> <strong>grep [options] &quot;pattern&quot; [file]</strong></li></ul><p><strong>15. find</strong></p><ul><li><strong>Meaning:</strong> Search for files and directories.</li><li><strong>Uses:</strong> Locate files based on various criteria (e.g., name, size, type).</li><li><strong>Example:</strong> <strong>find /path/to/search -name &quot;*.txt&quot;</strong></li><li><strong>Syntax:</strong> <strong>find [starting_directory] [options] [expression]</strong></li></ul><p><strong>16. chmod</strong></p><ul><li><strong>Meaning:</strong> Change file permissions.</li><li><strong>Uses:</strong> Modify file permissions (read, write, execute) for users and groups.</li><li><strong>Example:</strong> <strong>chmod 644 file.txt</strong></li><li><strong>Syntax:</strong> <strong>chmod [permission] [file]</strong></li></ul><p><strong>17. chown</strong></p><ul><li><strong>Meaning:</strong> Change file ownership.</li><li><strong>Uses:</strong> Change the owner and group of a file.</li><li><strong>Example:</strong> <strong>chown user:group file.txt</strong></li><li><strong>Syntax:</strong> <strong>chown [user]:[group] [file]</strong></li></ul><p><strong>18. ps</strong></p><ul><li><strong>Meaning:</strong> Display information about running processes.</li><li><strong>Uses:</strong> Show a list of active processes.</li><li><strong>Example:</strong> <strong>ps -ef</strong></li><li><strong>Syntax:</strong> <strong>ps [options]</strong></li></ul><p><strong>19. top</strong></p><ul><li><strong>Meaning:</strong> Monitor system processes in real-time.</li><li><strong>Uses:</strong> View dynamic process information and system resource usage.</li><li><strong>Example:</strong> <strong>top</strong></li><li><strong>Syntax:</strong> <strong>top</strong></li></ul><p><strong>20. kill</strong></p><ul><li><strong>Meaning:</strong> Terminate a process.</li><li><strong>Uses:</strong> End a running process by sending a signal.</li><li><strong>Example:</strong> <strong>kill PID</strong></li><li><strong>Syntax:</strong> <strong>kill [signal] [PID]</strong></li></ul><p><strong>21. ping</strong></p><ul><li><strong>Meaning:</strong> Test network connectivity to a host.</li><li><strong>Uses:</strong> Check if a remote host is reachable.</li><li><strong>Example:</strong> <strong>ping google.com</strong></li><li><strong>Syntax:</strong> <strong>ping [host]</strong></li></ul><p><strong>22. ifconfig</strong></p><ul><li><strong>Meaning:</strong> Configure network interfaces (deprecated in some systems).</li><li><strong>Uses:</strong> Display and configure network interface settings.</li><li><strong>Example:</strong> <strong>ifconfig eth0 up</strong></li><li><strong>Syntax:</strong> <strong>ifconfig [interface] [options]</strong></li></ul><p><strong>23. ip</strong></p><ul><li><strong>Meaning:</strong> Configure network interfaces (modern replacement for ifconfig).</li><li><strong>Uses:</strong> Manage and display network interface information.</li><li><strong>Example:</strong> <strong>ip addr show</strong></li><li><strong>Syntax:</strong> <strong>ip [options] [object] [command]</strong></li></ul><p><strong>24. ssh</strong></p><ul><li><strong>Meaning:</strong> Securely connect to a remote server.</li><li><strong>Uses:</strong> Establish a secure shell connection to a remote host.</li><li><strong>Example:</strong> <strong>ssh user@remote_host</strong></li><li><strong>Syntax:</strong> <strong>ssh [user]@[host]</strong></li></ul><p><strong>25. scp</strong></p><ul><li><strong>Meaning:</strong> Securely copy files between local and remote hosts.</li><li><strong>Uses:</strong> Transfer files securely between two hosts.</li><li><strong>Example:</strong> <strong>scp file.txt user@remote_host:/path</strong></li><li><strong>Syntax:</strong> <strong>scp [options] [source] [user]@[host]:[destination]</strong></li></ul><p><strong>26. tar</strong></p><ul><li><strong>Meaning:</strong> Archive files into a tarball.</li><li><strong>Uses:</strong> Compress multiple files and directories into a single archive file.</li><li><strong>Example:</strong> <strong>tar -cvzf archive.tar.gz files/</strong></li><li><strong>Syntax:</strong> <strong>tar [options] [archive_file] [files/directories]</strong></li></ul><p><strong>27. untar</strong></p><ul><li><strong>Meaning:</strong> Extract files from a tarball.</li><li><strong>Uses:</strong> Decompress and extract files from a tarball archive.</li><li><strong>Example:</strong> <strong>tar -xvzf archive.tar.gz</strong></li><li><strong>Syntax:</strong> <strong>tar [options] [archive_file]</strong></li></ul><p><strong>28. zip</strong></p><ul><li><strong>Meaning:</strong> Create a zip archive.</li><li><strong>Uses:</strong> Compress files and directories into a zip file.</li><li><strong>Example:</strong> <strong>zip archive.zip files/</strong></li><li><strong>Syntax:</strong> <strong>zip [options] [archive_name] [files/directories]</strong></li></ul><p><strong>29. unzip</strong></p><ul><li><strong>Meaning:</strong> Extract files from a zip archive.</li><li><strong>Uses:</strong> Decompress and extract files from a zip archive.</li><li><strong>Example:</strong> <strong>unzip archive.zip</strong></li><li><strong>Syntax:</strong> <strong>unzip [options] [archive_file]</strong></li></ul><p><strong>30. df</strong></p><ul><li><strong>Meaning:</strong> Display disk space usage of file systems.</li><li><strong>Uses:</strong> Show the disk space usage of all mounted file systems.</li><li><strong>Example:</strong> <strong>df -h</strong></li><li><strong>Syntax:</strong> <strong>df [options]</strong></li></ul><p><strong>31. du</strong></p><ul><li><strong>Meaning:</strong> Estimate file and directory space usage.</li><li><strong>Uses:</strong> Calculate the size of files and directories.</li><li><strong>Example:</strong> <strong>du -sh directory/</strong></li><li><strong>Syntax:</strong> <strong>du [options] [file/directory]</strong></li></ul><p><strong>32. free</strong></p><ul><li><strong>Meaning:</strong> Display system memory usage.</li><li><strong>Uses:</strong> Show the system’s free and used memory.</li><li><strong>Example:</strong> <strong>free -h</strong></li><li><strong>Syntax:</strong> <strong>free [options]</strong></li></ul><p><strong>33. uptime</strong></p><ul><li><strong>Meaning:</strong> Display the system’s uptime.</li><li><strong>Uses:</strong> Show how long the system has been running.</li><li><strong>Example:</strong> <strong>uptime</strong></li><li><strong>Syntax:</strong> <strong>uptime</strong></li></ul><p><strong>34. date</strong></p><ul><li><strong>Meaning:</strong> Display or set the system date and time.</li><li><strong>Uses:</strong> View or set the current date and time.</li><li><strong>Example:</strong> <strong>date</strong></li><li><strong>Syntax:</strong> <strong>date [options]</strong></li></ul><p><strong>35. cal</strong></p><ul><li><strong>Meaning:</strong> Display the calendar.</li><li><strong>Uses:</strong> Show the current month’s calendar.</li><li><strong>Example:</strong> <strong>cal</strong></li><li><strong>Syntax:</strong> <strong>cal [options]</strong></li></ul><p><strong>36. history</strong></p><ul><li><strong>Meaning:</strong> Display command history.</li><li><strong>Uses:</strong> Show a list of previously executed commands.</li><li><strong>Example:</strong> <strong>history</strong></li><li><strong>Syntax:</strong> <strong>history [options]</strong></li></ul><p><strong>37. man</strong></p><ul><li><strong>Meaning:</strong> Display the manual page for a command.</li><li><strong>Uses:</strong> Get detailed documentation for a command.</li><li><strong>Example:</strong> <strong>man ls</strong></li><li><strong>Syntax:</strong> <strong>man [command]</strong></li></ul><p><strong>38. alias</strong></p><ul><li><strong>Meaning:</strong> Create a custom command alias.</li><li><strong>Uses:</strong> Set a shortcut for frequently used commands.</li><li><strong>Example:</strong> <strong>alias ll=&#39;ls -l&#39;</strong></li><li><strong>Syntax:</strong> <strong>alias [alias_name]=&#39;[command_with_options]&#39;</strong></li></ul><p><strong>39. echo</strong></p><ul><li><strong>Meaning:</strong> Display a message.</li><li><strong>Uses:</strong> Output a message or variable value.</li><li><strong>Example:</strong> <strong>echo &quot;Hello, World!&quot;</strong></li><li><strong>Syntax:</strong> <strong>echo [message]</strong></li></ul><p><strong>40. wc</strong></p><ul><li><strong>Meaning:</strong> Count lines, words, and characters in a file.</li><li><strong>Uses:</strong> Calculate the number of lines, words, and characters in a file.</li><li><strong>Example:</strong> <strong>wc file.txt</strong></li><li><strong>Syntax:</strong> <strong>wc [options] [file]</strong></li></ul><p><strong>41. cut</strong></p><ul><li><strong>Meaning:</strong> Remove sections from each line of a file.</li><li><strong>Uses:</strong> Extract specific columns from a file.</li><li><strong>Example:</strong> <strong>cut -d&#39;,&#39; -f2 file.csv</strong></li><li><strong>Syntax:</strong> <strong>cut [options] [file]</strong></li></ul><p><strong>42. sort</strong></p><ul><li><strong>Meaning:</strong> Sort lines of text files.</li><li><strong>Uses:</strong> Arrange lines in alphabetical or numerical order.</li><li><strong>Example:</strong> <strong>sort file.txt</strong></li><li><strong>Syntax:</strong> <strong>sort [options] [file]</strong></li></ul><p><strong>43. grep</strong></p><ul><li><strong>Meaning:</strong> Search for patterns in files.</li><li><strong>Uses:</strong> Find specific text patterns in files.</li><li><strong>Example:</strong> <strong>grep &quot;error&quot; log.txt</strong></li><li><strong>Syntax:</strong> <strong>grep [options] &quot;pattern&quot; [file]</strong></li></ul><p><strong>44. find</strong></p><ul><li><strong>Meaning:</strong> Search for files and directories.</li><li><strong>Uses:</strong> Locate files based on various criteria (e.g., name, size, type).</li><li><strong>Example:</strong> <strong>find /path/to/search -name &quot;*.txt&quot;</strong></li><li><strong>Syntax:</strong> <strong>find [starting_directory] [options] [expression]</strong></li></ul><p><strong>45. wc</strong></p><ul><li><strong>Meaning:</strong> Count lines, words, and characters in a file.</li><li><strong>Uses:</strong> Calculate the number of lines, words, and characters in a file.</li><li><strong>Example:</strong> <strong>wc file.txt</strong></li><li><strong>Syntax:</strong> <strong>wc [options] [file]</strong></li></ul><p><strong>46. grep</strong></p><ul><li><strong>Meaning:</strong> Search for patterns in files.</li><li><strong>Uses:</strong> Find specific text patterns in files.</li><li><strong>Example:</strong> <strong>grep &quot;error&quot; log.txt</strong></li><li><strong>Syntax:</strong> <strong>grep [options] &quot;pattern&quot; [file]</strong></li></ul><p><strong>47. find</strong></p><ul><li><strong>Meaning:</strong> Search for files and directories.</li><li><strong>Uses:</strong> Locate files based on various criteria (e.g., name, size, type).</li><li><strong>Example:</strong> <strong>find /path/to/search -name &quot;*.txt&quot;</strong></li><li><strong>Syntax:</strong> <strong>find [starting_directory] [options] [expression]</strong></li></ul><p><strong>48. chmod</strong></p><ul><li><strong>Meaning:</strong> Change file permissions.</li><li><strong>Uses:</strong> Modify file permissions (read, write, execute) for users and groups.</li><li><strong>Example:</strong> <strong>chmod 644 file.txt</strong></li><li><strong>Syntax:</strong> <strong>chmod [permission] [file]</strong></li></ul><p><strong>49. chown</strong></p><ul><li><strong>Meaning:</strong> Change file ownership.</li><li><strong>Uses:</strong> Change the owner and group of a file.</li><li><strong>Example:</strong> <strong>chown user:group file.txt</strong></li><li><strong>Syntax:</strong> <strong>chown [user]:[group] [file]</strong></li></ul><p><strong>50. ps</strong></p><ul><li><strong>Meaning:</strong> Display information about running processes.</li><li><strong>Uses:</strong> Show a list of active processes.</li><li><strong>Example:</strong> <strong>ps -ef</strong></li><li><strong>Syntax:</strong> <strong>ps [options]</strong></li></ul><blockquote>Thank You For Reading!</blockquote><blockquote>By Shubham Dhungana</blockquote><blockquote>Cyber Security Researcher</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a300517bed2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential Tools For Bug Bounty Hunting, Web App Hacking, Penetration Testing | Shubham Dhungana]]></title>
            <link>https://shubhdhungana.medium.com/essential-tools-for-bug-bounty-hunting-web-app-hacking-penetration-testing-shubham-dhungana-ce8b95024f13?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce8b95024f13</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Fri, 02 Jun 2023 16:03:43 GMT</pubDate>
            <atom:updated>2023-06-02T16:06:02.066Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, Shubham Dhungana, this side. This article will be showcasing the essential tools required for bug bounty hunting, web application hacking and other penetration testing essential needed tool. These tools are very essential for web application hacking. These tools are equally important while doing bug bounty hunting. There are different phases while doing bug bounty hunting, penetration testing, etc. Each phases needs different sets of tools. Below I’ve mentioned important required tools for bug bounty and other vapt tools.</p><p>Beginners would find these tools extremely useful to get started into bug bounty hunting, web application hacking and penetration testing.</p><h3><strong>Subdomain Enumeration</strong></h3><ul><li><a href="https://github.com/OWASP/Amass">Amass</a> —A comprehensive tool for mapping attack surfaces and discovering assets.</li><li><a href="https://github.com/aboul3la/Sublist3r">Sublist3r</a> — A rapid tool for penetration testers to enumerate subdomains.</li><li><a href="https://github.com/blechschmidt/massdns">massdns</a> — A high-performance DNS stub resolver for bulk lookups and reconnaissance (subdomain enumeration)</li><li><a href="https://github.com/Findomain/Findomain">Findomain</a> —The quickest cross-platform subdomain enumerator that saves you time.</li><li><a href="https://github.com/projectdiscovery/subfinder">subfinder</a> — A subdomain discovery tool that identifies valid subdomains for websites.</li><li><a href="https://github.com/tomnomnom/assetfinder">assetfinder</a> —Locate domains and subdomains associated with a specific domain.</li></ul><h3><strong>OSINT Search Engines</strong></h3><ul><li><a href="https://www.shodan.io/">Shodan</a> — Shodan is a search engine that enables users to find internet-connected devices and explore their vulnerabilities.</li><li><a href="https://censys.io/">Censys</a> — Censys is a search engine that focuses on internet-wide scanning and provides information about devices, websites, and networks.</li><li><a href="https://crt.sh/">crt.sh</a> — crt.sh is a website that provides access to Certificate Transparency logs, allowing users to search and analyze SSL/TLS certificates.</li><li><a href="https://www.virustotal.com/">Virus Total</a> — VirusTotal is a web service that analyzes files and URLs for potential malware infections by scanning them with multiple antivirus engines.</li><li><a href="https://www.crunchbase.com/">Crunchbase</a> — Crunchbase is a platform that offers information and insights about companies, including their funding, key individuals, and industry trends.</li></ul><h3>Port Scanning</h3><ul><li><a href="https://github.com/nmap/nmap">nmap</a> —Nmap is a powerful network exploration and security auditing tool.</li><li><a href="https://github.com/projectdiscovery/naabu">naabu</a> —Naabu is a fast and reliable port scanner written in Go.</li><li><a href="https://github.com/robertdavidgraham/masscan">masscan</a> —Masscan is a high-speed TCP port scanner that can scan the entire Internet in under 5 minutes.</li></ul><h3>Screenshots</h3><ul><li><a href="https://github.com/breenmachine/httpscreenshot/">httpscreenshot</a> —HTTPScreenshot is a tool that captures screenshots and HTML content from a large number of websites efficiently.</li><li><a href="https://github.com/FortyNorthSecurity/EyeWitness">EyeWitness</a> —EyeWitness is a tool that captures website screenshots, provides server header information, and attempts to identify default credentials if available.</li><li><a href="https://github.com/sensepost/gowitness">gowitness</a> —gowitness is a utility written in Go that uses Chrome Headless to capture web screenshots, enabling users to automate the process effectively.</li><li><a href="https://github.com/michenriksen/aquatone">aquatone</a> —Aquatone is a tool designed for inspecting websites across numerous hosts, allowing users to gain a quick overview of the HTTP-based attack surface visually.</li><li><a href="https://github.com/vladocar/screenshoteer">screenshoteer</a> —screenshoteer is a command-line tool for taking website screenshots and emulating mobile views, offering convenient automation capabilities.</li><li><a href="https://github.com/byt3bl33d3r/WitnessMe">WitnessMe</a> —WitnessMe is a web inventory tool that uses Pyppeteer (headless Chrome/Chromium) to capture webpage screenshots and includes additional features for easier usage.</li></ul><h3>Mobile Hacking</h3><ul><li><a href="https://github.com/skylot/jadx">jadx</a> : JADX is a decompiler for Java bytecode, allowing users to reverse-engineer and analyze Android applications by transforming them into human-readable Java code, providing insights into the inner workings of the app.</li><li><a href="https://github.com/den4uk/andriller">andriller</a> : Andriller is a forensic tool used for extracting data from Android devices, enabling investigators to acquire various types of data such as call logs, messages, contacts, and more, aiding in digital forensics investigations.</li><li><a href="https://github.com/MobSF/Mobile-Security-Framework-MobSF/">Mobile Security Framework (MobSF)</a> : MobSF is an open-source framework that helps in the automated security assessment of mobile applications. It offers dynamic and static analysis, as well as web API testing, and supports popular platforms like Android and iOS.</li><li><a href="https://ghidra-sre.org/">Ghidra</a>: Ghidra is a powerful reverse-engineering tool developed by the National Security Agency (NSA). It provides a wide range of features for analyzing binary executables, including disassembly, decompilation, scripting capabilities, and collaborative reverse engineering.</li><li><a href="https://github.com/m0bilesecurity/RMS-Runtime-Mobile-Security">RMS — Runtime Mobile Security</a>: Runtime Mobile Security: RMS is a framework that focuses on runtime application security for mobile devices. It provides security controls and monitoring features to detect and prevent potential security risks and vulnerabilities in mobile applications</li><li><a href="https://github.com/pxb1988/dex2jar">dex2jar</a>: dex2jar is a tool that converts Android DEX files (Dalvik Executable) to JAR files, enabling the decompilation and analysis of Android applications using standard Java tools and frameworks. It assists in understanding the inner workings of an application and identifying potential security issues.</li></ul><h3>Best Burp Suite Extensions</h3><ul><li><a href="https://portswigger.net/bappstore/30d8ee9f40c041b0bfec67441aad158e">AuthMatrix</a>: AuthMatrix is a Burp Suite extension that simplifies the testing and enumeration of access control vulnerabilities. It provides an intuitive interface to manage user roles and permissions, allowing testers to quickly identify and test for authorization flaws in web applications.</li><li><a href="https://portswigger.net/bappstore/f9bbac8c4acf4aefa4d7dc92a991af2f">Autorize</a>: Autorize is a Burp Suite extension designed to assist with the detection and exploitation of authorization vulnerabilities. It helps testers identify insecure direct object references, horizontal and vertical privilege escalation, and other authorization-related issues by automating common authorization attack techniques.</li><li><a href="https://portswigger.net/bappstore/17d2949a985c4b7ca092728dba871943">Param Miner</a>: Param Miner is a Burp Suite extension that aids in the identification and exploitation of parameter-based vulnerabilities. It assists in the automated discovery of sensitive information, injection points, and potential security flaws by actively scanning and manipulating application parameters.</li><li><a href="https://portswigger.net/bappstore/470b7057b86f41c396a97903377f3d81">Logger++</a>: Logger++ is a Burp Suite extension that enhances the request/response logging capabilities of Burp Proxy. It provides advanced filtering, highlighting, and search functionalities to efficiently analyze and manage captured HTTP traffic, enabling testers to focus on identifying security issues and anomalies within the requests and responses.</li></ul><h3>Technologies</h3><ul><li><a href="https://github.com/AliasIO/wappalyzer">wappalyzer</a> —Wappalyzer is a tool used to identify the technologies utilized by websites, allowing users to determine the software frameworks, CMS platforms, and other technologies being employed.</li><li><a href="https://github.com/praetorian-inc/fingerprintx">fingerprintx</a> —FingerprintX is a standalone utility designed for service discovery on open ports, which can be effectively integrated with other popular command-line tools used in bug bounty programs.</li><li><a href="https://github.com/projectdiscovery/httpx">httpx</a> —HTTPX is a high-speed and versatile HTTP toolkit that enables users to execute multiple probing activities concurrently using the retryablehttp library, ensuring reliable results even when using increased threads.</li><li><a href="https://github.com/claymation/python-builtwith">python-builtwith</a> —Python-BuiltWith is a client for the BuiltWith API, providing a convenient way for developers to interact with the BuiltWith platform and retrieve information about the technologies used by websites.</li><li><a href="https://github.com/urbanadventurer/whatweb">whatweb</a> —WhatWeb is an advanced web scanner that offers next-generation capabilities, allowing users to efficiently discover and analyze the technologies, frameworks, and other relevant details associated with web applications.</li></ul><h3>Links</h3><ul><li><a href="https://github.com/lc/gau">gau</a> —gau is a tool that retrieves known URLs from multiple sources such as AlienVault’s Open Threat Exchange, the Wayback Machine, and Common Crawl.</li><li><a href="https://github.com/GerbenJavado/LinkFinder">LinkFinder</a> — LinkFinder is a Python script specifically designed to locate endpoints within JavaScript files, helping users identify important URLs and endpoints within the code.</li><li><a href="https://github.com/tomnomnom/waybackurls">waybackurls</a> —waybackurls is a tool that collects all the URLs associated with a specific domain that are archived by the Wayback Machine, providing users with a comprehensive list of historical URLs.</li><li><a href="https://github.com/zseano/JS-Scan">JS-Scan</a> — JS-Scan is a PHP-based scanner for JavaScript files, primarily focused on scraping URLs and extracting relevant information from the code.</li><li><a href="https://github.com/InitRoot/BurpJSLinkFinder">BurpJSLinkFinder</a> —BurpJSLinkFinder is a Burp Suite extension that passively scans JavaScript files, aiming to identify endpoint links and provide valuable information for security testing purposes.</li><li><a href="https://github.com/arbazkiraak/LinksDumper">LinksDumper</a> —LinksDumper is a tool that extracts links or potential endpoints from responses and applies filtering mechanisms like decoding and sorting to refine the results.</li></ul><h3>Content Discovery</h3><ul><li><a href="https://github.com/hakluke/hakrawler">hakrawler</a> —hakrawler is a straightforward and efficient web crawler designed to quickly and easily discover endpoints and assets within a web application.</li><li><a href="https://github.com/maurosoria/dirsearch">dirsearch</a> —dirsearch is a tool specifically designed for scanning web paths, allowing users to identify directories and files present on a web server.</li><li><a href="https://github.com/C-Sto/recursebuster">recursebuster</a> — recursebuster is a content discovery tool that enables fast and recursive querying of webservers, making it particularly useful in pentesting and web application assessments.</li><li><a href="https://github.com/OJ/gobuster">gobuster</a> —gobuster is a tool written in Go that performs directory/file, DNS, and VHost busting, aiding in the discovery of hidden or vulnerable resources on a web server.</li><li><a href="https://github.com/epi052/feroxbuster">feroxbuster</a> —feroxbuster is a fast and straightforward content discovery tool written in Rust, designed to recursively search for and identify web content.</li></ul><h3>Other Essential Tools</h3><ul><li><a href="https://github.com/danielmiessler/SecLists">SecLists</a>: SecLists is a comprehensive collection of security-related wordlists, passwords, fuzzing payloads, and various other data sets that can be used for security assessments, penetration testing, and related tasks</li><li><a href="https://gchq.github.io/CyberChef/">CyberChef</a>: CyberChef is a versatile web application that serves as a “Swiss Army Knife” for cybersecurity professionals. It provides a wide range of data transformation and analysis functions, allowing users to easily manipulate, convert, and analyze data in various formats, making it a valuable tool for data decoding, encryption, and analysis tasks.</li><li><a href="https://github.com/swisskyrepo/PayloadsAllTheThings">PayloadsAllTheThings</a> : PayloadsAllTheThings is a comprehensive collection of payloads, exploits, and bypass techniques that can be used during penetration testing and security assessments, providing a valuable resource for security researchers and professionals.</li><li><a href="https://github.com/ashishb/android-security-awesome">android-security-awesome</a> : android-security-awesome is a curated list of resources, tools, and vulnerabilities specifically focused on Android application security, offering guidance and references for securing Android apps and conducting security assessments on Android platforms.</li><li><a href="https://github.com/vavkamil/awesome-vulnerable-apps">awesome-vulnerable-apps</a> : awesome-vulnerable-apps is a curated list of intentionally vulnerable applications and services, designed for educational purposes to help individuals practice and enhance their skills in discovering and exploiting vulnerabilities.</li><li><a href="https://github.com/projectdiscovery/nuclei">nuclei</a>: nuclei is a fast and customizable vulnerability scanner that helps automate security testing by scanning web applications and APIs for known vulnerabilities and misconfigurations, providing a streamlined approach to security assessments.</li><li><a href="https://github.com/rapid7/metasploit-framework">metasploit-framework</a>: metasploit-framework is an open-source framework for developing, testing, and executing exploits against target systems. It provides a wide range of tools and modules for penetration testing, allowing users to assess and exploit vulnerabilities in a controlled environment.</li><li><a href="https://github.com/sullo/nikto">nikto</a>: nikto is a web vulnerability scanner that scans and assesses web servers for potential security issues and misconfigurations. It can identify common vulnerabilities and provide valuable insights for securing web applications.</li><li><a href="https://github.com/j3ssie/Osmedeus">Osmedeus</a> : Osmedeus is an open-source tool that automates reconnaissance and vulnerability scanning, combining various scanning techniques and tools to perform tasks such as subdomain enumeration, port scanning, and security scanning, assisting in the assessment of the attack surface of web applications.</li></ul><p>Hope you like the article. Thanks for sticking hereby :)</p><pre>Shubham Dhungana<br>Cyber Security Researcher<br>VAPT | Red Team</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce8b95024f13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Do Web Application Hacking, Bug Hunting and Perform VAPT | My Detailed VAPT Methodology]]></title>
            <link>https://shubhdhungana.medium.com/how-i-do-web-application-hacking-bug-hunting-and-perform-vapt-my-detailed-vapt-methodology-4c1785a81060?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c1785a81060</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Wed, 17 May 2023 01:47:42 GMT</pubDate>
            <atom:updated>2023-06-04T01:23:17.381Z</atom:updated>
            <content:encoded><![CDATA[<p>Web application security testing, also known as VAPT (Vulnerability Assessment and Penetration Testing), plays a crucial role in ensuring the security of online systems. As a web application security enthusiast, I follow a systematic approach that combines various techniques and tools to identify vulnerabilities and potential exploits. In this article, I will share my methodology and techniques for web application hacking and performing VAPT.</p><h3>Introduction</h3><p>Welcome to the exciting world of web application hacking and vulnerability assessment and penetration testing (VAPT)! In this article, we will delve into the methodology and approach I adopt when targeting web applications for security testing, drawing insights from real-life experiences and bug bounty notes. Join me on this thrilling journey as we explore the strategies and techniques that can help uncover critical vulnerabilities and strengthen the security posture of web applications.</p><h3>Steps</h3><h3>1. Reconnaissance</h3><p>During the reconnaissance phase, the tester gathers information about the target web application. This includes identifying technologies used, discovering subdomains, and assessing the attack surface. For example, tools like Nmap can be used to scan for open ports and determine the operating system of the server hosting the application. Sublist3r can help in discovering subdomains associated with the target application. Google Dorks are specialized search queries used to find vulnerable websites or exposed information.</p><h3>2. Scanning and Enumeration:</h3><p>In this phase, the tester scans the target application for open ports, services, and potential vulnerabilities. Tools like Nessus can perform vulnerability scans, Nikto can identify common web server misconfigurations and vulnerabilities, and Burp Suite can intercept and analyze HTTP requests and responses for vulnerabilities. For example, Nessus can scan the target application and provide a report highlighting any discovered vulnerabilities, such as outdated software versions or misconfigurations.</p><h3>3. Vulnerability Discovery:</h3><p>After gathering information in the previous phases, the tester aims to discover specific vulnerabilities within the web application. This can be done through manual testing, automated vulnerability scanners, and fuzzing. For example, manual testing involves manually injecting SQL queries or malicious inputs into web forms to test for SQL injection or XSS vulnerabilities. Automated vulnerability scanners like Acunetix or OWASP ZAP can scan the web application for common vulnerabilities based on predefined rules. Fuzzing involves sending a large volume of unexpected inputs to the application to trigger unforeseen behavior or vulnerabilities.</p><h3>4. Exploitation:</h3><p>Once vulnerabilities are discovered, the tester proceeds to exploit them to gain unauthorized access, escalate privileges, or execute arbitrary code. This step demonstrates the potential impact of the vulnerabilities and the associated risks. The Metasploit Framework is a commonly used tool for this phase. For example, if a SQL injection vulnerability is discovered, the tester can use Metasploit to execute commands on the underlying database and extract sensitive information.</p><h3>5. Post-Exploitation and Lateral Movement:</h3><p>After gaining access to the target system, the tester explores further by performing post-exploitation activities and lateral movement. This involves escalating privileges, pivoting through the network, and gathering additional information. For example, the tester may attempt to gain administrative access or move laterally to other systems within the network to identify potential vulnerabilities or sensitive data.</p><h3>6. Reporting and Remediation:</h3><p>Finally, the tester compiles a comprehensive report detailing the vulnerabilities discovered, their potential impact, and actionable recommendations for remediation. The report provides guidance to developers and system administrators to address the identified issues effectively. It should include clear and concise explanations of the vulnerabilities and steps to mitigate them. Additionally, it may prioritize the vulnerabilities based on their severity to help stakeholders allocate resources for remediation effectively.</p><h3>Initial Recon</h3><p>The first step in any security testing engagement is conducting initial reconnaissance to gather information about the target. This phase involves finding relevant wordlists and exploring public bug bounty programs and dorks. Here are some resources I commonly use:</p><h3>Wordlists</h3><ul><li><a href="https://github.com/s0md3v/Arjun/tree/master/arjun/db">Arjun Wordlist</a></li><li><a href="https://github.com/PortSwigger/param-miner/blob/master/resources/params">Param Miner Wordlist</a></li><li><a href="https://wordlists.assetnote.io/">Assetnote Wordlists</a></li><li><a href="https://gist.github.com/nullenc0de/9cb36260207924f8e1787279a05eb773">Nullenc0de Wordlist</a></li></ul><h3>Public Bug Bounty Programs List &amp; Dorks</h3><p>I rely on popular bug bounty platforms like HackerOne, Bug Crowd, Cobalt, Synack, ImmuneFi, HackenProof, Huntr (OSS Bounty), as well as specific programs from companies like Facebook and Google. Additionally, I leverage bug bounty dorks to identify potential targets. Here are some examples:</p><ul><li>Bug Bounty Popular Public Programs: <a href="https://www.vulnerability-lab.com/list-of-bug-bounty-programs.php">Vulnerability Lab List of Bug Bounty Programs</a></li><li>Bug Bounty Dorks:</li><li>inurl:/bug bounty</li><li>inurl:/security</li><li>inurl:security.txt</li><li>inurl:security &quot;reward&quot;</li><li>inurl:/responsible disclosure</li><li>inurl:/responsible-disclosure/ reward</li><li>inurl:/responsible-disclosure/ swag</li><li>inurl:/responsible-disclosure/ bounty</li><li>inurl:&#39;/responsible disclosure&#39; hoodie</li><li>responsible disclosure swag r=h:com</li></ul><h3>Github Recon</h3><p>Github can be a treasure trove for finding sensitive information and credentials. By utilizing Github dorks, I can discover valuable endpoints and subdomains. Here are some Github dork examples:</p><ul><li>&quot;company name or domain&quot; client_id</li><li>&quot;company name or domain&quot; client_secret</li><li>&quot;company name or domain&quot; gh_token</li><li>&quot;company name or domain&quot; token</li><li>&quot;company name or domain&quot; github_token</li></ul><p>I also search for sensitive words like passwords, API keys, access keys, and database credentials. Combining these sensitive words with well-known languages, such as JSON, Bash, Shell, or Java, can often yield fruitful results.</p><h3>Bug Bounty Manual Simple Methodology</h3><p>Once the initial recon is complete, I follow a simple bug bounty methodology to ensure comprehensive testing of web applications. This methodology focuses on manual testing and covers various areas of interest. Here are the steps I typically follow:</p><ol><li>Understand the functionality and purpose of the web application.</li><li>Manually check all endpoints and test them based on your knowledge. Avoid relying solely on automation.</li><li>Create a checklist of key areas to test, such as forgot password functionality, 2FA flow, CSRF on important requests, XSS (input and reflection), file upload functionality, and more.</li><li>Look for business logic bugs, such as promoting a user to admin. Test scenarios where you can update a user from a normal account to an admin account and verify</li></ol><h3>Leveraging Burp Suite for Scope Control:</h3><ul><li>One essential aspect of bug bounty hunting is properly defining the scope of the target. Burp Suite’s Scope Control Regex feature enables hunters to define specific target domains and subdomains effectively. For example, using the regex <strong>.*.google.com$</strong> or <strong>.<em>.google..</em>$</strong>, you can target all subdomains of google.com or any Google-related domain respectively.</li></ul><h3>Exploring Endpoints and Subdomains with Burp Suite:</h3><ul><li>Sometimes, certain endpoints and subdomains do not show a response in the browser, leading to frustration. In such cases, it is crucial to utilize the Burp Suite’s various tools. The Burp Repeater tab allows hunters to manually check requests and responses. Additionally, the Burp Intruder tab facilitates payload-based testing. The Burp History and Scan tabs also offer valuable insights into the target application.</li></ul><h3>Bypassing Validation Checks:</h3><ul><li>When encountering validation checks on parameters, it is worth attempting to bypass them by adding additional similar parameters. This technique involves observing any changes in the website’s response, which may indicate a bypass of the validation checks. For example, adding the parameter callback=&quot;;alertXSS_POC_BY_SAAJAN_BHUJEL;// to test for potential XSS vulnerabilities.</li></ul><h3>Bypassing Security Filters:</h3><ul><li>To uncover vulnerabilities like XSS, HTML injection, or SQL injection, it is essential to experiment with different bypass techniques. For instance, using encoded HTML tags such as &amp;lt;h1&amp;gt; instead of &lt;h1&gt; can bypass HTML injection filters. Exploring various methods and payloads can increase the chances of identifying security weaknesses.</li></ul><h3>Staying Updated and Targeting New Features:</h3><ul><li>To gain an edge in bug bounty hunting, it is crucial to stay informed about the latest developments from prominent companies such as Yahoo, PayPal, Airbnb, Facebook, etc. Following their Twitter pages, blogs, and news can provide insights into new features they are launching. Focusing on testing these new features increases the likelihood of finding bugs and vulnerabilities.</li></ul><h3>Leveraging Burp Suite and Other Tools:</h3><ul><li>Using Burp Suite in conjunction with the target is crucial for effective bug bounty hunting. Adding targets to scopes, enabling the proxy for recording target endpoints in Burp history, and utilizing tools like Burp Repeater, Extender, and Intruder tabs can significantly enhance the testing process. Crawl the target systematically, utilizing the power of Burp Suite’s features.</li></ul><h3>Harnessing External Sources for Subdomains and Endpoints:</h3><ul><li>Leverage various external sources to gather subdomains for further endpoint discovery. Tools like crt.sh, threatcrowd.org, hackertarget.com, and certspotter.com can provide valuable information. Combining these sources with web archiving services can reveal hidden and rare subdomains and endpoints.</li></ul><h3>Extensive Reconnaissance with Basic Checklist:</h3><ul><li>Performing thorough reconnaissance is essential for bug bounty hunting success. Following a basic checklist involving tools like ffuf, assetfinder, subfinder, amass, and waybackurls can aid in discovering subdomains, URLs, and potential vulnerabilities. Utilizing tools like httprobe, aquatone, and gau provides additional insights for testing.</li></ul><p>Web application hacking and vulnerability assessment and penetration testing (VAPT) require a systematic and comprehensive approach to identify and address potential security vulnerabilities. By following a well-defined methodology, including initial reconnaissance, scanning and enumeration, vulnerability discovery, exploitation, post-exploitation, and reporting and remediation, security testers can effectively evaluate web applications for weaknesses. The initial reconnaissance phase involves gathering information about the target web application, such as identifying technologies used, discovering subdomains, and assessing the attack surface. Tools like Nmap, Sublist3r, and Google Dorks can assist in this process. Scanning and enumeration help identify open ports, services, and vulnerabilities within the target application. Tools like Nessus, Nikto, and Burp Suite are commonly used for vulnerability scanning, identifying misconfigurations, and analyzing HTTP requests and responses. Vulnerability discovery involves manual testing, automated vulnerability scanners, and fuzzing techniques. Testers inject malicious inputs, perform manual tests, and utilize tools like Acunetix and OWASP ZAP for automated vulnerability scanning. Fuzzing involves sending unexpected inputs to the application to uncover unforeseen vulnerabilities. Once vulnerabilities are discovered, the tester proceeds to exploit them using tools like the Metasploit Framework. This step demonstrates the potential impact of the vulnerabilities and associated risks. Post-exploitation and lateral movement involve further exploration of the target system, including privilege escalation, network pivoting, and gathering additional information.</p><p>Finally, a comprehensive report is compiled, highlighting the vulnerabilities discovered, their potential impact, and recommended actions for remediation. The report guides developers and system administrators in addressing the identified issues effectively. Throughout the process, tools like Burp Suite play a crucial role, aiding in scope control, endpoint exploration, and bypassing validation checks and security filters. Staying updated with the latest developments and targeting new features of web applications enhances the chances of finding vulnerabilities.</p><p>Additionally, harnessing external sources for subdomains and endpoints, conducting extensive reconnaissance using a basic checklist, and leveraging tools like ffuf, assetfinder, subfinder, amass, and waybackurls contribute to a thorough assessment of web applications. By following this methodology and utilizing the appropriate tools and techniques, web application security testers can uncover critical vulnerabilities and contribute to improving the overall security posture of online systems.</p><pre>Thank You<br>Shubham Dhungana,<br>Security Analyst, Penetration Tester, Bug Bounty Hunter<br>VAPT, Red Team | Offensive Security</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c1785a81060" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built My 4th Level Deeper Subdomain Enumeration VAPT Automation Script Tool | Offensive…]]></title>
            <link>https://shubhdhungana.medium.com/how-i-built-my-4th-level-deeper-subdomain-enumeration-vapt-automation-script-tool-offensive-401f1b118129?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/401f1b118129</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[reconnaissance]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Wed, 17 May 2023 00:46:15 GMT</pubDate>
            <atom:updated>2023-05-17T00:46:15.758Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Built My 4th Level Deeper Subdomain Enumeration VAPT Automation Script Tool | Offensive Security, Red Team</h3><p>In this article, I share my journey of developing DeepSubh, a powerful subdomain enumeration automation script that does subdomain enumeration upto 4th level deeper. Generally we ignore deeper level subdomain enumeration while doing vapt stuffs or bug bounty. But, it is one of the important phase to find hidden endpoints and as they say in bug bounty, non-duplicate bugs. I provide a detailed explanation of the code and its functionality, breaking it down step by step.</p><p>Starting with an overview of the Bash script, I explain how it accepts a domain name as an argument and creates a directory to store the results. The script then proceeds to perform subdomain enumeration at different levels using tools such as subfinder, assetfinder, and amass.</p><p>I delve into each level of subdomain enumeration, discussing the commands used and their purpose. From the 1st level to the 4th level, I explain how the script combines the output of multiple tools, checks for live subdomains, and saves the results in separate files.</p><p>Throughout the article, I provide examples of code snippets and highlight key features and techniques used in the script. I cover important concepts such as filtering subdomains, handling concurrency, and sorting and deduplicating results.</p><p>Furthermore, I discuss the cleanup process, where unnecessary files generated during the enumeration are removed, leaving only the final consolidated list of unique subdomains.</p><p>By the end of the article, readers will have a comprehensive understanding of how DeepSub automates the subdomain enumeration process and improves the efficiency of vulnerability assessment and penetration testing (VAPT). They will be equipped with the knowledge to implement similar automation scripts and enhance their own offensive security workflows.</p><p>Whether you’re a security enthusiast, a penetration tester, or a red teamer, this article will provide valuable insights into building an automated subdomain enumeration tool and empower you to level up your VAPT game.</p><p>The provided code is a Bash script for automating the process of subdomain enumeration using various tools such as subfinder, assetfinder, and amass. Let’s go through the code step by step:</p><pre>#!/bin/bash<br><br>DOMAIN=$1<br>DIRECTORY=${DOMAIN}_Deeper_Sub<br>mkdir $DIRECTORY</pre><p>The script starts by declaring the shebang #!/bin/bash to specify that it should be interpreted using the Bash shell. It then accepts the domain name as an argument and assigns it to the variable $DOMAIN. Next, it creates a directory using the domain name appended with &quot;_Deeper_Sub&quot; and stores it in the variable $DIRECTORY. The mkdir command is used to create the directory.</p><pre>echo &quot; &quot;<br>echo &quot; Now, starting 1st level subdomain enumeration&quot;<br>echo &quot; &quot;<br>subfinder -d $DOMAIN | tee $DIRECTORY/subfinder_1.txt<br>assetfinder --subs-only $DOMAIN | tee $DIRECTORY/assetfinder_1.txt<br>amass enum -d $DOMAIN -o $DIRECTORY/amass_1.txt<br>cat $DIRECTORY/subfinder_1.txt $DIRECTORY/assetfinder_1.txt $DIRECTORY/amass_1.txt | sort -u | tee $DIRECTORY/1st_level_subdomains_all.txt</pre><p>The script proceeds to perform the 1st level subdomain enumeration. It starts by printing informative messages to the console. Then, it uses the subfinder command to enumerate subdomains of the specified domain and saves the output to the file subfinder_1.txt inside the $DIRECTORY. Similarly, the assetfinder command is used to obtain subdomains for the domain, and only the subdomains are extracted using the --subs-only option. The output is saved to the file assetfinder_1.txt. Finally, the amass enum command performs subdomain enumeration using Amass and saves the results in the file amass_1.txt. The cat command is used to concatenate the contents of the three files generated by subfinder, assetfinder, and amass. The combined output is then sorted and saved to the file 1st_level_subdomains_all.txt.</p><p>The subsequent sections of the code follow a similar pattern for 2nd, 3rd, and 4th level subdomain enumeration. Here’s an example for the 2nd level enumeration:</p><pre>echo &quot; &quot;<br>echo &quot; Now, starting 2nd level subdomain enumeration&quot;<br>echo &quot; &quot;<br>cat $DIRECTORY/subfinder_1.txt $DIRECTORY/assetfinder_1.txt $DIRECTORY/amass_1.txt | sort -u | httprobe -c 50 | sed &#39;s/https\?:\/\///&#39; | awk -F/ &#39;{print $1}&#39; | sort -u | tee $DIRECTORY/all_subdomains_2.txt<br>subfinder -dL $DIRECTORY/all_subdomains_2.txt | tee $DIRECTORY/subfinder_2.txt<br>assetfinder --subs-only -d $DIRECTORY/all_subdomains_2.txt | tee $DIRECTORY/assetfinder_2.txt<br>amass enum -d $DOMAIN -rf $DIRECTORY/all_subdomains_2.txt -o $DIRECTORY/amass_2.txt<br>cat $DIRECTORY/subfinder_2.txt $DIRECTORY/assetfinder_2.txt $DIRECTORY/amass_2.txt | sort -u | tee $DIRECTORY/2nd_level_subdomains_all.txt</pre><p>In the 2nd level enumeration section, the script again starts by printing informative messages. It then uses the cat command to combine the output of the 1st level enumeration from the three tools: subfinder, assetfinder, and amass. The combined output is then piped into httprobe to check for live subdomains. The -c 50 flag specifies the concurrency level of 50 for faster probing. The resulting list of live subdomains is then processed using sed and awk to extract the domain names only and remove any URL prefixes (http:// or https://). The filtered subdomains are sorted and saved to the file all_subdomains_2.txt inside the $DIRECTORY.</p><p>Next, the script proceeds with subdomain enumeration using subfinder, assetfinder, and amass for the list of 2nd level subdomains obtained. The subfinder command uses the -dL option to perform enumeration based on the list of subdomains provided in the file all_subdomains_2.txt. The results are saved to subfinder_2.txt. Similarly, the assetfinder command uses the --subs-only option along with the -d flag to enumerate subdomains for the domain specified in the all_subdomains_2.txt file. The output is saved to assetfinder_2.txt. Lastly, the amass enum command performs enumeration using Amass and the -rf option is used to provide the list of subdomains from all_subdomains_2.txt. The results are saved to amass_2.txt.</p><p>Finally, the script uses the cat command to concatenate the output files from subfinder, assetfinder, and amass for the 2nd level enumeration. The combined output is sorted, and the resulting list of unique subdomains is saved to the file 2nd_level_subdomains_all.txt.</p><p>The script repeats similar steps for the 3rd and 4th level subdomain enumeration, generating files such as all_subdomains_3.txt, subfinder_3.txt, assetfinder_3.txt, amass_3.txt, all_subdomains_4.txt, subfinder_4.txt, assetfinder_4.txt, and amass_4.txt.</p><p>Towards the end, unnecessary files generated during the enumeration process are deleted using the rm command. The script then prints the obtained subdomains by concatenating the relevant files, and the temporary files are also removed, leaving only the final file all_deeper_subdomains.txt containing all the unique subdomains found.</p><p>In this captivating journey, we have explored the depths of subdomain enumeration with DeepSubh, an exceptional automation script that unveils hidden endpoints and non-duplicate bugs. By combining the power of subfinder, assetfinder, and amass, DeepSubh automates the process of subdomain enumeration up to the 4th level, enhancing the efficiency of vulnerability assessments and penetration testing. From code snippets to cleanup processes, this article has equipped readers with the knowledge to build their own automated subdomain enumeration tools, empowering them to level up their offensive security workflows and unlock new opportunities in the world of VAPT.</p><p>In summary, the script automates the process of subdomain enumeration by utilizing popular tools such as subfinder, assetfinder, and amass. It performs enumeration at multiple levels, starting from the 1st level and going deeper based on the discovered subdomains. The script combines the output from each level, checks for live subdomains, and saves the results in separate files. Finally, it cleans up unnecessary files and presents the consolidated list of all discovered subdomains.</p><pre>Thank You,<br>Shubham Dhungana,<br>Security Analyst, Penetration Tester<br>Offensive Security | VAPT Red Team</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=401f1b118129" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scripting My Custom Script Automation Tool For Web Application Hacking & Reconnaissance]]></title>
            <link>https://shubhdhungana.medium.com/hello-aaef10e10b79?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaef10e10b79</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Tue, 08 Nov 2022 16:15:14 GMT</pubDate>
            <atom:updated>2022-11-09T05:15:53.862Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*YLCEJsAUmYd4PN3CBSffrA.jpeg" /></figure><p>Built my automation recon script tool for web application hacking &amp; reconnaissance tasks which I am going to share. I found these codes and tool extremely useful and time saving. I’m going to share the chunks of code that I wrote to create this tool which helped me for my hacking purposes. I would explain simultaneously here.</p><pre>#!/bin/bash<br>DOMAIN=$1                            <br>DIRECTORY=${DOMAIN}_recon                            <br>mkdir $DIRECTORY</pre><p>I wrote above chunks of code for variable purpose. “DOMAIN”, “DIRECTORY” is the variable name. The variables were assingned. “DOMAIN” will take the input domain from the user and create new directory for web app hacking and reconnaissance tasks.</p><p>The above codes will create one folder as the result.</p><pre>#assetfinder                            <br>echo &quot; Now, Assetfinder&quot;                  <br>assetfinder -subs-only $DOMAIN | tee $DIRECTORY/ast.txt                                echo &quot; &quot;                                                       <br>#subfinder                               <br>echo &quot; Now, Subfinder&quot;                             <br>subfinder -d $DOMAIN | tee $DIRECTORY/subf.txt                             echo &quot; &quot;                                                     <br>#amass                             <br>echo &quot;Now, Amass&quot;                             <br>amass enum --passive -d $DOMAIN | tee $DIRECTORY/amass.txt</pre><p>Now, the first process is the subdomain enumeration. I’ve used mainly three tools for subdomain enumeration i.e:</p><p>i) <a href="https://github.com/tomnomnom/assetfinder">assetfinder</a></p><p>ii) <a href="https://github.com/projectdiscovery/subfinder">subfinder</a></p><p>iii) <a href="https://github.com/OWASP/Amass">amass</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*hRker8cGDU--zGBSs-LIsg.png" /></figure><p>There’s nothing in above chunks of code. “echo” command was being used just to print the desired lines as it is. I’ve just used the code to run tools like <a href="https://github.com/tomnomnom/assetfinder">assetfinder</a>, <a href="https://github.com/projectdiscovery/subfinder">subfinder</a>, <a href="https://github.com/OWASP/Amass">amass </a>as per their documented instruction in github.</p><p>The above given codes will produce results in three files<em> i.e. ast.txt, subf.txt and amass.txt. </em>The results will be stored inside the domain directory. There will be three results in a text file i.e.</p><p>i) <em>ast.txt</em></p><p><em>ii) subf.txt</em></p><p><em>iii) amass.txt.</em></p><pre>#arranging files<br>echo &quot; Arranging Subdomains into one&quot;<br>cat $DIRECTORY/ast.txt $DIRECTORY/subf.txt $DIRECTORY/amass.txt | sort -u | tee $DIRECTORY/subdomains.txt<br>rm -rf $DIRECTORY/ast.txt $DIRECTORY/subf.txt $DIRECTORY/amass.txt<br>echo &quot;Done &quot;<br>echo &quot; &quot;</pre><p>Now, we have three files i.e.</p><p>i) ast.txt</p><p>ii) subf.txt</p><p>iii) amass.txt</p><p>I wrote the above codes in such a way that, they’ll combine three results into one single text file i.e.<em>subdomains.txt</em>. And then, the automation code will delete other three files like <em>ast.txt, subf.txt, amass.txt.</em></p><p><em>Then, we’ll have one one result i.e. subdomains.txt. This file will have all the subdomain enumeration result from above three tools.</em></p><pre>#httpx and httprobe<br>cat $DIRECTORY/subdomains.txt | httpx | tee $DIRECTORY/livesubdomains.txt<br>echo &quot;httpx done&quot;<br>echo &quot;Now, filtering live subdomains and scanning open ports like 81, 8080, 8000, 8443&quot;<br>cat $DIRECTORY/subdomains.txt | httprobe -p http:81 -p http:8000 -p http:8080 -p https:8443 -c 50 | tee $DIRECTORY/httprobeOpenPorts.txt<br>echo &quot;httprobe done&quot;<br>cat $DIRECTORY/livesubdomains.txt | httpx -title -status-code -fr -o $DIRECTORY/httpxSubdomains.txt</pre><p>Now, I have subdomains.txt file. I have to filter out the dead subdomains and produce only live subdomains. So, I wrote above codes which will take all the subdomains from subdomains.txt file, and it’ll produce the result in livesubdomains.txt file. The livesubdomains.txt file will now have only live subdomains. This task was being accomplished using tool called httpx.</p><p>I wrote another code for scanning the open ports using tool called httprobe. “echo” command was simply being used just to print the line as it is. Using above codes, the result for open ports filter will be produced on httprobeOpenPorts.txt file</p><p>Now, I wrote another line of code to print out the result of subdomains description and heading. The result for all live subdomains small description and headings will be stored in httpxSubdomains.txt file.</p><p>So, above codes will produce three results:</p><p>i) livesubdomains.txt (only live subdomains will be stored in this file)</p><p>ii)httprobeOpenPorts.txt (subdomains endpoints with open port will be stored in this file)</p><p>iii) httpxSubdomains.txt (live subdomains with their title description will be stored in this file)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*eUhBAQIKkxmdvYILkIFq8w.png" /></figure><pre>#aquatone<br>echo &quot; Now, screenshot using aquatone&quot;<br>echo &quot; &quot;<br>cd $DIRECTORY<br>mkdir aquatoneDatas<br>cd aquatoneDatas<br>cat ../livesubdomains.txt | aquatone<br>echo &quot; &quot;<br>echo &quot; aquatone done&quot;<br>cd ../../</pre><p>Now, I have all the live subdomains stored in the text file called liveSubdomains.txt. I coded above chunks in such a way that the tool called <a href="https://github.com/michenriksen/aquatone">aquatone </a>will take all the subdomains from file called liveSubdomains.txt. Then the tool will take the screenshot of all the subdomains and it’ll store the result in the folder <a href="https://github.com/michenriksen/aquatone">aquatone</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uBctSxQtCsIe3a8UVyysVg.png" /></figure><pre>#waybackurls<br>echo &quot; Now Waybackurls&quot;<br>cat $DIRECTORY/livesubdomains.txt | waybackurls | tee $DIRECTORY/wayback.txt<br>echo &quot;waybackurls done &quot;<br>echo &quot; &quot;</pre><pre>#gau<br>echo &quot;Now Gau&quot;<br>cat $DIRECTORY/livesubdomains.txt | gau | tee $DIRECTORY/gau.txt<br>echo &quot; &quot;<br>echo &quot;Gau done&quot;</pre><pre>#arranging content discovery files<br>echo &quot;Now, arranging content discovery files&quot;<br>cat $DIRECTORY/wayback.txt $DIRECTORY/gau.txt | sort -u | tee $DIRECTORY/urls.txt<br>rm -rf $DIRECTORY/wayback.txt $DIRECTORY/gau.txt<br>cat $DIRECTORY/urls.txt | uro | httpx -mc 200 | tee $DIRECTORY/live_urls.txt<br>cat $DIRECTORY/live_urls.txt | grep “.php” | cut -f1 -d”?” | sed ‘s:/*$::’ | sort -u | tee $DIRECTORY/php_endpoints_urls.txt</pre><p>The crucial step for web application penetration testing is collecting all the urls and hidden endpoints from the subdomains. There’s the result of subdomains stored in a file called liveSubdomains.txt. Above codes will produce hidden urls and endpoints in three files:</p><p>i) wayback.txt [ Hidden endpoints and urls will be collected in this text file ]</p><p>ii) gau.txt [ Hidden endpoints and urls will be collected in this text file ]</p><p>iii) urls.txt [ This text file will contain the combined result of above two files endpoints ]</p><p>iv) live_urls.txt [ This text file will have filtered live urls and endpoints from above file urls.txt. It’ll only contain live endpoints and urls]</p><p>v) php_endpoints_urls.txt [ This will contain only endpoints with php created urls ]</p><pre>#Gather jsfilesurls<br>cat $DIRECTORY/live_urls.txt | grep &quot;.js$&quot; | uniq | sort | tee $DIRECTORY/Jsurlsfiles1.txt<br>echo &quot; &quot;<br>cat $DIRECTORY/live_urls.txt | subjs | sort -u | tee $DIRECTORY/Jsurlsfiles2.txt<br>cat $DIRECTORY/Jsurlsfiles1.txt $DIRECTORY/Jsurlsfiles2.txt | sort -u | tee $DIRECTORY/js_urls_files.txt<br>rm -rf $DIRECTORY/Jsurlsfiles1.txt $DIRECTORY/Jsurlsfiles2.txt<br>echo &quot;js files scan completed&quot;</pre><pre>#linkfinder<br>echo &quot;Now linkfinder&quot;<br>echo &quot; &quot;<br>cat $DIRECTORY/js_urls_files.txt | while read url; do python3 /root/Desktop/automation_embedded_tools/LinkFinder.py -d -i $url -o cli | tee js_endpoints.txt<br>echo &quot; &quot;<br>echo &quot;linkfinder completed&quot;</pre><p>Since now, I have live_urls.txt file which contains all the live urls and endpoints. Now, I had to collect js files endpoints from live_urls.txt file. So, Jsurlsfiles1.txt file will be produced which will contain js endpoints using grep linux command. I also coded in such a way that, it will also produce Jsurlsfiles2.txt js file using subjs tool. The results will be combined using those two files and the text file will be produced called js_urls_files.txt</p><p>Another file called js_endpoints.txt will be produced which will contain all the hidden links and endpoints from the js file i.e. js_urls_files.txt</p><pre># gf pattern filter<br>cat $DIRECTORY/live_urls.txt | gf xss | tee $DIRECTORY/gfxss.txt<br>cat $DIRECTORY/live_urls.txt | gf ssrf | tee $DIRECTORY/gfssrf.txt<br>cat $DIRECTORY/live_urls.txt | gf upload-fields | tee $DIRECTORY/gfupload.txt<br>cat $DIRECTORY/live_urls.txt | gf sqli | tee $DIRECTORY/gfsqli.txt<br>cat $DIRECTORY/live_urls.txt | gf redirect | tee $DIRECTORY/gfredirect.txt<br>cat $DIRECTORY/live_urls.txt | gf rce | tee $DIRECTORY/gfrce.txt<br>cat $DIRECTORY/live_urls.txt | gf idor | tee $DIRECTORY/gfidor.txt<br>cat $DIRECTORY/live_urls.txt | gf lfi | tee $DIRECTORY/gflfi.txt<br>echo &quot; &quot;<br>mkdir $DIRECTORY/gfTool<br>mv $DIRECTORY/gfxss.txt $DIRECTORY/gfssrf.txt $DIRECTORY/gfupload.txt $DIRECTORY/gfsqli.txt $DIRECTORY/gfredirect.txt $DIRECTORY/gfrce.txt $DIRECTORY/gfidor.txt $DIRECTORY/gflfi.txt $DIRECTORY/gfTool/</pre><p><a href="https://github.com/1ndianl33t/Gf-Patterns">GF pattern tool </a>was being used to filter the vulnerable endpoints from the live_urls.txt file. The result will be stored in below file:</p><p>i) gfxss.txt [ xss vulnerable endpoints ]</p><p>ii) gfssrf.txt [ ssrf vulnerable endpoints ]</p><p>iii) gfsqli.txt [ sqli vulnerable endpoints ]</p><p>iv) gfrce.txt [ rce vulnerable endpoints ]</p><p>v) gfidor.txt [ idor vulnerable endpoints ]</p><p>vi) gflfi.txt [ lfi vulnerable endpoints ]</p><pre>#dirsearch<br>echo &quot;Now dirsearch&quot;<br>python3 /root/Desktop/automation_embedded_tools/dirsearch/dirsearch.py -u <a href="http://www.$domain/">www.$DOMAIN</a> -o $DIRECTORY/dirsearchResult.txt</pre><pre># nuclei basic use<br>echo &quot;Now using nuclei tool&quot;<br>cat $DIRECTORY/livesubdomains.txt | nuclei -c 100 -silent -t /root/Desktop/automation_embedded_tools/nuclei-templates/ | tee $DIRECTORY/Nucleiresults.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*BPx7HJNPEuN8cFtVYO2JVQ.png" /></figure><p>Now, I needed to find additional hidden web directories from the main target domain. So I created above chunks of code which will search for the hidden web directories and it’ll store the result in dirsearchResult.txt</p><p>Also, I’ve added <a href="https://github.com/projectdiscovery/nuclei">nuclei </a>tool in my automation script. It’ll take livesubdomains.txt file and produce the result in a text file called Nucleiresults.txt. The file will contain bug reports that it’ll find. This text file Nucleiresults.txt will display maximum bug vulnerable endpoints and result with necessary explanation of bugs.</p><p>Thank You.</p><p>Shubham Dhungana.</p><p>Cyber Security Researcher, Pentester &amp; Bug Bounty Hunter</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaef10e10b79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Commands Cheat sheet for Web Application Hacking]]></title>
            <link>https://shubhdhungana.medium.com/linux-commands-cheat-sheet-for-web-application-hacking-a47c5aa9bcb4?source=rss-9aee5d122c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/a47c5aa9bcb4</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Subh Dhungana]]></dc:creator>
            <pubDate>Sun, 07 Aug 2022 05:11:30 GMT</pubDate>
            <atom:updated>2022-08-07T05:11:30.241Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yXb5zd6sYinYiAuI" /><figcaption>Photo by <a href="https://unsplash.com/@ilyapavlov?utm_source=medium&amp;utm_medium=referral">Ilya Pavlov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Below cheat sheet commands are useful for finding bugs in web application. These are especially used by bug bounty hunters for finding vulnerabilities in web application.</p><p>Many cyber security enthusiasts especially relating to bug bounty and penetration testing domain get confused in beginning phase to get started.</p><p>These are the commands that I used most often while penetration testing and while doing bug bounties.</p><p>So lets get started</p><h3>Tools Used:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o8euZQEj_0hnpsog" /><figcaption>Photo by <a href="https://unsplash.com/@stillnes_in_motion?utm_source=medium&amp;utm_medium=referral">Stillness InMotion</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>i) <a href="https://github.com/projectdiscovery/subfinder">Subfinder</a></p><p>ii) <a href="https://github.com/tomnomnom/assetfinder">Assetfinder</a></p><p>iii) <a href="https://github.com/OWASP/Amass">Amass</a></p><p>iv) <a href="https://github.com/projectdiscovery/httpx">Httpx</a></p><p>v) <a href="https://github.com/michenriksen/aquatone">Aquatone</a></p><p>vi) <a href="https://github.com/lc/gau">Gau</a></p><p>vii) <a href="https://github.com/tomnomnom/waybackurls">Waybackurls</a></p><p>viii) <a href="https://github.com/tomnomnom/gf">GF</a></p><p>ix) <a href="https://github.com/ffuf/ffuf">ffuf</a></p><h3>Commands Used:</h3><blockquote>&gt; subfinder -d target.com | tee subf.txt (subdomain enumeration 1)</blockquote><blockquote>&gt; assetfinder -subs-only target.com | tee ast.txt (subdomain enum 2)</blockquote><blockquote>&gt; amass enum — passive -d target.com | tee amass.txt (subdomain enum 3)</blockquote><blockquote>&gt; cat subf.txt ast.txt amass.txt | sort -u | tee subdomains.txt (sorting sudomains)</blockquote><blockquote>&gt; cat subdomains.txt | httpx | tee liveSubdomains.txt (filtering live subdomains)</blockquote><blockquote>&gt; cat liveSubdomains.txt | aquatone (taking screenshot of subdomains)</blockquote><blockquote>&gt; cat liveSubdomains.txt | gau | tee gau.txt (fetching urls 1)</blockquote><blockquote>&gt; cat liveSubdomains.txt | waybackurls | tee wayback.txt (fetching urls 2)</blockquote><blockquote>&gt; cat gau.txt wayback.txt | sort -u | fff | tee urls.txt (sorting)</blockquote><blockquote>&gt; cat urls.txt | gf xss | tee xss.txt (xss vulnerable endpoints)</blockquote><blockquote>&gt; cat urls.txt | gf ssrf| tee ssrf.txt (ssrf vulnerable endpoints)</blockquote><blockquote>&gt; cat urls.txt | gf upload-fields| tee upload-fields.txt (upload-fieldsss vulnerable endpoints)</blockquote><blockquote>&gt; cat urls.txt | gf sqli| tee sqli.txt (sqli vulnerable endpoints)</blockquote><blockquote>&gt; cat urls.txt | gf rce| tee rce.txt (rce vulnerable endpoints)</blockquote><blockquote>&gt; ffuf -u <a href="https://target.com/FUZZ">https://target.com/FUZZ</a> -w /root/Desktop/wordlistlocationfile.txt (fuzzing)</blockquote><h3>Bonus Dorks</h3><blockquote>i) inurl /bug bounty, inurl:security “reward” — -&gt; for finding bug bounty programs</blockquote><blockquote>ii) ssl:“target.com” — -&gt; shodan dorks</blockquote><blockquote>iii) [ “target.com” password ], [*.target.com], [“target.com” key], [“target.com” credentials] — -&gt; github dorks for sensitive disclosure</blockquote><blockquote>iv) <a href="https://github.com/danielmiessler/SecLists">seclists</a> — -&gt; payload</blockquote><blockquote>v) <a href="https://chaos.projectdiscovery.io/#/">Project Discovery</a> — -&gt; For finding bug bounty targets</blockquote><p>Thanks.</p><p>Shubham Dhungana</p><p>Cyber Security Researcher</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a47c5aa9bcb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>