Skip to content

Commit 6ded5a7

Browse files
author
Tod Beardsley
committed
Avoid spinner on Windows
Fixes rapid7#4147, probably.
1 parent 5c2f972 commit 6ded5a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/metasploit/framework/command/console.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88
# Based on pattern used for lib/rails/commands in the railties gem.
99
class Metasploit::Framework::Command::Console < Metasploit::Framework::Command::Base
1010

11+
# Provides an animated spinner in a seperate thread.
12+
#
13+
# See GitHub issue #4147, as this may be blocking some
14+
# Windows instances, which is why Windows platforms
15+
# should simply return immediately.
16+
1117
def spinner
18+
return if Rex::Compat.is_windows
19+
return if Rex::Compat.is_cygwin
1220
return if $msf_spinner_thread
1321
$msf_spinner_thread = Thread.new do
1422
$stderr.print "[*] Starting the Metasploit Framework console..."

0 commit comments

Comments
 (0)