mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-11 03:37:52 +00:00
minor services description improvements
This commit is contained in:
@@ -168,7 +168,7 @@ def print_nodes():
|
||||
id_memory = list()
|
||||
for service in services:
|
||||
if service.event_id not in id_memory:
|
||||
nodes_table.add_row(["Slave/Master", service.host])
|
||||
nodes_table.add_row(["Node/Master", service.host])
|
||||
id_memory.append(service.event_id)
|
||||
print "Nodes:"
|
||||
print nodes_table
|
||||
@@ -184,7 +184,7 @@ def print_services():
|
||||
services_table.header_style="upper"
|
||||
for service in services:
|
||||
services_table.add_row([service.get_name(), "{}:{}{}".format(service.host, service.port, service.get_path()), service.explain()])
|
||||
print "Open Services:"
|
||||
print "Detected Services:"
|
||||
print services_table
|
||||
print
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from ...core.events.types import Event, Service, OpenPortEvent
|
||||
from ...core.types import Hunter
|
||||
|
||||
class KubeDashboardEvent(Service, Event):
|
||||
"""Allows multiple arbitrary operations on the cluster from all connections"""
|
||||
"""A web-based Kubernetes user interface. allows easy usage with operations on the cluster"""
|
||||
def __init__(self, **kargs):
|
||||
Service.__init__(self, name="Kubernetes Dashboard", **kargs)
|
||||
|
||||
|
||||
@@ -12,12 +12,12 @@ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
""" Services """
|
||||
class ReadOnlyKubeletEvent(Service, Event):
|
||||
"""Exposes specific handlers which disclose sensitive information about the cluster"""
|
||||
"""Can expose specific handlers which reveals information about the node/cluster"""
|
||||
def __init__(self):
|
||||
Service.__init__(self, name="Kubelet API (readonly)")
|
||||
|
||||
class SecureKubeletEvent(Service, Event):
|
||||
"""Exposes handlers that can perform unwanted operations on pods/containers"""
|
||||
"""The kubelet ensures that all containers on the node are running and healthy"""
|
||||
def __init__(self, cert=False, token=False):
|
||||
self.cert = cert
|
||||
self.token = token
|
||||
|
||||
Reference in New Issue
Block a user