Files
metasploit-gs/lib/msf/core/handler/find_shell.rb
T
Ramon de C Valle f124597a56 Code cleanups
git-svn-id: file:///home/svn/framework3/trunk@5773 4d416f70-5f16-0410-b530-b9f4589650da
2008-10-19 21:03:39 +00:00

46 lines
629 B
Ruby

require 'msf/core/handler/find_port'
module Msf
module Handler
###
#
# This handler expects a plain Unix command shell on the supplied socket
#
###
module FindShell
include FindPort
#
# Returns the string representation of the handler type, in this case
# 'find_tag'.
#
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
protected
end
end
end