@@ -384,17 +384,19 @@ def cmd_banner_help
384
384
def cmd_banner ( *args )
385
385
banner = "%cya" + Banner . to_s + "%clr\n \n "
386
386
387
+ # These messages should /not/ show up when you're on a git checkout;
388
+ # you're a developer, so you already know all this.
387
389
if ( is_apt || binary_install )
388
390
content = [
389
391
"Trouble managing data? List, sort, group, tag and search your pentest data\n in Metasploit Pro -- learn more on http://rapid7.com/metasploit" ,
390
392
"Frustrated with proxy pivoting? Upgrade to layer-2 VPN pivoting with\n Metasploit Pro -- learn more on http://rapid7.com/metasploit" ,
391
393
"Payload caught by AV? Fly under the radar with Dynamic Payloads in\n Metasploit Pro -- learn more on http://rapid7.com/metasploit" ,
392
394
"Easy phishing: Set up email templates, landing pages and listeners\n in Metasploit Pro -- learn more on http://rapid7.com/metasploit" ,
393
395
"Taking notes in notepad? Have Metasploit Pro track & report\n your progress and findings -- learn more on http://rapid7.com/metasploit" ,
394
- "Tired of typing 'set RHOSTS'? Click & pwn with Metasploit Pro\n -- learn more on http://rapid7.com/metasploit" ,
396
+ "Tired of typing 'set RHOSTS'? Click & pwn with Metasploit Pro\n Learn more on http://rapid7.com/metasploit" ,
395
397
"Love leveraging credentials? Check out bruteforcing\n in Metasploit Pro -- learn more on http://rapid7.com/metasploit" ,
396
- "Save 45% of your time on large engagements with Metaspsloit Pro\n -- learn more on http://rapid7.com/metasploit" ,
397
- "Validate lots of vulnerabilities to demonstrate exposure\n with Metasploit Pro\n -- learn more on http://rapid7.com/metasploit"
398
+ "Save 45% of your time on large engagements with Metaspsloit Pro\n Learn more on http://rapid7.com/metasploit" ,
399
+ "Validate lots of vulnerabilities to demonstrate exposure\n with Metasploit Pro -- Learn more on http://rapid7.com/metasploit"
398
400
]
399
401
banner << content . sample # Ruby 1.9-ism!
400
402
banner << "\n \n "
@@ -406,19 +408,18 @@ def cmd_banner(*args)
406
408
:version => "%yelmetasploit v#{ Msf ::Framework ::Version } [core:#{ Msf ::Framework ::VersionCore } api:#{ Msf ::Framework ::VersionAPI } ]%clr" ,
407
409
:exp_aux_pos => "#{ framework . stats . num_exploits } exploits - #{ framework . stats . num_auxiliary } auxiliary - #{ framework . stats . num_post } post" ,
408
410
:pay_enc_nop => "#{ framework . stats . num_payloads } payloads - #{ framework . stats . num_encoders } encoders - #{ framework . stats . num_nops } nops" ,
409
- :free_trial => "Free Metasploit Pro trial: http://r-7.co/trymsp"
411
+ :free_trial => "Free Metasploit Pro trial: http://r-7.co/trymsp" ,
412
+ :padding => 48
410
413
}
411
414
412
- banner << ( " =[ %-56s ]\n " % banner_trailers [ :version ] )
413
- banner << ( "+ -- --=[ %-48s ]\n " % banner_trailers [ :exp_aux_pos ] )
414
- banner << ( "+ -- --=[ %-48s ]\n " % banner_trailers [ :pay_enc_nop ] )
415
+ banner << ( " =[ %-#{ banner_trailers [ :padding ] + 8 } s ]\n " % banner_trailers [ :version ] )
416
+ banner << ( "+ -- --=[ %-#{ banner_trailers [ :padding ] } s ]\n " % banner_trailers [ :exp_aux_pos ] )
417
+ banner << ( "+ -- --=[ %-#{ banner_trailers [ :padding ] } s ]\n " % banner_trailers [ :pay_enc_nop ] )
415
418
416
- # Direct the user to the 14-day free trial of Metasploit Pro unless
417
- # they are on an apt install or already using Metasploit Pro,
418
- # Express, or Community edition
419
- unless ( is_apt || binary_install )
420
- banner << ( "+ -- --=[ %-48s]\n " % banner_trailers [ :free_trial ] )
421
- end
419
+ # TODO: People who are already on a Pro install shouldn't see this.
420
+ # It's hard for Framework to tell the difference though since
421
+ # license details are only in Pro -- we can't see them from here.
422
+ banner << ( "+ -- --=[ %-#{ banner_trailers [ :padding ] } s]\n " % banner_trailers [ :free_trial ] )
422
423
423
424
if ::Msf ::Framework ::EICARCorrupted
424
425
avdwarn = [ ]
0 commit comments