mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
o [NSE] Fixed bug that would prevent brute scripts from running if no service
field was present in the port table. [Patrik]
This commit is contained in:
@@ -604,7 +604,8 @@ Engine =
|
||||
local condvar = nmap.condvar( cvar )
|
||||
|
||||
assert(self.options.script_name, "SCRIPT_NAME was not set in options.script_name")
|
||||
assert(self.port.number and self.port.protocol and self.port.service, "Invalid port table detected")
|
||||
assert(self.port.number and self.port.protocol, "Invalid port table detected")
|
||||
self.port.service = self.port.service or "unknown"
|
||||
|
||||
-- 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
|
||||
|
||||
Reference in New Issue
Block a user