forked from p34709852/monkey
Island: fix detection if credential is a keypair
This commit is contained in:
parent
d874cd9d5a
commit
bb760c7e8a
|
@ -36,8 +36,9 @@ def parse_credentials(credentials: dict):
|
|||
|
||||
def is_ssh_keypair(credential: dict) -> bool:
|
||||
return bool(
|
||||
filter(
|
||||
lambda secret: secret["credential_type"] == CredentialsType.SSH_KEYPAIR,
|
||||
credential["secrets"],
|
||||
)
|
||||
[
|
||||
secret
|
||||
for secret in credential["secrets"]
|
||||
if secret["credential_type"] == CredentialsType.SSH_KEYPAIR
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue