mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
ssh-run: enable keyboard-interactive auth if needed
This commit is contained in:
parent
8d66c7fbd4
commit
b8a344ca20
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue