mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-02-22 03:19:04 +01:00
Ready
This commit is contained in:
parent
28f7832e9b
commit
d74d49f474
@ -139,14 +139,14 @@ public class AndroidMeterpreter extends Meterpreter {
|
||||
mgr.registerCommand("stdapi_sys_process_execute", stdapi_sys_process_execute_V1_3.class);
|
||||
mgr.registerCommand("stdapi_sys_process_get_processes", stdapi_sys_process_get_processes_android.class);
|
||||
mgr.registerCommand("stdapi_ui_desktop_screenshot", stdapi_ui_desktop_screenshot.class);
|
||||
appendLog("WW");
|
||||
appendLog("TTT");
|
||||
if (context != null) {
|
||||
// Application
|
||||
mgr.registerCommand("android_app_list", android_app_list.class);
|
||||
mgr.registerCommand("android_app_run", android_app_run.class);
|
||||
mgr.registerCommand("android_app_install", android_app_install.class);
|
||||
mgr.registerCommand("android_app_uninstall", android_app_uninstall.class);
|
||||
appendLog("GG");
|
||||
mgr.registerCommand("appapi_app_list", appapi_app_list.class);
|
||||
mgr.registerCommand("appapi_app_run", appapi_app_run.class);
|
||||
mgr.registerCommand("appapi_app_install", appapi_app_install.class);
|
||||
mgr.registerCommand("appapi_app_uninstall", appapi_app_uninstall.class);
|
||||
appendLog("EEE");
|
||||
// Application
|
||||
mgr.registerCommand("webcam_audio_record", webcam_audio_record_android.class);
|
||||
mgr.registerCommand("webcam_list", webcam_list_android.class);
|
||||
|
@ -17,7 +17,7 @@ import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class android_app_install implements Command {
|
||||
public class appapi_app_install implements Command {
|
||||
private static final int TLV_EXTENSIONS = 20000;
|
||||
private static final int TLV_TYPE_APP_APK_PATH = TLVPacket.TLV_META_TYPE_STRING | (TLV_EXTENSIONS + 2914);
|
||||
private static final int TLV_TYPE_APP_INSTALL_ENUM = TLVPacket.TLV_META_TYPE_UINT | (TLV_EXTENSIONS + 2915);
|
||||
@ -31,7 +31,7 @@ public class android_app_install implements Command {
|
||||
if(!file.exists())
|
||||
{
|
||||
response.addOverflow(TLV_TYPE_APP_INSTALL_ENUM, 2); // File Not Found
|
||||
return ERROR_SUCCESS;
|
||||
return ERROR_FAILURE;
|
||||
}
|
||||
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
@ -21,7 +21,7 @@ import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class android_app_list implements Command {
|
||||
public class appapi_app_list implements Command {
|
||||
private static final int TLV_EXTENSIONS = 20000;
|
||||
private static final int TLV_TYPE_APPS_LIST = TLVPacket.TLV_META_TYPE_STRING | (TLV_EXTENSIONS + 2911);
|
||||
private static final int TLV_TYPE_APPS_LIST_OPT = TLVPacket.TLV_META_TYPE_UINT | (TLV_EXTENSIONS + 2912);
|
@ -17,7 +17,7 @@ import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class android_app_run implements Command {
|
||||
public class appapi_app_run implements Command {
|
||||
private static final int TLV_EXTENSIONS = 20000;
|
||||
private static final int TLV_TYPE_APP_PACKAGE_NAME = TLVPacket.TLV_META_TYPE_STRING | (TLV_EXTENSIONS + 2913);
|
||||
private static final int TLV_TYPE_APP_RUN_ENUM = TLVPacket.TLV_META_TYPE_UINT | (TLV_EXTENSIONS + 2916);
|
@ -16,7 +16,7 @@ import com.metasploit.meterpreter.TLVPacket;
|
||||
import com.metasploit.meterpreter.TLVType;
|
||||
import com.metasploit.meterpreter.command.Command;
|
||||
|
||||
public class android_app_uninstall implements Command {
|
||||
public class appapi_app_uninstall implements Command {
|
||||
private static final int TLV_EXTENSIONS = 20000;
|
||||
private static final int TLV_TYPE_APP_PACKAGE_NAME = TLVPacket.TLV_META_TYPE_STRING | (TLV_EXTENSIONS + 2913);
|
||||
final Context context = AndroidMeterpreter.getContext();
|
Loading…
x
Reference in New Issue
Block a user