1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-18 12:19:02 +00:00

Optionally brute force usernames for VNC

This commit is contained in:
dmiller
2017-03-15 20:31:24 +00:00
parent d244738246
commit e973ad72f5
2 changed files with 11 additions and 4 deletions

View File

@@ -380,6 +380,7 @@ VNC = {
end,
login_aten = function(self, username, password)
username = username or ""
self.socket:send(username .. ("\0"):rep(24 - #username) .. password .. ("\0"):rep(24 - #password))
return self:check_auth_result()
end,
@@ -649,6 +650,7 @@ VNC = {
end,
login_plain = function(self, username, password)
username = username or ""
local status = self.socket:send(bin.pack(">IIAA", #username, #password, username, password))
if not status then
return false, "Failed to send plain auth"