1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

added default name for nexpose site cred

This commit is contained in:
Louis Sato 2016-04-12 15:38:34 -05:00 committed by Jeffrey Martin
parent 1c6d7ee33e
commit 3ced5aece1
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171

View File

@ -385,7 +385,8 @@ class Plugin::Nexpose < Msf::Plugin
when "-c"
if (val =~ /^([^:]+):([^:]+):(.+)/)
type, user, pass = [ $1, $2, $3 ]
newcreds = Nexpose::SiteCredentials.for_service("temporary_name", nil, nil, nil, nil, type)
msfid = Time.now.to_i
newcreds = Nexpose::SiteCredentials.for_service("Metasploit Site Credential #{msfid}", nil, nil, nil, nil, type)
newcreds.user_name = user
newcreds.password = pass
opt_credentials << newcreds