ruby_smb 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/lib/ruby_smb/dcerpc/netlogon/netr_server_authenticate3_request.rb +9 -0
- data/lib/ruby_smb/dcerpc/netlogon/netr_server_password_set2_request.rb +10 -0
- data/lib/ruby_smb/dcerpc/netlogon/netr_server_req_challenge_request.rb +7 -0
- data/lib/ruby_smb/version.rb +1 -1
- metadata +18 -18
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1e0d11d506c513f94ddc1efedf51d0e65b5a5f888f8d176cd93ffb960837ba9
|
4
|
+
data.tar.gz: b971db16ef47093b1d94ff9197b3cf5d222cbd475d9fda693bb0909341605072
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb50b51053a49ad9d06109b882eaad4288329f58609626630b4cb3b77cf88acf9fa51243778741d1fac514904bee5cb46ccb97af211aee3983b2ef03a93b47a8
|
7
|
+
data.tar.gz: c57b3002a49e2a001fd17b1e088ad74dd8b1b465c6d393611817be2ae71217bde1f86fe579025a0af23b8d6e8d894a1ae24f376fda8dc24d5e2a2f274c65ae9f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
`�.Umŀ>�E�b�Y�w;!�w`ΐD���%z�J#�E*2�IX;��8䉖�H���5��u�e݇��i��E�*J�
|
1
|
+
l]@@�g���ښ����r2�ƥ�(N:⋚����t���S���³R+r���(M[y�� =����3�g�j83��R�_r@Ѡ@m×ޘ�<��m��`c�@rk��Ȗ�������Ç蚌�YHW��[�wQ�1Ac�U�}���AW���A=��*�u|�q���J���*��py�o�|x0�)��*��o���
|
@@ -11,10 +11,13 @@ module RubySMB
|
|
11
11
|
endian :little
|
12
12
|
|
13
13
|
logonsrv_handle :primary_name
|
14
|
+
string :pad1, length: -> { pad_length(self.primary_name) }
|
14
15
|
ndr_string :account_name
|
15
16
|
netlogon_secure_channel_type :secure_channel_type
|
17
|
+
string :pad2, length: -> { pad_length(self.secure_channel_type) }
|
16
18
|
ndr_string :computer_name
|
17
19
|
netlogon_credential :client_credential
|
20
|
+
string :pad3, length: -> { pad_length(self.client_credential) }
|
18
21
|
uint32 :flags
|
19
22
|
|
20
23
|
def initialize_instance
|
@@ -22,6 +25,12 @@ module RubySMB
|
|
22
25
|
@opnum = NETR_SERVER_AUTHENTICATE3
|
23
26
|
end
|
24
27
|
|
28
|
+
# Determines the correct length for the padding, so that the next
|
29
|
+
# field is 4-byte aligned.
|
30
|
+
def pad_length(prev_element)
|
31
|
+
offset = (prev_element.abs_offset + prev_element.to_binary_s.length) % 4
|
32
|
+
(4 - offset) % 4
|
33
|
+
end
|
25
34
|
end
|
26
35
|
end
|
27
36
|
end
|
@@ -11,9 +11,12 @@ module RubySMB
|
|
11
11
|
endian :little
|
12
12
|
|
13
13
|
logonsrv_handle :primary_name
|
14
|
+
string :pad1, length: -> { pad_length(self.primary_name) }
|
14
15
|
ndr_string :account_name
|
15
16
|
netlogon_secure_channel_type :secure_channel_type
|
17
|
+
string :pad2, length: -> { pad_length(self.secure_channel_type) }
|
16
18
|
ndr_string :computer_name
|
19
|
+
string :pad3, length: -> { pad_length(self.computer_name) }
|
17
20
|
netlogon_authenticator :authenticator
|
18
21
|
ndr_fixed_byte_array :clear_new_password, length: 516 # this is an encrypted NL_TRUST_PASSWORD
|
19
22
|
|
@@ -21,6 +24,13 @@ module RubySMB
|
|
21
24
|
super
|
22
25
|
@opnum = Netlogon::NETR_SERVER_PASSWORD_SET2
|
23
26
|
end
|
27
|
+
|
28
|
+
# Determines the correct length for the padding, so that the next
|
29
|
+
# field is 4-byte aligned.
|
30
|
+
def pad_length(prev_element)
|
31
|
+
offset = (prev_element.abs_offset + prev_element.to_binary_s.length) % 4
|
32
|
+
(4 - offset) % 4
|
33
|
+
end
|
24
34
|
end
|
25
35
|
end
|
26
36
|
end
|
@@ -11,6 +11,7 @@ module RubySMB
|
|
11
11
|
endian :little
|
12
12
|
|
13
13
|
logonsrv_handle :primary_name
|
14
|
+
string :pad1, length: -> { pad_length(self.primary_name) }
|
14
15
|
ndr_string :computer_name
|
15
16
|
netlogon_credential :client_challenge
|
16
17
|
|
@@ -19,6 +20,12 @@ module RubySMB
|
|
19
20
|
@opnum = NETR_SERVER_REQ_CHALLENGE
|
20
21
|
end
|
21
22
|
|
23
|
+
# Determines the correct length for the padding, so that the next
|
24
|
+
# field is 4-byte aligned.
|
25
|
+
def pad_length(prev_element)
|
26
|
+
offset = (prev_element.abs_offset + prev_element.to_binary_s.length) % 4
|
27
|
+
(4 - offset) % 4
|
28
|
+
end
|
22
29
|
end
|
23
30
|
end
|
24
31
|
end
|
data/lib/ruby_smb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_smb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Metasploit Hackers
|
@@ -68,20 +68,20 @@ cert_chain:
|
|
68
68
|
-----END CERTIFICATE-----
|
69
69
|
- |
|
70
70
|
-----BEGIN CERTIFICATE-----
|
71
|
-
|
71
|
+
MIIFIzCCBAugAwIBAgIQCMePMbkSxvnPeJhYXIfaxzANBgkqhkiG9w0BAQsFADBy
|
72
72
|
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
|
73
73
|
d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFzc3VyZWQg
|
74
|
-
|
74
|
+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zc3VyZWQtY3MtZzEuY3Js
|
@@ -90,14 +90,14 @@ cert_chain:
|
|
90
90
|
JAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBOBggrBgEFBQcw
|
91
91
|
AoZCaHR0cDovL2NhY2VydHMuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0U0hBMkFzc3Vy
|
92
92
|
ZWRJRENvZGVTaWduaW5nQ0EuY3J0MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEL
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
93
|
+
BQADggEBAN+GL5/myPWg7oH4mVrG7/OhXF1MoYQF0ddaNiqaweEHMuKJBQCVZRbL
|
94
|
+
37HojoKXXv2yyRJBCeTB+ojrxX+5PdLVZa0ss7toWzJ2A1poPXZ1eZvm5xeFD32z
|
95
|
+
YQaTmmNWNI3PCDTyJ2PXUc+bDiNNwcZ7yc5o78UNRvp9Jxghya17Q76c9Ov9wvnv
|
96
|
+
dxxQKWGOQy0m4fBrkyjAyH9Djjn81RbQrqYgPuhd5nD0HjN3VUQLhQbIJrk9TVs0
|
97
|
+
EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
|
98
|
+
9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
|
99
99
|
-----END CERTIFICATE-----
|
100
|
-
date: 2020-
|
100
|
+
date: 2020-11-19 00:00:00.000000000 Z
|
101
101
|
dependencies:
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: redcarpet
|
metadata.gz.sig
CHANGED
Binary file
|