Cyber Security & Ethical Hacking

Ethical Hacking for Beginners – Episode 5: Exploitation Basics and Introduction to Metasploit (Updated June 2026)

June 5, 202610 min readABC Team
Share:
Ethical Hacking for Beginners – Episode 5: Exploitation Basics and Introduction to Metasploit (Updated June 2026)
Cyber Security & Ethical Hacking

Ethical Hacking for Beginners – Episode 5: Exploitation Basics and Introduction to Metasploit (Updated June 2026) (Updated June 2026)

What most people do not realize when they start learning ethical hacking is that exploitation is actually the smallest part of a professional penetration test — but it is the phase that gets all the attention. NASSCOM and Deloitte project India will need 1.25 million cybersecurity professionals by 2027, and penetration testers who understand exploitation methodology — not just how to run tools — command the highest salaries in the field. Episode 5 of our Ethical Hacking series covers the exploitation phase from a professional perspective: understanding CVEs, working with Metasploit Framework responsibly in authorized lab environments, and the legal and ethical standards every certified security professional must uphold.

TL;DR
  • Exploitation uses identified vulnerabilities to gain unauthorized access — only legal in authorized test environments
  • CVE numbers and CVSS scores are how the industry catalogs and prioritizes known vulnerabilities
  • Metasploit Framework is the most widely used exploitation platform — free, open-source, and professional
  • Post-exploitation assesses the real impact of a breach — what could an attacker do once inside?
  • The OSCP certification is India's most respected hands-on penetration testing credential

What Is the Exploitation Phase in Ethical Hacking?

Exploitation is phase three of the ethical hacking lifecycle, following reconnaissance and scanning. In this phase, the penetration tester attempts to use identified vulnerabilities to gain unauthorized access to target systems — within the defined scope and with documented authorization. Exploitation is not about damage. It is about demonstrating that a vulnerability is not only present but actually exploitable, and determining what an attacker could do once access is gained. This distinction matters: a scanner might report a vulnerability as critical, but if that vulnerability is not actually exploitable in the specific configuration present, the risk level is different. Real exploitation confirms what is actually at risk. What most people do not realize is that professional exploitation is methodical, documented, and conservative — you do not run everything you have against every target. You identify the most likely attack paths based on the scanning and enumeration data, exploit the minimum necessary to demonstrate impact, document proof of access (screenshot showing hostname, IP, current user), then stop and report. The goal is evidence, not damage.

Ethical Hacking for Beginners – Episode 5: Exploitation Basics and Introduction to Metasploit (Updated June 2026)
Real student workshop at ABC Trainings

Understanding CVEs and CVSS Scores: The Vulnerability Language

CVE (Common Vulnerabilities and Exposures) is the global standard identifier for publicly known security vulnerabilities. Each CVE has a unique ID in the format CVE-YEAR-NUMBER (e.g., CVE-2021-44228 is the Log4Shell vulnerability). The National Vulnerability Database (NVD) maintained by NIST maintains detailed records for each CVE including affected software versions, patch status, and severity scores. CVSS (Common Vulnerability Scoring System) provides a numerical severity score from 0 to 10 — Critical (9.0–10.0), High (7.0–8.9), Medium (4.0–6.9), Low (0.1–3.9). The score considers attack vector (network, adjacent, local, physical), attack complexity, privileges required, user interaction needed, and potential impact on confidentiality, integrity, and availability. In a professional penetration test, you prioritize Critical and High CVEs for exploitation attempts. In vulnerability assessment reports, you list all findings with their CVE IDs and CVSS scores so clients can prioritize remediation. Knowing how to look up CVEs on NVD and Exploit-DB is a daily skill for penetration testers.

Metasploit Framework: Architecture and Core Concepts

