CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/post/meterpreter/channels/stream.rb
Views: 1904
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