1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

ssh-run: enable keyboard-interactive auth if needed

This commit is contained in:
dmiller
2025-06-12 23:25:36 +00:00
parent 8d66c7fbd4
commit b8a344ca20

View File

@@ -66,7 +66,7 @@ function action (host, port)
return "Failed to connect to ssh server: " .. err
end
if username and password and cmd then
if not conn:password_auth(username, password) then
if not conn:login(username, password) then
conn:disconnect()
stdnse.verbose "Failed to authenticate"
return "Authentication Failed"