mirror of
https://github.com/nmap/nmap.git
synced 2025-12-28 18:39:03 +00:00
Fixed a bug that would prevent the rpcinfo script from returning any results
if the rpc program could not be matched to a name.
This commit is contained in:
@@ -36,7 +36,7 @@ action = function(host, port)
|
||||
|
||||
for progid, v in pairs(rpcinfo) do
|
||||
for proto, v2 in pairs(v) do
|
||||
table.insert( result, ("%-7d %-10s %5d/%s %s"):format(progid, stdnse.strjoin(",", v2.version), v2.port, proto, rpc.Util.ProgNumberToName(progid) ) )
|
||||
table.insert( result, ("%-7d %-10s %5d/%s %s"):format(progid, stdnse.strjoin(",", v2.version), v2.port, proto, rpc.Util.ProgNumberToName(progid) or "") )
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user