From 5e18495b3393c5a1c6420c49403f431665116cd2 Mon Sep 17 00:00:00 2001 From: Ben Passmore Date: Wed, 31 Jul 2019 19:13:28 +1000 Subject: [PATCH] Removed color methods used in rainbow gem. Currently broken due to issue: https://github.com/sickill/rainbow/issues/82 --- core/ruby/print.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/ruby/print.rb b/core/ruby/print.rb index 9205ed318..4b650e453 100644 --- a/core/ruby/print.rb +++ b/core/ruby/print.rb @@ -7,14 +7,14 @@ # Function used to print errors to the console # @param [String] s String to be printed def print_error(s) - puts Time.now.localtime.strftime("[%k:%M:%S]")+'[!]'.red+' '+s + puts Time.now.localtime.strftime("[%k:%M:%S]")+'[!]'+' '+s BeEF.logger.error s.to_s end # Function used to print information to the console # @param [String] s String to be printed def print_info(s) - puts Time.now.localtime.strftime("[%k:%M:%S]")+'[*]'.blue+' '+s + puts Time.now.localtime.strftime("[%k:%M:%S]")+'[*]'+' '+s BeEF.logger.info s.to_s end @@ -27,7 +27,7 @@ end # Function used to print warning information # @param [String] s String to be printed def print_warning(s) - puts Time.now.localtime.strftime("[%k:%M:%S]")+'[!]'.yellow+' '+s.to_s + puts Time.now.localtime.strftime("[%k:%M:%S]")+'[!]'+' '+s.to_s BeEF.logger.warn s.to_s end @@ -37,7 +37,7 @@ end def print_debug(s) config = BeEF::Core::Configuration.instance if config.get('beef.debug') || BeEF::Core::Console::CommandLine.parse[:verbose] - puts Time.now.localtime.strftime("[%k:%M:%S]")+'[>]'.yellow+' '+s.to_s + puts Time.now.localtime.strftime("[%k:%M:%S]")+'[>]'+' '+s.to_s BeEF.logger.debug s.to_s end end @@ -45,7 +45,7 @@ end # Function used to print successes to the console # @param [String] s String to be printed def print_success(s) - puts Time.now.localtime.strftime("[%k:%M:%S]")+'[+]'.green+' '+s + puts Time.now.localtime.strftime("[%k:%M:%S]")+'[+]'+' '+s BeEF.logger.info s.to_s end