41 lines
612 B
Ruby
41 lines
612 B
Ruby
# -*- coding: binary -*-
|
|
|
|
module Msf
|
|
class Post
|
|
module Windows
|
|
|
|
module Kiwi
|
|
|
|
def initialize(info = {})
|
|
super(
|
|
update_info(
|
|
info,
|
|
'Compat' => {
|
|
'Meterpreter' => {
|
|
'Commands' => %w[
|
|
kiwi_exec_cmd
|
|
]
|
|
}
|
|
}
|
|
)
|
|
)
|
|
end
|
|
|
|
def load_kiwi
|
|
if session.kiwi
|
|
return true
|
|
else
|
|
begin
|
|
return session.core.use('kiwi')
|
|
rescue Errno::ENOENT
|
|
print_error('Unable to load Kiwi Mimikatz Extension.')
|
|
return false
|
|
end
|
|
end
|
|
end
|
|
|
|
end # Kiwi
|
|
end # Windows
|
|
end # Post
|
|
end # Msf
|