parent
3dec7f61a5
commit
77dd7ec290
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
module Msf::Post::Windows
|
module Msf::Post::Windows
|
||||||
|
require 'msf/core/post/windows/extapi'
|
||||||
require 'msf/core/post/windows/accounts'
|
require 'msf/core/post/windows/accounts'
|
||||||
require 'msf/core/post/windows/cli_parse'
|
require 'msf/core/post/windows/cli_parse'
|
||||||
require 'msf/core/post/windows/eventlog'
|
require 'msf/core/post/windows/eventlog'
|
||||||
|
@ -12,4 +13,5 @@ module Msf::Post::Windows
|
||||||
require 'msf/core/post/windows/services'
|
require 'msf/core/post/windows/services'
|
||||||
require 'msf/core/post/windows/shadowcopy'
|
require 'msf/core/post/windows/shadowcopy'
|
||||||
require 'msf/core/post/windows/user_profiles'
|
require 'msf/core/post/windows/user_profiles'
|
||||||
|
require 'msf/core/post/windows/wmic'
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
# -*- coding: binary -*-
|
||||||
|
|
||||||
|
module Msf
|
||||||
|
class Post
|
||||||
|
module Windows
|
||||||
|
|
||||||
|
module ExtAPI
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
end # ExtAPI
|
||||||
|
end # Windows
|
||||||
|
end # Post
|
||||||
|
end # Msf
|
|
@ -23,6 +23,7 @@ end
|
||||||
#
|
#
|
||||||
module Services
|
module Services
|
||||||
|
|
||||||
|
include ::Msf::Post::Windows::ExtAPI
|
||||||
include ::Msf::Post::Windows::Registry
|
include ::Msf::Post::Windows::Registry
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue