CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/post/meterpreter/inbound_packet_handler.rb
Views: 11784
1
# -*- coding: binary -*-
2
3
module Rex
4
module Post
5
module Meterpreter
6
7
###
8
#
9
# Mixin that provides stubs for handling inbound packets
10
#
11
###
12
module InboundPacketHandler
13
14
#
15
# Stub request handler that returns false by default.
16
#
17
def request_handler(client, packet)
18
return false
19
end
20
21
#
22
# Stub response handler that returns false by default.
23
#
24
def response_handler(client, packet)
25
return false
26
end
27
28
end
29
30
end; end; end
31
32