From 538141539e342fc69e91ce2c3b9d14806bfba6ea Mon Sep 17 00:00:00 2001 From: nnposter Date: Thu, 28 Mar 2019 14:19:45 +0000 Subject: [PATCH] Align portrule with script rmi-dumpregistry. Closes #1531 --- scripts/rmi-vuln-classloader.nse | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/rmi-vuln-classloader.nse b/scripts/rmi-vuln-classloader.nse index acad2e765..968eea276 100644 --- a/scripts/rmi-vuln-classloader.nse +++ b/scripts/rmi-vuln-classloader.nse @@ -42,12 +42,7 @@ categories = { }; - -portrule = shortport.port_or_service({ - 1099 - }, { - "rmiregistry", "java-rmi" - }); +portrule = shortport.port_or_service({1098, 1099, 1090, 8901, 8902, 8903}, {"java-rmi", "rmiregistry"}) action = function (host, port) local registry = rmi.Registry:new(host, port);