diff options
| author | jerome <jerome@xlinfo.fr> | 2025-06-16 22:58:35 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-06-16 22:58:35 +0200 |
| commit | f963769e20abe1bd2e2814c50d4ea986a63e49f9 (patch) | |
| tree | 3869bc46d45a017d7ba6bb01e6c19594a57d4854 | |
| parent | 8f2214dc2001592f8ee5d5082d46e4d293a2c49f (diff) | |
| download | python-f963769e20abe1bd2e2814c50d4ea986a63e49f9.tar.gz python-f963769e20abe1bd2e2814c50d4ea986a63e49f9.zip | |
paramiko exception
| -rw-r--r-- | bruteSSH.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bruteSSH.py b/bruteSSH.py index c2bcb89..3fc2f40 100644 --- a/bruteSSH.py +++ b/bruteSSH.py @@ -5,7 +5,7 @@ def bruteforce(hostname, username, password): client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) try: client.connect(hostname, username=username, password=password) - except: + except paramiko.ssh_exception.AuthenticationException: print("erreur : ",password) #pass else: |
