DiscoveryFunctions - findRegistryNode(String currNode, String regName)

Finds the registry node for a given registry item.

Table 1. Parameters
Name Type Description
currNode String The current node
regName String The registry name
Table 2. Returns
Type Description
Node The node if found, otherwise null.

Example payload:
<results probe_time="6313">
       <entry key="HKEY_LOCAL_MACHINE">
          <entry key="Software">
             <entry key="Microsoft">
                <entry key="Windows">
                    <entry key="Name">
                        <value>Just a name</value>
 // registry is a variable representing the payload
 var node = findRegistryNode(registry, "HKEY_LOCAL_MACHINE.Software.Microsoft");