Join our Newsletter — 33% off our NHI Course
Home› Guides› Metasploit for Beginners: What the Testing Toolkit Does…
Guide Offensive Security & Testing

Metasploit for Beginners: What the Testing Toolkit Does and How to Practise Legally

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 12 min read
On this page

Metasploit is a free toolkit that security testers use to prove a known weakness can really be used.

This guide is for students, newcomers to IT and anyone who has met the name on a course or in a test report. You do not need to use it to be affected: attackers use the same toolkit, so if your business hires testers or runs computers, it helps to know what it is.

This is an independent guide from NHI Mgmt Group, based on Metasploit's public documentation as of November 2026. It is not sponsored or reviewed by Rapid7. Product features change, so confirm details against the current documentation.

In short

  • Metasploit is a free, open source toolkit full of ready-made tests for known weak spots.
  • Testers use it to show that a weak spot is real, so it gets fixed first.
  • Using it on a computer you do not have permission to test is likely to be a crime.
  • Practise only on your own lab, such as a practice machine built to be weak, kept off any shared network.

What you will learn

  • Explain what Metasploit is in one sentence.
  • Spot the difference between an allowed test and an attack.
  • Check the safety notes a test module carries before it is used.
  • Ask a tester the right questions about how they will use it.
Weak spot (vulnerability)
a mistake in software or settings that someone could take advantage of.
Ready-made test (module)
one small piece of Metasploit that does one job, such as checking for one weak spot.
Written permission (authorisation)
a signed agreement from the owner saying what may be tested, and when.

What is Metasploit?

Think of a car mechanic's toolbox that comes with a manual of known faults for each model. The mechanic looks up the car, finds the likely fault and tests for it.

Metasploit works the same way for computers. It holds thousands of small, ready-made tests called modules. Each one is built for a known weak spot, called a vulnerability, in a certain program. A tester picks the module that matches the program in front of them.

Some modules only look and report. Others try to use the weak spot. A piece of code that uses a weak spot is called an exploit. If an exploit works, the tester can show the owner exactly what an attacker could do.

The free version is called the Metasploit Framework. It is open source, which means anyone can read and share its code, and the project's code is published by the security company Rapid7.[2] Rapid7 also sells a paid version with extra features.[1]

Where the comparison stops working: a mechanic only fixes. Metasploit only proves the fault is there, and someone else has to fix it. And the same toolbox in the wrong hands is used to break in, not to help.

Why does it matter?

A list of possible weak spots is easy to ignore. Proof that one really works is much harder to ignore, so it tends to get fixed sooner.

Criminals use it too. A US government warning about one ransomware group said its members used Metasploit to avoid being spotted.[8]

If you are a student or learning to hack

What could happen: you try a module on a school, work or friend's system "just to see", and break the law.

Check this: only test machines you own or have written permission to test.

Next: Capture the Flag and Hacking Labs for Beginners

If you hire testers for your business

What could happen: a careless test crashes a system your customers rely on.

Check this: ask which systems are in scope and how they avoid tests that can crash things.

Next: Buying a Penetration Test for Beginners

If you are new to a security team

What could happen: Metasploit is used on your network and nobody notices, test or not.

Check this: ask whether your alerts were checked during the last test.

Next: Purple Teaming for Beginners

What does it look like?

Each module comes with an information card. Here is a made-up one, in plain words. It shows the safety notes that new modules must include.[4]

Example only. All values are made up.

Module:       Example Web Shop Flaw (FAKE)
Affects:      ExampleShop versions 0.0 to 0.9   (1)
Check:        available                        (2)
Stability:    crash safe                       (3)
Side effects: leaves a file on the target      (4)
Reliability:  may fail on the first attempt    (5)
  1. Which program and versions the weak spot is in. In a real file, this line would name an actual product.
  2. A check can test for the weak spot without fully using it.
  3. Whether the module is expected to crash the program or computer.
  4. What it leaves behind, so the tester knows what to clean up.
  5. How likely it is to work, so nobody is surprised.

Why this is risky: someone who skips the card may run a module that crashes a live system or leaves files behind. The documentation warns that failed exploits can crash a service, and some changes may become permanent.[3]

The safer way: read the card, run the check first, and agree any risky test with the owner. The documentation suggests rebuilding a copy of the target and testing there first.[3]

How does it work?

Here is how Metasploit fits into an allowed test, in plain words. This guide does not show commands. Those belong in a proper course and a lab.

  1. Permission first. The owner signs a written agreement that says which systems may be tested, when, and what is off limits. This plan is often called the scope.[6]
  2. Find the weak spots. The tester learns which programs and versions are running, often using a scanner (a tool that checks for known problems).
  3. Pick a module. They choose the module made for that program and read its information card.
  4. Check, then prove. Many modules can run a check first. The documentation notes that when Metasploit marks something as vulnerable, it actually used the bug, so even a check needs permission.[3]
  5. Clean up and report. The tester removes anything the test left behind and writes down what worked, so the owner can fix it.
Diagram titled How Metasploit fits into an allowed test, with five numbered boxes joined by arrows. 1 Written permission: the owner agrees what may be tested. 2 Find weak spots: which programs and versions are running. 3 Pick a module: read its safety card. 4 Check, then prove: show the weak spot is real. 5 Clean up and report: the owner fixes it. A green bar reads: No permission, no test.
Figure 1. Where Metasploit fits in an allowed test. Like a mechanic's manual of known faults, it helps a tester prove a known problem is really there.

Learners practise on machines built to be weak. Rapid7 publishes one called Metasploitable 2. Its documentation describes it as an intentionally vulnerable virtual machine (a pretend computer that runs inside your own computer) for testing common weak spots.[5] Because it is weak on purpose, keep it on a private network inside your own computer, not on a home or work network.

