@@ -57,26 +57,26 @@ def rdp?
57
57
def setup
58
58
# build a simple TPKT v3 + x.224 COTP Connect Request. optionally append
59
59
# RDP negotiation request with TLS, CredSSP and Early User as requesteste
60
- requestedProtocols = 0
60
+ requested_protocols = 0
61
61
if datastore [ 'TLS' ]
62
- requestedProtocols = requestedProtocols ^ 0b1
62
+ requested_protocols = requested_protocols ^ 0b1
63
63
end
64
64
if datastore [ 'CredSSP' ]
65
- requestedProtocols = requestedProtocols ^ 0b10
65
+ requested_protocols = requested_protocols ^ 0b10
66
66
end
67
67
if datastore [ 'EarlyUser' ]
68
- requestedProtocols = requestedProtocols ^ 0b1000
68
+ requested_protocols = requested_protocols ^ 0b1000
69
69
end
70
70
71
- if requestedProtocols == 0
71
+ if requested_protocols == 0
72
72
tpkt_len = 11
73
73
cotp_len = 6
74
74
pack = [ 3 , 0 , tpkt_len , cotp_len , 0xe0 , 0 , 0 , 0 ]
75
75
pack_string = "CCnCCnnC"
76
76
else
77
77
tpkt_len = 19
78
78
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 ]
80
80
pack_string = "CCnCCnnCCCCCV"
81
81
end
82
82
@probe = pack . pack ( pack_string )
@@ -94,7 +94,7 @@ def run_host(_ip)
94
94
disconnect
95
95
end
96
96
97
- service = report_service (
97
+ report_service (
98
98
host : rhost ,
99
99
port : rport ,
100
100
proto : 'tcp' ,
0 commit comments