mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 01:19:03 +00:00
Fixes to rpc-grind
NSE: rpc-grind Connect(): RPC library does not support: nil protocol NSE: rpc-grind Connect(): RPC library does not support: rpcbind version 81578896 These errors caused by ChkProgram and ChkVersion called from rpc.Comm.Connect. Added a dummy program in rpc-grind and a check for self.checkprogver in ChkVersion, and everything works great. Also fixed portrule to only fail if the non-rpcbind service name was not the result of table lookup. Was failing on port 2049 (in nmap-services as "nfs") without -sV.
This commit is contained in:
@@ -231,6 +231,7 @@ Comm = {
|
||||
-- @return status boolean true on success, false on failure
|
||||
-- @return string containing error message (if status is false)
|
||||
ChkVersion = function(self)
|
||||
if not self.checkprogver then return true end
|
||||
if ( self.version > RPC_version[self.program].max or
|
||||
self.version < RPC_version[self.program].min ) then
|
||||
return false, string.format("RPC library does not support: %s version %d",
|
||||
|
||||
Reference in New Issue
Block a user