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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a4c28388e187c7ed38ec2227cbab2d5eea535dc63992b77c08ecea2134d3d8a
4
- data.tar.gz: 3b4216b478fade93c8ee98aaef9728c76bbf86f959770feda7a02e59df748df4
3
+ metadata.gz: c1e0d11d506c513f94ddc1efedf51d0e65b5a5f888f8d176cd93ffb960837ba9
4
+ data.tar.gz: b971db16ef47093b1d94ff9197b3cf5d222cbd475d9fda693bb0909341605072
5
5
  SHA512:
6
- metadata.gz: 11810d649bd5457d70bff31eeb416f3c38ceb56b59758b4c7c52ba27787fda892cf03aaecf3170d71881d0fd5077a8f022b63cc8afde8ba8a1d60007d080a4a0
7
- data.tar.gz: 29a4954fc1f8680b3d4984d45f4f04f42ba19db9dcc6f57ccbc07595fe6001b12412acd48862fbec0e7f63744ddf91e8a4279933865d983632113ae84ba6df31
6
+ metadata.gz: cb50b51053a49ad9d06109b882eaad4288329f58609626630b4cb3b77cf88acf9fa51243778741d1fac514904bee5cb46ccb97af211aee3983b2ef03a93b47a8
7
+ data.tar.gz: c57b3002a49e2a001fd17b1e088ad74dd8b1b465c6d393611817be2ae71217bde1f86fe579025a0af23b8d6e8d894a1ae24f376fda8dc24d5e2a2f274c65ae9f
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- \;c�yúB�а�H��3H��4V̑�5���Ӥk�R~
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��[wQ1Ac�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
@@ -1,3 +1,3 @@
1
1
  module RubySMB
2
- VERSION = '2.0.6'.freeze
2
+ VERSION = '2.0.7'.freeze
3
3
  end
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.6
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
- MIIFIzCCBAugAwIBAgIQDX9ZkVJ2eNVTlibR5ALyJTANBgkqhkiG9w0BAQsFADBy
71
+ MIIFIzCCBAugAwIBAgIQCMePMbkSxvnPeJhYXIfaxzANBgkqhkiG9w0BAQsFADBy
72
72
  MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
73
73
  d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFzc3VyZWQg
74
- SUQgQ29kZSBTaWduaW5nIENBMB4XDTE5MTAxNjAwMDAwMFoXDTIwMTAxOTEyMDAw
74
+ SUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMTAwNzAwMDAwMFoXDTIzMTEwNjEyMDAw
75
75
  MFowYDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDU1hc3NhY2h1c2V0dHMxDzANBgNV
76
76
  BAcTBkJvc3RvbjETMBEGA1UEChMKUmFwaWQ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c5o78UNRvp9Jxghya17Q76c9Ov9wvnv
96
+ dxxQKWGOQy0m4fBrkyjAyH9Djjn81RbQrqYgPuhd5nD0HjN3VUQLhQbIJrk9TVs0
97
+ EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
98
+ 9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
99
99
  -----END CERTIFICATE-----
100
- date: 2020-09-23 00:00:00.000000000 Z
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