Modules: Resolve many Rubocop violations

This commit is contained in:
Brendan Coles
2022-01-22 12:46:42 +00:00
parent bbe805f017
commit a64480dfab
317 changed files with 3238 additions and 3965 deletions

View File

@@ -3,71 +3,65 @@
##
module Msf
module Handler
module Handler
###
#
# This module implements the Bind TCP handler placeholder only.
#
###
module BeefBind
include Msf::Handler
###
#
# This module implements the Bind TCP handler placeholder only.
#
###
module BeefBind
#
# Returns the handler specific string representation
#
def self.handler_type
'beef_bind'
end
include Msf::Handler
#
# Returns the connection oriented general handler type
#
def self.general_handler_type
'bind'
end
#
# Returns the handler specific string representation
#
def self.handler_type
return "beef_bind"
end
#
# Initializes a bind handler and adds the options common to all bind
# payloads, such as local port.
#
def initialize(info = {})
super
register_options(
[
Opt::LPORT(4444)
# OptAddress.new('RHOST', [false, 'The target address', '']),
], Msf::Handler::BeefBind
)
end
#
# Returns the connection oriented general handler type
#
def self.general_handler_type
"bind"
end
#
# Placeholder only
#
def cleanup_handler; end
#
# Initializes a bind handler and adds the options common to all bind
# payloads, such as local port.
#
def initialize(info = {})
super
register_options(
[
Opt::LPORT(4444),
#OptAddress.new('RHOST', [false, 'The target address', '']),
], Msf::Handler::BeefBind)
end
#
# Placeholder only
#
def add_handler(_opts = {})
# Start a new handler
start_handler
end
#
# Placeholder only
#
def cleanup_handler
end
#
# Placeholder only
#
def add_handler(opts={})
# Start a new handler
start_handler
end
#
# Placeholder only
#
def start_handler
end
#
# Placeholder only
#
def stop_handler
end
#
# Placeholder only
#
def start_handler; end
end
end
#
# Placeholder only
#
def stop_handler; end
end
end
end