From c50c929412a63527ee9611537444603e45aa56e9 Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Wed, 7 May 2014 15:59:50 -0500 Subject: [PATCH] Treat apt and binary installs the same for banners --- lib/msf/ui/console/command_dispatcher/core.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb index 0d52105a28..1eb1da8b1c 100644 --- a/lib/msf/ui/console/command_dispatcher/core.rb +++ b/lib/msf/ui/console/command_dispatcher/core.rb @@ -384,7 +384,7 @@ class Core def cmd_banner(*args) banner = "%cya" + Banner.to_s + "%clr\n\n" - if is_apt + if (is_apt || binary_install) content = [ "Trouble managing data? List, sort, group, tag and search your pentest data\nin Metasploit Pro -- learn more on http://rapid7.com/metasploit", "Frustrated with proxy pivoting? Upgrade to layer-2 VPN pivoting with\nMetasploit Pro -- learn more on http://rapid7.com/metasploit", @@ -416,7 +416,7 @@ class Core # Direct the user to the 14-day free trial of Metasploit Pro unless # they are on an apt install or already using Metasploit Pro, # Express, or Community edition - unless binary_install + unless (is_apt || binary_install) banner << ("+ -- --=[ %-48s]\n" % banner_trailers[:free_trial]) end