Module: Msf::Module::Privileged

Included in:
Msf::Module
Defined in:
lib/msf/core/module/privileged.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#priveli=(value) ⇒ Object (writeonly, protected)

Sets the attribute priveli

Parameters:

  • value

    the value to set the attribute priveli to.



28
29
30
# File 'lib/msf/core/module/privileged.rb', line 28

def priveli=(value)
  @priveli = value
end

#privilegedObject

Returns the value of attribute privileged.



8
9
10
# File 'lib/msf/core/module/privileged.rb', line 8

def privileged
  @privileged
end

Instance Method Details

#privileged?Boolean

Returns whether or not the module requires or grants high privileges.

Returns:

  • (Boolean)


17
18
19
# File 'lib/msf/core/module/privileged.rb', line 17

def privileged?
  privileged == true
end