Metasploit: a framework, not a permission slip
Metasploit organizes known checks and modules so a tester can validate a specific issue in a lab. The output that matters is still a finding and a fix.
Diagram
From an advisory to a note without a session
Step 1 of 4
Evidence
You already have a version, a banner, or a scanner match.
# Evidence # You already have a version, a banner, or a scanner # match.
The example on the open step is one illustration, or the fix you can paste into an application you own.
What the framework actually is
Metasploit is a console and a library of modules. Some modules check whether a condition seems present. Some go further and, on a host you are allowed to test, demonstrate that the condition is real. Auxiliary modules talk to services. Exploit modules are the ones with consequences. Payloads are what would run if a module succeeded. You do not need to memorize that taxonomy to use the tool safely. You need to know which module you are about to run, on which host, and what it is allowed to do.
The framework does not decide scope. A module that “works” against a machine outside the written assets is an incident you caused. In a lab you own, the same module is a way to see a known bug clearly enough to write the patch recommendation.
How professionals use it
Pick the issue from evidence you already have: a scanner match, a version banner, a vendor advisory. Choose the smallest module that can confirm or deny that issue. Run it against the lab host named in the scope. Record whether it confirmed the issue, and stop. A session on a lab host is a demonstration, not a souvenir. Close it. Write what the owner should change so the condition is gone.
Modules go stale. A check that fails does not prove the host is safe, and a check that succeeds against an old lab image does not prove production is vulnerable. Pair the result with the version you actually tested.
What belongs in the report
The advisory or the vulnerability identifier, the asset, the condition that made the module apply, the impact in the owner’s language, and the fix from the vendor or your own design. A transcript of the console is an appendix at most. It is not the finding.
If you are learning the console, do it on a virtual machine you can revert, on a network that does not route to anything you care about. Snapshot first. The lesson is the mapping from “module confirmed this” to “here is the change,” not a collection of sessions.
Check yourself
Recognition and the fix. Nothing here is a procedure.
A module confirms an issue on a lab host in the scope. What do you keep?
Go deeper
Specific techniques, exercises, and glossary cards for this topic.
Exercises
- 01Terminal mission: The .htaccess that made JPEGs run as PHPAn .htaccess file in the uploads folder tells Apache to run .jpg files as PHP. Find it, the uploaded “image” that abused it, and the commands passed in its query string.
- 02Terminal mission: Sort a shared upload folder by rule tagA customer upload share was abused. Scan it with a tagged rule set, print the tags, and count what kind of malicious content is there before deciding who to call first.