mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-03-02 01:30:31 +00:00
Compare commits
2 Commits
fix_passiv
...
update_new
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00221336ff | ||
|
|
14ca1b8bce |
Binary file not shown.
|
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 230 KiB |
@@ -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