From f5d660f614590ea754f2ec86cc55b0f231b68080 Mon Sep 17 00:00:00 2001 From: lanjelot Date: Mon, 9 Oct 2023 16:43:45 +1100 Subject: [PATCH] Fix #198 --- patator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/patator.py b/patator.py index 42c88e4..8dde965 100755 --- a/patator.py +++ b/patator.py @@ -2650,7 +2650,10 @@ class SSH_login(TCP_Cache): # }}} # Telnet {{{ -from telnetlib import Telnet +try: + from telnetlib import Telnet +except ImportError: + notfound.append('telnetlib') class Telnet_login(TCP_Cache): '''Brute-force Telnet''' @@ -5240,6 +5243,7 @@ modules = [ dependencies = { 'paramiko': [('ssh_login',), 'http://www.paramiko.org/', '2.7.1'], + 'telnetlib': [('telnet_login',), 'telnetlib was removed in Python 3.13', '<= 3.12'], 'pycurl': [('http_fuzz', 'rdp_gateway'), 'http://pycurl.io/', '7.43.0'], 'libcurl': [('http_fuzz', 'rdp_gateway'), 'https://curl.haxx.se/', '7.58.0'], 'ajpy': [('ajp_fuzz',), 'https://github.com/hypn0s/AJPy/', '0.0.4'],