ruby_smb 3.1.6 → 3.1.7
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
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/verify.yml +27 -4
- data/README.md +0 -1
- data/lib/ruby_smb/signing.rb +2 -0
- data/lib/ruby_smb/version.rb +1 -1
- data/spec/spec_helper.rb +6 -8
- data/spec/support/openssl.conf +14 -0
- data.tar.gz.sig +0 -0
- metadata +4 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2709740a324a2a43861b70704a20c07ad3302390e40ad2cb2b19aa4574e1718c
|
4
|
+
data.tar.gz: 9a4e4d4e59ae52a67b02f098c4610137182e5ff2cb4106a5d710c5b9e5d0de44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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
|
23
|
-
- 3.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
|
[](https://codeclimate.com/github/rapid7/ruby_smb)
|
4
|
-
[](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
|
|
data/lib/ruby_smb/signing.rb
CHANGED
@@ -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
|
|
data/lib/ruby_smb/version.rb
CHANGED
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
|
-
|
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
|
|
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.
|
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-
|
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
|