From c783c8b63f5a6be003bf876713c4014a6f5c9afc Mon Sep 17 00:00:00 2001 From: laxa Date: Fri, 1 Sep 2023 09:14:06 +0200 Subject: [PATCH] Add ed25519 ssh support --- patator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patator.py b/patator.py index 02e653e..73d00f0 100755 --- a/patator.py +++ b/patator.py @@ -2571,7 +2571,7 @@ except ImportError: notfound.append('paramiko') def load_keyfile(keyfile): - for cls in (paramiko.RSAKey, paramiko.DSSKey, paramiko.ECDSAKey): + for cls in (paramiko.RSAKey, paramiko.DSSKey, paramiko.ECDSAKey, paramiko.Ed25519Key): try: return cls.from_private_key_file(keyfile) except paramiko.SSHException: @@ -2592,7 +2592,7 @@ class SSH_login(TCP_Cache): ('user', 'usernames to test'), ('password', 'passwords to test'), ('auth_type', 'type of password authentication to use [password|keyboard-interactive|auto]'), - ('keyfile', 'file with RSA, DSA or ECDSA private key to test'), + ('keyfile', 'file with RSA, DSA, ECDSA or ED25519 private key to test'), ) available_options += TCP_Cache.available_options