mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 18:09:01 +00:00
Use BruteSocket in a bunch of brute scripts
This commit is contained in:
@@ -259,8 +259,8 @@ Helper = {
|
||||
|
||||
-- Connects the socket to the server
|
||||
-- @return true on success, false on failure
|
||||
connect = function(self)
|
||||
self.socket = nmap.new_socket()
|
||||
connect = function(self, socket)
|
||||
self.socket = socket or nmap.new_socket()
|
||||
self.socket:set_timeout(self.options.timeout or 10000)
|
||||
return self.socket:connect(self.host, self.port)
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user