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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
643 B
Ruby
Raw Normal View History

2021-10-18 16:46:40 -04:00
# -*- coding: binary -*-
module Msf
module Handler
module Generic
include Msf::Handler
#
# Returns the handler type of none since payloads that use this handler
# have no connection.
#
def self.handler_type
'none'
end
#
# Returns none to indicate no connection.
#
def self.general_handler_type
'none'
end
# This is necessary for find-sock style payloads.
#
def handler(*args)
create_session(*args)
2021-10-18 16:46:40 -04:00
Claimed
end
#
# Always wait at least 5 seconds for this payload (due to channel delays)
#
def wfs_delay
datastore['WfsDelay'] > 4 ? datastore['WfsDelay'] : 5
end
2021-10-18 16:46:40 -04:00
end
end
end