mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-02-28 16:50:25 +00:00
Compare commits
5 Commits
owenr-lowe
...
fix_passiv
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4037f5325 | ||
|
|
d9e651efa5 | ||
|
|
9414e2e6bc | ||
|
|
ed09849ced | ||
|
|
ef3a51cacc |
@@ -375,8 +375,9 @@ class SecureKubeletPortHunter(Hunter):
|
||||
container_name="test",
|
||||
cmd="",
|
||||
)
|
||||
# if we get a Method Not Allowed, we know we passed Authentication and Authorization.
|
||||
return self.session.get(run_url, verify=False, timeout=config.network_timeout).status_code == 405
|
||||
# if we get this message, we know we passed Authentication and Authorization, and that the endpoint is enabled.
|
||||
status_code = self.session.post(run_url, verify=False, timeout=config.network_timeout).status_code
|
||||
return status_code == requests.codes.NOT_FOUND
|
||||
|
||||
# returns list of currently running pods
|
||||
def test_running_pods(self):
|
||||
|
||||
Reference in New Issue
Block a user