Metasploit Framework is the most widely used open-source exploitation platform in professional penetration testing — created by H.D. Moore in 2003, now maintained by Rapid7. The architecture has four main components. Modules are Metasploit's functional units: exploits (code that triggers a vulnerability), payloads (code that runs after a successful exploit — shells, Meterpreter), auxiliaries (scanners, fuzzers, credential brute-force tools), and post-exploitation modules. The Meterpreter payload is particularly powerful — it provides an interactive shell with commands for file system browsing, privilege escalation, network pivoting, and credential extraction, all over an encrypted channel. The Metasploit console (msfconsole) is the primary interface: search module_name finds relevant modules, use module/path selects a module, show options lists required parameters, set RHOSTS targets.com sets a parameter, run or exploit executes. The workflow for a known CVE: search for the CVE number or vulnerability description, select the appropriate exploit module, configure RHOSTS (target) and LHOST (your IP for the reverse shell connection), set the payload, and run in your lab environment.

Ethical Hacking for Beginners – Episode 5: Exploitation Basics and Introduction to Metasploit (Updated June 2026)
Real student workshop at ABC Trainings
ApproachMethodSkill RequiredSpeedTypical Use Case
Metasploit FrameworkModule-based, automated payload deliveryLow–MediumFastKnown CVE exploitation in scoped pentests
Manual ExploitationCustom scripts, proof-of-concept codeHighSlowOSCP, zero-days, novel vulnerabilities
Exploit-DB PoCAdapt public proof-of-concept codeMediumMediumSpecific CVE demonstration
Social EngineeringPhishing, pretexting, vishingMediumVariableRed team engagements

Lab Exploitation Workflow: Concepts and Methodology

In a controlled lab environment using intentionally vulnerable systems, the exploitation workflow teaches the concepts that professional penetration testers apply daily. Using Metasploitable 2 as the target: start msfconsole on your Kali Linux attack VM. Run an Nmap scan from within Metasploit using db_nmap with service version detection — this stores results in Metasploit's database for reference. Use the vulnerabilities command to review potential exploits based on detected services. For a well-known Samba vulnerability on Metasploitable 2: search for the vulnerability name, use the exploit module, set RHOSTS to the target IP, configure the payload, run. A successful exploit drops a command shell. Identify the machine with hostname and id commands — root means full administrative access. This workflow — scanning, searching for applicable exploits, configuring, executing, and documenting proof — is exactly what you repeat in OSCP lab practice and professional engagements. The tools change per engagement; the methodology stays the same.

Post-Exploitation: Assessing Impact After Access

Post-exploitation is what happens after gaining initial access, and it is where the real impact assessment of a penetration test happens. The goal is to answer: given this access, what could a real attacker do? Privilege escalation: can you move from a low-privilege user to root or SYSTEM? Enumeration of the local system: what credentials are stored, what other network resources are accessible, are there plaintext passwords in configuration files? Lateral movement: can you pivot from the compromised system to other internal hosts not directly accessible from the internet? Data exfiltration simulation: can you copy sensitive files to demonstrate that data could be stolen? Persistence mechanisms: could an attacker reinstall access after the initial session is closed? Meterpreter simplifies much of this with built-in commands: hashdump extracts password hashes, getsystem attempts privilege escalation, route adds network pivot routes, upload and download transfer files. In a real engagement, you document every capability accessed with screenshots — this evidence drives remediation priorities. Post-exploitation findings often reveal the most critical business risks, because they answer the client's real question: if this happened, how bad would it actually be?

Legal and Ethical Boundaries Every Penetration Tester Must Follow

The legal and ethical framework is what makes ethical hacking legitimate and keeps practitioners out of prison. In India, unauthorized computer access is a criminal offense under Section 66 of the IT Act 2000 — penalties include imprisonment up to three years and fines up to Rs 5 lakhs. There are no grey areas: scanning, enumerating, or exploiting any system without written authorization from the system owner is illegal, regardless of intent. Professional penetration testers operate under a signed Statement of Work and Rules of Engagement document that specifies exactly which systems are in scope (by IP range, domain, or application URL), the testing window (dates and times), permitted and prohibited techniques, points of contact for escalation, and data handling requirements. As a student, every practice exploit runs on systems you personally own or intentionally vulnerable VMs in your isolated lab. Never test techniques on live internet-connected systems without authorization. Legitimate practice opportunities are abundant: TryHackMe, HackTheBox, VulnHub, and bug bounty programs with defined scopes give you unlimited legal practice. ABC Trainings provides a fully equipped, isolated lab environment for all cybersecurity training. Call +91 7039169629 to enroll.

