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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user