ruby_smb 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data/.gitignore +21 -0
  4. data/.rspec +3 -0
  5. data/.simplecov +42 -0
  6. data/.travis.yml +5 -0
  7. data/.yardopts +1 -0
  8. data/CONTRIBUTING.md +119 -0
  9. data/Gemfile +13 -0
  10. data/LICENSE.txt +18 -0
  11. data/README.md +64 -0
  12. data/Rakefile +22 -0
  13. data/examples/authenticate.rb +30 -0
  14. data/examples/negotiate.rb +25 -0
  15. data/lib/ruby_smb/client/authentication.rb +236 -0
  16. data/lib/ruby_smb/client/negotiation.rb +126 -0
  17. data/lib/ruby_smb/client/signing.rb +48 -0
  18. data/lib/ruby_smb/client.rb +164 -0
  19. data/lib/ruby_smb/dispatcher/base.rb +18 -0
  20. data/lib/ruby_smb/dispatcher/socket.rb +53 -0
  21. data/lib/ruby_smb/dispatcher.rb +4 -0
  22. data/lib/ruby_smb/error.rb +17 -0
  23. data/lib/ruby_smb/field/file_time.rb +62 -0
  24. data/lib/ruby_smb/field/nt_status.rb +16 -0
  25. data/lib/ruby_smb/field/stringz16.rb +55 -0
  26. data/lib/ruby_smb/field.rb +7 -0
  27. data/lib/ruby_smb/generic_packet.rb +179 -0
  28. data/lib/ruby_smb/gss.rb +109 -0
  29. data/lib/ruby_smb/smb1/andx_block.rb +13 -0
  30. data/lib/ruby_smb/smb1/bit_field/capabilities.rb +39 -0
  31. data/lib/ruby_smb/smb1/bit_field/header_flags.rb +19 -0
  32. data/lib/ruby_smb/smb1/bit_field/header_flags2.rb +27 -0
  33. data/lib/ruby_smb/smb1/bit_field/security_mode.rb +16 -0
  34. data/lib/ruby_smb/smb1/bit_field.rb +10 -0
  35. data/lib/ruby_smb/smb1/commands.rb +9 -0
  36. data/lib/ruby_smb/smb1/data_block.rb +42 -0
  37. data/lib/ruby_smb/smb1/dialect.rb +11 -0
  38. data/lib/ruby_smb/smb1/packet/error_packet.rb +14 -0
  39. data/lib/ruby_smb/smb1/packet/negotiate_request.rb +52 -0
  40. data/lib/ruby_smb/smb1/packet/negotiate_response.rb +46 -0
  41. data/lib/ruby_smb/smb1/packet/negotiate_response_extended.rb +47 -0
  42. data/lib/ruby_smb/smb1/packet/session_setup_request.rb +71 -0
  43. data/lib/ruby_smb/smb1/packet/session_setup_response.rb +48 -0
  44. data/lib/ruby_smb/smb1/packet.rb +12 -0
  45. data/lib/ruby_smb/smb1/parameter_block.rb +42 -0
  46. data/lib/ruby_smb/smb1/smb_header.rb +21 -0
  47. data/lib/ruby_smb/smb1.rb +16 -0
  48. data/lib/ruby_smb/smb2/bit_field/session_flags.rb +17 -0
  49. data/lib/ruby_smb/smb2/bit_field/smb2_capabailities.rb +23 -0
  50. data/lib/ruby_smb/smb2/bit_field/smb2_header_flags.rb +23 -0
  51. data/lib/ruby_smb/smb2/bit_field/smb2_security_mode.rb +15 -0
  52. data/lib/ruby_smb/smb2/bit_field/smb2_security_mode_single.rb +14 -0
  53. data/lib/ruby_smb/smb2/bit_field.rb +11 -0
  54. data/lib/ruby_smb/smb2/commands.rb +25 -0
  55. data/lib/ruby_smb/smb2/packet/negotiate_request.rb +50 -0
  56. data/lib/ruby_smb/smb2/packet/negotiate_response.rb +33 -0
  57. data/lib/ruby_smb/smb2/packet/session_setup_request.rb +53 -0
  58. data/lib/ruby_smb/smb2/packet/session_setup_response.rb +38 -0
  59. data/lib/ruby_smb/smb2/packet.rb +10 -0
  60. data/lib/ruby_smb/smb2/smb2_header.rb +22 -0
  61. data/lib/ruby_smb/smb2.rb +12 -0
  62. data/lib/ruby_smb/version.rb +3 -0
  63. data/lib/ruby_smb.rb +22 -0
  64. data/ruby_smb.gemspec +38 -0
  65. data/spec/lib/ruby_smb/client_spec.rb +638 -0
  66. data/spec/lib/ruby_smb/dispatcher/dispatcher_base_spec.rb +22 -0
  67. data/spec/lib/ruby_smb/dispatcher/socket_spec.rb +60 -0
  68. data/spec/lib/ruby_smb/field/file_time_spec.rb +59 -0
  69. data/spec/lib/ruby_smb/field/nt_status_spec.rb +19 -0
  70. data/spec/lib/ruby_smb/field/stringz16_spec.rb +50 -0
  71. data/spec/lib/ruby_smb/generic_packet_spec.rb +58 -0
  72. data/spec/lib/ruby_smb/smb1/andx_block_spec.rb +41 -0
  73. data/spec/lib/ruby_smb/smb1/bit_field/capabilities_spec.rb +245 -0
  74. data/spec/lib/ruby_smb/smb1/bit_field/header_flags2_spec.rb +146 -0
  75. data/spec/lib/ruby_smb/smb1/bit_field/header_flags_spec.rb +102 -0
  76. data/spec/lib/ruby_smb/smb1/bit_field/security_mode_spec.rb +44 -0
  77. data/spec/lib/ruby_smb/smb1/data_block_spec.rb +26 -0
  78. data/spec/lib/ruby_smb/smb1/dialect_spec.rb +26 -0
  79. data/spec/lib/ruby_smb/smb1/packet/error_packet_spec.rb +39 -0
  80. data/spec/lib/ruby_smb/smb1/packet/negotiate_request_spec.rb +77 -0
  81. data/spec/lib/ruby_smb/smb1/packet/negotiate_response_extended_spec.rb +149 -0
  82. data/spec/lib/ruby_smb/smb1/packet/negotiate_response_spec.rb +150 -0
  83. data/spec/lib/ruby_smb/smb1/packet/session_setup_request_spec.rb +100 -0
  84. data/spec/lib/ruby_smb/smb1/packet/session_setup_response_spec.rb +72 -0
  85. data/spec/lib/ruby_smb/smb1/parameter_block_spec.rb +26 -0
  86. data/spec/lib/ruby_smb/smb1/smb_header_spec.rb +96 -0
  87. data/spec/lib/ruby_smb/smb2/bit_field/header_flags_spec.rb +81 -0
  88. data/spec/lib/ruby_smb/smb2/bit_field/session_flags_spec.rb +28 -0
  89. data/spec/lib/ruby_smb/smb2/bit_field/smb2_capabilities_spec.rb +72 -0
  90. data/spec/lib/ruby_smb/smb2/bit_field/smb_secruity_mode_spec.rb +22 -0
  91. data/spec/lib/ruby_smb/smb2/packet/negotiate_request_spec.rb +122 -0
  92. data/spec/lib/ruby_smb/smb2/packet/negotiate_response_spec.rb +147 -0
  93. data/spec/lib/ruby_smb/smb2/packet/session_setup_request_spec.rb +79 -0
  94. data/spec/lib/ruby_smb/smb2/packet/session_setup_response_spec.rb +54 -0
  95. data/spec/lib/ruby_smb/smb2/smb2_header_spec.rb +127 -0
  96. data/spec/lib/ruby_smb_spec.rb +2 -0
  97. data/spec/spec_helper.rb +100 -0
  98. data/spec/support/mock_socket_dispatcher.rb +8 -0
  99. data/spec/support/shared/examples/bit_field_single_flag.rb +14 -0
  100. data.tar.gz.sig +0 -0
  101. metadata +384 -0
  102. metadata.gz.sig +0 -0
