packetgen-plugin-smb 0.6.2 → 0.6.3

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: 4b63382e5580528b23ba059cd370db53203efec6cd6273388f88b15976b9343d
4
- data.tar.gz: 425f63395bdc0c38e1288f0690fd8cc51c944645b5fc017e2c6289ba9c54b78d
3
+ metadata.gz: 81c44249205f74086ef6aa53ed5bae0b9cc4d988cbc32ed6280c389e222dfaa6
4
+ data.tar.gz: fa0c225d0bac37bf479969a2bd2a968309aacb1eb06d986d5784c99bde35575e
5
5
  SHA512:
6
- metadata.gz: '08a4a6e817ff3ae8c7c341c6af64722fcdf09331767627adf04c36a6f442dcc6ea7dfb21cd76f2ec3c1f9818b5b3e565806b5391d041130c189de9fc89eacaf6'
7
- data.tar.gz: b537ad94930b18a5ab93a219a66090384c84f0cfae44426b42304732c0f31e41c9903e9cf8eb41778e82661eb5803d33cdca640104b7a0e5db37df2497320af9
6
+ metadata.gz: 6f6834ace18bbb690025a2856be929abfa8355e218eaa66e67c76cbd0ce3711a55836d99a77d5a598d36a433b6c6ae0355103a91a726520f7204aa7494e40359
7
+ data.tar.gz: 6e87dddb4fcf4e5e4c6e534402321bc11d8e1c53b4f1fcba535ccf443ea42f6a17c1ed9935108cd066cc7fb522064f9ba43aff3b3e0aa49589ef58b0e67987b8
@@ -10,7 +10,7 @@ jobs:
10
10
  fail-fast: false
11
11
  matrix:
12
12
  os: [ubuntu-latest]
13
- ruby: [2.4, 2.5, 2.6, 2.7]
13
+ ruby: ['2.5', '2.6', '2.7', '3.0', '3.1']
14
14
  runs-on: ${{ matrix.os }}
15
15
  steps:
16
16
  - uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -1,14 +1,29 @@
1
1
  require:
2
2
  - rubocop-performance
3
+ AllCops:
4
+ TargetRubyVersion: '2.5'
5
+ NewCops: enable
6
+ Exclude:
7
+ - .git/**/*
8
+ - spec/**/*
9
+ - vendor/**/*
3
10
  Layout/LineLength:
4
- Max: 150
11
+ Enabled: false
5
12
  Layout/SpaceAroundEqualsInParameterDefault:
6
13
  EnforcedStyle: no_space
7
14
  Lint/EmptyWhen:
8
15
  Enabled: false
9
16
  Lint/Void:
10
17
  Enabled: false
11
- Metrics:
18
+ Metrics/AbcSize:
19
+ Max: 20
20
+ Metrics/ClassLength:
21
+ Max: 200
22
+ Metrics/MethodLength:
23
+ Max: 20
24
+ Metrics/ParameterLists:
25
+ MaxOptionalParameters: 4
26
+ Naming/FileName:
12
27
  Enabled: false
13
28
  Style/AccessModifierDeclarations:
14
29
  Enabled: false
@@ -16,6 +31,9 @@ Style/AsciiComments:
16
31
  Enabled: false
17
32
  Style/ClassAndModuleChildren:
18
33
  Enabled: false
34
+ Style/Documentation:
35
+ # Too many false positives!
36
+ Enabled: false
19
37
  Style/Encoding:
20
38
  Enabled: false
21
39
  Style/EvalWithLocation:
@@ -23,7 +41,7 @@ Style/EvalWithLocation:
23
41
  Style/FormatString:
24
42
  EnforcedStyle: percent
25
43
  Style/FormatStringToken:
26
- EnforcedStyle: unannotated
44
+ MaxUnannotatedPlaceholdersAllowed: 3
27
45
  Style/PerlBackrefs:
28
46
  Enabled: false
29
47
  Style/RedundantSelf:
@@ -61,6 +61,8 @@ module PacketGen::Plugin
61
61
  # gssapi[:token_resp][:response] #=> RASN1::Types::OctetString
62
62
  # @author Sylvain Daubert
63
63
  class GSSAPI < RASN1::Model
64
+ include PacketGen::Types::Fieldable
65
+
64
66
  # GSS API Negotiation Token Init
65
67
  #
66
68
  # A GSSAPI Negotiation Token Init is a ASN.1 SEQUENCE, explicitly tagged 0,
@@ -94,10 +96,14 @@ module PacketGen::Plugin
94
96
  octet_string(:mech_list_mic, explicit: 3, class: :context, constructed: true, optional: true)]
95
97
  end
96
98
 
99
+ class NegTokenInitEnvelop < RASN1::Model
100
+ sequence(:init, implicit: 0, class: :application,
101
+ content: [objectid(:oid, value: '1.3.6.1.5.5.2'),
102
+ model(:token_init, NegTokenInit)])
103
+ end
104
+
97
105
  choice :gssapi,
98
- content: [sequence(:init, implicit: 0, class: :application,
99
- content: [objectid(:oid, value: '1.3.6.1.5.5.2'),
100
- model(:token_init, NegTokenInit)]),
106
+ content: [model(:init_env, NegTokenInitEnvelop),
101
107
  model(:token_resp, NegTokenResp)]
102
108
 
103
109
  # @param [Hash] args
@@ -119,10 +125,8 @@ module PacketGen::Plugin
119
125
  self
120
126
  end
121
127
 
122
- # Get size of GSSAPI DER string, in bytes
123
- # @return [Integer]
124
- def sz
125
- to_der.size
128
+ def to_human
129
+ inspect
126
130
  end
127
131
 
128
132
  alias to_s to_der
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PacketGen
4
4
  module Plugin
5
- SMB_VERSION = '0.6.2'
5
+ SMB_VERSION = '0.6.3'
6
6
  end
7
7
  end
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
21
  spec.require_paths = %w[lib]
22
22
 
23
- spec.required_ruby_version = '>= 2.4.0'
23
+ spec.required_ruby_version = '>= 2.5.0'
24
24
 
25
- spec.add_dependency 'packetgen', '~>3.1', '>=3.1.7'
26
- spec.add_dependency 'rasn1', '~>0.6', '>= 0.6.8'
25
+ spec.add_dependency 'packetgen', '~>3.2', '>=3.2.1'
26
+ spec.add_dependency 'rasn1', '~>0.8', '>= 0.8.0'
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packetgen-plugin-smb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Daubert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-24 00:00:00.000000000 Z
11
+ date: 2022-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: packetgen
@@ -16,40 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '3.2'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.1.7
22
+ version: 3.2.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '3.1'
29
+ version: '3.2'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.1.7
32
+ version: 3.2.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rasn1
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.6'
39
+ version: '0.8'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 0.6.8
42
+ version: 0.8.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '0.6'
49
+ version: '0.8'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 0.6.8
52
+ version: 0.8.0
53
53
  description:
54
54
  email:
55
55
  - sylvain.daubert@laposte.net
@@ -124,15 +124,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: 2.4.0
127
+ version: 2.5.0
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubyforge_project:
135
- rubygems_version: 2.7.6.2
134
+ rubygems_version: 3.2.5
136
135
  signing_key:
137
136
  specification_version: 4
138
137
  summary: SMB plugin for packetgen.