Skip to content

Commit 849f904

Browse files
committed
Finalise style changes as per suggestions in PR
1 parent 474461d commit 849f904

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

lib/msf/core/payload/windows/reverse_http.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def initialize(*args)
4343
#
4444
def generate(opts={})
4545
conf = {
46-
:ssl => opts[:ssl] || false,
47-
:host => datastore['LHOST'],
48-
:port => datastore['LPORT'],
49-
:url => generate_small_uri,
50-
:retry_count => datastore['StagerRetryCount']
46+
ssl: opts[:ssl] || false,
47+
host: datastore['LHOST'],
48+
port: datastore['LPORT'],
49+
url: generate_small_uri,
50+
retry_count: datastore['StagerRetryCount']
5151
}
5252

5353
# Add extra options if we have enough space

lib/msf/core/payload/windows/reverse_https.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module Payload::Windows::ReverseHttps
1919
# Generate the first stage
2020
#
2121
def generate
22-
super({ :ssl => true })
22+
super(ssl: true)
2323
end
2424

2525
#

lib/msf/core/payload/windows/reverse_winhttp.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ module Payload::Windows::ReverseWinHttp
2424
#
2525
def generate(opts={})
2626
conf = {
27-
:ssl => opts[:ssl] || false,
28-
:host => datastore['LHOST'],
29-
:port => datastore['LPORT'],
30-
:url => generate_small_uri,
31-
:retry_count => datastore['StagerRetryCount']
27+
ssl: opts[:ssl] || false,
28+
host: datastore['LHOST'],
29+
port: datastore['LPORT'],
30+
url: generate_small_uri,
31+
retry_count: datastore['StagerRetryCount']
3232
}
3333

3434
# Add extra options if we have enough space

lib/msf/core/payload/windows/x64/reverse_http.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ def transport_config(opts={})
4747
#
4848
def generate(opts={})
4949
conf = {
50-
:ssl => opts[:ssl] || false,
51-
:host => datastore['LHOST'],
52-
:port => datastore['LPORT'],
53-
:url => generate_small_uri,
54-
:retry_count => datastore['StagerRetryCount']
50+
ssl: opts[:ssl] || false,
51+
host: datastore['LHOST'],
52+
port: datastore['LPORT'],
53+
url: generate_small_uri,
54+
retry_count: datastore['StagerRetryCount']
5555
}
5656

5757
# add extended options if we do have enough space

lib/msf/core/payload/windows/x64/reverse_https.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def transport_config(opts={})
2424
# Generate the first stage
2525
#
2626
def generate
27-
super({:ssl => true})
27+
super(ssl: true)
2828
end
2929

3030
end

lib/msf/core/payload/windows/x64/reverse_winhttp.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ module Payload::Windows::ReverseWinHttp_x64
2121
#
2222
def generate(opts={})
2323
conf = {
24-
:ssl => opts[:ssl] || false,
25-
:host => datastore['LHOST'],
26-
:port => datastore['LPORT'],
27-
:url => generate_small_uri,
28-
:retry_count => datastore['StagerRetryCount']
24+
ssl: opts[:ssl] || false,
25+
host: datastore['LHOST'],
26+
port: datastore['LPORT'],
27+
url: generate_small_uri,
28+
retry_count: datastore['StagerRetryCount']
2929
}
3030

3131
# Add extra options if we have enough space

lib/msf/core/payload/windows/x64/reverse_winhttps.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ def generate
3737
verify_cert_hash = get_ssl_cert_hash(datastore['StagerVerifySSLCert'],
3838
datastore['HandlerSSLCert'])
3939

40-
super({
41-
:ssl => true,
42-
:verify_cert_hash => verify_cert_hash
43-
})
40+
super(
41+
ssl: true,
42+
verify_cert_hash: verify_cert_hash
43+
)
4444
end
4545

4646
def transport_config(opts={})

0 commit comments

Comments
 (0)