Skip to content

Commit a431bff

Browse files
author
Tod Beardsley
committed
@wvu-r7 is a skilled negotiator. s/stdout/stderr/
1 parent 5978bd5 commit a431bff

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

lib/metasploit/framework/command/console.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ class Metasploit::Framework::Command::Console < Metasploit::Framework::Command::
1111
def spinner
1212
return if $msf_spinner_thread
1313
$msf_spinner_thread = Thread.new do
14-
$stdout.print "[*] Starting the Metasploit Framework console..."
14+
$stderr.print "[*] Starting the Metasploit Framework console..."
1515
loop do
1616
%q{/-\|}.each_char do |c|
17-
$stdout.print c
18-
$stdout.print "\b"
17+
$stderr.print c
18+
$stderr.print "\b"
1919
end
2020
end
2121
end

lib/msf/ui/console/driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def on_startup(opts = {})
537537

538538
if $msf_spinner_thread
539539
$msf_spinner_thread.kill
540-
$stdout.print "\n"
540+
$stderr.print "\n"
541541
end
542542

543543
run_single("banner") unless opts['DisableBanner']

msfconsole

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ require Pathname.new(__FILE__).realpath.expand_path.parent.join('config', 'boot'
4646
require 'metasploit/framework/command/console'
4747

4848
Metasploit::Framework::Command::Console.start
49-
$stdout.puts "[*] Metasploit Framework console session ended"

0 commit comments

Comments
 (0)