From 3ced5aece1663aec630efc1f0a76184f23673f8c Mon Sep 17 00:00:00 2001 From: Louis Sato Date: Tue, 12 Apr 2016 15:38:34 -0500 Subject: [PATCH] added default name for nexpose site cred --- plugins/nexpose.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/nexpose.rb b/plugins/nexpose.rb index 854a3dfd53..bd1380f6bf 100644 --- a/plugins/nexpose.rb +++ b/plugins/nexpose.rb @@ -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