1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 18:09:01 +00:00

Use BruteSocket for vnc-brute

This commit is contained in:
dmiller
2018-03-10 03:09:34 +00:00
parent fcde4166be
commit ab0c383431
2 changed files with 4 additions and 12 deletions

View File

@@ -144,11 +144,11 @@ VNC = {
[0xfffffffa] = "UltraVNC MS Logon",
},
new = function(self, host, port)
new = function(self, host, port, socket)
local o = {
host = host,
port = port,
socket = nmap.new_socket(),
socket = socket or nmap.new_socket(),
}
o.socket:set_timeout(5000)
setmetatable(o, self)