Add April fools module help banner

This commit is contained in:
adfoster-r7 2021-12-04 15:12:29 +00:00
parent 84c9a30c40
commit bfce4dcc3a
No known key found for this signature in database
GPG Key ID: 3BD4FA3818818F04
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,15 @@
______________________________________
/ it looks like you're trying to run a \
\ module /
--------------------------------------
\
\
__
/ \
| |
@ @
| |
|| |/
|| ||
|\_/|
\___/

View File

@ -683,6 +683,7 @@ module Msf
print_line ' search eternalblue'
print_line ' use <name|index>'
print_line
print_april_fools_module_use
end
#
@ -1249,6 +1250,13 @@ module Msf
return res.sort
end
def print_april_fools_module_use
return unless ENV['APRILFOOLSMODULEUSE'] || Time.now.strftime("%m%d") == "0401"
banner = Msf::Ui::Banner.readfile('help-using-a-module.txt')
print_line("%grn#{banner}%clr")
end
#
# Convert squirrel names back to regular module names
#