Skip to content

Commit 45f81f3

Browse files
committed
Squash some style issues
1 parent e93e524 commit 45f81f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/auxiliary/scanner/rdp/rdp_scanner.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,26 @@ def rdp?
5757
def setup
5858
# build a simple TPKT v3 + x.224 COTP Connect Request. optionally append
5959
# RDP negotiation request with TLS, CredSSP and Early User as requesteste
60-
requestedProtocols = 0
60+
requested_protocols = 0
6161
if datastore['TLS']
62-
requestedProtocols = requestedProtocols ^ 0b1
62+
requested_protocols = requested_protocols ^ 0b1
6363
end
6464
if datastore['CredSSP']
65-
requestedProtocols = requestedProtocols ^ 0b10
65+
requested_protocols = requested_protocols ^ 0b10
6666
end
6767
if datastore['EarlyUser']
68-
requestedProtocols = requestedProtocols ^ 0b1000
68+
requested_protocols = requested_protocols ^ 0b1000
6969
end
7070

71-
if requestedProtocols == 0
71+
if requested_protocols == 0
7272
tpkt_len = 11
7373
cotp_len = 6
7474
pack = [ 3, 0, tpkt_len, cotp_len, 0xe0, 0, 0, 0 ]
7575
pack_string = "CCnCCnnC"
7676
else
7777
tpkt_len = 19
7878
cotp_len = 14
79-
pack = [ 3, 0, tpkt_len, cotp_len, 0xe0, 0, 0, 0, 1, 0, 8, 0, requestedProtocols ]
79+
pack = [ 3, 0, tpkt_len, cotp_len, 0xe0, 0, 0, 0, 1, 0, 8, 0, requested_protocols ]
8080
pack_string = "CCnCCnnCCCCCV"
8181
end
8282
@probe = pack.pack(pack_string)
@@ -94,7 +94,7 @@ def run_host(_ip)
9494
disconnect
9595
end
9696

97-
service = report_service(
97+
report_service(
9898
host: rhost,
9999
port: rport,
100100
proto: 'tcp',

0 commit comments

Comments
 (0)