From f1240b0454efae2707072394e0471805648dfa5c Mon Sep 17 00:00:00 2001 From: Auxilus Date: Tue, 10 Apr 2018 22:20:27 +0530 Subject: [PATCH] resolves #9855 --- lib/msf/ui/console/command_dispatcher/core.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb index 6b92168728..44ef1faa6b 100644 --- a/lib/msf/ui/console/command_dispatcher/core.rb +++ b/lib/msf/ui/console/command_dispatcher/core.rb @@ -858,6 +858,7 @@ class Core # which session a given subnet should route through. # def cmd_route(*args) + begin args << 'print' if args.length == 0 action = args.shift @@ -992,6 +993,9 @@ class Core else cmd_route_help end + rescue => error + print_error(error.message) + end end #