2005-12-26 14:34:22 +00:00
|
|
|
require 'msf/core'
|
|
|
|
require 'msf/core/handler/find_shell'
|
|
|
|
require 'msf/base/sessions/command_shell'
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
module Payloads
|
|
|
|
module Singles
|
|
|
|
module Cmd
|
|
|
|
module Unix
|
|
|
|
|
|
|
|
module Interact
|
|
|
|
|
|
|
|
include Msf::Payload::Single
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(merge_info(info,
|
|
|
|
'Name' => 'Unix Command, Interact with established connection',
|
|
|
|
'Version' => '$Revision$',
|
|
|
|
'Description' => 'Interacts with a shell on an established TCP connection',
|
|
|
|
'Author' => 'hdm',
|
2006-01-21 22:10:20 +00:00
|
|
|
'License' => MSF_LICENSE,
|
2005-12-26 14:34:22 +00:00
|
|
|
'Platform' => 'unix',
|
|
|
|
'Arch' => ARCH_CMD,
|
|
|
|
'Handler' => Msf::Handler::FindShell,
|
|
|
|
'Session' => Msf::Sessions::CommandShell,
|
2005-12-27 04:16:23 +00:00
|
|
|
'PayloadType' => 'cmd_interact',
|
2005-12-26 14:34:22 +00:00
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Offsets' => { },
|
|
|
|
'Payload' => ''
|
|
|
|
}
|
|
|
|
))
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end end end end end
|