Module: Msf::Post::Windows::ExtAPI

Included in:
LDAP, Services, WMIC
Defined in:
lib/msf/core/post/windows/extapi.rb

Instance Method Summary collapse

Instance Method Details

#initialize(info = {}) ⇒ Object


9
10
11
12
13
14
# File 'lib/msf/core/post/windows/extapi.rb', line 9

def initialize(info = {})
  super(update_info(
    info,
    'Compat' => { 'Meterpreter' => { 'Commands' => %w{ extapi_* } } }
  ))
end

#load_extapiObject


16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/msf/core/post/windows/extapi.rb', line 16

def load_extapi
  if session.extapi
    return true
  else
    begin
      return session.core.use("extapi")
    rescue Errno::ENOENT
      print_error("Unable to load Extended API.")
      return false
    end
  end
end