1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-03 20:16:33 +00:00

Clarify vnc handshake/login process and correctly send chosen security type

This commit is contained in:
dmiller
2016-04-04 04:47:37 +00:00
parent ea7c0bd92b
commit 4b341c4311
2 changed files with 13 additions and 26 deletions

View File

@@ -70,6 +70,7 @@ action = function(host, port)
end
if v:supportsSecType(v.sectypes.VENCRYPT) then
v:sendSecType(v.sectypes.VENCRYPT)
status, data = v:handshake_vencrypt()
if not status then
stdnse.debug1("Failed to handshake VeNCrypt: %s", data)
@@ -95,6 +96,7 @@ action = function(host, port)
v:connect()
v:handshake()
end
v:sendSecType(v.sectypes.TIGHT)
status, data = v:handshake_tight()
if not status then
stdnse.debug1("Failed to handshake Tight: %s", data)
@@ -137,6 +139,7 @@ action = function(host, port)
v:connect()
v:handshake()
end
v:sendSecType(v.sectypes.TLS)
status, data = v:handshake_tls()
if not status then
stdnse.debug1("Failed to handshake TLS: %s", data)