From 3103a04fd04ccd6aa4fdb6b03dd0b86adb2a918e Mon Sep 17 00:00:00 2001 From: HD Moore Date: Wed, 21 Feb 2007 15:10:56 +0000 Subject: [PATCH] Add a non-supported note about the Windows ruby interpreter git-svn-id: file:///home/svn/framework3/trunk@4455 4d416f70-5f16-0410-b530-b9f4589650da --- msfcli | 6 ++++++ msfconsole | 6 ++++++ 2 files changed, 12 insertions(+) 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.