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:
parent
1c6d7ee33e
commit
3ced5aece1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user