Created
February 23, 2017 18:31
-
-
Save bigendiansmalls/e5954d610bbd0e86764a1dfe5dfca81d to your computer and use it in GitHub Desktop.
zrules for msf - because zrules!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# This patch ensures you only get z/OS themed logos when you | |
# start msfconsole. Cuz why not! | |
# Author: BeS | |
# Date: not yet, but working on it. | |
# | |
# Run (from root of your msf install) | |
# - patch -p1 -i zrules.patch | |
# - set or export ZRULES=1 | |
# - start msfconsole as normal | |
# - get only SoF's wicked Z MSF logos! | |
## | |
diff --git a/lib/msf/ui/banner.rb b/lib/msf/ui/banner.rb | |
index b6368ea..c9575aa 100644 | |
--- a/lib/msf/ui/banner.rb | |
+++ b/lib/msf/ui/banner.rb | |
@@ -44,6 +44,9 @@ module Banner | |
# Easter egg (always a cow themed logo): export/set GOCOW=1 | |
if ENV['GOCOW'] | |
logos.concat(Dir.glob(::Msf::Config.logos_directory + File::SEPARATOR + 'cow*.txt')) | |
+ # Easter egg (always a z/OS themed logo): export/set ZRULES=1 | |
+ elsif ENV['ZRULES'] | |
+ logos.concat(Dir.glob(::Msf::Config.logos_directory + File::SEPARATOR + 'zsploit*.txt')) | |
# Easter egg (always a halloween themed logo): export/set THISISHALLOWEEN=1 | |
elsif ( ENV['THISISHALLOWEEN'] || Time.now.strftime("%m%d") == "1031" ) | |
logos.concat(Dir.glob(::Msf::Config.logos_directory + File::SEPARATOR + '*.hwtxt')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment