payload_generate
Generate a Metasploit payload using msfvenom with customizable options like callback IP, port, format, and encoding. Returns base64 content for small payloads.
Instructions
Generate a payload using msfvenom.
Args: lhost: Your IP address for callback lport: Port for callback (default: 4444) template: Use a predefined template (e.g., 'windows_meterpreter_reverse_tcp') payload: Metasploit payload string (ignored if template specified) format_type: Output format - exe, elf, raw, ps1, etc. encoder: Encoder to use (e.g., 'x86/shikata_ga_nai') iterations: Number of encoding iterations bad_chars: Characters to avoid in payload (e.g., '\x00\x0a\x0d') nops: Number of NOP sled bytes to prepend (default: 0) output_name: Custom output filename (auto-generated if empty)
Returns: Generated payload info including base64 content for small payloads
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nops | No | ||
| lhost | Yes | ||
| lport | No | ||
| encoder | No | ||
| payload | No | windows/meterpreter/reverse_tcp | |
| template | No | ||
| bad_chars | No | ||
| iterations | No | ||
| format_type | No | exe | |
| output_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |