From 6e9698f13b593a38860455ece854506200cb4a9c Mon Sep 17 00:00:00 2001 From: Tim W Date: Fri, 12 Apr 2019 23:20:43 +0800 Subject: [PATCH] use print_error for errors --- .../ui/console/command_dispatcher/appapi.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/appapi.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/appapi.rb index 3af476ab34..131b90381d 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/appapi.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/appapi.rb @@ -77,9 +77,9 @@ class Console::CommandDispatcher::AppApi # def cmd_app_uninstall(*args) if (args.length < 1) - print_line("[-] Usage: app_uninstall ") - print_line("[-] Request to uninstall application.") - print_line("[-] You can use 'app_list' to pick your packagename.") + print_error("[-] Usage: app_uninstall ") + print_error("[-] Request to uninstall application.") + print_error("[-] You can use 'app_list' to pick your packagename.") print_status("ex. app_uninstall com.corrm.clac") return end @@ -102,8 +102,8 @@ class Console::CommandDispatcher::AppApi # def cmd_app_install(*args) if (args.length < 1) - print_line("[-] Usage: app_install ") - print_line("[-] Request to install application.") + print_error("[-] Usage: app_install ") + print_error("[-] Request to install application.") print_status("ex. app_install '/sdcard/Download/corrm.apk'") return end @@ -126,9 +126,9 @@ class Console::CommandDispatcher::AppApi # def cmd_app_run(*args) if (args.length < 1) - print_line("[-] Usage: app_run ") - print_line("[-] Start Main Activty for package name.") - print_line("[-] You can use 'app_list' to pick your packagename.") + print_error("[-] Usage: app_run ") + print_error("[-] Start Main Activty for package name.") + print_error("[-] You can use 'app_list' to pick your packagename.") print_status("ex. app_run com.corrm.clac") return end