Class: Msf::Plugin::Wmap
- Inherits:
-
Msf::Plugin
- Object
- Msf::Plugin
- Msf::Plugin::Wmap
- Defined in:
- plugins/wmap.rb
Defined Under Namespace
Classes: WebTarget, WmapCommandDispatcher
Instance Attribute Summary
Attributes inherited from Msf::Plugin
Attributes included from Framework::Offspring
Instance Method Summary collapse
- #cleanup ⇒ Object
- #desc ⇒ Object
-
#initialize(framework, opts) ⇒ Wmap
constructor
A new instance of Wmap.
- #name ⇒ Object
Methods inherited from Msf::Plugin
#add_console_dispatcher, create, #flush, #input, #output, #print, #print_error, #print_good, #print_line, #print_status, #print_warning, #remove_console_dispatcher
Constructor Details
#initialize(framework, opts) ⇒ Wmap
Returns a new instance of Wmap.
2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 |
# File 'plugins/wmap.rb', line 2287 def initialize(framework, opts) super if framework.db.active == false raise 'Database not connected (try db_connect)' end color = self.opts["ConsoleDriver"].output.supports_color? rescue false wmapversion = '1.5.1' = "%red\n.-.-.-..-.-.-..---..---.%clr\n" += "%red| | | || | | || | || |-'%clr\n" += "%red`-----'`-'-'-'`-^-'`-'%clr\n" += "[WMAP #{wmapversion}] === et [ ] metasploit.com 2012\n" if not @stdio @stdio = Rex::Ui::Text::Output::Stdio.new end if color == true @stdio.auto_color else @stdio.disable_color end @stdio.print_raw(@stdio.substitute_colors()) add_console_dispatcher(WmapCommandDispatcher) #print_status("#{wmapbanner}") end |
Instance Method Details
#cleanup ⇒ Object
2319 2320 2321 |
# File 'plugins/wmap.rb', line 2319 def cleanup remove_console_dispatcher('wmap') end |
#desc ⇒ Object
2327 2328 2329 |
# File 'plugins/wmap.rb', line 2327 def desc "Web assessment plugin" end |
#name ⇒ Object
2323 2324 2325 |
# File 'plugins/wmap.rb', line 2323 def name "wmap" end |