diff --git a/msfcli b/msfcli index e47b4fdf0f..6f9486beac 100755 --- a/msfcli +++ b/msfcli @@ -14,6 +14,12 @@ require 'msf/base' Indent = ' ' +if(RUBY_PLATFORM =~ /mswin32/) + $stderr.puts "[*] The msfconsole interface is not supported on the native Windows Ruby interpreter.\n" + $stderr.puts " Things will break, exploits will fail, payloads will not be handled correctly.\n" + $stderr.puts " Please use the msfweb 'console' or install Cygwin or Linux in VMWare.\n\n" +end + # Initialize the simplified framework instance. $framework = Msf::Simple::Framework.create diff --git a/msfconsole b/msfconsole index 8e2193a448..c62d3b109a 100755 --- a/msfconsole +++ b/msfconsole @@ -11,6 +11,12 @@ require 'rex' require 'msf/ui' require 'optparse' +if(RUBY_PLATFORM =~ /mswin32/) + $stderr.puts "[*] The msfconsole interface is not supported on the native Windows Ruby interpreter.\n" + $stderr.puts " Things will break, exploits will fail, payloads will not be handled correctly.\n" + $stderr.puts " Please use the msfweb 'console' or install Cygwin or Linux in VMWare.\n\n" +end + class OptsConsole # # Return a hash describing the options.