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

Fixed a bug that would prevent listing services unless an IP was specified as

argument [Patrik]
This commit is contained in:
patrik
2011-12-27 20:55:19 +00:00
parent 07e0426629
commit 4ad62b1cdf

View File

@@ -93,12 +93,7 @@ local function formatResult(result)
end
dnsblAction = function(host)
-- if the list argument was given, just list the services and abort
if ( arg_list ) then
return listServices()
end
local helper
if ( arg_services and ( not(arg_category) or "all" == arg_category:lower() ) ) then
return "\n ERROR: A service filter can't be used without a specific category"
@@ -147,7 +142,12 @@ action = function(...)
if ( arg_IP and not(ipOps.todword(arg_IP)) ) then
return "\n ERROR: Invalid IP address was supplied"
end
-- if the list argument was given, just list the services and abort
if ( arg_list ) then
return listServices()
end
if ( arg_IP and "prerule" == SCRIPT_TYPE ) then
return dnsblAction( { ip = arg_IP } )
elseif ( "hostrule" == SCRIPT_TYPE ) then