moving shit around
git-svn-id: file:///home/svn/incoming/trunk@2436 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
4cad6300b0
commit
8cfd736ea6
|
@ -12,7 +12,7 @@ module Pools
|
||||||
###
|
###
|
||||||
#
|
#
|
||||||
# StreamPool
|
# StreamPool
|
||||||
# ----
|
# ----------
|
||||||
#
|
#
|
||||||
# This class represents a channel that is associated with a
|
# This class represents a channel that is associated with a
|
||||||
# streaming pool that has no definite end-point. While this
|
# streaming pool that has no definite end-point. While this
|
||||||
|
@ -24,12 +24,6 @@ module Pools
|
||||||
###
|
###
|
||||||
class StreamPool < Rex::Post::Meterpreter::Channels::Pool
|
class StreamPool < Rex::Post::Meterpreter::Channels::Pool
|
||||||
|
|
||||||
##
|
|
||||||
#
|
|
||||||
# Factory
|
|
||||||
#
|
|
||||||
##
|
|
||||||
|
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
# Constructor
|
# Constructor
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
#!/usr/bin/ruby
|
|
||||||
|
|
||||||
require 'Rex/Post/Meterpreter/Channels/Stream'
|
|
||||||
require 'Rex/Post/Meterpreter/Extensions/Stdapi/Tlv'
|
|
||||||
|
|
||||||
module Rex
|
|
||||||
module Post
|
|
||||||
module Meterpreter
|
|
||||||
module Channels
|
|
||||||
|
|
||||||
###
|
|
||||||
#
|
|
||||||
# Tcp
|
|
||||||
# ---
|
|
||||||
#
|
|
||||||
# The TCP class wrappers a stream-based meterpreter channel.
|
|
||||||
#
|
|
||||||
###
|
|
||||||
class Tcp < Rex::Post::Meterpreter::Channels::Stream
|
|
||||||
|
|
||||||
##
|
|
||||||
#
|
|
||||||
# Factory
|
|
||||||
#
|
|
||||||
##
|
|
||||||
|
|
||||||
def Tcp.open(client, host, port)
|
|
||||||
return Channel.create(client, 'stdapi_net_tcp_client',
|
|
||||||
self, CHANNEL_FLAG_SYNCHRONOUS,
|
|
||||||
[
|
|
||||||
{
|
|
||||||
'type' => TLV_TYPE_HOST_NAME,
|
|
||||||
'value' => host
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'type' => TLV_TYPE_PORT,
|
|
||||||
'value' => port
|
|
||||||
}
|
|
||||||
])
|
|
||||||
end
|
|
||||||
|
|
||||||
##
|
|
||||||
#
|
|
||||||
# Constructor
|
|
||||||
#
|
|
||||||
##
|
|
||||||
|
|
||||||
# Passes the initialization information up to the base class
|
|
||||||
def initialize(client, cid, type, flags)
|
|
||||||
super(client, cid, type, flags)
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
end; end; end; end
|
|
Loading…
Reference in New Issue