diff --git a/lib/modules/python/lateral_movement/multi/ssh_command.py b/lib/modules/python/lateral_movement/multi/ssh_command.py index a5eb69f..67c82aa 100644 --- a/lib/modules/python/lateral_movement/multi/ssh_command.py +++ b/lib/modules/python/lateral_movement/multi/ssh_command.py @@ -107,7 +107,7 @@ def wall(host, pw): while True: try: data = os.read(fd, 1024) - if data == "Password:": + if data[:8] == "Password" and data[-1:] == ":": os.write(fd, pw + '\\n') except OSError: diff --git a/lib/modules/python/lateral_movement/multi/ssh_launcher.py b/lib/modules/python/lateral_movement/multi/ssh_launcher.py index 298f59b..63a2b9c 100644 --- a/lib/modules/python/lateral_movement/multi/ssh_launcher.py +++ b/lib/modules/python/lateral_movement/multi/ssh_launcher.py @@ -121,7 +121,7 @@ def wall(host, pw): while True: try: data = os.read(fd, 1024) - if data == "Password:": + if data[:8] == "Password" and data[-1:] == ":": os.write(fd, pw + '\\n') except OSError: