CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/core/handler/generic.rb
Views: 11784
1
# -*- coding: binary -*-
2
module Msf
3
module Handler
4
5
module Generic
6
7
include Msf::Handler
8
9
#
10
# Returns the handler type of none since payloads that use this handler
11
# have no connection.
12
#
13
def self.handler_type
14
'none'
15
end
16
17
#
18
# Returns none to indicate no connection.
19
#
20
def self.general_handler_type
21
'none'
22
end
23
24
# This is necessary for find-sock style payloads.
25
#
26
def handler(*args)
27
create_session(*args)
28
29
Claimed
30
end
31
32
#
33
# Always wait at least 5 seconds for this payload (due to channel delays)
34
#
35
def wfs_delay
36
datastore['WfsDelay'] > 4 ? datastore['WfsDelay'] : 5
37
end
38
end
39
40
end
41
end
42
43
44