ruby_smb 3.3.9 → 3.3.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.github/workflows/metasploit-framework_acceptance.yml +47 -0
  4. data/lib/ruby_smb/client.rb +5 -5
  5. data/lib/ruby_smb/dcerpc/client.rb +2 -4
  6. data/lib/ruby_smb/dcerpc/icpr.rb +2 -2
  7. data/lib/ruby_smb/dcerpc/request.rb +4 -1
  8. data/lib/ruby_smb/dcerpc/samr/samr_get_members_in_group_request.rb +23 -0
  9. data/lib/ruby_smb/dcerpc/samr/samr_get_members_in_group_response.rb +34 -0
  10. data/lib/ruby_smb/dcerpc/samr/samr_open_group_request.rb +26 -0
  11. data/lib/ruby_smb/dcerpc/samr/samr_open_group_response.rb +24 -0
  12. data/lib/ruby_smb/dcerpc/samr.rb +71 -1
  13. data/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_get_info_request.rb +0 -3
  14. data/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_request.rb +25 -0
  15. data/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_response.rb +25 -0
  16. data/lib/ruby_smb/dcerpc/wkssvc.rb +118 -3
  17. data/lib/ruby_smb/gss/provider/ntlm.rb +5 -9
  18. data/lib/ruby_smb/ntlm/client.rb +3 -74
  19. data/lib/ruby_smb/ntlm.rb +0 -37
  20. data/lib/ruby_smb/server/server_client/tree_connect.rb +2 -2
  21. data/lib/ruby_smb/version.rb +1 -1
  22. data/lib/ruby_smb.rb +0 -2
  23. data/ruby_smb.gemspec +9 -2
  24. data/spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_get_info_request_spec.rb +0 -8
  25. data/spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_get_info_response_spec.rb +1 -1
  26. data/spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_identity_handle.rb +7 -0
  27. data/spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_request_spec.rb +71 -0
  28. data/spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_response_spec.rb +65 -0
  29. data/spec/lib/ruby_smb/dcerpc/wkssvc_spec.rb +58 -1
  30. data/spec/lib/ruby_smb/gss/provider/ntlm/authenticator_spec.rb +119 -4
  31. data/spec/lib/ruby_smb/ntlm/client/session_spec.rb +1 -1
  32. data.tar.gz.sig +0 -0
  33. metadata +19 -7
  34. metadata.gz.sig +0 -0
  35. data/lib/ruby_smb/ntlm/custom/string_encoder.rb +0 -22
  36. data/lib/ruby_smb/utils.rb +0 -15
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.9
4
+ version: 3.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
@@ -9,6 +9,7 @@ authors:
9
9
  - James Lee
10
10
  - Dev Mohanty
11
11
  - Christophe De La Fuente
12
+ - Spencer McIntyre
12
13
  autorequire:
13
14
  bindir: bin
14
15
  cert_chain:
@@ -38,7 +39,7 @@ cert_chain:
38
39
  DgscAao7wB3xW2BWEp1KnaDWkf1x9ttgoBEYyuYwU7uatB67kBQG1PKvLt79wHvz
39
40
  Dxs+KOjGbBRfMnPgVGYkORKVrZIwlaboHbDKxcVW5xv+oZc7KYXWGg==
40
41
  -----END CERTIFICATE-----
41
- date: 2024-06-10 00:00:00.000000000 Z
42
+ date: 2024-11-15 00:00:00.000000000 Z
42
43
  dependencies:
43
44
  - !ruby/object:Gem::Dependency
44
45
  name: redcarpet
@@ -116,14 +117,14 @@ dependencies:
116
117
  requirements:
117
118
  - - ">="
118
119
  - !ruby/object:Gem::Version
119
- version: '0'
120
+ version: 0.6.5
120
121
  type: :runtime
121
122
  prerelease: false
122
123
  version_requirements: !ruby/object:Gem::Requirement
123
124
  requirements:
124
125
  - - ">="
125
126
  - !ruby/object:Gem::Version
126
- version: '0'
127
+ version: 0.6.5
127
128
  - !ruby/object:Gem::Dependency
128
129
  name: windows_error
129
130
  requirement: !ruby/object:Gem::Requirement
@@ -187,6 +188,7 @@ executables: []
187
188
  extensions: []
188
189
  extra_rdoc_files: []
189
190
  files:
191
+ - ".github/workflows/metasploit-framework_acceptance.yml"
190
192
  - ".github/workflows/verify.yml"
191
193
  - ".gitignore"
192
194
  - ".rspec"
@@ -342,12 +344,16 @@ files:
342
344
  - lib/ruby_smb/dcerpc/samr/samr_get_alias_membership_response.rb
343
345
  - lib/ruby_smb/dcerpc/samr/samr_get_groups_for_user_request.rb
344
346
  - lib/ruby_smb/dcerpc/samr/samr_get_groups_for_user_response.rb
347
+ - lib/ruby_smb/dcerpc/samr/samr_get_members_in_group_request.rb
348
+ - lib/ruby_smb/dcerpc/samr/samr_get_members_in_group_response.rb
345
349
  - lib/ruby_smb/dcerpc/samr/samr_lookup_domain_in_sam_server_request.rb
346
350
  - lib/ruby_smb/dcerpc/samr/samr_lookup_domain_in_sam_server_response.rb
