Files
metasploit-gs/lib/msf/core/handler/find_shell.rb
T

48 lines
682 B
Ruby
Raw Normal View History

# -*- coding: binary -*-
2005-12-26 14:34:22 +00:00
require 'msf/core/handler/find_port'
module Msf
module Handler
###
#
# This handler expects a plain Unix command shell on the supplied socket
#
###
module FindShell
2013-08-30 16:28:33 -05:00
include FindPort
#
# Returns the string representation of the handler type, in this case
# 'find_shell'.
#
def self.handler_type
return "find_shell"
end
#
# Returns the connection oriented general handler type, in this case
# 'find'.
#
def self.general_handler_type
"find"
end
#
# Remove the CPORT option from our included FindPort class
#
def initialize(info = {})
super
options.remove_option('CPORT')
end
2005-12-26 14:34:22 +00:00
protected
2005-12-26 14:34:22 +00:00
end
end
end