From dc1b451242099a5a351c7165e781bb4dd31002af Mon Sep 17 00:00:00 2001 From: Tim W Date: Mon, 21 Dec 2020 12:15:12 +0000 Subject: [PATCH] fix Android stdapi_channel_open --- .../src/com/metasploit/meterpreter/AndroidMeterpreter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/androidpayload/library/src/com/metasploit/meterpreter/AndroidMeterpreter.java b/java/androidpayload/library/src/com/metasploit/meterpreter/AndroidMeterpreter.java index f11c43c2..f4cc151e 100644 --- a/java/androidpayload/library/src/com/metasploit/meterpreter/AndroidMeterpreter.java +++ b/java/androidpayload/library/src/com/metasploit/meterpreter/AndroidMeterpreter.java @@ -109,6 +109,7 @@ public class AndroidMeterpreter extends Meterpreter { getCommandManager().resetNewCommands(); CommandManager mgr = getCommandManager(); Loader.setCWD(new File(writeableDir)); + mgr.registerCommand(CommandId.CORE_CHANNEL_OPEN, stdapi_channel_open.class); mgr.registerCommand(CommandId.STDAPI_FS_CHDIR, stdapi_fs_chdir.class); mgr.registerCommand(CommandId.STDAPI_FS_DELETE_DIR, stdapi_fs_delete_dir.class); mgr.registerCommand(CommandId.STDAPI_FS_DELETE_FILE, stdapi_fs_delete_file.class);