metasploit-credential 4.0.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,8 +55,7 @@ RSpec.describe Metasploit::Credential::Creation do
55
55
  origin_type: origin_type,
56
56
  username: 'admin',
57
57
  private_data: 'password',
58
- private_type: :password,
59
- workspace_id: workspace.id
58
+ private_type: :password
60
59
  }.merge(origin_data[origin_type])}
61
60
  it 'creates a credential core' do
62
61
  expect{ test_object.create_credential(credential_data) }.to change{ Metasploit::Credential::Core.count }.by(1)
@@ -89,8 +88,7 @@ RSpec.describe Metasploit::Credential::Creation do
89
88
  origin_type: :manual,
90
89
  username: 'admin',
91
90
  private_data: 'password',
92
- private_type: :password,
93
- workspace_id: workspace.id
91
+ private_type: :password
94
92
  }}
95
93
  it 'creates a credential core' do
96
94
  expect{ test_object.create_credential(credential_data) }.to change{ Metasploit::Credential::Core.count }.by(1)
@@ -117,8 +115,7 @@ RSpec.describe Metasploit::Credential::Creation do
117
115
  origin_type: :manual,
118
116
  username: public_value,
119
117
  private_data: 'password',
120
- private_type: :password,
121
- workspace_id: workspace.id
118
+ private_type: :password
122
119
  }}
123
120
  it 'creates a credential core' do
124
121
  expect{ test_object.create_credential(credential_data) }.to change{ Metasploit::Credential::Core.count }.by(1)
@@ -158,8 +155,7 @@ RSpec.describe Metasploit::Credential::Creation do
158
155
  origin_type: :manual,
159
156
  username: 'admin',
160
157
  private_data: private_data[private_type],
161
- private_type: private_type,
162
- workspace_id: workspace.id
158
+ private_type: private_type
163
159
  }}
164
160
  it 'creates a credential core' do
165
161
  expect{ test_object.create_credential(credential_data) }.to change{ Metasploit::Credential::Core.count }.by(1)
@@ -213,7 +209,6 @@ RSpec.describe Metasploit::Credential::Creation do
213
209
  username: 'admin',
214
210
  private_data: 'password',
215
211
  private_type: :password,
216
- workspace_id: workspace.id,
217
212
  address: service.host.address,
218
213
  port: service.port,
219
214
  service_name: service.name,
@@ -256,7 +251,6 @@ RSpec.describe Metasploit::Credential::Creation do
256
251
  username: 'admin',
257
252
  private_data: 'password',
258
253
  private_type: :password,
259
- workspace_id: workspace.id,
260
254
  address: service.host.address,
261
255
  port: service.port,
262
256
  service_name: service.name,
@@ -294,7 +288,6 @@ RSpec.describe Metasploit::Credential::Creation do
294
288
  username: public_value,
295
289
  private_data: 'password',
296
290
  private_type: :password,
297
- workspace_id: workspace.id,
298
291
  address: service.host.address,
299
292
  port: service.port,
300
293
  service_name: service.name,
@@ -344,7 +337,6 @@ RSpec.describe Metasploit::Credential::Creation do
344
337
  username: 'admin',
345
338
  private_data: private_data[private_type],
346
339
  private_type: private_type,
347
- workspace_id: workspace.id,
348
340
  address: service.host.address,
349
341
  port: service.port,
350
342
  service_name: service.name,
@@ -29,7 +29,7 @@ RSpec.describe Metasploit::Credential::Exporter::Core do
29
29
  describe "#export!" do
30
30
  it 'should create the zipfile' do
31
31
  core_exporter.export!
32
- expect(File.exists?(core_exporter.output_zipfile_path)).to eq(true)
32
+ expect(File.exist?(core_exporter.output_zipfile_path)).to eq(true)
33
33
  end
34
34
 
35
35
  it 'should output to a directory whose name contains the standardized identifier' do
@@ -452,4 +452,4 @@ RSpec.describe Metasploit::Credential::Exporter::Core do
452
452
  end
453
453
  end
454
454
  end
