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

Use BruteSocket in a bunch of brute scripts

This commit is contained in:
dmiller
2018-03-10 03:09:39 +00:00
parent 4c1d93405a
commit 8ee963caee
47 changed files with 65 additions and 65 deletions

View File

@@ -1173,7 +1173,6 @@ Helper = {
self.__index = self
o.host = host
o.port = port
o.socket = nmap.new_socket()
o.instance = instance or "nmap_probe"
return o
end,
@@ -1182,9 +1181,10 @@ Helper = {
--
-- @return true on success, false on failure
-- @return err containing error message when status is false
Connect = function( self )
Connect = function( self, socket )
local status, data
local conn, packet
self.socket = socket or nmap.new_socket()
-- Some Informix server seem to take a LOT of time to respond?!
self.socket:set_timeout(20000)