rapid7/metasploit-framework — pull request #242 by ohdae (2012-03-16 18:57:53+00:00)
Title: Fix for enum_protections

The original enum_protection would only check your localhost for the existence of installed applications.
This fix will execute echo $PATH on the remote host, split the output into the individual directories and then compare the enumerated application against the contents of each path directory.

Although with this fix, we can no longer tell if the file we find is actually an executable or not, but can we assume so since it is located in the RHOST's executable path? I imagine there is a better way to fix this problem than what I have provided here so I am open to suggestions. The module still works either way.