<?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 Gauravdahala on Medium]]></title>
        <description><![CDATA[Stories by Gauravdahala on Medium]]></description>
        <link>https://medium.com/@gauravdahala?source=rss-8ee93e6c945c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*K329nF4Yh8RFM4sG</url>
            <title>Stories by Gauravdahala on Medium</title>
            <link>https://medium.com/@gauravdahala?source=rss-8ee93e6c945c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 15:20:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gauravdahala/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[The Guide to Penetration Testing: Methodologies, Reconnaissance, and Tools]]></title>
            <link>https://medium.com/@gauravdahala/the-guide-to-penetration-testing-methodologies-reconnaissance-and-tools-082eaf1d9ee9?source=rss-8ee93e6c945c------2</link>
            <guid isPermaLink="false">https://medium.com/p/082eaf1d9ee9</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Gauravdahala]]></dc:creator>
            <pubDate>Sun, 15 Mar 2026 16:54:45 GMT</pubDate>
            <atom:updated>2026-03-15T16:54:45.858Z</atom:updated>
            <content:encoded><![CDATA[<p>Cyberattacks are increasing every year, targeting companies, governments, and individuals. Organizations need a way to identify weaknesses in their systems <strong>before real attackers exploit them</strong>. This is where <strong>penetration testing</strong> becomes essential.</p><p>Penetration testing, often called <strong>ethical hacking</strong>, is a controlled security assessment where professionals simulate cyberattacks to identify vulnerabilities in systems, networks, or applications.</p><p>Instead of waiting for hackers to break in, organizations hire security experts to <strong>test their defenses and discover weaknesses early</strong>.</p><p>In this article, we will explore:</p><ul><li>What penetration testing is</li><li>Major penetration testing methodologies</li><li>Information gathering techniques</li><li>Passive vs active reconnaissance</li><li>Steps in a penetration testing engagement</li><li>Important information to collect</li><li>Common tools used by penetration testers</li></ul><h3>What is Penetration Testing?</h3><p>Penetration testing is the <strong>authorized simulation of cyberattacks against a system to evaluate its security</strong>.</p><p>The purpose is to identify vulnerabilities that attackers could exploit.</p><p>Companies conduct penetration testing to:</p><ul><li>Identify security weaknesses</li><li>Test their security monitoring systems</li><li>Improve security defenses</li><li>Meet compliance requirements</li><li>Protect sensitive data</li></ul><p>A penetration test can target different environments such as:</p><ul><li>Web applications</li><li>Networks</li><li>Mobile applications</li><li>Cloud infrastructure</li><li>Wireless networks</li><li>APIs</li></ul><p>Penetration testing helps organizations understand <strong>how attackers think and operate</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*esaWpnYqfNP3pFKf.png" /><figcaption>Not all attacks are malicious. Ethical hackers think like attackers so defenders can stay one step ahead. Penetration testing isn’t about breaking things it’s about finding what’s broken before someone else does.</figcaption></figure><h3>Penetration Testing Methodologies</h3><p>Professional penetration testers follow structured methodologies to ensure testing is systematic and complete.</p><h3>1. PTES (Penetration Testing Execution Standard)</h3><p>PTES is one of the most commonly used penetration testing frameworks. It defines <strong>seven key phases</strong> of a penetration test:</p><ol><li>Pre-engagement interactions</li><li>Intelligence gathering</li><li>Threat modeling</li><li>Vulnerability analysis</li><li>Exploitation</li><li>Post-exploitation</li><li>Reporting</li></ol><p>PTES provides a <strong>practical and flexible structure</strong> for security testing.</p><h3>2. OWASP Testing Guide</h3><p>The <strong>OWASP Testing Guide</strong> focuses specifically on <strong>web application security testing</strong>.</p><p>It provides detailed testing procedures based on the <strong>OWASP Top 10 vulnerabilities</strong>, which include:</p><ul><li>Injection attacks</li><li>Broken authentication</li><li>Security misconfigurations</li><li>Sensitive data exposure</li><li>Cross-site scripting (XSS)</li></ul><p>This framework is widely used for <strong>website security assessments</strong>.</p><h3>3. NIST SP 800–115</h3><p>This methodology was developed by the <strong>National Institute of Standards and Technology (NIST)</strong>.</p><p>It provides structured guidance for:</p><ul><li>Security testing</li><li>vulnerability scanning</li><li>penetration testing</li><li>security assessments</li></ul><p>It is commonly used by <strong>government organizations and large enterprises</strong>.</p><h3>4. OSSTMM</h3><p>The <strong>Open Source Security Testing Methodology Manual (OSSTMM)</strong> provides a detailed framework for security testing.</p><p>It focuses on testing:</p><ul><li>network security</li><li>wireless communication</li><li>human security</li><li>physical security</li></ul><p>OSSTMM is known for its <strong>scientific and research-based approach</strong> to security testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4UVlmQOyG9ZHMKW9ZQosqA.png" /><figcaption><strong><em>The 7 Phases of PTES: A Penetration Tester’s Roadmap</em></strong><em> Before a single exploit is run, a structured methodology makes all the difference. The Penetration Testing Execution Standard (PTES) defines seven phases — from scoping and recon all the way through to a polished report. Understanding this lifecycle is essential for anyone entering the field of offensive security or commissioning a professional pentest.</em></figcaption></figure><h3>The Steps of a Penetration Test</h3><p>A penetration test usually follows a structured process consisting of several stages.</p><h3>1. Planning and Scoping</h3><p>This stage defines:</p><ul><li>the testing scope</li><li>systems that will be tested</li><li>legal permissions</li><li>testing timeline</li></ul><p>A <strong>Rules of Engagement (RoE)</strong> document is created to ensure testing is authorized.</p><h3>2. Information Gathering (Reconnaissance)</h3><p>This stage focuses on collecting information about the target system before launching attacks.</p><p>The goal is to understand the target environment as much as possible.</p><p>Information gathering can include:</p><ul><li>domain information</li><li>network infrastructure</li><li>technologies used</li><li>employee details</li><li>public data exposure</li></ul><p>This phase is extremely important because <strong>the quality of reconnaissance determines the success of the entire test</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/0*vVv3eten6dPpG1rd.png" /><figcaption>Reconnaissance isn’t random — it follows a deliberate path. Start silent with passive recon, build your map through footprinting, then shift to active scanning only when you know what you’re looking for. Every step feeds the next.</figcaption></figure><h3>Passive vs Active Reconnaissance</h3><p>Reconnaissance can be divided into <strong>two main types</strong>.</p><h3>Passive Reconnaissance</h3><p>Passive reconnaissance involves collecting information <strong>without directly interacting with the target system</strong>.</p><p>This means the target organization <strong>cannot detect the activity</strong>.</p><p>Examples include:</p><ul><li>Searching public databases</li><li>Reviewing company websites</li><li>analyzing job postings</li><li>collecting employee information</li><li>examining domain records</li></ul><p>Common passive reconnaissance sources:</p><ul><li>search engines</li><li>public records</li><li>social media</li><li>GitHub repositories</li><li>archived websites</li></ul><p>Passive reconnaissance is considered <strong>low risk and difficult to detect</strong>.</p><h3>Active Reconnaissance</h3><p>Active reconnaissance involves <strong>direct interaction with the target systems</strong>.</p><p>These activities may trigger alerts in security systems.</p><p>Examples include:</p><ul><li>port scanning</li><li>vulnerability scanning</li><li>DNS enumeration</li><li>service detection</li></ul><p>Active reconnaissance provides <strong>more accurate technical information</strong>, but it requires <strong>explicit permission</strong> before testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/0*G8Q0E-MhgLKNu4zv.png" /><figcaption>Before exploitation comes reconnaissance. Passive recon lets you gather intel without touching the target — DNS records, WHOIS, social media. Active recon gets closer, but louder. Know the difference before you engage.</figcaption></figure><h3>Information to Obtain During Reconnaissance</h3><p>During the information gathering phase, penetration testers attempt to collect several types of information.</p><h3>Technical Information</h3><p>This includes:</p><ul><li>IP addresses</li><li>Domain names</li><li>Subdomains</li><li>Open ports</li><li>Running services</li><li>Software versions</li><li>Operating systems</li><li>DNS records</li></ul><p>This information helps testers identify <strong>possible entry points</strong> into the system.</p><h3>Organizational Information</h3><p>Penetration testers may also collect information about the organization, such as:</p><ul><li>employee names</li><li>email formats</li><li>organizational structure</li><li>technology stack</li><li>job postings</li></ul><p>This information is useful for <strong>social engineering simulations</strong>.</p><h3>Historical Information</h3><p>Historical data can reveal forgotten vulnerabilities.</p><p>Examples include:</p><ul><li>old website pages</li><li>archived login portals</li><li>old APIs</li><li>previous DNS records</li></ul><p>Tools like web archives can help uncover <strong>legacy systems still accessible online</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T46CYAI1pm1_lQj_" /><figcaption>The same techniques. Two very different intentions. Cyber reconnaissance is a tool — what separates a pentester from a threat actor is authorization, ethics, and purpose.</figcaption></figure><h3>Tools Used in Information Gathering</h3><p>Penetration testers use a wide variety of tools during reconnaissance.</p><p>Below are some commonly used tools.</p><h3>WHOIS</h3><p>WHOIS provides domain registration information such as:</p><ul><li>domain owner</li><li>registrar</li><li>creation date</li><li>DNS servers</li></ul><p>Example command:</p><pre>whois example.com</pre><h3>Nmap</h3><p>Nmap is one of the most powerful network scanning tools.</p><p>It is used to discover:</p><ul><li>open ports</li><li>running services</li><li>operating systems</li></ul><p>Example:</p><pre>nmap -sV target-ip</pre><h3>theHarvester</h3><p>theHarvester is used for <strong>OSINT data collection</strong>.</p><p>It gathers:</p><ul><li>email addresses</li><li>subdomains</li><li>employee names</li></ul><p>Example:</p><pre>theharvester -d example.com -b google</pre><h3>Amass</h3><p>Amass is widely used for <strong>subdomain enumeration</strong>.</p><p>It helps identify hidden assets within a target organization.</p><h3>Burp Suite</h3><p>Burp Suite is a <strong>web application security testing platform</strong>.</p><p>It can:</p><ul><li>intercept web traffic</li><li>scan for vulnerabilities</li><li>test input fields</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qTkjGw_DVpi9z3CC" /></figure><h3>Legal and Ethical Considerations</h3><p>Penetration testing must always be conducted <strong>with proper authorization</strong>.</p><p>Testing without permission may violate computer crime laws.</p><p>Professional penetration testers must always:</p><ul><li>obtain written permission</li><li>follow defined scope</li><li>respect privacy</li><li>report vulnerabilities responsibly</li></ul><p>Ethical hackers play an important role in <strong>improving cybersecurity rather than exploiting systems</strong>.</p><h3>Conclusion</h3><p>Penetration testing is a critical part of modern cybersecurity. It helps organizations identify vulnerabilities before attackers can exploit them.</p><p>By following structured methodologies, performing detailed reconnaissance, and using specialized tools, security professionals can effectively evaluate the security of systems and networks.</p><p>Understanding how penetration testing works also helps defenders strengthen their security posture and protect their digital assets.</p><p>As cyber threats continue to evolve, penetration testing will remain an essential practice in safeguarding information systems.</p><h3>Final Thoughts</h3><p>The most successful penetration testers are not those who attack first, but those who <strong>research the most</strong>.</p><p>Information gathering, careful planning, and ethical responsibility are the foundations of effective security testing.</p><p>In cybersecurity, knowledge is often the most powerful tool.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=082eaf1d9ee9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>