455
- end
455
+ end
data/spec/spec_helper.rb CHANGED
@@ -9,14 +9,8 @@ Bundler.setup(:default, :test)
9
9
  # Require simplecov before loading ..dummy/config/environment.rb because it will cause metasploit-credential/lib to
10
10
  # be loaded, which would result in Coverage not recording hits for any of the files.
11
11
  require 'simplecov'
12
- require 'coveralls'
13
12
 
14
- if ENV['TRAVIS'] == 'true'
15
- # don't generate local report as it is inaccessible on travis-ci, which is why coveralls is being used.
16
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
17
- else
18
- SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
19
- end
13
+ SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
20
14
 
21
15
  require File.expand_path("../dummy/config/environment", __FILE__)
22
16
  require 'rspec/rails'
metadata CHANGED
@@ -1,11 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit-credential
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Luke Imhoff
8
- - Trevor Rosen
7
+ - Metasploit Hackers
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain:
@@ -65,20 +64,20 @@ cert_chain:
65
64
  -----END CERTIFICATE-----
66
65
  - |
67
66
  -----BEGIN CERTIFICATE-----
68
- MIIFIzCCBAugAwIBAgIQDX9ZkVJ2eNVTlibR5ALyJTANBgkqhkiG9w0BAQsFADBy
67
+ MIIFIzCCBAugAwIBAgIQCMePMbkSxvnPeJhYXIfaxzANBgkqhkiG9w0BAQsFADBy
69
68
  MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
70
69
  d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFzc3VyZWQg
71
- SUQgQ29kZSBTaWduaW5nIENBMB4XDTE5MTAxNjAwMDAwMFoXDTIwMTAxOTEyMDAw
70
+ SUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMTAwNzAwMDAwMFoXDTIzMTEwNjEyMDAw
72
71
  MFowYDELMAkGA1UEBhMCVVMxFjAUBgNVBAgTDU1hc3NhY2h1c2V0dHMxDzANBgNV
73
72
  BAcTBkJvc3RvbjETMBEGA1UEChMKUmFwaWQ3IExMQzETMBEGA1UEAxMKUmFwaWQ3
74
- IExMQzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANHnKegPAghKuZk4
75
- Gy1jKaZEXbWc4fxioTemv/F1yIYzAjCWP65qjKtyeeFDe4/kJzG9nseF9oa93YBf
76
- 1nyEqxNSZMw/sCAZ87lOl713dRi73uxOoszy2PT5xEB+Q5R6cbzExkWG2zrLdXDr
77
- so0Bd6VHw+IsAoBBkAq5FrZOJQYGn5VY20xw/2D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
@@ -87,14 +86,14 @@ cert_chain:
87
86
  JAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLmRpZ2ljZXJ0LmNvbTBOBggrBgEFBQcw
88
87
  AoZCaHR0cDovL2NhY2VydHMuZGlnaWNlcnQuY29tL0RpZ2lDZXJ0U0hBMkFzc3Vy
89
88
  ZWRJRENvZGVTaWduaW5nQ0EuY3J0MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQEL
90
- BQADggEBAFpzR9s7lcYKDzSJucOHztEPj+iSIeCzxEw34NTE9M2AfkYIu82c4r2a
91
- bzIGmzZWiCGufjOp0gF5xW6sSSJ9n0TqH0nhHhvjtZQkmkGtOBbN1zeYDFS2ozAp
92
- sljF/g68Y1eYs3NaFf7kQUa6vb6RdjW3J8M9AQ8gthBt7gr/guVxd/gJUYbdDdBX
93
- cWfJJi/X7GVBOBmmvA43qoKideuhOBrVGBHvIF/yO9p23dIiUrGmW9kxXCSxgute
94
- JI/W23RbIRksG2pioMhd4dCXq3FLLlkOV1YfCwWixNB+iIhQPPZVaPNfgPhCn4Dt
95
- DeGjje/qA4fkLtRmOtb9PUBq3ToRDE4=
89
+ BQADggEBAN+GL5/myPWg7oH4mVrG7/OhXF1MoYQF0ddaNiqaweEHMuKJBQCVZRbL
90
+ 37HojoKXXv2yyRJBCeTB+ojrxX+5PdLVZa0ss7toWzJ2A1poPXZ1eZvm5xeFD32z
91
+ YQaTmmNWNI3PCDTyJ2PXUc+bDiNNwcZ7yc5o78UNRvp9Jxghya17Q76c9Ov9wvnv
92
+ dxxQKWGOQy0m4fBrkyjAyH9Djjn81RbQrqYgPuhd5nD0HjN3VUQLhQbIJrk9TVs0
93
+ EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
94
+ 9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
96
95
  -----END CERTIFICATE-----
