1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-17 21:19:01 +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:
patrik
2011-11-10 20:42:47 +00:00
parent 5698259a1b
commit 77380bd9b0
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
# Nmap Changelog ($Id$); -*-text-*-
o [NSE] Fixed bug that would prevent brute scripts from running if no service
field was present in the port table. [Patrik]
o [NSE] Added the scripts bitcoin-info, bitcoin-getaddr and a supporting
Bitcoin library. The script bitcoin-info retrieves information about the
remote server, while the bitcoin-getaddr script retrieves a list of

View File

@@ -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