diff --git a/lib/msf/core/post/windows/extapi.rb b/lib/msf/core/post/windows/extapi.rb new file mode 100644 index 0000000000..b0ca55822a --- /dev/null +++ b/lib/msf/core/post/windows/extapi.rb @@ -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