Fix detection for active SSH-server

This commit is contained in:
remittor
2023-10-15 19:42:06 +03:00
parent c25525938b
commit db71cd312f
3 changed files with 16 additions and 10 deletions
+2 -3
View File
@@ -500,9 +500,8 @@ class Gateway():
ip_addr = self.ip_addr
ssh_port = self.ssh_port
if aux_port == 0 and self.model_id > 0 and self.model_id < 22:
aux_port = 122 # exploit for "misystem/c_upload" (connect.py)
if ssh_port == aux_port:
aux_port = 22
if ssh_port != 122:
aux_port = 122 # exploit for "misystem/c_upload" (connect.py)
passw = self.passw
if passw:
ret = self.check_ssh(ip_addr, ssh_port, passw, contimeout = contimeout)