Class KnownEndpoint


  • public class KnownEndpoint
    extends Object
    The KnownEndpoint class represents a well known RMI endpoint. By the term 'well known' we mean that the class that implements the remote object was encountered before and meta information does exist for it within the remote-method-guesser repository. Users can then use the 'known' action to get additional information on the endpoint, like implemented remote methods or known vulnerabilities. KnownEndpoints are stored within a YAML file in the remote-method-guesser repository. The objects are directly constructed from this file and the KnownEndpoint class needs to implement corresponding getters and setters.
    Author:
    Tobias Neitzel (@qtc_de)
    • Constructor Detail

      • KnownEndpoint

        public KnownEndpoint()
    • Method Detail

      • setName

        public void setName​(String name)
        Set the name of the endpoint.
        Parameters:
        name - of the endpoint
      • setClassName

        public void setClassName​(List<String> className)
        Set the class name of the endpoint.
        Parameters:
        className - of the endpoint.
      • setDescription

        public void setDescription​(String description)
        Set the description of the endpoint.
        Parameters:
        description - of the endpoint.
      • setRemoteMethods

        public void setRemoteMethods​(List<String> remoteMethods)
        Set the remote methods for the endpoint.
        Parameters:
        remoteMethods - list of remote methods
      • setReferences

        public void setReferences​(List<String> references)
        Set the references for the endpoint.
        Parameters:
        references - list of references
      • setVulnerabilities

        public void setVulnerabilities​(List<Vulnerability> vulnerabilities)
        Set the vulnerabilities for the endpoint.
        Parameters:
        vulnerabilities - list of vulnerabilities.
      • getName

        public String getName()
        Returns:
        name
      • getClassName

        public List<String> getClassName()
        Returns:
        class name
      • getDescription

        public String getDescription()
        Returns:
        description
      • getRemoteMethods

        public List<String> getRemoteMethods()
        Returns:
        list of methods
      • getReferences

        public List<String> getReferences()
        Returns:
        list of references
      • getVulnerabilities

        public List<Vulnerability> getVulnerabilities()
        Returns:
        list of vulnerabilities
      • printEnum

        public void printEnum()
        This function is called during the 'enum' action of remote-method-guesser to print meta information for a KnownEndpoint in a formatted way.