ruby_smb 3.3.17 → 3.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a184f6972edec8968cd3c69c2c4adb46f62f1ebd652c5b0013ba87d074f3cc8
4
- data.tar.gz: e48dc3bf1a1a1771672ac7fbce126da175a596ce3fe4951f8b83e4aec2dcca50
3
+ metadata.gz: df07f2b672976e5cff3e2a4a724038b9557ce8db1d01faa089348f0dc472592a
4
+ data.tar.gz: 936642cf5e5d3dfcef265af694eb37d58f83cbdfd9f3e337fade9dd5f9f4d39f
5
5
  SHA512:
6
- metadata.gz: bb45e333f0167db6b3a8d9cacb398d10cc2f5f611d4696c98b76f4daa8b2b1ed9ab03c3e1de83d78114d92f25c6803774fd0204a91e509ad755d4ea891986620
7
- data.tar.gz: 81e33299c43682283cd663128ac1a765fdc460e04d57468004965662439d4193f2c422de6f20754b4e77f99461ef317b0b373ffd6c4851b014d4504927d3e05f
6
+ metadata.gz: 33201873ef84ff27d62f8381e52d25da7ce2e4831a262987682050b2deedebcdfe382f4177c5d375268a43fcddc78d195a06368f0d6919a21be34a32544254e3
7
+ data.tar.gz: 978a64324e79c8f183599ad05d1291f4b172deb9ddc1d1e669acbc68e8c179d17cfd367138a4c5bb49aa7abd4063758a8e7b36023ecd8b11a427b086c2ecd154
@@ -2,8 +2,8 @@ module RubySMB
2
2
  module SMB1
3
3
  module Packet
4
4
  # A SMB1 SMB_COM_NT_CREATE_ANDX Response Packet as defined in
5
- # [2.2.4.64.2 Response](https://msdn.microsoft.com/en-us/library/ee441612.aspx) and
6
- # [2.2.4.9.2 Server Response Extensions](https://msdn.microsoft.com/en-us/library/cc246334.aspx)
5
+ # [MS-CIFS: 2.2.4.64.2 Response](https://msdn.microsoft.com/en-us/library/ee441612.aspx) and
6
+ # [MS-SMB : 2.2.4.9.2 Server Response Extensions](https://msdn.microsoft.com/en-us/library/cc246334.aspx)
7
7
  class NtCreateAndxResponse < RubySMB::GenericPacket
8
8
  COMMAND = RubySMB::SMB1::Commands::SMB_COM_NT_CREATE_ANDX
9
9
 
@@ -35,15 +35,28 @@ module RubySMB
35
35
  end
36
36
 
37
37
  uint8 :directory, label: 'Directory'
38
- string :volume_guid, label: 'Volume GUID', length: 16
39
- uint64 :file_id, label: 'File ID'
38
+ # MS-CIFS: 2.2.4.64.2 (WC=34)
39
+ # MS-SMB: 2.2.4.9.2 (WC=42) - VolumeGUID only, per the spec (so we get the right WordCount, WC)
40
+ # MS-SMB: 2.2.4.9.2 (WC=50) - all four fields as per spec (but then the spec is then wrong for the WC)
41
+ # VolumeGUID, FileId, MaximalAccessRights & GuestMaximalAccessRights
42
+ # MS-SMB 2.2.4.9.2 (WC=42): VolumeGUID
43
+ string :volume_guid, label: 'Volume GUID', length: 16,
44
+ onlyif: -> { word_count >= 42 }
40
45
 
41
- choice :maximal_access_rights, selection: -> { ext_file_attributes.directory } do
46
+ # MS-SMB 2.2.4.9.2 (WC=50): FileId
47
+ uint64 :file_id, label: 'File ID',
48
+ onlyif: -> { word_count >= 50 }
49
+
50
+ # MS-SMB 2.2.4.9.2 (WC=50): MaximalAccessRights
51
+ choice :maximal_access_rights, selection: -> { ext_file_attributes.directory },
52
+ onlyif: -> { word_count >= 50 } do
42
53
  file_access_mask 0, label: 'Maximal Access Rights'
43
54
  directory_access_mask 1, label: 'Maximal Access Rights'
44
55
  end
45
56
 
46
- choice :guest_maximal_access_rights, selection: -> { ext_file_attributes.directory } do
57
+ # MS-SMB 2.2.4.9.2 (WC=50): GuestMaximalAccessRights
58
+ choice :guest_maximal_access_rights, selection: -> { ext_file_attributes.directory },
59
+ onlyif: -> { word_count >= 50 } do
47
60
  file_access_mask 0, label: 'Guest Maximal Access Rights'
48
61
  directory_access_mask 1, label: 'Guest Maximal Access Rights'
49
62
  end
@@ -1,3 +1,3 @@
1
1
  module RubySMB
2
- VERSION = '3.3.17'.freeze
2
+ VERSION = '3.3.18'.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: 3.3.17
4
+ version: 3.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2026-03-24 00:00:00.000000000 Z
16
+ date: 2026-04-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: redcarpet