Explore our new Cybersecurity Terms Glossary, explained by our experts.
Cybersecurity Terms Glossary
Metasploit is an open-source penetration testing framework that provides a large library of exploits, payloads, and tools for testing systems against known vulnerabilities.

What Is Metasploit?
Metasploit is a framework for developing, testing, and running exploits against computer systems. It gives security professionals a consistent way to select a known vulnerability, pair it with a payload, configure the target, and launch the attack, all from one environment. It is one of the most widely used tools in penetration testing and is also studied closely by defenders, because attackers use it too.
The project was created by H. D. Moore in 2003, originally in Perl, and later rewritten in Ruby. The security company Rapid7 acquired it in 2009 and still maintains the open-source Metasploit Framework, alongside a commercial edition, Metasploit Pro, which adds automation, reporting, and a web interface.
Metasploit is built around modules, each of which performs a specific job:
| Module type | Purpose |
|---|---|
| Exploit | Code that takes advantage of a specific vulnerability |
| Payload | What runs on the target after successful exploitation, such as a command shell or Meterpreter session |
| Auxiliary | Scanners, fuzzers, brute-force tools, and other functions that do not deliver a payload |
| Post | Actions performed after access, such as gathering credentials or escalating privileges |
| Encoder and evasion | Transform payloads to avoid simple signature-based detection |
The framework contains thousands of modules, covering vulnerabilities in operating systems, web applications, network devices, databases, and industrial systems. New modules are added regularly, often shortly after a vulnerability is disclosed.
A typical workflow in the msfconsole command-line interface follows a simple pattern: search for a module, select it, set options such as the target address and port, choose a payload, and run it. Results are stored in a database, which helps testers track hosts, services, credentials, and findings across a larger engagement.
Meterpreter is Metasploit’s best-known payload. It runs in memory on the compromised system and gives the tester an interactive session for browsing files, capturing screenshots, dumping password hashes, pivoting into other networks, and loading further extensions. msfvenom generates standalone payloads in many formats, such as executables, scripts, and shellcode.
Metasploit is often used alongside other tools. A tester might discover hosts and services with Nmap, identify weaknesses with a vulnerability scanner, and then use Metasploit to confirm whether those weaknesses can actually be exploited.
For penetration testers, Metasploit turns a theoretical finding into evidence. A scanner may report that a server is missing a patch; showing that the flaw can be exploited to gain a shell is far more persuasive to management and helps prioritise remediation. The framework’s consistent structure also saves time, since testers do not have to write or adapt a separate exploit for every vulnerability.
It is a valuable learning platform too. Deliberately vulnerable environments, such as the Metasploitable virtual machines, let students practise safely, and many professional certifications and training courses include Metasploit.
Using Metasploit against systems without explicit permission is illegal. In the UK, unauthorised access and related offences fall under the Computer Misuse Act 1990. Professional engagements are always governed by a written scope, rules of engagement, and authorisation from the system owner. Even with permission, some exploits can crash services, so testers choose modules carefully and agree in advance how production systems will be handled.
Because Metasploit is freely available, it is a common tool for less sophisticated attackers, and its default behaviour is well documented. That works in defenders’ favour:
More advanced attackers tend to customise payloads or use other command-and-control frameworks, so detection should focus on behaviour, such as suspicious process injection and unusual outbound connections, rather than on tool signatures alone.
At Privia Security, our Penetration Test Services use Metasploit and other professional tools, under strict rules of engagement, to show which vulnerabilities in your environment are genuinely exploitable.
Metasploit itself is legal software, freely available and widely used by security professionals. Using it against systems you do not own or have explicit written permission to test is illegal, and in the UK can be prosecuted under the Computer Misuse Act 1990. Professional testers always work within a signed scope and rules of engagement.
Metasploit Framework is the free, open-source core, used mainly through the command line. Metasploit Pro is Rapid7’s commercial edition, adding a web interface, automated exploitation workflows, phishing campaign features, team collaboration, and reporting. Many independent testers use the Framework, while larger teams may choose Pro for its automation and reporting.
Meterpreter is an advanced Metasploit payload that runs in the memory of a compromised system and gives the tester an interactive session. It can browse files, capture credentials, take screenshots, pivot to other networks, and load extensions. Because default Meterpreter payloads are well known, most modern endpoint protection tools detect them.
Most security products detect default Metasploit payloads and common techniques easily. Attackers can customise or obfuscate payloads to evade signature-based tools, which is why behavioural detection, endpoint detection and response, and network monitoring matter. Testing your defences against Metasploit in a controlled engagement is a useful way to check what they actually catch.
You May Be Interested In These
We use a few cookies that are needed to make this website work, and they are always on. We would also like to set analytics cookies, to see which pages are useful; functional cookies, so that our live chat works; and advertising cookies, to measure our campaigns. We will not set any of those until you say yes, and you can change your mind at any time from the Cookie Settings link in the footer.
Choose the cookies you are happy for us to use. Strictly necessary cookies are always on; everything else is off until you turn it on.
These cookies keep the website working: they hold your security checks, your form submissions and the choice you make here. The site cannot run without them, so they are always on.
These let our live chat open and remember your conversation, and let the newsletter sign-up work. Switch them off and the chat window will not appear.
These tell us which pages are read and how people find us, so that we can improve the site. The reports are about groups of visitors, never about you personally.
These let us measure our advertising and show you our adverts on other websites, such as LinkedIn, Google and Meta. Switch them off and you will still see adverts, but they will be less relevant.