1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

Add a non-supported note about the Windows ruby interpreter

git-svn-id: file:///home/svn/framework3/trunk@4455 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2007-02-21 15:10:56 +00:00
parent 7007ec3349
commit 3103a04fd0
2 changed files with 12 additions and 0 deletions

6
msfcli
View File

@ -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

View File

@ -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.