metadata ADDED
@@ -0,0 +1,384 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_smb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.8
5
+ platform: ruby
6
+ authors:
7
+ - David Maloney
8
+ - James Lee
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4G
15
+ A1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNp
16
+ Z24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4
17
+ MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEG
18
+ A1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCASIwDQYJKoZI
19
+ hvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWtiHL8
20
+ RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsT
21
+ gHeMCOFJ0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmm
22
+ KPZpO/bLyCiR5Z2KYVc3rHQU3HTgO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JATWL/b2csFG
90
+ 8mVuTXnyJOKRJA==
91
+ -----END CERTIFICATE-----
92
+ date: 2017-03-28 00:00:00.000000000 Z
93
+ dependencies:
94
+ - !ruby/object:Gem::Dependency
95
+ name: redcarpet
96
+ requirement: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ type: :development
102
+ prerelease: false
103
+ version_requirements: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ - !ruby/object:Gem::Dependency
109
+ name: bundler
110
+ requirement: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ type: :development
116
+ prerelease: false
117
+ version_requirements: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ - !ruby/object:Gem::Dependency
123
+ name: fivemat
124
+ requirement: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ type: :development
130
+ prerelease: false
131
+ version_requirements: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ - !ruby/object:Gem::Dependency
137
+ name: rake
138
+ requirement: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ - !ruby/object:Gem::Dependency
151
+ name: yard
152
+ requirement: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ type: :development
158
+ prerelease: false
159
+ version_requirements: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ - !ruby/object:Gem::Dependency
165
+ name: rubyntlm
166
+ requirement: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - "~>"
169
+ - !ruby/object:Gem::Version
170
+ version: '0.5'
171
+ type: :runtime
172
+ prerelease: false
173
+ version_requirements: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: '0.5'
178
+ - !ruby/object:Gem::Dependency
179
+ name: bit-struct
180
+ requirement: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ type: :runtime
186
+ prerelease: false
187
+ version_requirements: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
192
+ - !ruby/object:Gem::Dependency
193
+ name: windows_error
194
+ requirement: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
199
+ type: :runtime
200
+ prerelease: false
201
+ version_requirements: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ - !ruby/object:Gem::Dependency
207
+ name: bindata
208
+ requirement: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: '0'
213
+ type: :runtime
214
+ prerelease: false
215
+ version_requirements: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
220
+ description: ''
221
+ email:
222
+ - DMaloney@rapid7.com
223
+ - egypt@metasploit.com
224
+ executables: []
225
+ extensions: []
226
+ extra_rdoc_files: []
227
+ files:
228
+ - ".gitignore"
229
+ - ".rspec"
230
+ - ".simplecov"
231
+ - ".travis.yml"
232
+ - ".yardopts"
233
+ - CONTRIBUTING.md
234
+ - Gemfile
235
+ - LICENSE.txt
236
+ - README.md
237
+ - Rakefile
238
+ - examples/authenticate.rb
239
+ - examples/negotiate.rb
240
+ - lib/ruby_smb.rb
241
+ - lib/ruby_smb/client.rb
242
+ - lib/ruby_smb/client/authentication.rb
243
+ - lib/ruby_smb/client/negotiation.rb
244
+ - lib/ruby_smb/client/signing.rb
245
+ - lib/ruby_smb/dispatcher.rb
246
+ - lib/ruby_smb/dispatcher/base.rb
247
+ - lib/ruby_smb/dispatcher/socket.rb
248
+ - lib/ruby_smb/error.rb
249
+ - lib/ruby_smb/field.rb
250
+ - lib/ruby_smb/field/file_time.rb
251
+ - lib/ruby_smb/field/nt_status.rb
252
+ - lib/ruby_smb/field/stringz16.rb
253
+ - lib/ruby_smb/generic_packet.rb
254
+ - lib/ruby_smb/gss.rb
255
+ - lib/ruby_smb/smb1.rb
256
+ - lib/ruby_smb/smb1/andx_block.rb
257
+ - lib/ruby_smb/smb1/bit_field.rb
258
+ - lib/ruby_smb/smb1/bit_field/capabilities.rb
259
+ - lib/ruby_smb/smb1/bit_field/header_flags.rb
260
+ - lib/ruby_smb/smb1/bit_field/header_flags2.rb
261
+ - lib/ruby_smb/smb1/bit_field/security_mode.rb
262
+ - lib/ruby_smb/smb1/commands.rb
263
+ - lib/ruby_smb/smb1/data_block.rb
264
+ - lib/ruby_smb/smb1/dialect.rb
265
+ - lib/ruby_smb/smb1/packet.rb
266
+ - lib/ruby_smb/smb1/packet/error_packet.rb
267
+ - lib/ruby_smb/smb1/packet/negotiate_request.rb
268
+ - lib/ruby_smb/smb1/packet/negotiate_response.rb
269
+ - lib/ruby_smb/smb1/packet/negotiate_response_extended.rb
270
+ - lib/ruby_smb/smb1/packet/session_setup_request.rb
271
+ - lib/ruby_smb/smb1/packet/session_setup_response.rb
272
+ - lib/ruby_smb/smb1/parameter_block.rb
273
+ - lib/ruby_smb/smb1/smb_header.rb
274
+ - lib/ruby_smb/smb2.rb
275
+ - lib/ruby_smb/smb2/bit_field.rb
276
+ - lib/ruby_smb/smb2/bit_field/session_flags.rb
277
+ - lib/ruby_smb/smb2/bit_field/smb2_capabailities.rb
278
+ - lib/ruby_smb/smb2/bit_field/smb2_header_flags.rb
279
+ - lib/ruby_smb/smb2/bit_field/smb2_security_mode.rb
280
+ - lib/ruby_smb/smb2/bit_field/smb2_security_mode_single.rb
281
+ - lib/ruby_smb/smb2/commands.rb
282
+ - lib/ruby_smb/smb2/packet.rb
283
+ - lib/ruby_smb/smb2/packet/negotiate_request.rb
284
+ - lib/ruby_smb/smb2/packet/negotiate_response.rb
285
+ - lib/ruby_smb/smb2/packet/session_setup_request.rb
286
+ - lib/ruby_smb/smb2/packet/session_setup_response.rb
287
+ - lib/ruby_smb/smb2/smb2_header.rb
288
+ - lib/ruby_smb/version.rb
289
+ - ruby_smb.gemspec
290
+ - spec/lib/ruby_smb/client_spec.rb
291
+ - spec/lib/ruby_smb/dispatcher/dispatcher_base_spec.rb
292
+ - spec/lib/ruby_smb/dispatcher/socket_spec.rb
293
+ - spec/lib/ruby_smb/field/file_time_spec.rb
294
+ - spec/lib/ruby_smb/field/nt_status_spec.rb
295
+ - spec/lib/ruby_smb/field/stringz16_spec.rb
296
+ - spec/lib/ruby_smb/generic_packet_spec.rb
297
+ - spec/lib/ruby_smb/smb1/andx_block_spec.rb
298
+ - spec/lib/ruby_smb/smb1/bit_field/capabilities_spec.rb
299
+ - spec/lib/ruby_smb/smb1/bit_field/header_flags2_spec.rb
300
+ - spec/lib/ruby_smb/smb1/bit_field/header_flags_spec.rb
301
+ - spec/lib/ruby_smb/smb1/bit_field/security_mode_spec.rb
302
+ - spec/lib/ruby_smb/smb1/data_block_spec.rb
303
+ - spec/lib/ruby_smb/smb1/dialect_spec.rb
304
+ - spec/lib/ruby_smb/smb1/packet/error_packet_spec.rb
305
+ - spec/lib/ruby_smb/smb1/packet/negotiate_request_spec.rb
306
+ - spec/lib/ruby_smb/smb1/packet/negotiate_response_extended_spec.rb
307
+ - spec/lib/ruby_smb/smb1/packet/negotiate_response_spec.rb
308
+ - spec/lib/ruby_smb/smb1/packet/session_setup_request_spec.rb
309
+ - spec/lib/ruby_smb/smb1/packet/session_setup_response_spec.rb
310
+ - spec/lib/ruby_smb/smb1/parameter_block_spec.rb
311
+ - spec/lib/ruby_smb/smb1/smb_header_spec.rb
312
+ - spec/lib/ruby_smb/smb2/bit_field/header_flags_spec.rb
313
+ - spec/lib/ruby_smb/smb2/bit_field/session_flags_spec.rb
314
+ - spec/lib/ruby_smb/smb2/bit_field/smb2_capabilities_spec.rb
315
+ - spec/lib/ruby_smb/smb2/bit_field/smb_secruity_mode_spec.rb
316
+ - spec/lib/ruby_smb/smb2/packet/negotiate_request_spec.rb
317
+ - spec/lib/ruby_smb/smb2/packet/negotiate_response_spec.rb
318
+ - spec/lib/ruby_smb/smb2/packet/session_setup_request_spec.rb
319
+ - spec/lib/ruby_smb/smb2/packet/session_setup_response_spec.rb
320
+ - spec/lib/ruby_smb/smb2/smb2_header_spec.rb
321
+ - spec/lib/ruby_smb_spec.rb
322
+ - spec/spec_helper.rb
323
+ - spec/support/mock_socket_dispatcher.rb
324
+ - spec/support/shared/examples/bit_field_single_flag.rb
325
+ homepage: http://www.metasploit.com
326
+ licenses:
327
+ - BSD-3-clause
328
+ metadata: {}
329
+ post_install_message:
330
+ rdoc_options: []
331
+ require_paths:
332
+ - lib
333
+ required_ruby_version: !ruby/object:Gem::Requirement
334
+ requirements:
335
+ - - ">="
336
+ - !ruby/object:Gem::Version
337
+ version: '0'
338
+ required_rubygems_version: !ruby/object:Gem::Requirement
339
+ requirements:
340
+ - - ">="
341
+ - !ruby/object:Gem::Version
342
+ version: '0'
343
+ requirements: []
344
+ rubyforge_project:
345
+ rubygems_version: 2.4.8
346
+ signing_key:
347
+ specification_version: 4
348
+ summary: A message creator and parser for the SMB protocol family
349
+ test_files:
350
+ - spec/lib/ruby_smb/client_spec.rb
351
+ - spec/lib/ruby_smb/dispatcher/dispatcher_base_spec.rb
352
+ - spec/lib/ruby_smb/dispatcher/socket_spec.rb
353
+ - spec/lib/ruby_smb/field/file_time_spec.rb
354
+ - spec/lib/ruby_smb/field/nt_status_spec.rb
355
+ - spec/lib/ruby_smb/field/stringz16_spec.rb
356
+ - spec/lib/ruby_smb/generic_packet_spec.rb
357
+ - spec/lib/ruby_smb/smb1/andx_block_spec.rb
358
+ - spec/lib/ruby_smb/smb1/bit_field/capabilities_spec.rb
359
+ - spec/lib/ruby_smb/smb1/bit_field/header_flags2_spec.rb
360
+ - spec/lib/ruby_smb/smb1/bit_field/header_flags_spec.rb
361
+ - spec/lib/ruby_smb/smb1/bit_field/security_mode_spec.rb
362
+ - spec/lib/ruby_smb/smb1/data_block_spec.rb
363
+ - spec/lib/ruby_smb/smb1/dialect_spec.rb
364
+ - spec/lib/ruby_smb/smb1/packet/error_packet_spec.rb
365
+ - spec/lib/ruby_smb/smb1/packet/negotiate_request_spec.rb
366
+ - spec/lib/ruby_smb/smb1/packet/negotiate_response_extended_spec.rb
367
+ - spec/lib/ruby_smb/smb1/packet/negotiate_response_spec.rb
368
+ - spec/lib/ruby_smb/smb1/packet/session_setup_request_spec.rb
369
+ - spec/lib/ruby_smb/smb1/packet/session_setup_response_spec.rb
370
+ - spec/lib/ruby_smb/smb1/parameter_block_spec.rb
371
+ - spec/lib/ruby_smb/smb1/smb_header_spec.rb
372
+ - spec/lib/ruby_smb/smb2/bit_field/header_flags_spec.rb
373
+ - spec/lib/ruby_smb/smb2/bit_field/session_flags_spec.rb
374
+ - spec/lib/ruby_smb/smb2/bit_field/smb2_capabilities_spec.rb
375
+ - spec/lib/ruby_smb/smb2/bit_field/smb_secruity_mode_spec.rb
376
+ - spec/lib/ruby_smb/smb2/packet/negotiate_request_spec.rb
377
+ - spec/lib/ruby_smb/smb2/packet/negotiate_response_spec.rb
378
+ - spec/lib/ruby_smb/smb2/packet/session_setup_request_spec.rb
379
+ - spec/lib/ruby_smb/smb2/packet/session_setup_response_spec.rb
380
+ - spec/lib/ruby_smb/smb2/smb2_header_spec.rb
381
+ - spec/lib/ruby_smb_spec.rb
382
+ - spec/spec_helper.rb
383
+ - spec/support/mock_socket_dispatcher.rb
384
+ - spec/support/shared/examples/bit_field_single_flag.rb
metadata.gz.sig ADDED
Binary file