Skip to content

Commit 3889ed5

Browse files
author
Jonathan Claudius
committed
Add cred login
1 parent eead063 commit 3889ed5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

modules/post/multi/gather/rubygems_api_key.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,16 @@ def download_loot(paths)
5959
workspace_id: myworkspace_id
6060
}
6161

62-
create_credential(credential_data)
62+
credential_core = create_credential(credential_data)
63+
64+
login_data = {
65+
core: credential_core,
66+
status: Metasploit::Model::Login::Status::UNTRIED,
67+
workspace_id: myworkspace_id
68+
}
69+
70+
login_data.merge!(service_data)
71+
create_credential_login(login_data)
6372
end
6473
end
6574
end

0 commit comments

Comments
 (0)