mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
91c95d81b2
commit
e411e35fc6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue