From 40dda825306eba9d9d851e151f9ff387deb3b2e4 Mon Sep 17 00:00:00 2001 From: "celine.grun" Date: Tue, 7 May 2024 13:53:50 +0200 Subject: [PATCH] telnet add handle_request for handle_username --- mb_netmgmt/telnet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mb_netmgmt/telnet.py b/mb_netmgmt/telnet.py index fe5f414..7e78644 100644 --- a/mb_netmgmt/telnet.py +++ b/mb_netmgmt/telnet.py @@ -91,9 +91,9 @@ def handle_username(self): t.send(self.username) result = t.expect(t.get_password_prompt()) password_prompt = result[1].string.encode() + self.wfile.write(password_prompt) except AttributeError: - password_prompt = b"Password: " - self.wfile.write(password_prompt) + self.handle_request({"command": self.username.decode()}, None) def extract_username(byte_string):