Package eu.tneitzel.rmg.endpoints
Class KnownEndpoint
- java.lang.Object
-
- eu.tneitzel.rmg.endpoints.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 Summary
Constructors Constructor Description KnownEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getClassName()StringgetDescription()StringgetName()List<String>getReferences()List<String>getRemoteMethods()List<Vulnerability>getVulnerabilities()voidprintEnum()This function is called during the 'enum' action of remote-method-guesser to print meta information for a KnownEndpoint in a formatted way.voidsetClassName(List<String> className)Set the class name of the endpoint.voidsetDescription(String description)Set the description of the endpoint.voidsetName(String name)Set the name of the endpoint.voidsetReferences(List<String> references)Set the references for the endpoint.voidsetRemoteMethods(List<String> remoteMethods)Set the remote methods for the endpoint.voidsetVulnerabilities(List<Vulnerability> vulnerabilities)Set the vulnerabilities for the endpoint.
-
-
-
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
-
getDescription
public String getDescription()
- Returns:
- description
-
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.
-
-