> For the complete documentation index, see [llms.txt](https://eclipse-16.gitbook.io/eclipse-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eclipse-16.gitbook.io/eclipse-docs/hacking/metasploit/msfvenom.md). Agents can also search and read this documentation through its [MCP server](https://eclipse-16.gitbook.io/eclipse-docs/~gitbook/mcp).

# MSFVenom

### What is it?

`msfvenom` is a tool used to **generate and encode payloads** for exploitation. It combines `msfpayload` and `msfencode`.

{% code title="Basic syntax" %}

```
msfvenom -p <payload> LHOST=<attacker IP> LPORT=<port> -f <format> -o <output_file>
```

{% endcode %}
