diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb index a7c1059583fef..67c03702d73f4 100644 --- a/lib/msf/ui/console/command_dispatcher/core.rb +++ b/lib/msf/ui/console/command_dispatcher/core.rb @@ -961,7 +961,7 @@ def log_on_timeout_error(message) proc do |e| next unless e.is_a?(Rex::TimeoutError) elog(e) - puts message + print_error(message) end end diff --git a/lib/rex/ui/text/resource.rb b/lib/rex/ui/text/resource.rb index e55536560607f..f6567dd9e6370 100644 --- a/lib/rex/ui/text/resource.rb +++ b/lib/rex/ui/text/resource.rb @@ -23,7 +23,7 @@ def load_resource(path) end # Process ERB directives first - puts "Processing #{path} for ERB directives." + print_status "Processing #{path} for ERB directives." erb = ERB.new(resource_file) processed_resource = erb.result(binding) @@ -55,7 +55,7 @@ def load_resource(path) buff << line end if ! buff.empty? - puts "resource (#{path})> Ruby Code (#{buff.length} bytes)" + print_status("resource (#{path})> Ruby Code (#{buff.length} bytes)") begin eval(buff, bin) rescue ::Interrupt