347
351
  - lib/ruby_smb/dcerpc/samr/samr_lookup_names_in_domain_request.rb
348
352
  - lib/ruby_smb/dcerpc/samr/samr_lookup_names_in_domain_response.rb
349
353
  - lib/ruby_smb/dcerpc/samr/samr_open_domain_request.rb
350
354
  - lib/ruby_smb/dcerpc/samr/samr_open_domain_response.rb
355
+ - lib/ruby_smb/dcerpc/samr/samr_open_group_request.rb
356
+ - lib/ruby_smb/dcerpc/samr/samr_open_group_response.rb
351
357
  - lib/ruby_smb/dcerpc/samr/samr_open_user_request.rb
352
358
  - lib/ruby_smb/dcerpc/samr/samr_open_user_response.rb
353
359
  - lib/ruby_smb/dcerpc/samr/samr_query_information_domain_request.rb
@@ -409,6 +415,8 @@ files:
409
415
  - lib/ruby_smb/dcerpc/wkssvc.rb
410
416
  - lib/ruby_smb/dcerpc/wkssvc/netr_wksta_get_info_request.rb
411
417
  - lib/ruby_smb/dcerpc/wkssvc/netr_wksta_get_info_response.rb
418
+ - lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_request.rb
419
+ - lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_response.rb
412
420
  - lib/ruby_smb/dialect.rb
413
421
  - lib/ruby_smb/dispatcher.rb
414
422
  - lib/ruby_smb/dispatcher/base.rb
@@ -471,7 +479,6 @@ files:
471
479
  - lib/ruby_smb/nbss/session_request.rb
472
480
  - lib/ruby_smb/ntlm.rb
473
481
  - lib/ruby_smb/ntlm/client.rb
474
- - lib/ruby_smb/ntlm/custom/string_encoder.rb
475
482
  - lib/ruby_smb/peer_info.rb
476
483
  - lib/ruby_smb/server.rb
477
484
  - lib/ruby_smb/server/cli.rb
@@ -652,7 +659,6 @@ files:
652
659
  - lib/ruby_smb/smb2/smb2_header.rb
653
660
  - lib/ruby_smb/smb2/tree.rb
654
661
  - lib/ruby_smb/smb_error.rb
655
- - lib/ruby_smb/utils.rb
656
662
  - lib/ruby_smb/version.rb
657
663
  - ruby_smb.gemspec
658
664
  - spec/lib/ruby_smb/client_spec.rb
@@ -779,6 +785,9 @@ files:
779
785
  - spec/lib/ruby_smb/dcerpc/winreg_spec.rb
780
786
  - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_get_info_request_spec.rb
781
787
  - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_get_info_response_spec.rb
788
+ - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_identity_handle.rb
789
+ - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_request_spec.rb
790
+ - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_response_spec.rb
782
791
  - spec/lib/ruby_smb/dcerpc/wkssvc_spec.rb
783
792
  - spec/lib/ruby_smb/dcerpc_spec.rb
784
793
  - spec/lib/ruby_smb/dispatcher/base_spec.rb
@@ -991,7 +1000,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
991
1000
  - !ruby/object:Gem::Version
992
1001
  version: '0'
993
1002
  requirements: []
994
- rubygems_version: 3.2.3
1003
+ rubygems_version: 3.5.22
995
1004
  signing_key:
996
1005
  specification_version: 4
997
1006
  summary: A pure Ruby implementation of the SMB Protocol Family
@@ -1120,6 +1129,9 @@ test_files:
1120
1129
  - spec/lib/ruby_smb/dcerpc/winreg_spec.rb
1121
1130
  - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_get_info_request_spec.rb
1122
1131
  - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_get_info_response_spec.rb
1132
+ - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_identity_handle.rb
1133
+ - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_request_spec.rb
1134
+ - spec/lib/ruby_smb/dcerpc/wkssvc/netr_wksta_user_enum_response_spec.rb
1123
1135
  - spec/lib/ruby_smb/dcerpc/wkssvc_spec.rb
1124
1136
  - spec/lib/ruby_smb/dcerpc_spec.rb
1125
1137
  - spec/lib/ruby_smb/dispatcher/base_spec.rb
metadata.gz.sig CHANGED
Binary file
@@ -1,22 +0,0 @@
1
- require 'net/ntlm'
2
-
3
- module RubySMB
4
- module NTLM
5
- module Custom
6
- module StringEncoder
7
-
8
- def self.prepended(base)
9
- base.singleton_class.send(:prepend, ClassMethods)
10
- end
11
-
12
- module ClassMethods
13
- def encode_utf16le(str)
14
- str.dup.force_encoding('UTF-8').encode(Encoding::UTF_16LE, Encoding::UTF_8).force_encoding('ASCII-8BIT')
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
21
-
22
- Net::NTLM::EncodeUtil.send(:prepend, RubySMB::NTLM::Custom::StringEncoder)
@@ -1,15 +0,0 @@
1
- module RubySMB
2
- module Utils
3
-
4
- def self.safe_encode(str, encoding)
5
- str.encode(encoding)
6
- rescue EncodingError
7
- if str.encoding == ::Encoding::ASCII_8BIT
8
- str.dup.force_encoding(encoding)
9
- else
10
- raise
11
- end
12
- end
13
-
14
- end
15
- end