mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Clarify vnc handshake/login process and correctly send chosen security type
This commit is contained in:
parent
ea7c0bd92b
commit
4b341c4311
2 changed files with 13 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue