always prepend a stack adjustment when creating an exe
git-svn-id: file:///home/svn/framework3/trunk@4144 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7573d2f1ee
commit
ab40a9cbae
|
@ -76,6 +76,9 @@ if (cmd =~ /^(p|r|c|j|x)/)
|
|||
|
||||
arch = payload.arch
|
||||
plat = payload.platform.platforms
|
||||
|
||||
# Automatically prepend stack adjustment
|
||||
buf = Rex::Arch.adjust_stack_pointer('x86', -3500) + buf
|
||||
|
||||
if (plat.index(Msf::Module::Platform::Windows) and arch.index("x86"))
|
||||
buf = Rex::Text.to_win32pe(buf, note)
|
||||
|
|
Loading…
Reference in New Issue