@@ -400,38 +400,24 @@ def cmd_banner(*args)
400
400
banner << "\n \n "
401
401
end
402
402
403
- oldwarn = nil
404
403
avdwarn = nil
405
404
406
405
banner_trailers = {
407
406
:version => "%yelmetasploit v#{ Msf ::Framework ::Version } [core:#{ Msf ::Framework ::VersionCore } api:#{ Msf ::Framework ::VersionAPI } ]%clr" ,
408
407
:exp_aux_pos => "#{ framework . stats . num_exploits } exploits - #{ framework . stats . num_auxiliary } auxiliary - #{ framework . stats . num_post } post" ,
409
408
:pay_enc_nop => "#{ framework . stats . num_payloads } payloads - #{ framework . stats . num_encoders } encoders - #{ framework . stats . num_nops } nops" ,
410
- :free_trial => "Free Metasploit Pro trial: http://r-7.com /trymsp"
409
+ :free_trial => "Free Metasploit Pro trial: http://r-7.co /trymsp"
411
410
}
412
411
413
- banner << ( " =[ %-57s ]\n " % banner_trailers [ :version ] )
414
- banner << ( "+ -- --=[ %-49s ]\n " % banner_trailers [ :exp_aux_pos ] )
415
- banner << ( "+ -- --=[ %-49s ]\n " % banner_trailers [ :pay_enc_nop ] )
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 ] )
416
415
417
416
# Direct the user to the 14-day free trial of Metasploit Pro unless
418
417
# they are on an apt install or already using Metasploit Pro,
419
418
# Express, or Community edition
420
419
unless binary_install
421
- banner << ( "+ -- --=[ %-49s]\n " % banner_trailers [ :free_trial ] )
422
- end
423
-
424
- if ( ::Msf ::Framework ::RepoRevision . to_i > 0 and ::Msf ::Framework ::RepoUpdatedDate )
425
- tstamp = ::Msf ::Framework ::RepoUpdatedDate . strftime ( "%Y.%m.%d" )
426
- banner << " =[ svn r#{ ::Msf ::Framework ::RepoRevision } updated #{ ::Msf ::Framework ::RepoUpdatedDaysNote } (#{ tstamp } )\n "
427
- if ( ::Msf ::Framework ::RepoUpdatedDays > 7 )
428
- oldwarn = [ ]
429
- oldwarn << "Warning: This copy of the Metasploit Framework was last updated #{ ::Msf ::Framework ::RepoUpdatedDaysNote } ."
430
- oldwarn << " We recommend that you update the framework at least every other day."
431
- oldwarn << " For information on updating your copy of Metasploit, please see:"
432
- oldwarn << " https://community.rapid7.com/docs/DOC-1306"
433
- oldwarn << ""
434
- end
420
+ banner << ( "+ -- --=[ %-48s]\n " % banner_trailers [ :free_trial ] )
435
421
end
436
422
437
423
if ::Msf ::Framework ::EICARCorrupted
@@ -443,22 +429,9 @@ def cmd_banner(*args)
443
429
avdwarn << ""
444
430
end
445
431
446
- # We're running a two week survey to gather feedback from users.
447
- # Let's make sure we reach regular msfconsole users.
448
- # TODO: Get rid of this sometime after 2014-01-23
449
- survey_expires = Time . new ( 2014 , "Jan" , 22 , 23 , 59 , 59 , "-05:00" )
450
- if Time . now . to_i < survey_expires . to_i
451
- banner << "+ -- --=[ Answer Q's about Metasploit and win a WiFi Pineapple Mk5 ]\n "
452
- banner << "+ -- --=[ http://bit.ly/msfsurvey (Expires #{ survey_expires . ctime } ) ]\n "
453
- end
454
-
455
432
# Display the banner
456
433
print_line ( banner )
457
434
458
- if ( oldwarn )
459
- oldwarn . map { |line | print_line ( line ) }
460
- end
461
-
462
435
if ( avdwarn )
463
436
avdwarn . map { |line | print_error ( line ) }
464
437
end
0 commit comments