From 8cbae6a83054e2c0753e2674fc7d166780aeb0e0 Mon Sep 17 00:00:00 2001 From: Ben Passmore Date: Sun, 3 Nov 2019 08:01:54 +1000 Subject: [PATCH] Cast print error to string when there are cases it recieves stack traces --- core/ruby/print.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/ruby/print.rb b/core/ruby/print.rb index 4b650e453..428171768 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]")+'[!]'+' '+s + puts Time.now.localtime.strftime("[%k:%M:%S]")+'[!]'+' '+s.to_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]")+'[*]'+' '+s + puts Time.now.localtime.strftime("[%k:%M:%S]")+'[*]'+' '+s.to_s BeEF.logger.info s.to_s 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]")+'[+]'+' '+s + puts Time.now.localtime.strftime("[%k:%M:%S]")+'[+]'+' '+s.to_s BeEF.logger.info s.to_s end