From 0b47abe71347ce252060a1164cf22e70aad684b8 Mon Sep 17 00:00:00 2001 From: nnposter Date: Thu, 28 Mar 2019 14:16:05 +0000 Subject: [PATCH] Comment clean-up See https://github.com/nmap/nmap/pull/1531/commits/8c3b0075e7e730389631b69fed27a2a92d6d5f89 --- scripts/rmi-dumpregistry.nse | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/scripts/rmi-dumpregistry.nse b/scripts/rmi-dumpregistry.nse index be545a0bf..e7ae03963 100644 --- a/scripts/rmi-dumpregistry.nse +++ b/scripts/rmi-dumpregistry.nse @@ -171,14 +171,17 @@ local function split(str, sep) return fields end - ---This is a customData formatter. In some cases, the RMI library finds 'custom data' which belongs to an object. --- This data is not handled correctly, instead, the data is dumped in the objects customData field (which is a table with strings) --- The RMI library does not do anything more than that - however, here in the land of rmi-dumpregistry land, we may have --- more knowledge about how to interpret that data. --- In the wild, coldfusion.flex.rmi.DataServicesCFProxyServer_Stub e.g discloses the classpath in this variable. This method looks at --- the contents of the custom data. if it looks like a class path, we display it as such. This method is passed to the toTable() method --- of the returned RMI object. +---This is a customData formatter. In some cases, the RMI library finds "custom +-- data" that belongs to an object. This data is not handled correctly; it is +-- instead dumped into the object's customData field (which is a table with +-- strings). +-- The RMI library does not do anything more than that. However, here, in the +-- land of rmi-dumpregistry, we may have more knowledge about how to interpret +-- that data. For example, coldfusion.flex.rmi.DataServicesCFProxyServer_Stub +-- discloses the classpath in this variable. +-- This method looks at the contents of the custom data and if it looks like +-- a class path, we display it as such. This method is passed to the toTable() +-- method of the returned RMI object. -- @return title, data function customDataFormatter(className, customData) if customData == nil then return nil end