Agent: Add SSH keypair credential type

This commit is contained in:
Ilija Lazoroski 2022-02-16 17:29:21 +01:00
parent b1b0840aed
commit a97b8706ec
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
from dataclasses import dataclass, field
from infection_monkey.i_puppet import CredentialType, ICredentialComponent
@dataclass(frozen=True)
class SSHKeypair(ICredentialComponent):
credential_type: CredentialType = field(default=CredentialType.SSH_KEYPAIR, init=False)
content: dict

View File

@ -6,3 +6,4 @@ class CredentialType(Enum):
PASSWORD = 2
NT_HASH = 3
LM_HASH = 4
SSH_KEYPAIR = 5