97
- date: 2020-04-26 00:00:00.000000000 Z
96
+ date: 2021-04-29 00:00:00.000000000 Z
98
97
  dependencies:
99
98
  - !ruby/object:Gem::Dependency
100
99
  name: metasploit-concern
@@ -116,14 +115,14 @@ dependencies:
116
115
  requirements:
117
116
  - - ">="
118
117
  - !ruby/object:Gem::Version
119
- version: 3.0.0
118
+ version: 5.0.0
120
119
  type: :runtime
121
120
  prerelease: false
122
121
  version_requirements: !ruby/object:Gem::Requirement
123
122
  requirements:
124
123
  - - ">="
125
124
  - !ruby/object:Gem::Version
126
- version: 3.0.0
125
+ version: 5.0.0
127
126
  - !ruby/object:Gem::Dependency
128
127
  name: metasploit-model
129
128
  requirement: !ruby/object:Gem::Requirement
@@ -224,8 +223,7 @@ dependencies:
224
223
  version: '0'
225
224
  description: The Metasploit::Credential namespace and its ActiveRecord::Base subclasses
226
225
  email:
227
- - luke_imhoff@rapid7.com
228
- - trevor_rosen@rapid7.com
226
+ - msfdev@metasploit.com
229
227
  executables: []
230
228
  extensions: []
231
229
  extra_rdoc_files: []
@@ -330,7 +328,7 @@ files:
330
328
  - spec/dummy/config/boot.rb
331
329
  - spec/dummy/config/database.yml
332
330
  - spec/dummy/config/database.yml.example
333
- - spec/dummy/config/database.yml.travis
331
+ - spec/dummy/config/database.yml.github_actions
334
332
  - spec/dummy/config/environment.rb
335
333
  - spec/dummy/config/environments/development.rb
336
334
  - spec/dummy/config/environments/production.rb
@@ -429,7 +427,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
429
427
  requirements:
430
428
  - - ">="
431
429
  - !ruby/object:Gem::Version
432
- version: 2.2.0
430
+ version: 2.4.0
433
431
  required_rubygems_version: !ruby/object:Gem::Requirement
434
432
  requirements:
435
433
  - - ">="
@@ -458,7 +456,7 @@ test_files:
458
456
  - spec/dummy/config/boot.rb
459
457
  - spec/dummy/config/database.yml
460
458
  - spec/dummy/config/database.yml.example
461
- - spec/dummy/config/database.yml.travis
459
+ - spec/dummy/config/database.yml.github_actions
462
460
  - spec/dummy/config/environment.rb
463
461
  - spec/dummy/config/environments/development.rb
464
462
  - spec/dummy/config/environments/production.rb
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ���3:HQ`{p
2
- v <�|W���t��nz{�Ml�A���z3B,<Uȏ�N����L�nhefA��0�il�A\F�{��GPtQE��`_ߗ#�1abid��O�s����e�F��7� K�[^r&�QW ���������M�f�\��楁��e��M;κI�a,{ ���z����۷��zד|rDCT�I�0���š;�S!�=[>]�֨� ]]� ٗ��j��x �[i�� ��
1
+ ��"WjKP�6�G� �=g)��P�J�Ӓ�%��4ij�d���O ]��>J�,׌<���(7���5z���+\�s`��}�^J�y<��k1���N,gX���N��.֐jX2_;�
2
+ �@�*�ܵ �A�E��>�B�л��(0�^�?�m6�#���δ�ک#�����1��cn*ʭ���={T��#������x)uWb