Merge branch 'master' of github.com:rapid7/metasploit-framework
commit
92e1604018
14
msfgui
14
msfgui
|
@ -8,17 +8,21 @@
|
||||||
# $Revision$
|
# $Revision$
|
||||||
#
|
#
|
||||||
|
|
||||||
|
msfbase = __FILE__
|
||||||
|
while File.symlink?(msfbase)
|
||||||
|
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
|
||||||
|
end
|
||||||
|
|
||||||
|
$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
|
||||||
|
require 'fastlib'
|
||||||
|
require 'msfenv'
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'msgpack'
|
require 'msgpack'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
raise LoadError, "Missing msgpack gem, try 'gem install msgpack' to use MSFGui"
|
raise LoadError, "Missing msgpack gem, try 'gem install msgpack' to use MSFGui"
|
||||||
end
|
end
|
||||||
|
|
||||||
msfbase = __FILE__
|
|
||||||
while File.symlink?(msfbase)
|
|
||||||
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
|
|
||||||
end
|
|
||||||
|
|
||||||
if RUBY_PLATFORM =~ /mswin|mingw/i
|
if RUBY_PLATFORM =~ /mswin|mingw/i
|
||||||
exec "javaw -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
|
exec "javaw -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue