Skip to content

Commit 2f5fad4

Browse files
committed
Share plugin name
1 parent 199dca7 commit 2f5fad4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

plugins/nessus.rb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@
44

55
module Msf
66

7+
PLUGIN_NAME = 'Nessus'
8+
PLUGIN_DESCRIPTION = 'Nessus Bridge for Metasploit'
9+
710
class Plugin::Nessus < Msf::Plugin
11+
12+
def name
13+
PLUGIN_NAME
14+
end
815

916
class ConsoleCommandDispatcher
1017
include Msf::Ui::Console::CommandDispatcher
1118

1219
def name
13-
"Nessus"
20+
PLUGIN_NAME
1421
end
1522

1623
def xindex
@@ -175,7 +182,7 @@ def create_xindex
175182
o = nil
176183
begin
177184
o = mod.new
178-
rescue ::Exception
185+
rescue ::Exception
179186
end
180187
stuff << "#{refname}|#{o.name}|#{o.platform_to_s}|#{o.arch_to_s}"
181188
next if not o
@@ -1662,8 +1669,8 @@ def nessus_verify_db
16621669
def initialize(framework, opts)
16631670
super
16641671
add_console_dispatcher(ConsoleCommandDispatcher)
1665-
print_status("Nessus Bridge for Metasploit")
1666-
print_good("Type %bldnessus_help%clr for a command listing")
1672+
print_status(PLUGIN_DESCRIPTION)
1673+
print_status("Type %bldnessus_help%clr for a command listing")
16671674
end
16681675

16691676
def cleanup

0 commit comments

Comments
 (0)