mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-14 17:37:27 +01:00
fix errors in javadoc
This commit is contained in:
parent
badaaa4df2
commit
dc6d600d62
@ -5,7 +5,7 @@ import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
|
||||
/**
|
||||
* A command that can be executed inside meterpreter. Each command has a name and can be registered using the {@link CommandManager#registerCommand(String, Class)} command.
|
||||
* A command that can be executed inside meterpreter. Each command has a name and can be registered using the {@link CommandManager#registerCommand(int commandId, Class commandClass)} command.
|
||||
*
|
||||
* @author mihi
|
||||
*/
|
||||
@ -31,9 +31,9 @@ public interface Command {
|
||||
*
|
||||
* @param request request packet
|
||||
* @param response response packet
|
||||
* @param errorStream Stream to write errors to
|
||||
* @return a status code (usually {@link #ERROR_SUCCESS} or {@link ERROR_FAILURE})
|
||||
* @throws any exception, which will be mapped to an error stream output and an {@link ERROR_FAILURE} status code.
|
||||
* @param meterpreter Meterpreter to write errors to
|
||||
* @return a status code (usually {@link #ERROR_SUCCESS} or {@link #ERROR_FAILURE})
|
||||
* @throws Exception any exception, which will be mapped to an error stream output and an {@link #ERROR_FAILURE} status code.
|
||||
*/
|
||||
public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception;
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ public class DatagramSocketChannel extends Channel {
|
||||
* Create a new socket channel.
|
||||
*
|
||||
* @param meterpreter The meterpreter this channel should be assigned to.
|
||||
* @param socket Socket of the channel
|
||||
* @param datagramSocket Socket of the channel
|
||||
*/
|
||||
public DatagramSocketChannel(Meterpreter meterpreter, DatagramSocket datagramSocket) throws IOException {
|
||||
super(meterpreter, new ByteArrayInputStream(new byte[0]), null);
|
||||
|
@ -22,7 +22,7 @@ public class ServerSocketChannel extends Channel {
|
||||
* Create a new socket channel.
|
||||
*
|
||||
* @param meterpreter The meterpreter this channel should be assigned to.
|
||||
* @param socket Socket of the channel
|
||||
* @param serverSocket Socket of the channel
|
||||
*/
|
||||
public ServerSocketChannel(Meterpreter meterpreter, ServerSocket serverSocket) throws IOException {
|
||||
super(meterpreter, new ByteArrayInputStream(new byte[0]), null);
|
||||
|
@ -64,7 +64,7 @@ public class stdapi_net_config_get_interfaces_V1_4 extends stdapi_net_config_get
|
||||
* the same way for all Java versions.
|
||||
*
|
||||
* @param iface
|
||||
* @return Array of {@link Interface}
|
||||
* @return Array of {@link Address}
|
||||
*/
|
||||
public Address[] getAddresses(NetworkInterface iface) throws IOException {
|
||||
List/* <Address> */result = new ArrayList();
|
||||
|
Loading…
Reference in New Issue
Block a user