๐งฐ Introduction to Metasploit Framework (MSF)
๐ What is Metasploit?
Metasploit Project: Ruby-based penetration testing framework
Offers tools for:
Writing & testing exploits
Payload generation
Network enumeration
Post-exploitation
Evading detection
๐ง Two Versions of Metasploit
Metasploit Framework
Open Source, CLI (msfconsole), modular, community-driven
Metasploit Pro
GUI, Paid, Enterprise-focused: adds features like Nexpose integration, phishing, session mgmt
๐ ๏ธ Metasploit Pro - Capabilities
Infiltrate
Collect Data
Remediate
Manual Exploits
Import/Scan Data
Bruteforce, Credential Reuse
AV/IPS Evasion
Discovery/Nexpose
Persistent Sessions, Session Mgmt
Phishing Wizard
Evidence Collection
Reporting, Export, Task Chains
๐ฅ๏ธ msfconsole - The Interface
Command-line UI for the Framework
Most complete & only supported way to access all Metasploit features
โ msfconsole Perks
Tab completion
External command execution (
!ping
,!whoami
)Modular control: payloads, exploits, jobs, sessions
Stable and widely adopted by professionals
โ๏ธ Metasploit Framework Architecture
๐๏ธ Located at:
๐ Key Folders:
data/
Templates, files, wordlists, etc.
lib/
Core Metasploit libraries
documentation/
Technical docs
modules/
All exploits, payloads, auxiliary, etc.
plugins/
Extend msfconsole with more features (e.g. Nexpose, sqlmap)
scripts/
Used with Meterpreter & automation
tools/
External tools: module dev, payload gen, memory dump, recon
๐ฆ Modules Folder
auxiliary/
Scanners, fuzzers, sniffers
encoders/
Obfuscate payloads to bypass AV
evasion/
Anti-AV techniques
exploits/
Ready-to-use attack modules
nops/
No-operation padding instructions
payloads/
Reverse shells, bind shells, stagers
post/
Post-exploitation tools
๐ Plugins Folder
Used to extend Metasploit functionality during pentests
๐ Examples:
nessus.rb
โ Integrate with Nessusopenvas.rb
โ OpenVAS pluginsqlmap.rb
โ Web app SQL injectionsession_tagger.rb
โ Tag active sessions
๐งพ Scripts Folder
Used for:
Automating Meterpreter tasks
Resource scripts for batch command execution
๐งช Tools Folder
Command-line utilities for:
Payload creation
Exploit testing
Recon
Password tools
Last updated