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 +4 -4
- data/lib/ruby_smb/smb1/packet/nt_create_andx_response.rb +19 -6
- data/lib/ruby_smb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df07f2b672976e5cff3e2a4a724038b9557ce8db1d01faa089348f0dc472592a
|
|
4
|
+
data.tar.gz: 936642cf5e5d3dfcef265af694eb37d58f83cbdfd9f3e337fade9dd5f9f4d39f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
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: 3.3.
|
|
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-
|
|
16
|
+
date: 2026-04-22 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: redcarpet
|