You got a shell with Metasploit.
Metasploit is a framework full of ready-made exploits (code that abuses a known bug) and payloads (code that runs once the exploit works, like a remote shell). You load it with the msfconsole command.
| Term | Meaning |
|---|---|
| Exploit | Code that triggers a specific vulnerability |
| Payload | What runs after the exploit succeeds (e.g. a shell) |
| Module | Any loadable piece: an exploit, payload, or scanner |
| Session | An active connection to a compromised target |
Almost every module needs RHOSTS (the target). Exploits that call back to you also need LHOST (your address) so the payload knows where to connect.
| Option | Meaning |
|---|---|
| RHOSTS | Target IP address |
| RPORT | Target port |
| LHOST | Your IP, for the target to connect back to |
| PAYLOAD | Which code runs after a successful exploit |
192.168.1.30 running vsftpd 2.3.4 — a version with a known backdoor. Exploit it with Metasploit.vsftpd.show options.RHOSTS to the target address.search followed by a keyword, like the service name you found in recon.use.set OPTION value — no equals sign. The target option is RHOSTS.show options shows RHOSTS filled in, type run (or exploit — they do the same thing here).| Command | Does |
|---|---|
| search <term> | Find modules |
| use <path> | Load a module |
| show options | List required settings |
| set OPT val | Set an option |
| run / exploit | Launch the module |
| back | Unload current module |
| sessions -l | List active sessions |