Maharashtra's Chief Minister Yuva Karmadharak Prakalp Yojana (CMYKPY) provides eligible youth Rs 6,000–10,000 monthly stipends during approved skill training. ABC Trainings is an empanelled CMYKPY center — enroll in our Cybersecurity program covering ethical hacking, exploitation concepts, and web application security with government stipend support. PMKVY 4.0 eligibility also available. Call +91 7039169629 for details.

Get the Cyber Security Brochure + Fees + Batch Dates on WhatsApp

Free 1:1 counselling. Placement track record. CMYKPY/PMKVY eligibility check.

💬 Get Brochure on WhatsApp📞 Call 7039169629

About the author: Rahul Patil. 12 yrs experience training engineers across Maharashtra.

Visit Our Centers

  • Wagholi (Pune): 1st Floor, Laxmi Datta Arcade, Pune-Ahilyanagar Highway. Call 7039169629
  • Hadapsar (Pune HQ): 1st Floor, Shree Tower, opp. Vaibhav Theater, Magarpatta. Call 7039169629
  • Cidco (Chh. Sambhajinagar): Kalpana Plaza, opp. Eiffel Tower, N-1 Cidco. Call 7039169629
  • Osmanpura (Chh. Sambhajinagar): S.S.C Board to Peer Bazar Road, near Jama Masjid. Call 7039169629
  • Sangli: Shubham Emphoria, 1st Floor, Above US Polo Assn., Sangli-Miraj Rd, Vishrambag. Weekend batches available. Call 7039169629

💬 WhatsApp 7774002496

FAQs

Is using Metasploit legal in India?

Metasploit itself is a legal tool — it is open-source software developed for security testing and research. What is illegal is using it against systems you do not own or have explicit written authorization to test. Using Metasploit in your own isolated lab (against Metasploitable 2, VulnHub machines, or other intentionally vulnerable systems) is completely legal. Using it in a professional penetration test under a signed contract is legal. Using it against any unauthorized target — regardless of intent — is a criminal offense under the IT Act 2000. The tool is neutral; the authorization is what determines legality.

What is the difference between an exploit and a payload in Metasploit?

An exploit is the code or technique that takes advantage of a specific vulnerability to gain access to a system or cause an unintended behavior. It is the mechanism that gets you in. A payload is the code that runs on the target system after the exploit succeeds — it defines what happens once access is established. Common payloads: a reverse shell (connects back to your machine, giving you a command prompt), Meterpreter (a full-featured post-exploitation agent over encrypted channel), or a bind shell (opens a listening port on the target). In Metasploit, you select an exploit module separately from the payload — this modularity lets you use the same exploit with different payloads depending on the engagement's requirements.

How do I practice exploitation safely and legally as a beginner?

The safest legal practice path for beginners: download VirtualBox or VMware (free) and install Kali Linux as your attack VM. Download Metasploitable 2 as your target VM — it is intentionally vulnerable to dozens of techniques. Connect both on a host-only network (no internet exposure). Practice the full Metasploit workflow: scanning with db_nmap, searching for applicable exploits, configuring and running them, establishing Meterpreter sessions, running post-exploitation commands. Document every step as if writing a professional pentest report. TryHackMe and HackTheBox provide guided lab environments with exploitation challenges for when you want structured difficulty progression without managing your own VMs.

Which certifications test exploitation skills for Indian cybersecurity professionals?

OSCP (Offensive Security Certified Professional) is the most respected penetration testing certification in India and globally — it requires passing a 24-hour live hacking exam on a network of real machines, with manual exploitation (no automated scanners allowed for the scoring targets). PNPT (Practical Network Penetration Tester) from TCM Security is an excellent, more affordable alternative with a real-world style assessment. eJPT (eLearnSecurity Junior Penetration Tester) is the recommended starting point before OSCP. CEH tests exploitation knowledge in its theoretical exam but does not require hands-on demonstration. Indian security consultancies and global firms like KPMG and Deloitte strongly prefer OSCP over purely theoretical certifications for penetration testing roles.

A

ABC Trainings Team

Expert insights on engineering, design, and technology careers from India's trusted CAD & IT training institute with 11 years of experience and 2000+ trained professionals.