evasive_payload
Generate AV-evading payloads with layered obfuscation: polymorphic encoding, encryption, template injection, and process migration. Use instead of msfvenom when detection is a concern.
Instructions
Advanced payload crafter for anti-virus evasion. Applies multiple evasion layers: polymorphic encoding (shikata_ga_nai, xor), encryption (AES256, RC4), template injection into legitimate executables (putty, plink), process migration on execution, bad character avoidance, and obfuscation padding. Use INSTEAD of msfvenom when AV evasion is needed. Use msfvenom for simple/standard payload generation. Output: saved payload file path with size, plus any msfvenom warnings about the chosen configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fmt | No | Output format. Default: exe. Options: exe, dll, python, c, powershell, raw, vba | |
| arch | No | Target architecture: x86, x64 (default), armle | |
| opts | No | Additional raw msfvenom options (e.g. '--smallest' for minimum size) | |
| lhost | Yes | Listen host IP — where the payload connects back | |
| lport | Yes | Listen port — which port the payload connects to | |
| encoder | No | Encoder name or 'auto'. Auto picks best encoder per architecture (shikata_ga_nai for x86, xor for x64) | |
| encrypt | No | Encryption layer: aes256, rc4, xor. Adds another layer of obfuscation. | |
| payload | Yes | Payload name (e.g. 'windows/x64/meterpreter/reverse_tcp', 'windows/meterpreter/reverse_https') | |
| badchars | No | Characters to avoid in shellcode (default: '\x00'). Add '\x0a\x0d' for HTTP payloads. | |
| platform | No | Target platform: windows (default), linux, android | |
| template | No | Template executable to inject into. Use 'putty', 'plink', 'notepad', or path to custom exe. | |
| obfuscate | No | Enable extra obfuscation padding to inflate encoder space and evade signature detection | |
| iterations | No | Encoding iterations for polymorphism (default: 5). Higher = better evasion but larger payload. | |
| encrypt_key | No | Custom encryption key. Random if not specified. | |
| inject_process | No | Process to migrate into on execution (e.g. 'explorer.exe', 'svchost.exe') |