mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-08-23 22:26:23 +00:00
18 lines
557 B
Python
18 lines
557 B
Python
from kube_hunter.console.auth import AuthSubConsole
|
|
from kube_hunter.console.general import BaseKubeHunterCmd
|
|
|
|
class EnvSubConsole(BaseKubeHunterCmd):
|
|
"""EnvSubConsole
|
|
In charge of managing and viewing the entire current environment state
|
|
Includes: Auth database..
|
|
"""
|
|
def __init__(self, env):
|
|
super(EnvSubConsole, self).__init__()
|
|
self.env = env
|
|
self.sub_console_name = "env"
|
|
# self.prompt = self.env.get_prompt(sub_console="env")
|
|
|
|
def do_auth(self, arg):
|
|
AuthSubConsole(self.env).cmdloop()
|
|
|