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
parent
6859b24c1c
commit
44f8cf4124
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -52,7 +52,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
],
|
||||
'Payload' =>
|
||||
{
|
||||
'Space' => 2048,
|
||||
'Space' => 3072,
|
||||
'DisableNops' => true,
|
||||
'StackAdjustment' => -3500
|
||||
},
|
||||
|
|
|
@ -44,7 +44,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
},
|
||||
'Payload' =>
|
||||
{
|
||||
'Space' => 2048,
|
||||
'Space' => 3072,
|
||||
'DisableNops' => true
|
||||
},
|
||||
'Platform' => 'win',
|
||||
|
|
Loading…
Reference in New Issue