From a4d2bf30c15bfc4721491c0119bf27c9100c17a0 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Tue, 16 Oct 2018 16:14:01 +0000 Subject: [PATCH] Land #10816, Add a `bg` alias for `background` command --- .../post/meterpreter/ui/console/command_dispatcher/core.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb index 83428ec73a..67923f2f64 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb @@ -50,6 +50,7 @@ class Console::CommandDispatcher::Core c = { '?' => 'Help menu', 'background' => 'Backgrounds the current session', + 'bg' => 'Alias for background', 'close' => 'Closes a channel', 'channel' => 'Displays information or control active channels', 'exit' => 'Terminate the meterpreter session', @@ -330,6 +331,9 @@ class Console::CommandDispatcher::Core client.interacting = false end + alias cmd_bg cmd_background + alias cmd_bg_help cmd_background_help + # # Displays information about active channels #