Skip to content

Commit c50c929

Browse files
author
Tod Beardsley
committed
Treat apt and binary installs the same for banners
1 parent ab56583 commit c50c929

File tree

1 file changed

+2
-2
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+2
-2
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def cmd_banner_help
384384
def cmd_banner(*args)
385385
banner = "%cya" + Banner.to_s + "%clr\n\n"
386386

387-
if is_apt
387+
if (is_apt || binary_install)
388388
content = [
389389
"Trouble managing data? List, sort, group, tag and search your pentest data\nin Metasploit Pro -- learn more on http://rapid7.com/metasploit",
390390
"Frustrated with proxy pivoting? Upgrade to layer-2 VPN pivoting with\nMetasploit Pro -- learn more on http://rapid7.com/metasploit",
@@ -416,7 +416,7 @@ def cmd_banner(*args)
416416
# Direct the user to the 14-day free trial of Metasploit Pro unless
417417
# they are on an apt install or already using Metasploit Pro,
418418
# Express, or Community edition
419-
unless binary_install
419+
unless (is_apt || binary_install)
420420
banner << ("+ -- --=[ %-48s]\n" % banner_trailers[:free_trial])
421421
end
422422

0 commit comments

Comments
 (0)