Files
metasploit-gs/lib/msf/core/post_mixin.rb
T
2023-12-04 17:55:15 +00:00

28 lines
553 B
Ruby

# -*- coding: binary -*-
#
# A mixin used for providing Modules with post-exploitation options and helper methods
#
module Msf::PostMixin
include Msf::SessionCompatibility
def initialize(info = {})
super(
update_info(
info,
'Compat' => {
'Meterpreter' => {
'Commands' => %w[
stdapi_sys_config_sysinfo
]
}
}
)
)
register_options( [
Msf::OptInt.new('SESSION', [ true, 'The session to run this module on' ])
] , Msf::Post)
end
end