Skip to content

Commit 432bcfc

Browse files
committed
Mention our corporate sponsors in the banner
1 parent 3068408 commit 432bcfc

File tree

1 file changed

+17
-9
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+17
-9
lines changed

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

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -272,20 +272,28 @@ def cmd_banner_help
272272
def cmd_banner(*args)
273273
banner = "%cya" + Banner.to_s + "%clr\n\n"
274274

275-
stats = framework.stats
276-
version = "%yelmetasploit v#{Metasploit::Framework::VERSION}%clr",
277-
exp_aux_pos = "#{stats.num_exploits} exploits - #{stats.num_auxiliary} auxiliary - #{stats.num_post} post",
278-
pay_enc_nop = "#{stats.num_payloads} payloads - #{stats.num_encoders} encoders - #{stats.num_nops} nops",
279-
eva = "#{stats.num_evasion} evasion",
280-
padding = 48
275+
stats = framework.stats
276+
version = "%yelmetasploit v#{Metasploit::Framework::VERSION}%clr",
277+
stats_line_1 = [
278+
"#{stats.num_exploits.to_fs(:delimited)} exploits",
279+
"#{stats.num_auxiliary.to_fs(:delimited)} auxiliary",
280+
"#{stats.num_payloads.to_fs(:delimited)} payloads"
281+
].join(' - ')
282+
stats_line_2 = [
283+
"#{stats.num_post.to_fs(:delimited)} post",
284+
"#{stats.num_encoders.to_fs(:delimited)} encoders",
285+
"#{stats.num_nops.to_fs(:delimited)} nops",
286+
"#{stats.num_evasion.to_fs(:delimited)} evasion"
287+
].join(' - ')
288+
padding = 54
281289

282290
banner << (" =[ %-#{padding+8}s]\n" % version)
283-
banner << ("+ -- --=[ %-#{padding}s]\n" % exp_aux_pos)
284-
banner << ("+ -- --=[ %-#{padding}s]\n" % pay_enc_nop)
285-
banner << ("+ -- --=[ %-#{padding}s]\n" % eva)
291+
banner << ("+ -- --=[ %-#{padding}s]\n" % stats_line_1)
292+
banner << ("+ -- --=[ %-#{padding}s]\n" % stats_line_2)
286293

287294
banner << "\n"
288295
banner << Rex::Text.wordwrap('Metasploit Documentation: https://docs.metasploit.com/', indent = 0, cols = 60)
296+
banner << Rex::Text.wordwrap('The Metasploit Framework is a Rapid7 Open Source Project', indent = 0, cols = 60)
289297

290298
# Display the banner
291299
print_line(banner)

0 commit comments

Comments
 (0)