From bfce4dcc3ae27a5e21166b25d8f6c571852d02e8 Mon Sep 17 00:00:00 2001 From: adfoster-r7 Date: Sat, 4 Dec 2021 15:12:29 +0000 Subject: [PATCH] Add April fools module help banner --- data/logos/help-using-a-module.txt | 15 +++++++++++++++ lib/msf/ui/console/command_dispatcher/modules.rb | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 data/logos/help-using-a-module.txt diff --git a/data/logos/help-using-a-module.txt b/data/logos/help-using-a-module.txt new file mode 100644 index 0000000000..ed29bcaac2 --- /dev/null +++ b/data/logos/help-using-a-module.txt @@ -0,0 +1,15 @@ + ______________________________________ +/ it looks like you're trying to run a \ +\ module / + -------------------------------------- + \ + \ + __ + / \ + | | + @ @ + | | + || |/ + || || + |\_/| + \___/ diff --git a/lib/msf/ui/console/command_dispatcher/modules.rb b/lib/msf/ui/console/command_dispatcher/modules.rb index 5445bb0af1..af05dfff1c 100644 --- a/lib/msf/ui/console/command_dispatcher/modules.rb +++ b/lib/msf/ui/console/command_dispatcher/modules.rb @@ -683,6 +683,7 @@ module Msf print_line ' search eternalblue' print_line ' use ' 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 #