1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Rectifies bug where RPC dump was always using program version 4

This commit is contained in:
nnposter
2020-01-09 22:51:02 +00:00
parent c4f7153c22
commit 922199296c
2 changed files with 5 additions and 2 deletions

View File

@@ -25,6 +25,9 @@ o [Windows] Add support for the new loopback behavior in Npcap 0.9983. This
Adapter to be installed, which was a source of problems for some users. Adapter to be installed, which was a source of problems for some users.
[Daniel Miller] [Daniel Miller]
o [NSE] Code improvements in RPC Dump, benefitting NFS-related scripts
[nnposter]
o [NSE][GH#1876] XML output from script ssl-cert now includes RSA key modulus o [NSE][GH#1876] XML output from script ssl-cert now includes RSA key modulus
and exponent [nnposter] and exponent [nnposter]

View File

@@ -2797,8 +2797,6 @@ Helper = {
RpcInfo = function( host, port ) RpcInfo = function( host, port )
local status, result local status, result
local portmap = Portmap:new() local portmap = Portmap:new()
local pversion = 4
local comm = Comm:new('rpcbind', pversion)
mutex "lock" mutex "lock"
@@ -2812,7 +2810,9 @@ Helper = {
return true, nmap.registry[host.ip]['portmapper'] return true, nmap.registry[host.ip]['portmapper']
end end
local pversion = 4
while pversion >= 2 do while pversion >= 2 do
local comm = Comm:new('rpcbind', pversion)
status, result = comm:Connect(host, port) status, result = comm:Connect(host, port)
if (not(status)) then if (not(status)) then
mutex "done" mutex "done"