Metasploit
termsecurityhackingvendors & products
Kept in this browser · My desk
Stands for: Metasploit Framework (open source, BSD licence) and Metasploit Pro (Rapid7)
The open-source exploitation framework H. D. Moore started in 2003, rewritten from Perl into Ruby in 2007 and owned by Rapid7 since 2009, which its maintainers call the world's most used penetration testing framework: free as the Metasploit Framework under a BSD (Berkeley Software Distribution) licence, commercial as Metasploit Pro.
Moore published the first public version, written in Perl, on 6 October 2003; version 2.0 followed in April 2004 and the from-scratch Ruby rewrite, 3.0, on 27 March 2007. In October 2009 Rapid7 acquired the project's rights, trademarks and domains, made Moore its chief security officer and undertook to keep the framework open source under the BSD licence, which it still is. Everything in it is a module: exploits, which use a vulnerability to run code on a target; payloads, the code that then runs; auxiliary modules, which scan and gather without exploiting anything; post modules for work after access is gained; and encoders, no-operation (NOP) generators and evasion modules. Its best-known payload, Meterpreter, has been part of it since 2004. Rapid7's commercial editions came and went around the free core: Express from 2010 and Community from 2011 have both been retired, and Metasploit Pro remains on sale.
Why it was built. Moore described the origin twice. In 2006 he said that 2003 was a doldrum, with many people who had published security information moving on and private companies starting to hoard it, and that Metasploit was about creating a framework for developing new exploits quickly, cutting through the boilerplate. In 2009 he wrote that he had created it to publish security information to those who needed it most, the security professionals in the field; in another interview he recalled that it began as a curses-based network game. The first public release, announced on 6 October 2003 as the Exploit Framework, ran its command-line interface on Unix-like systems and on Windows under ActiveState Perl. Version 2.0, in April 2004, had 18 exploits and 27 payloads, three user interfaces and a multi-stage payload system, still in Perl. Version 3.0, on 27 March 2007, was a from-scratch rewrite in Ruby that took nearly two years and more than 100,000 lines of code, shipping with 177 exploits, 104 payloads, 17 encoders, 3 no-operation (NOP) modules and 30 auxiliary modules. The licence followed the code: the developers assigned their copyrights to Metasploit LLC, versions 3.0 and 3.1 carried a commercial-style end-user licence, and in 2008 Moore relicensed the whole codebase under the three-clause BSD (Berkeley Software Distribution) licence with release 3.2.
How it is put together. The documentation organizes everything as modules. Exploit modules use a vulnerability so that the framework can run arbitrary code on the target; payloads are the code that runs, from opening a shell to creating a user; auxiliary modules do data gathering or administrative tasks without exploiting anything; post modules work on a machine already compromised. Payloads come in three forms. Singles are self-contained, fire and forget. Stagers are small stubs whose only job is to set up a communication channel and hand execution to the next stage, which keeps the first payload small and separates the transport from the final code. Stages can then be as large as needed, and written in a higher-level language such as C. Encoders rewrite a payload so that it avoids the bad characters a particular target will not accept, and the documentation says plainly that encoding is not really meant as a way to evade antivirus. Every exploit module carries a rank, from modules that should never crash the service to ones that are unstable enough to amount to a denial of service, so that a tester can weigh the risk to the target. The work is driven from msfconsole, the tab-completing console; msfvenom, which on 8 June 2015 replaced the older separate payload generator and encoder, builds payloads; and an optional PostgreSQL database records the hosts, services and credentials an engagement turns up.
Meterpreter, as a concept. Meterpreter is the framework's advanced payload, part of it since 2004 and first written in C by Matt Miller, known as skape, with later implementations in PHP, Python and Java. It runs in memory: its core library is loaded as shellcode using the reflective dynamic-link library (DLL) injection technique developed by Stephen Fewer, and extensions add the commands an operator uses. The documentation calls the compromised side the server and the controlling Ruby side the client, whichever way the network connection runs. It became the archetype of the post-exploitation agent, which is also why defensive tooling learned to recognize it so well.
Owners and editions. On 21 October 2009 Moore announced that Rapid7 had acquired Metasploit and that he would become Rapid7's chief security officer and Metasploit's chief architect, with Rapid7 committed to keeping the project open source with no change of licence. The next day he explained what had been bought: his own and the LLC's assets, including the rights to the 3.x code, the trademarks and domains and the training material. Metasploit Express arrived in May 2010 as a commercial product built on exactly the same framework code; Metasploit Community followed in 2011 as a packaged edition. Rapid7 ended Express on 4 June 2019, a year after announcing it, to concentrate on Metasploit Pro, and ended the availability of Community in July 2019, noting that the framework was by then packaged by Kali Linux, Parrot OS and Rapid7's own nightly installers. As read on 8 November 2026, Rapid7 sells Metasploit Pro for vulnerability validation, phishing and social engineering campaigns and post-exploitation, with access to more than 4,000 exploit modules through the framework and integration with its InsightVM vulnerability management product; the Metasploit Framework itself remains open source, described by its site as a collaboration between the open-source community and Rapid7.
Testing, teaching, and the disclosure argument. The 3.0 announcement listed its users: penetration testers, system administrators verifying patch installations, vendors running regression tests and researchers. Moore's own argument was that a firm hired to assess a network should prove its findings are real rather than hand over a list of bugs, and that a tool like Metasploit verifies a finding by showing whether the exploit works; he also warned that employers may forbid such tools. Its documentation tells users to do their homework before running any module: read what the vulnerability is and what its side effects are, since a failed memory-corruption exploit can crash the service, and rehearse against a recreated environment. Kali Linux packages it, and OffSec's free Metasploit Unleashed course is a standard way in. The argument about it has never settled. Moore's policy in 2010 was that any vulnerability in the public domain, meaning exploited in the wild or with details or a patch already published, was fair game for a module, even if no patch existed, because users should be able to test their defences against every public threat; in 2006 he argued that partial disclosure never works, because information given to anybody has to be given to everybody. The other side was put by Microsoft during his Month of Browser Bugs that year: that reporting vulnerabilities directly to the vendor serves everyone's interests. Defenders, meanwhile, use the openness: because the modules and Meterpreter are public and documented, they are easy to detect: the open Emerging Threats rule set for intrusion detection carries dozens of signatures named for Metasploit and Meterpreter, and Moore described in 2010 how Rapid7's own vulnerability scanner used Metasploit's exploit information to prioritize which flaws to fix.
Also known as: metasploit framework, msf, msfconsole, msfvenom, meterpreter, metasploit pro, metasploit express, metasploit community, exploit framework
Sources
- H D Moore, 'MetaSploit Exploit Framework v1.0', pen-test mailing list, 6 October 2003 (read 2026-11-08): the first public version; the CLI on Unix-like platforms and on Windows under ActiveState Perl
- H D Moore, 'Metasploit Framework 2.0 Released!', Bugtraq, 7 April 2004 (read 2026-11-08): 18 exploits and 27 payloads; three UIs; multi-stage payloads; Perl
- H D Moore, 'Metasploit Framework 3.0 RELEASED!', Bugtraq, 27 March 2007 (read 2026-11-08): a from-scratch Ruby rewrite of nearly two years and over 100,000 lines; 177 exploits, 104 payloads, 17 encoders, 3 nop and 30 auxiliary modules; its users
- HD Moore, 'Metasploit Rising', Metasploit framework list, 21 October 2009 (read 2026-11-08): acquired by Rapid7; Moore becomes Rapid7's chief security officer and chief architect of Metasploit; no plans to change the licence
- HD Moore, reply in the same thread, 22 October 2009 (read 2026-11-08): Metasploit LLC and copyright assignment; the 3.0 and 3.1 EULA; relicensing under the 3-clause BSD licence with 3.2; what Rapid7 acquired
- Metasploit Documentation, page 'Running modules', reached from the documentation index (read 2026-11-08): the module types auxiliary, exploit, payload and post
- Metasploit Documentation, page 'How payloads work', reached from the documentation index (read 2026-11-08): singles, stagers and stages
- Metasploit Documentation, Meterpreter (read 2026-11-08): part of Metasploit since 2004, originally written in C by Matt Miller; Reflective DLL Injection by Stephen Fewer; server and client naming
- Metasploit Documentation, Exploit Ranking (read 2026-11-08): every exploit module ranked by its potential impact on the target
- Metasploit Documentation, Database Support (read 2026-11-08): hosts, services and credentials stored in a database set up with msfdb
- Metasploit Documentation, page 'How to use msfvenom', reached from the documentation index (read 2026-11-08): replaced msfpayload and msfencode on 8 June 2015; encoding is not really meant as an antivirus evasion solution
- Rapid7, 'End of Life for Metasploit Express Edition', 4 June 2018 (read 2026-11-08): end of life on 4 June 2019, to focus on Metasploit Pro
- Rapid7, 'End of Sale Announced for Metasploit Community', 18 July 2019 (read 2026-11-08): first released in 2011; the framework packaged by Kali Linux, Parrot OS and Rapid7's nightly installers
- Rapid7, Metasploit Pro product page (read 2026-11-08): validation, phishing and social engineering, post-exploitation, over 4,000 exploit modules via the framework, InsightVM integration
- Metasploit home page (read 2026-11-08): 'The world's most used penetration testing framework'; a collaboration between the open source community and Rapid7
- Kali Linux tools, metasploit-framework (read 2026-11-08): packaged by Kali; Metasploit Unleashed, a free online course by OffSec
- Threatpost, 'Q&A: HD Moore on Metasploit, Disclosure and Ethics', 20 May 2010 (read 2026-11-08): the curses-based game origin; Metasploit Express on the same framework code; any vulnerability in the public domain is fair game; NeXpose prioritisation
- InfoWorld, 'The mind of HD Moore', 31 July 2006 (read 2026-11-08): the 2003 doldrum; proving findings real; partial disclosure never works
- The Register, 'Daily flaws ratchet up debate', 17 July 2006 (read 2026-11-08): the Month of Browser Bugs and Microsoft's statement encouraging responsible disclosure
- Proofpoint Emerging Threats open rules for Suricata 7.0.3, attack_response set (read 2026-11-08): signatures named 'ET ATTACK_RESPONSE Metasploit Meterpreter', 38 active alert lines across the six rule files checked