Add more size to stagers, adjust psexec payloads

This psexec payload size should be evaluated to make sure I'm not doing
anything stupid. i can't see a reason why increasing these sizes would
be bad. They seem to work fine.
unstable
OJ 2015-05-20 17:07:56 +10:00
parent 6859b24c1c
commit 44f8cf4124
4 changed files with 12 additions and 6 deletions

View File

@ -76,8 +76,11 @@ module Payload::Windows::ReverseWinHttp
# Add 100 bytes for the encoder to have some room
space += 100
# Make room for the maximum possible URL length
space += 256
# Make room for the maximum possible URL length (wchars)
space += 512 * 2
# proxy (wchars)
space += 128 * 2
# EXITFUNK processing adds 31 bytes at most (for ExitThread, only ~16 for others)
space += 31

View File

@ -73,8 +73,11 @@ module Payload::Windows::ReverseWinHttp_x64
# Add 100 bytes for the encoder to have some room
space += 100
# Make room for the maximum possible URL length
space += 256
# Make room for the maximum possible URL length (wchars)
space += 512 * 2
# proxy (wchars)
space += 128 * 2
# EXITFUNK processing adds 31 bytes at most (for ExitThread, only ~16 for others)
space += 31

View File

@ -52,7 +52,7 @@ class Metasploit3 < Msf::Exploit::Remote
],
'Payload' =>
{
'Space' => 2048,
'Space' => 3072,
'DisableNops' => true,
'StackAdjustment' => -3500
},

View File

@ -44,7 +44,7 @@ class Metasploit3 < Msf::Exploit::Remote
},
'Payload' =>
{
'Space' => 2048,
'Space' => 3072,
'DisableNops' => true
},
'Platform' => 'win',