mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-18 15:14:10 +01:00
Land #468, remove unused imports
This commit is contained in:
commit
6e8023708d
java
androidpayload/app/src/com/metasploit/stage
javapayload/src
meterpreter
meterpreter/src/main/java/com/metasploit/meterpreter
HttpTransport.javaMeterpreter.javaTcpTransport.javaTransport.java
core
core_get_session_guid.javacore_machine_id.javacore_set_session_guid.javacore_set_uuid.javacore_shutdown.javacore_transport_add.javacore_transport_change.javacore_transport_list.javacore_transport_next.javacore_transport_prev.javacore_transport_remove.javacore_transport_set_timeouts.javacore_transport_sleep.java
stdapi/src/main/java/com/metasploit/meterpreter
@ -1,7 +1,6 @@
|
||||
package com.metasploit.stage;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class MainActivity extends Activity {
|
||||
|
@ -1,9 +1,5 @@
|
||||
package metasploit;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import javax.management.*;
|
||||
|
||||
public class JMXPayload implements JMXPayloadMBean {
|
||||
public Object run() throws Exception {
|
||||
Payload.main(null);
|
||||
|
@ -4,7 +4,6 @@ import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataInputStream;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class ShellTest extends TestCase {
|
||||
|
@ -1,7 +1,6 @@
|
||||
package com.metasploit.meterpreter;
|
||||
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
import com.metasploit.stage.ConfigParser;
|
||||
import com.metasploit.stage.HttpConnection;
|
||||
import com.metasploit.stage.PayloadTrustManager;
|
||||
import com.metasploit.stage.TransportConfig;
|
||||
|
@ -3,12 +3,9 @@ package com.metasploit.meterpreter;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
@ -20,7 +17,6 @@ import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.jar.JarInputStream;
|
||||
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
import com.metasploit.meterpreter.core.core_loadlib;
|
||||
import com.metasploit.stage.Config;
|
||||
import com.metasploit.stage.ConfigParser;
|
||||
|
@ -3,7 +3,6 @@ package com.metasploit.meterpreter;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
|
||||
import java.net.ServerSocket;
|
||||
|
@ -1,6 +1,5 @@
|
||||
package com.metasploit.meterpreter;
|
||||
|
||||
import com.metasploit.stage.ConfigParser;
|
||||
import com.metasploit.stage.TransportConfig;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
|
@ -3,7 +3,6 @@ package com.metasploit.meterpreter.core;
|
||||
import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_get_session_guid implements Command {
|
||||
|
@ -6,10 +6,8 @@ import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
public class core_machine_id implements Command {
|
||||
|
||||
|
@ -3,7 +3,6 @@ package com.metasploit.meterpreter.core;
|
||||
import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_set_session_guid implements Command {
|
||||
|
@ -3,11 +3,8 @@ package com.metasploit.meterpreter.core;
|
||||
import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class core_set_uuid implements Command {
|
||||
public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {
|
||||
byte[] newUuid = request.getRawValue(TLVType.TLV_TYPE_UUID, null);
|
||||
|
@ -4,8 +4,6 @@ import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class core_shutdown implements Command {
|
||||
public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {
|
||||
return EXIT_DISPATCH;
|
||||
|
1
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_add.java
1
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_add.java
@ -6,7 +6,6 @@ import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Transport;
|
||||
import com.metasploit.meterpreter.TcpTransport;
|
||||
import com.metasploit.meterpreter.HttpTransport;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_transport_add implements Command {
|
||||
|
@ -2,12 +2,6 @@ package com.metasploit.meterpreter.core;
|
||||
|
||||
import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Transport;
|
||||
import com.metasploit.meterpreter.TcpTransport;
|
||||
import com.metasploit.meterpreter.HttpTransport;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_transport_change extends core_transport_add {
|
||||
|
||||
|
1
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_list.java
1
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_list.java
@ -5,7 +5,6 @@ import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Transport;
|
||||
import com.metasploit.meterpreter.HttpTransport;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_transport_list implements Command {
|
||||
|
5
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_next.java
5
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_next.java
@ -2,11 +2,6 @@ package com.metasploit.meterpreter.core;
|
||||
|
||||
import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Transport;
|
||||
import com.metasploit.meterpreter.TcpTransport;
|
||||
import com.metasploit.meterpreter.HttpTransport;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_transport_next implements Command {
|
||||
|
5
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_prev.java
5
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_prev.java
@ -2,11 +2,6 @@ package com.metasploit.meterpreter.core;
|
||||
|
||||
import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Transport;
|
||||
import com.metasploit.meterpreter.TcpTransport;
|
||||
import com.metasploit.meterpreter.HttpTransport;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_transport_prev implements Command {
|
||||
|
@ -4,9 +4,6 @@ import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Transport;
|
||||
import com.metasploit.meterpreter.TcpTransport;
|
||||
import com.metasploit.meterpreter.HttpTransport;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_transport_remove implements Command {
|
||||
|
@ -4,7 +4,6 @@ import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Transport;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_transport_set_timeouts implements Command {
|
||||
|
3
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_sleep.java
3
java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/core/core_transport_sleep.java
@ -4,9 +4,6 @@ import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.Transport;
|
||||
import com.metasploit.meterpreter.TcpTransport;
|
||||
import com.metasploit.meterpreter.HttpTransport;
|
||||
import com.metasploit.meterpreter.Utils;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class core_transport_sleep implements Command {
|
||||
|
@ -2,7 +2,6 @@ package com.metasploit.meterpreter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.PrintStream;
|
||||
|
||||
/**
|
||||
* A channel for a started {@link Process}.
|
||||
|
@ -8,7 +8,6 @@ import com.metasploit.meterpreter.Meterpreter;
|
||||
import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
import com.metasploit.meterpreter.command.NotYetImplementedCommand;
|
||||
|
||||
public class stdapi_fs_file_expand_path implements Command {
|
||||
|
||||
|
@ -7,7 +7,6 @@ import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
import java.awt.Robot;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.security.Key;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user