2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2005-04-12 05:37:11 +00:00
|
|
|
|
|
|
|
module Rex
|
|
|
|
module Post
|
|
|
|
module Meterpreter
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# Mixin that provides stubs for handling inbound packets
|
|
|
|
#
|
|
|
|
###
|
|
|
|
module InboundPacketHandler
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# Stub request handler that returns false by default.
|
|
|
|
#
|
2005-04-12 05:37:11 +00:00
|
|
|
def request_handler(client, packet)
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
2005-11-15 05:22:13 +00:00
|
|
|
#
|
|
|
|
# Stub response handler that returns false by default.
|
|
|
|
#
|
2005-04-12 05:37:11 +00:00
|
|
|
def response_handler(client, packet)
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2008-10-19 21:03:39 +00:00
|
|
|
end; end; end
|