Package eu.tneitzel.rmg.networking
Class SSRFResponseSocketFactory
- java.lang.Object
-
- java.rmi.server.RMISocketFactory
-
- eu.tneitzel.rmg.networking.SSRFResponseSocketFactory
-
- All Implemented Interfaces:
RMIClientSocketFactory,RMIServerSocketFactory
public class SSRFResponseSocketFactory extends RMISocketFactory
Factory class for creating SSRFResponseSockets. This is required as SocketFactories are the default way how Java RMI creates sockets during RMI communication. This socket factory is used when the --ssrf-response option was specified.- Author:
- Tobias Neitzel (@qtc_de)
-
-
Constructor Summary
Constructors Constructor Description SSRFResponseSocketFactory(byte[] content)Create a new SSRFResponseSocketFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerSocketcreateServerSocket(int port)SocketcreateSocket(String host, int port)-
Methods inherited from class java.rmi.server.RMISocketFactory
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory
-
-
-
-
Method Detail
-
createSocket
public Socket createSocket(String host, int port) throws IOException
- Specified by:
createSocketin interfaceRMIClientSocketFactory- Specified by:
createSocketin classRMISocketFactory- Throws:
IOException
-
createServerSocket
public ServerSocket createServerSocket(int port) throws IOException
- Specified by:
createServerSocketin interfaceRMIServerSocketFactory- Specified by:
createServerSocketin classRMISocketFactory- Throws:
IOException
-
-