Finalise style changes as per suggestions in PR

bug/bundler_fix
OJ 2015-05-12 09:48:50 +10:00
parent 474461d2a4
commit 849f904711
7 changed files with 26 additions and 26 deletions

View File

@ -43,11 +43,11 @@ module Payload::Windows::ReverseHttp
#
def generate(opts={})
conf = {
:ssl => opts[:ssl] || false,
:host => datastore['LHOST'],
:port => datastore['LPORT'],
:url => generate_small_uri,
:retry_count => datastore['StagerRetryCount']
ssl: opts[:ssl] || false,
host: datastore['LHOST'],
port: datastore['LPORT'],
url: generate_small_uri,
retry_count: datastore['StagerRetryCount']
}
# Add extra options if we have enough space

View File

@ -19,7 +19,7 @@ module Payload::Windows::ReverseHttps
# Generate the first stage
#
def generate
super({ :ssl => true })
super(ssl: true)
end
#

View File

@ -24,11 +24,11 @@ module Payload::Windows::ReverseWinHttp
#
def generate(opts={})
conf = {
:ssl => opts[:ssl] || false,
:host => datastore['LHOST'],
:port => datastore['LPORT'],
:url => generate_small_uri,
:retry_count => datastore['StagerRetryCount']
ssl: opts[:ssl] || false,
host: datastore['LHOST'],
port: datastore['LPORT'],
url: generate_small_uri,
retry_count: datastore['StagerRetryCount']
}
# Add extra options if we have enough space

View File

@ -47,11 +47,11 @@ module Payload::Windows::ReverseHttp_x64
#
def generate(opts={})
conf = {
:ssl => opts[:ssl] || false,
:host => datastore['LHOST'],
:port => datastore['LPORT'],
:url => generate_small_uri,
:retry_count => datastore['StagerRetryCount']
ssl: opts[:ssl] || false,
host: datastore['LHOST'],
port: datastore['LPORT'],
url: generate_small_uri,
retry_count: datastore['StagerRetryCount']
}
# add extended options if we do have enough space

View File

@ -24,7 +24,7 @@ module Payload::Windows::ReverseHttps_x64
# Generate the first stage
#
def generate
super({:ssl => true})
super(ssl: true)
end
end

View File

@ -21,11 +21,11 @@ module Payload::Windows::ReverseWinHttp_x64
#
def generate(opts={})
conf = {
:ssl => opts[:ssl] || false,
:host => datastore['LHOST'],
:port => datastore['LPORT'],
:url => generate_small_uri,
:retry_count => datastore['StagerRetryCount']
ssl: opts[:ssl] || false,
host: datastore['LHOST'],
port: datastore['LPORT'],
url: generate_small_uri,
retry_count: datastore['StagerRetryCount']
}
# Add extra options if we have enough space

View File

@ -37,10 +37,10 @@ module Payload::Windows::ReverseWinHttps_x64
verify_cert_hash = get_ssl_cert_hash(datastore['StagerVerifySSLCert'],
datastore['HandlerSSLCert'])
super({
:ssl => true,
:verify_cert_hash => verify_cert_hash
})
super(
ssl: true,
verify_cert_hash: verify_cert_hash
)
end
def transport_config(opts={})