From 8cfd736ea6465d9e8652120e8ef4f99459af160b Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Thu, 21 Apr 2005 04:26:00 +0000 Subject: [PATCH] moving shit around git-svn-id: file:///home/svn/incoming/trunk@2436 4d416f70-5f16-0410-b530-b9f4589650da --- .../meterpreter/channels/pools/stream_pool.rb | 8 +-- .../meterpreter/channels/streams/.cvskeep | 0 .../post/meterpreter/channels/streams/Tcp.rb | 55 ------------------- 3 files changed, 1 insertion(+), 62 deletions(-) create mode 100644 lib/rex/post/meterpreter/channels/streams/.cvskeep delete mode 100644 lib/rex/post/meterpreter/channels/streams/Tcp.rb diff --git a/lib/rex/post/meterpreter/channels/pools/stream_pool.rb b/lib/rex/post/meterpreter/channels/pools/stream_pool.rb index e6b650d6b9..cd513a1134 100644 --- a/lib/rex/post/meterpreter/channels/pools/stream_pool.rb +++ b/lib/rex/post/meterpreter/channels/pools/stream_pool.rb @@ -12,7 +12,7 @@ module Pools ### # # StreamPool -# ---- +# ---------- # # This class represents a channel that is associated with a # streaming pool that has no definite end-point. While this @@ -24,12 +24,6 @@ module Pools ### class StreamPool < Rex::Post::Meterpreter::Channels::Pool - ## - # - # Factory - # - ## - ## # # Constructor diff --git a/lib/rex/post/meterpreter/channels/streams/.cvskeep b/lib/rex/post/meterpreter/channels/streams/.cvskeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/lib/rex/post/meterpreter/channels/streams/Tcp.rb b/lib/rex/post/meterpreter/channels/streams/Tcp.rb deleted file mode 100644 index 0beecd98fb..0000000000 --- a/lib/rex/post/meterpreter/channels/streams/Tcp.rb +++ /dev/null @@ -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