lib/msf/core/payload/windows/reverse_http.rb
#
# Determine the maximum amount of space required for the features requested
#
Determine the maximum amount of space required for the features requested
Determine the maximum amount of space required for the features requested
def required_space
    space = cached_size
    space += 100
    space += 256
    space += 31
    space
  end
def required_space space = cached_size space += 100 space += 256 space += 31 space end
Determine the maximum amount of space required for the features requested
Determine the maximum amount of space required for the features requested
# Start with our cached default generated size # Add 100 bytes for the encoder to have some room # Make room for the maximum possible URL length # EXITFUNK processing adds 31 bytes at most (for ExitThread, only ~16 for others) # The final estimated size