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.
2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 |
# File 'plugins/wmap.rb', line 2263 def initialize(framework, opts) super if framework.db.active == false raise 'Database not connected (try db_connect)' end color = begin self.opts['ConsoleDriver'].output.supports_color? rescue StandardError false end wmapversion = '1.5.1' = "%red\n.-.-.-..-.-.-..---..---.%clr\n" += "%red| | | || | | || | || |-'%clr\n" += "%red`-----'`-'-'-'`-^-'`-'%clr\n" += "[WMAP #{wmapversion}] === et [ ] metasploit.com 2012\n" if !@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
2299 2300 2301 |
# File 'plugins/wmap.rb', line 2299 def cleanup remove_console_dispatcher('wmap') end |
#desc ⇒ Object
2307 2308 2309 |
# File 'plugins/wmap.rb', line 2307 def desc 'Web assessment plugin' end |
#name ⇒ Object
2303 2304 2305 |
# File 'plugins/wmap.rb', line 2303 def name 'wmap' end |