mirror of
https://github.com/nmap/nmap.git
synced 2026-02-07 14:06:33 +00:00
Use BruteSocket in a bunch of brute scripts
This commit is contained in:
@@ -49,8 +49,8 @@ Helper = {
|
||||
-- Connects to the rsync server
|
||||
-- @return status, true on success, false on failure
|
||||
-- @return err string containing an error message if status is false
|
||||
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 5000)
|
||||
local status, err = self.socket:connect(self.host, self.port)
|
||||
if ( not(status) ) then
|
||||
|
||||
Reference in New Issue
Block a user