mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 15:39:03 +00:00
Use java-rmi for the the Java RMI service name. Suggested by martin
Swende.
This commit is contained in:
@@ -18,8 +18,8 @@ Some apps give away the classpath, which this scripts catches in so-called "Cust
|
|||||||
---
|
---
|
||||||
-- @usage nmap --script "rmi-dumpregistry.nse" -p 1098 <host>
|
-- @usage nmap --script "rmi-dumpregistry.nse" -p 1098 <host>
|
||||||
-- @output
|
-- @output
|
||||||
-- PORT STATE SERVICE REASON
|
-- PORT STATE SERVICE REASON
|
||||||
-- 1099/tcp open rmiregistry syn-ack
|
-- 1099/tcp open java-rmi syn-ack
|
||||||
-- | rmi-dumpregistry:
|
-- | rmi-dumpregistry:
|
||||||
-- | jmxrmi
|
-- | jmxrmi
|
||||||
-- | javax.management.remote.rmi.RMIServerImpl_Stub
|
-- | javax.management.remote.rmi.RMIServerImpl_Stub
|
||||||
@@ -30,8 +30,8 @@ Some apps give away the classpath, which this scripts catches in so-called "Cust
|
|||||||
-- |_ java.rmi.server.RemoteObject
|
-- |_ java.rmi.server.RemoteObject
|
||||||
--
|
--
|
||||||
-- @output
|
-- @output
|
||||||
-- PORT STATE SERVICE REASON
|
-- PORT STATE SERVICE REASON
|
||||||
-- 1099/tcp open rmiregistry syn-ack
|
-- 1099/tcp open java-rmi syn-ack
|
||||||
-- | rmi-dumpregistry:
|
-- | rmi-dumpregistry:
|
||||||
-- | cfassembler/default
|
-- | cfassembler/default
|
||||||
-- | coldfusion.flex.rmi.DataServicesCFProxyServer_Stub
|
-- | coldfusion.flex.rmi.DataServicesCFProxyServer_Stub
|
||||||
@@ -145,7 +145,7 @@ categories = {"default", "discovery", "safe"}
|
|||||||
|
|
||||||
require "shortport"
|
require "shortport"
|
||||||
require "rmi"
|
require "rmi"
|
||||||
portrule = shortport.port_or_service({1098, 1099, 1090, 8901, 8902, 8903}, {"rmiregistry"})
|
portrule = shortport.port_or_service({1098, 1099, 1090, 8901, 8902, 8903}, {"java-rmi", "rmiregistry"})
|
||||||
|
|
||||||
-- Some lazy shortcuts
|
-- Some lazy shortcuts
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ function action(host,port, args)
|
|||||||
return false, ("Registry listing failed (%s)"):format(tostring(j_array))
|
return false, ("Registry listing failed (%s)"):format(tostring(j_array))
|
||||||
end
|
end
|
||||||
-- It's definitely RMI!
|
-- It's definitely RMI!
|
||||||
port.version.name ='rmi'
|
port.version.name ='java-rmi'
|
||||||
port.version.product='Java RMI Registry'
|
port.version.product='Java RMI Registry'
|
||||||
nmap.set_port_version(host,port,'hardmatched')
|
nmap.set_port_version(host,port,'hardmatched')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user