Cleaned up indents.
parent
e47a6f1573
commit
b7714c9661
|
@ -10,8 +10,8 @@ module Rex
|
||||||
###
|
###
|
||||||
module Patch
|
module Patch
|
||||||
|
|
||||||
# Replace the transport string
|
# Replace the transport string
|
||||||
def self.patch_transport blob, ssl, url, expiration, comm_timeout
|
def self.patch_transport blob, ssl, url, expiration, comm_timeout
|
||||||
|
|
||||||
i = blob.index("METERPRETER_TRANSPORT_SSL")
|
i = blob.index("METERPRETER_TRANSPORT_SSL")
|
||||||
if i
|
if i
|
||||||
|
@ -37,8 +37,8 @@ module Rex
|
||||||
blob[i, str.length] = str
|
blob[i, str.length] = str
|
||||||
end
|
end
|
||||||
|
|
||||||
return blob
|
return blob
|
||||||
end
|
end
|
||||||
|
|
||||||
# Replace the user agent string with our option
|
# Replace the user agent string with our option
|
||||||
def self.patch_ua blob, ua
|
def self.patch_ua blob, ua
|
||||||
|
@ -75,7 +75,7 @@ module Rex
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return blob, i, proxyinfo
|
return blob, i, proxyinfo
|
||||||
end
|
end
|
||||||
|
|
||||||
# Proxy authentification
|
# Proxy authentification
|
||||||
|
|
|
@ -8,7 +8,7 @@ require 'rex/post/meterpreter/client'
|
||||||
# argument for moving the meterpreter client into the Msf namespace.
|
# argument for moving the meterpreter client into the Msf namespace.
|
||||||
require 'msf/core/payload/windows'
|
require 'msf/core/payload/windows'
|
||||||
|
|
||||||
# Provides methods to patch options into the metsrv stage.
|
# Provides methods to patch options into the metsrv stager.
|
||||||
require 'rex/payloads/meterpreter/patch'
|
require 'rex/payloads/meterpreter/patch'
|
||||||
|
|
||||||
module Rex
|
module Rex
|
||||||
|
|
Loading…
Reference in New Issue