Path: blob/master/lib/msf/core/handler/generic.rb
19715 views
# -*- coding: binary -*-1module Msf2module Handler34module Generic56include Msf::Handler78#9# Returns the handler type of none since payloads that use this handler10# have no connection.11#12def self.handler_type13'none'14end1516#17# Returns none to indicate no connection.18#19def self.general_handler_type20'none'21end2223# This is necessary for find-sock style payloads.24#25def handler(*args)26create_session(*args)2728Claimed29end3031#32# Always wait at least 5 seconds for this payload (due to channel delays)33#34def wfs_delay35datastore['WfsDelay'] > 4 ? datastore['WfsDelay'] : 536end37end3839end40end41424344