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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/README.md +2 -2
- data/lib/metasploit/credential/entity_relationship_diagram.rb +1 -1
- data/lib/metasploit/credential/exporter/pwdump.rb +1 -1
- data/lib/metasploit/credential/version.rb +1 -1
- data/spec/dummy/app/models/application_record.rb +2 -0
- data/spec/dummy/config/application.rb +1 -0
- data/spec/dummy/config/database.yml +2 -2
- data/spec/dummy/config/{database.yml.travis → database.yml.github_actions} +4 -5
- data/spec/dummy/db/structure.sql +953 -988
- data/spec/lib/metasploit/credential/creation_spec.rb +4 -12
- data/spec/lib/metasploit/credential/exporter/core_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -7
- metadata +25 -27
- metadata.gz.sig +2 -2
@@ -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.
|
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
|
-
|
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
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
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
|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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:
|
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:
|
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
|
-
-
|
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.
|
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.
|
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.
|
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
|
-
|
2
|
-
|
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�)uW�b�
|