Create Padding

LAZY WAY:

Add NOPS (0x90) to the code:

Padding = b’0x90’*16

PROPER WAY:

Using metasploit-framework/tools/metasm_shell.rb identify the ESP value, and issue:

sub esp,HEXVAL (i.e. 0x10)

Last updated