File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
module Msf
6
6
7
+ PLUGIN_NAME = 'Nessus'
8
+ PLUGIN_DESCRIPTION = 'Nessus Bridge for Metasploit'
9
+
7
10
class Plugin ::Nessus < Msf ::Plugin
11
+
12
+ def name
13
+ PLUGIN_NAME
14
+ end
8
15
9
16
class ConsoleCommandDispatcher
10
17
include Msf ::Ui ::Console ::CommandDispatcher
11
18
12
19
def name
13
- "Nessus"
20
+ PLUGIN_NAME
14
21
end
15
22
16
23
def xindex
@@ -175,7 +182,7 @@ def create_xindex
175
182
o = nil
176
183
begin
177
184
o = mod . new
178
- rescue ::Exception
185
+ rescue ::Exception
179
186
end
180
187
stuff << "#{ refname } |#{ o . name } |#{ o . platform_to_s } |#{ o . arch_to_s } "
181
188
next if not o
@@ -1662,8 +1669,8 @@ def nessus_verify_db
1662
1669
def initialize ( framework , opts )
1663
1670
super
1664
1671
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" )
1667
1674
end
1668
1675
1669
1676
def cleanup
You can’t perform that action at this time.
0 commit comments