Class: Msf::Plugin::Wmap

Inherits:
Msf::Plugin show all
Defined in:
plugins/wmap.rb

Defined Under Namespace

Classes: WebTarget, WmapCommandDispatcher

Instance Attribute Summary

Attributes inherited from Msf::Plugin

#opts

Attributes included from Framework::Offspring

#framework

Instance Method Summary collapse

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.


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
2318
# File 'plugins/wmap.rb', line 2288

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'

  wmapbanner =  "%red\n.-.-.-..-.-.-..---..---.%clr\n"
  wmapbanner += "%red| | | || | | || | || |-'%clr\n"
  wmapbanner += "%red`-----'`-'-'-'`-^-'`-'%clr\n"
  wmapbanner += "[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(wmapbanner))

  add_console_dispatcher(WmapCommandDispatcher)
  #print_status("#{wmapbanner}")
end

Instance Method Details

#cleanupObject


2320
2321
2322
# File 'plugins/wmap.rb', line 2320

def cleanup
  remove_console_dispatcher('wmap')
end

#descObject


2328
2329
2330
# File 'plugins/wmap.rb', line 2328

def desc
  "Web assessment plugin"
end

#nameObject


2324
2325
2326
# File 'plugins/wmap.rb', line 2324

def name
  "wmap"
end