Skip to content

Commit b7714c9

Browse files
committed
Cleaned up indents.
1 parent e47a6f1 commit b7714c9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/rex/payloads/meterpreter/patch.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ module Meterpreter
1010
###
1111
module Patch
1212

13-
# Replace the transport string
14-
def self.patch_transport blob, ssl, url, expiration, comm_timeout
15-
13+
# Replace the transport string
14+
def self.patch_transport blob, ssl, url, expiration, comm_timeout
15+
1616
i = blob.index("METERPRETER_TRANSPORT_SSL")
1717
if i
1818
str = ssl ? "METERPRETER_TRANSPORT_HTTPS\x00" : "METERPRETER_TRANSPORT_HTTP\x00"
1919
blob[i, str.length] = str
2020
end
21-
21+
2222
i = blob.index("https://" + ("X" * 256))
2323
if i
2424
str = url
@@ -37,8 +37,8 @@ def self.patch_transport blob, ssl, url, expiration, comm_timeout
3737
blob[i, str.length] = str
3838
end
3939

40-
return blob
41-
end
40+
return blob
41+
end
4242

4343
# Replace the user agent string with our option
4444
def self.patch_ua blob, ua
@@ -75,7 +75,7 @@ def self.patch_proxy blob, proxyhost, proxyport, proxy_type
7575
end
7676
end
7777

78-
return blob, i, proxyinfo
78+
return blob, i, proxyinfo
7979
end
8080

8181
# Proxy authentification

lib/rex/post/meterpreter/client_core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# argument for moving the meterpreter client into the Msf namespace.
99
require 'msf/core/payload/windows'
1010

11-
# Provides methods to patch options into the metsrv stage.
11+
# Provides methods to patch options into the metsrv stager.
1212
require 'rex/payloads/meterpreter/patch'
1313

1414
module Rex

0 commit comments

Comments
 (0)