> For the complete documentation index, see [llms.txt](https://n4shx.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n4shx.gitbook.io/wiki/schule/tools/metasploit.md).

# Metasploit

## Metasploit

### Zweck

Metasploit ist ein Framework zum Testen und Ausnutzen bekannter Schwachstellen.

### Wichtige Begriffe

* Exploit
* Payload
* Session
* Meterpreter
* RHOSTS
* LHOST

### Typischer Ablauf

1. Modul suchen
2. Modul auswählen
3. Optionen anzeigen
4. Ziel setzen
5. Payload prüfen
6. Exploit starten
7. Zugriff validieren

### Beispiel

```bash
msfconsole
search <service>
use <modul>
show options
set RHOSTS <IP>
run
```
