always prepend a stack adjustment when creating an exe

git-svn-id: file:///home/svn/framework3/trunk@4144 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2006-11-15 22:04:36 +00:00
parent 7573d2f1ee
commit ab40a9cbae
1 changed files with 3 additions and 0 deletions

View File

@ -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)