Before and after diagram titled Where you may practise. Left panel, labelled Not allowed: a school network, an employer's systems without written permission, a friend's website or other people's computers online. These are likely to be a crime. Right panel, labelled Allowed: your own home lab with a practice machine built to be weak, kept on a private network inside your computer, plus approved training sites and tests with signed permission from the owner.
Figure 2. Where you may practise. The tool is the same; permission is what makes a test legal.

A worked example

Jonah Yilmaz is studying for a cyber security course. His tutor, Zola Mbeki, mentions Metasploit in a lesson. Jonah is keen to try it.

His first idea is to test the college Wi-Fi. Zola stops him. She explains that in the UK, getting into a computer without permission can be a crime. The law is called the Computer Misuse Act.[7] Being curious is not the same as being allowed.

Instead, Jonah builds a small home lab. He installs a free program that runs pretend computers on his laptop. He adds Metasploitable 2, the practice machine built to be weak.[5] He sets the lab so the practice machine can talk only to his other lab machine, not to his home network.

Following his course notes, Jonah finds an old program on the practice machine. He reads the module's information card. It warns that the module leaves a file behind. He runs the check first, then the test. It works.

Jonah writes it up like a real tester would. What was weak, how he proved it, what an attacker could do, and how to fix it. Then he deletes the file the test left behind.

A month later, Jonah's part-time job asks if anyone can "have a look" at their shop's website. Jonah says he would need written permission from the owner and a clear list of what to test. He suggests they talk to a qualified testing company instead. Zola says that answer is exactly what an employer wants to hear.

Myths and mistakes

What people thinkWhat is true
Metasploit is a hacking tool, so it is illegal.The tool is legal to download and use on your own systems. Using it on someone else's without permission is the problem.
A check is harmless, so it needs no permission.A check still touches the target, and some checks use the bug to prove it. Treat it as part of the test.
If Metasploit finds nothing, the system is safe.It only tests known weak spots it has modules for. A clean result is not proof that nothing is wrong.
Running a module is the whole job.The value is in the report and the fix. A test nobody acts on changes nothing.
A practice machine is fine on my home network.It is weak on purpose. Keep it on a private lab network inside your computer.

What can I do this week?

  • Read the beginner pages of the Metasploit help site, such as the page on using a module with care.
  • Plan a home lab on paper. Use one machine to test from and one practice machine, with no link to your home network.
  • Try a legal training site or capture the flag game instead of any real system.
  • If you hire testers, ask how they pick tests that are safe for live systems.
  • If you work in security, ask whether your alerts would spot Metasploit being used.

Checklist

  • I can explain what Metasploit is in one sentence.
  • I only test systems I own or have written permission to test.
  • My practice machines sit on a private lab network.
  • I read a module's information card before using it.
  • I run checks first and treat them as part of the test.
  • I clean up anything a test leaves behind.
  • I write down what I found and how to fix it.

Common questions

Is Metasploit legal to download?

Yes, in general. It is free, open source software that security teams use every day. What matters is where you point it. Testing a system you do not own and have no written permission to test is likely to break computer misuse laws in many countries.

Is Metasploit free?

The Metasploit Framework is free and open source, released under a BSD-style licence. Rapid7, which publishes the project, also offers a paid product called Metasploit Pro with extra features. Learners usually start with the free Framework in a home lab.

Do I need to know how to code to use it?

Not at first. Many learners use ready-made modules before they write any code. To judge whether a module is safe to run, it helps to learn how networks, computers and simple scripts work.

Where does Metasploit come from on my computer?

You can install it yourself from the official site. It also comes ready installed on some testing systems, such as Kali Linux, a version of Linux packed with security tools. Get it only from official sources, so you know what you are running.

Will knowing Metasploit get me a job?

It helps, but on its own it is not enough. Employers want people who understand networks, write clear reports and work within the rules. Showing that you practise legally and explain findings well counts as much as knowing the tool.

Where next?

Ready for the detail? Read the practitioner guide: Metasploit for Defenders Guide. It goes further into module safety ratings, running the toolkit securely in a company, and how security teams spot it being used.

Also useful:

Related NHI Mgmt Group resources: Open Source Penetration Testing Tools Landscape Guide · Penetration Test Scoping Checklist · What Does a Penetration Tester Do?

Key terms

Metasploit
A testing toolkit that uses ready-made modules to check whether known weak spots can really be used.
Vulnerability
A flaw in code, settings or design that someone could take advantage of.
Exploit code
Code that takes advantage of a specific weak spot to make a system do something it should not.
Penetration testing
An allowed test attack that tries to use weak spots the way a real attacker would.
Rules of engagement
The written agreement that sets what testers may and may not do, and when.
Kali Linux
A version of Linux built for security testing, with many testing tools already installed.

Sources and further reading

  1. Rapid7, Metasploit Documentation (home page), accessed 28 Nov 2026.
  2. Rapid7, metasploit-framework repository README (BSD-style licence), GitHub, accessed 28 Nov 2026.
  3. Rapid7, How to use a Metasploit module appropriately, Metasploit Documentation, accessed 28 Nov 2026.
  4. Rapid7, Definition of Module Reliability, Side Effects and Stability, GitHub, accessed 28 Nov 2026.
  5. Rapid7, Metasploitable 2, Rapid7 Documentation, accessed 28 Nov 2026.
  6. National Cyber Security Centre (UK), Penetration testing, accessed 28 Nov 2026.
  7. UK Government, Computer Misuse Act 1990, section 1: Unauthorised access to computer material, legislation.gov.uk, accessed 28 Nov 2026.
  8. CISA, FBI and HHS, #StopRansomware: ALPHV Blackcat, advisory first published 19 Dec 2023, updated 27 Feb 2024.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.