Path: blob/master/modules/exploits/beefbind/shellcode_sources/msf/beef_bind-handler.rb
1154 views
##1# $Id: beef_bind-handler.rb 121018 Ty Miller @ Threat Intelligence$2##34module Msf5module Handler6###7#8# This module implements the Bind TCP handler placeholder only.9#10###11module BeefBind12include Msf::Handler1314#15# Returns the handler specific string representation16#17def self.handler_type18'beef_bind'19end2021#22# Returns the connection oriented general handler type23#24def self.general_handler_type25'bind'26end2728#29# Initializes a bind handler and adds the options common to all bind30# payloads, such as local port.31#32def initialize(info = {})33super34register_options(35[36Opt::LPORT(4444)37# OptAddress.new('RHOST', [false, 'The target address', '']),38], Msf::Handler::BeefBind39)40end4142#43# Placeholder only44#45def cleanup_handler; end4647#48# Placeholder only49#50def add_handler(_opts = {})51# Start a new handler52start_handler53end5455#56# Placeholder only57#58def start_handler; end5960#61# Placeholder only62#63def stop_handler; end64end65end66end676869