1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 19:59:02 +00:00

Add TLS auth support to vnc.lua and vnc-brute

This commit is contained in:
dmiller
2016-03-28 16:46:32 +00:00
parent f272172721
commit 81bb435ad9
2 changed files with 87 additions and 22 deletions

View File

@@ -122,6 +122,11 @@ Driver =
end
status, data = vnc:login( nil, "is_sec_mec_supported?" )
-- Check secondary auth type after potential TLS handshake that happened during login
if ( vnc:supportsSecType(vnc.sectypes.NONE) ) then
return false, "No authentication required"
end
if ( data:match("The server does not support.*security type") ) then
return stdnse.format_output( false, " \n " .. data )
end