Class: Msf::Exploit::Remote::HTTP::CiscoIosXe::Mode

Inherits:
Object
  • Object
show all
Defined in:
lib/msf/core/exploit/remote/http/cisco_ios_xe.rb

Constant Summary collapse

USER_EXEC =

User EXEC

:user
PRIVILEGED_EXEC =

Privileged EXEC

:privileged
GLOBAL_CONFIGURATION =

Global Configuration

:global

Class Method Summary collapse

Class Method Details

.to_mode(str) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/msf/core/exploit/remote/http/cisco_ios_xe.rb', line 9

def self.to_mode(str)
  case str.to_sym
  when USER_EXEC
    USER_EXEC
  when PRIVILEGED_EXEC
    PRIVILEGED_EXEC
  when GLOBAL_CONFIGURATION
    GLOBAL_CONFIGURATION
  end
end