ruby_smb 3.1.6 → 3.1.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: 41dae2cdf118dfda8519ebf1a109c77e9396d9cda01c20e5a45a2fdd222ddb38
4
- data.tar.gz: 37d8b0d88283c540ee074035cdc2728d9bd4bb2960f1d379d81d1a926cb11aa1
3
+ metadata.gz: 2709740a324a2a43861b70704a20c07ad3302390e40ad2cb2b19aa4574e1718c
4
+ data.tar.gz: 9a4e4d4e59ae52a67b02f098c4610137182e5ff2cb4106a5d710c5b9e5d0de44
5
5
  SHA512:
6
- metadata.gz: 1de29406e9e28d9d47dddfaff03d81aeb10aa28c5bb827c3c81e52f6b3d42b302a22143a71c1a89db91968f6b33d2299658bfe04dcf4897e000bc9170c11318c
7
- data.tar.gz: d2794e3f509f10e98e5914e03e499c4433f2a78070090cefe704528e573c8b50bf049f1bb2a34ff5a63d26af759ad6a24fad83f778064e8c2ab446c7ef2841f8
6
+ metadata.gz: 00004e2a2b38ebdf190ec39bdf6abc27607ac227d705b4e5f7943737a3119ad13102ddf3884bfb697b3f7bca9ec29b45db2a0554811fd41f8e67a9bd96463244
7
+ data.tar.gz: 677c779a105a0a8c478923e784500c0b9ec1710d9d332a87e4967a372987c3abb86a054254b0ec4ed2e7b4ad11527fa4c3fcc9fb233df92108f8700d3bb21d93
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,5 +1,21 @@
1
1
  name: Verify
2
2
 
3
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
4
+ permissions:
5
+ actions: none
6
+ checks: none
7
+ contents: none
8
+ deployments: none
9
+ id-token: none
10
+ issues: none
11
+ discussions: none
12
+ packages: none
13
+ pages: none
14
+ pull-requests: none
15
+ repository-projects: none
16
+ security-events: none
17
+ statuses: none
18
+
3
19
  on:
4
20
  push:
5
21
  branches:
@@ -10,7 +26,7 @@ on:
10
26
 
11
27
  jobs:
12
28
  test:
13
- runs-on: ubuntu-18.04
29
+ runs-on: ${{ matrix.os }}
14
30
  timeout-minutes: 40
15
31
 
16
32
  strategy:
@@ -19,15 +35,22 @@ jobs:
19
35
  ruby:
20
36
  - 2.6
21
37
  - 2.7
22
- - 3.0.3
23
- - 3.1.1
38
+ - 3.0
39
+ - 3.1
40
+ os:
41
+ - ubuntu-18.04
42
+ - ubuntu-22.04
43
+ exclude:
44
+ - { os: ubuntu-22.04, ruby: 2.6 }
45
+ - { os: ubuntu-22.04, ruby: 2.7 }
46
+ - { os: ubuntu-22.04, ruby: 3.0 }
24
47
  test_cmd:
25
48
  - bundle exec rspec
26
49
 
27
50
  env:
28
51
  RAILS_ENV: test
29
52
 
30
- name: Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }}
53
+ name: ${{ matrix.os }} - Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }}
31
54
  steps:
32
55
  - name: Checkout code
33
56
  uses: actions/checkout@v2
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # RubySMB
2
2
 
3
3
  [![Code Climate](https://codeclimate.com/github/rapid7/ruby_smb.png)](https://codeclimate.com/github/rapid7/ruby_smb)
4
- [![Coverage Status](https://coveralls.io/repos/github/rapid7/ruby_smb/badge.svg?branch=master)](https://coveralls.io/github/rapid7/ruby_smb?branch=master)
5
4
 
6
5
  This is a native Ruby implementation of the SMB Protocol Family. It currently supports:
7
6
 
@@ -53,6 +53,8 @@ module RubySMB
53
53
  def self.smb2_sign(packet, session_key)
54
54
  packet.smb2_header.flags.signed = 1
55
55
  packet.smb2_header.signature = "\x00" * 16
56
+ # OpenSSL 3 raises exceptions if the session key is an empty string
57
+ session_key = session_key == '' ? ("\x00" * 16).b : session_key
56
58
  hmac = OpenSSL::HMAC.digest(OpenSSL::Digest.new('SHA256'), session_key, packet.to_binary_s)
57
59
  packet.smb2_header.signature = hmac[0, 16]
58
60
 
@@ -1,3 +1,3 @@
1
1
  module RubySMB
2
- VERSION = '3.1.6'.freeze
2
+ VERSION = '3.1.7'.freeze
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,18 +1,16 @@
1
+ # Enable legacy providers
2
+ ENV['OPENSSL_CONF'] = File.expand_path(
3
+ File.join(File.dirname(__FILE__), 'support', 'openssl.conf')
4
+ )
5
+
1
6
  require 'simplecov'
2
7
 
3
8
  SimpleCov.start unless SimpleCov.running
4
9
  SimpleCov.add_filter '/spec/'
5
10
 
6
- require 'coveralls'
7
11
  require 'ruby_smb'
8
12
 
9
- if ENV['CI'] == 'true'
10
- # don't generate local report as it is inaccessible on travis-ci, which is
11
- # why coveralls is being used.
12
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
13
- else
14
- SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
15
- end
13
+ SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
16
14
 
17
15
  Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
18
16
 
@@ -0,0 +1,14 @@
1
+ openssl_conf = openssl_init
2
+
3
+ [openssl_init]
4
+ providers = provider_sect
5
+
6
+ [provider_sect]
7
+ default = default_sect
8
+ legacy = legacy_sect
9
+
10
+ [default_sect]
11
+ activate = 1
12
+
13
+ [legacy_sect]
14
+ activate = 1
data.tar.gz.sig CHANGED
Binary file
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.1.6
4
+ version: 3.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
@@ -97,7 +97,7 @@ cert_chain:
97
97
  EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
98
98
  9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
99
99
  -----END CERTIFICATE-----
100
- date: 2022-07-06 00:00:00.000000000 Z
100
+ date: 2022-08-03 00:00:00.000000000 Z
101
101
  dependencies:
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: redcarpet
@@ -971,6 +971,7 @@ files:
971
971
  - spec/spec_helper.rb
972
972
  - spec/support/bin_helper.rb
973
973
  - spec/support/mock_socket_dispatcher.rb
974
+ - spec/support/openssl.conf
974
975
  - spec/support/shared/examples/bit_field_single_flag.rb
975
976
  homepage: https://github.com/rapid7/ruby_smb
976
977
  licenses:
@@ -1297,4 +1298,5 @@ test_files:
1297
1298
  - spec/spec_helper.rb
1298
1299
  - spec/support/bin_helper.rb
1299
1300
  - spec/support/mock_socket_dispatcher.rb
1301
+ - spec/support/openssl.conf
1300
1302
  - spec/support/shared/examples/bit_field_single_flag.rb
metadata.gz.sig CHANGED
Binary file