Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/post/meterpreter/channels/stream.rb
19758 views
1
# -*- coding: binary -*-
2
3
require 'rex/io/stream_abstraction'
4
require 'rex/post/meterpreter/channels/socket_abstraction'
5
6
module Rex
7
module Post
8
module Meterpreter
9
10
###
11
#
12
# Stream
13
# ------
14
#
15
# This class represents a channel that is streaming. This means
16
# that sequential data is flowing in either one or both directions.
17
#
18
###
19
class Stream < Rex::Post::Meterpreter::Channel
20
21
include Rex::Post::Meterpreter::SocketAbstraction
22
include Rex::IO::StreamAbstraction
23
24
class << self
25
def cls
26
return CHANNEL_CLASS_STREAM
27
end
28
end
29
30
module SocketInterface
31
include Rex::Post::Meterpreter::SocketAbstraction::SocketInterface
32
33
def type?
34
'tcp'
35
end
36
end
37
38
end
39
40
end; end; end
41
42
43