This article is a comprehensive tutorial on Metasploit Framework as part of a 180-day Kali Linux training course, specifically Day 10. It covers the core components of Metasploit—msfconsole navigation, module architecture, exploit execution, and post-exploitation—with hands-on exercises against Metasploitable 2, an intentionally vulnerable VM. The article demonstrates how Metasploit bridges the gap between identifying vulnerabilities and actually exploiting them, positioning it as the standard tool used by professional penetration testers to translate reconnaissance intelligence into authenticated system access.
- Metasploit's role in the attack chainMetasploit Framework sits at Step 3 (exploitation) in the penetration testing attack chain, following reconnaissance tools like Nmap and theHarvester. It is described as an end-to-end platform containing over 2,200 exploit modules covering Windows, Linux, macOS, network devices, and web applications, with dedicated modules for post-exploitation, pivoting, and persistence—not simply an exploit launcher.
- Six distinct module types architectureMetasploit organizes functionality into six module types: exploit/ (leverages vulnerabilities with payloads), auxiliary/ (scanners and brute forcers without payloads), payload/ (code executed after exploit success), post/ (runs after shell establishment for privilege escalation and credential harvesting), encoder/ (transforms payloads to avoid detection), and evasion/ (bypasses AV/EDR products). Understanding which type to use in any scenario is foundational to the platform.
- vsftpd 2.3.4 backdoor exploitation walkthroughThe article provides a step-by-step exploit sequence against Metasploitable 2: ping the target, launch msfconsole, search and load the exploit/unix/ftp/vsftpd_234_backdoor module, set RHOSTS to the target IP, and run the exploit. This delivers root access (uid=0) in under 30 seconds by exploiting CVE-2011-2523, a real backdoor inserted into vsftpd source code in 2011 that existed in production deployments.
- Meterpreter session capabilities and advantagesMeterpreter is presented as the advanced payload of choice for professional penetration testing because it runs entirely in memory (never writes to disk), encrypts communications, and provides a rich built-in command set for post-exploitation without requiring additional tools. Core commands include sysinfo (OS details), getuid (current privileges), hashdump (password hashes), download/upload (file transfer), and ps (process listing).
- msfconsole navigation and command syntaxThe article documents essential msfconsole commands including search (by keyword, CVE, platform, type), use (load module), show options (display settings), set (configure parameters), info (module details), run/exploit (launch), sessions management, and background. Tab completion is emphasized as essential for efficiency—typing a partial module path and pressing Tab twice auto-completes and lists options.
- Auxiliary modules for reconnaissance without exploitationAuxiliary modules enable port scanning, service enumeration, brute forcing, and vulnerability verification without payloads or creating sessions. The article demonstrates three examples: auxiliary/scanner/portscan/tcp (enumerate open ports), auxiliary/scanner/ssh/ssh_version (identify SSH versions), and auxiliary/scanner/smb/smb_version (enumerate SMB details), establishing these as the standard approach for the enumeration phase of professional assessments.
- Professional use cases versus script kiddie approachThe article argues that understanding Metasploit's architecture deeply—knowing when to use exploits versus manual PoCs versus encoders—separates professionals from script kiddies. Metasploit is the right choice when speed, documentation, and reliability matter (covering 90% of authorized penetration tests), but manual exploitation becomes important for EDR evasion, deep vulnerability understanding, or when no module exists.
- Legal authorization and lab isolation requirementsThe article emphasizes that Metasploit use is legal only with explicit written authorization on owned or authorized systems, violating the Computer Misuse Act and CFAA otherwise. Metasploitable 2 must always run on a host-only or isolated network—never internet-connected—because its vulnerabilities are real and exploitable. All exercises target this isolated lab environment, never production systems.
Bottom line: Metasploit Framework is the industry-standard penetration testing platform that transforms reconnaissance intelligence into authenticated access through a consistent module architecture (exploits, payloads, post-exploitation modules); mastering msfconsole navigation and module selection allows penetration testers to exploit identified vulnerabilities and establish Meterpreter sessions in minutes. Understanding when to use Metasploit's built-in modules versus manual exploitation, combined with st
🖥️ KALI LINUX COURSE
FREE
Part of the 180-Day Kali Linux Mastery Course — the most complete free Kali training online
🎯 What You’ll Master in Day 10
⏱️ 26 min read · 3 hands-on exercises
📊 Have you used Metasploit before?
📋 What You’ll Master in Day 10 — Metasploit Tutorial
- What Is Metasploit Framework and How It Fits the Attack Chain
- msfconsole Basics — Navigation, Help and Essential Commands
- The Module Architecture — Exploits, Auxiliaries, Payloads, Post
- Your First Exploit — vsftpd 2.3.4 Against Metasploitable
- Meterpreter — The Advanced Shell That Stays in Memory
- Auxiliary Modules — Scanning and Enumeration Without Exploiting
- Frequently Asked Questions
Yesterday on Day 9 we used theHarvester for passive OSINT reconnaissance, building a complete intelligence picture of a target from public sources. Today we shift from intelligence gathering to active exploitation. Metasploit Framework is what professional penetration testers reach for when they have identified a vulnerable service and need to demonstrate real impact — and it lives in the 180-Day Kali Linux Mastery Course as one of the most important tool days in the entire first month.
What Is Metasploit Framework and How It Fits the Attack Chain
Metasploit Framework (MSF) is an open-source penetration testing platform originally created by HD Moore in 2003 and now maintained by Rapid7. It contains over 2,200 exploit modules covering vulnerabilities across Windows, Linux, macOS, network devices, web applications, and more. Every module is purpose-built, well-documented, and follows a consistent interface — meaning once you learn to use one exploit, you know how to use all of them.
In the attack chain context, Metasploit sits at Step 3 — exploitation. You use reconnaissance tools like Nmap and theHarvester to identify targets and services, then Metasploit to exploit the identified vulnerability and gain initial access. Everything that follows — post-exploitation, pivoting, persistence — also has dedicated Metasploit modules to support it. It is truly an end-to-end platform, not just an exploit launcher.
⏱️ Time: 2 minutes · No tools required
Before running a single Metasploit command, think through this question to build the right mental model:
They could:
A) Manually write exploit code from scratch
B) Download a PoC from Exploit-DB and adapt it
C) Use the Metasploit module for vsftpd_234_backdoor
Question: When is C the right choice, and when would a professional
prefer A or B? What are the trade-offs of each approach in terms of:
– Speed and efficiency
– Detection by EDR/AV solutions
– Documentation and reproducibility
– Learning depth vs operational effectiveness
📸 Write your answer and share it in #day10-mindset on Discord. Tag #metasploitday10
🧠 QUICK CHECK — Section 1
msfconsole Basics — Navigation, Help and Essential Commands
msfconsole is the primary Metasploit interface. It is a command-line console with tab-completion, command history, and a context-sensitive help system. Learning the core navigation commands takes about ten minutes — after that, the interface gets out of your way and lets you focus on the work.
use exploit/unix/ then Tab twice to see all unix exploits. This is far faster than typing full module paths and essential for efficient workflow.The Module Architecture — Exploits, Auxiliaries, Payloads, Post
Every piece of functionality in Metasploit is packaged as a module. There are six module types and understanding what each does tells you exactly which type to reach for in any given situation.
🧠 QUICK CHECK — Section 3
Your First Exploit — vsftpd 2.3.4 Against Metasploitable
Metasploitable 2 is an intentionally vulnerable Linux VM designed specifically for Metasploit practice. It runs multiple vulnerable services — including vsftpd 2.3.4, which contains a backdoor deliberately inserted by an attacker who compromised the vsftpd source code in 2011. This makes it a safe, legal, and reliable target for your first Metasploit exploit in your home lab.
⏱️ Time: 15 minutes · Target: Metasploitable 2 on your host-only network
Follow the exploit sequence above exactly. The goal is not just to run the commands — it is to understand what each step does and why the vsftpd backdoor exists.
📸 Screenshot your id command showing uid=0(root) and share in #day10-exercise on Discord.
Meterpreter — The Advanced Shell That Stays in Memory
The vsftpd exploit gives you a basic command shell. For professional penetration testing, Meterpreter is the payload of choice — it provides a far richer post-exploitation environment, runs entirely in memory (never writes to disk), encrypts its communications, and supports dozens of built-in post-exploitation commands without requiring additional tools on the target.
Auxiliary Modules — Scanning and Enumeration Without Exploiting
Auxiliary modules are often overlooked in favour of exploits, but they are among the most useful modules in Metasploit for professional assessments. They handle port scanning, service enumeration, brute forcing, vulnerability verification, and protocol fuzzing — all without needing a payload and without creating a session on the target.
⏱️ Time: 20 minutes · Target: Metasploitable 2 on your host-only network
Use auxiliary modules to enumerate the Metasploitable target without exploiting anything. This is the style of module used during the reconnaissance phase of a professional assessment.
📸 Screenshot your port scanner output listing open services and share in #day10-auxiliary on Discord. Tag #metasploitday10
🧠 QUICK CHECK — Section 6
📋 Commands Used Today — Day 10 Reference Card
🏆 Mark Day 10 as Complete
You ran your first Metasploit exploit and caught your first shell. Lock it in.
❓ Frequently Asked Questions – Metasploit Tutorial Kali Linux 2026
What is Metasploit Framework?
What is msfconsole?
msfconsole in a Kali terminal. It provides tab-completion, command history, and context-sensitive help. All module loading, configuration, execution, and session management happens from within msfconsole.What is the difference between an exploit and a payload in Metasploit?
What is Metasploitable 2 and where do I get it?
Is Metasploit legal to use?
What comes after Metasploit in this course?
Day 9: theHarvester Tutorial
Day 11: Aircrack-ng Tutorial
📚 Further Reading
- Metasploit Tutorial for Beginners 2026 — The standalone beginner guide covering Metasploit from first principles — complements this course day with additional walkthroughs and CTF-style exercises.
- Day 9: theHarvester Tutorial — The reconnaissance step that precedes today’s exploitation — using public OSINT to identify targets before running Metasploit modules.
- Ethical Hacking: Exploitation Hub — The complete exploitation category covering manual and automated exploitation techniques beyond Metasploit — the territory of Days 22–30 in the EH course.
- Metasploit Documentation — Official Rapid7 Docs — The authoritative reference for all msfconsole commands, module writing, payload generation, and the complete Meterpreter command reference.
- OWASP Vulnerable Applications Directory — A curated list of intentionally vulnerable applications for practising Metasploit and other techniques beyond Metasploitable 2.

