1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 01:49:03 +00:00

Addressed a condition in db2-das-info.nse where the script would crash

if the DB2 DAS service had discovery mode disabled.  While the service
would be listening, the data would be in an unexpected format.  This 
caused the script to crash at line 412 when it tried to extract the 
server profile from the DB2 response (db2response.info variable).

I will likely tweak the hard setting of the ports in the block that
follows after I perform more testing to verify that it behaves as
expected - Tom
This commit is contained in:
tomsellers
2011-02-16 00:13:38 +00:00
parent 972a72e130
commit c8fb3889e6

View File

@@ -406,8 +406,12 @@ action = function(host, port)
if current_count < new_count then
port.version.version = server_version
end
if db2response.info then
local result = false
local db2profile = extract_server_profile( db2response.info )
if (db2profile ~= nil ) then
result = "DB2 Administration Server Settings\r\n"
result = result .. extract_server_profile( db2response.info )