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/module/privileged.rb
Views: 11784
1
module Msf::Module::Privileged
2
#
3
# Attributes
4
#
5
6
# @!attribute [r] privileged
7
# Whether or not this module requires privileged access.
8
attr_reader :privileged
9
10
#
11
# Instance Methods
12
#
13
14
#
15
# Returns whether or not the module requires or grants high privileges.
16
#
17
def privileged?
18
privileged == true
19
end
20
21
protected
22
23
#
24
# Attributes
25
#
26
27
# @!attribute [w] privileged
28
attr_writer :priveli
29
end
30