1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

Pass the driver_options whenever constructing a driver in brute.lua. This could

be required, for example, when running the check method.
This commit is contained in:
david
2010-09-27 01:20:52 +00:00
parent c974a51d07
commit 9f79aad78f

View File

@@ -577,9 +577,9 @@ Engine =
-- Only run the check method if it exist. We should phase this out
-- in favor of a check in the action function of the script
if ( self.driver:new( self.host, self.port ).check ) then
if ( self.driver:new( self.host, self.port, self.driver_options ).check ) then
-- check if the driver is ready!
local status, response = self.driver:new( self.host, self.port ):check()
local status, response = self.driver:new( self.host, self.port, self.driver_options ):check()
if( not(status) ) then return false, response end
end