metasploit-credential 6.0.19 → 6.0.20
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29eb2adae3e354efa557b14938b7e85b7eeb44ea3bd98fdb69bbc7b8bc6efdf3
|
|
4
|
+
data.tar.gz: 425f101cb90ce6620e61bbed4e786f7e750e1d823ede8e2c0ab55362f836f162
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11b80697bd98c100da4d8208db64d4a111afa01bfd33f9c68e821caf5232317aa44828073648ac1a03f806afc07759f36be594306a13a6552687bbbb13696754
|
|
7
|
+
data.tar.gz: ce6337b1cdcdef9cab14d9f37b15fee1d7515cc503b57ad2d39febd02ad1177c54d997ee8bbd967a3a33a7382ff0df87030e357aaa499a98bbbbd3c02770027d
|
|
@@ -563,9 +563,8 @@ module Metasploit::Credential::Creation
|
|
|
563
563
|
workspace_id = opts.fetch(:workspace_id)
|
|
564
564
|
|
|
565
565
|
host_object = Mdm::Host.where(address: address, workspace_id: workspace_id).first_or_create
|
|
566
|
-
service_object = Mdm::Service.where(host_id: host_object.id, port: port, proto: protocol).first_or_initialize
|
|
566
|
+
service_object = Mdm::Service.where(host_id: host_object.id, port: port, proto: protocol, name: service_name).first_or_initialize
|
|
567
567
|
|
|
568
|
-
service_object.name = service_name
|
|
569
568
|
service_object.state = "open"
|
|
570
569
|
service_object.save!
|
|
571
570
|
|
|
@@ -18,7 +18,7 @@ FactoryBot.define do
|
|
|
18
18
|
sequence :wellformed_pwdump do |n|
|
|
19
19
|
pwdump_string = <<-EOS
|
|
20
20
|
# LM/NTLM Hashes (1 hashes, 1 services)
|
|
21
|
-
# 192.168.0.2:4567/
|
|
21
|
+
# 192.168.0.2:4567/udp (snmp)
|
|
22
22
|
metasploit_credential_public_username1:1:aad3b435b51404eeaad3b435b51404ee:79d2d315bcb541a94d4f094a74b46cb2:::
|
|
23
23
|
|
|
24
24
|
# SSH Private Keys (1 services, 1 keys)
|
|
@@ -26,24 +26,24 @@ metasploit_credential_public_username1:1:aad3b435b51404eeaad3b435b51404ee:79d2d3
|
|
|
26
26
|
Warning: missing SSH key file 'kljsdlkfjfkl;jasdf;lkasjdf;lkjasdf;lkjasdf;lkj'.
|
|
27
27
|
|
|
28
28
|
# Hashes (2 hashes, 2 services)
|
|
29
|
-
# 192.168.0.2:4567/
|
|
29
|
+
# 192.168.0.2:4567/udp (snmp)
|
|
30
30
|
metasploit_credential_public_username1:40bdee771d42eb80d47a7d34ed7fc0a318927197:::
|
|
31
31
|
|
|
32
|
-
# 192.168.0.3:4567/
|
|
32
|
+
# 192.168.0.3:4567/udp (snmp)
|
|
33
33
|
metasploit_credential_public_username2:1654f171e0123b54272d82fb7e94bdf214a9b2a4:::
|
|
34
34
|
|
|
35
35
|
# Plaintext Passwords (2 hashes, 2 services)
|
|
36
|
-
# 192.168.0.2:4567/
|
|
36
|
+
# 192.168.0.2:4567/udp (snmp)
|
|
37
37
|
metasploit_credential_public_username1 metasploit_credential_password2
|
|
38
38
|
|
|
39
|
-
# 192.168.0.3:4567/
|
|
39
|
+
# 192.168.0.3:4567/udp (snmp)
|
|
40
40
|
metasploit_credential_public_username2 metasploit_credential_password3
|
|
41
41
|
|
|
42
42
|
# Postgres MD5 Hashes (1 hashes, 1 services)
|
|
43
|
-
# 192.168.0.2:5432/
|
|
43
|
+
# 192.168.0.2:5432/tcp (postgres)
|
|
44
44
|
metasploit_credential_public_username1:md53175bce1d3201d16594cebf9d7eb3f9d
|
|
45
45
|
EOS
|
|
46
46
|
StringIO.new(pwdump_string)
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
end
|
|
49
|
+
end
|
|
@@ -610,7 +610,7 @@ RSpec.describe Metasploit::Credential::Creation do
|
|
|
610
610
|
origin_type: :service
|
|
611
611
|
}
|
|
612
612
|
host = FactoryBot.create(:mdm_host, address: opts[:address], workspace_id: opts[:workspace_id])
|
|
613
|
-
FactoryBot.create(:mdm_service, host_id: host.id, port: opts[:port], proto: opts[:protocol])
|
|
613
|
+
FactoryBot.create(:mdm_service, host_id: host.id, port: opts[:port], proto: opts[:protocol], name: opts[:service_name])
|
|
614
614
|
expect { test_object.create_credential_origin_service(opts)}.to_not change{Mdm::Service.count }
|
|
615
615
|
end
|
|
616
616
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metasploit-credential
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.0.
|
|
4
|
+
version: 6.0.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Metasploit Hackers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-02-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metasploit-concern
|