2010-10-16 17:51:29 +00:00
|
|
|
#!/usr/bin/env ruby
|
2012-06-29 05:18:28 +00:00
|
|
|
# -*- coding: binary -*-
|
2007-02-04 01:55:01 +00:00
|
|
|
#
|
2010-05-03 17:13:09 +00:00
|
|
|
# $Id$
|
|
|
|
#
|
2010-07-13 23:00:15 +00:00
|
|
|
# Graphical user interface written in Java with rpc.
|
2007-02-04 01:55:01 +00:00
|
|
|
#
|
2010-05-03 17:13:09 +00:00
|
|
|
# $Revision$
|
|
|
|
#
|
2007-02-04 01:55:01 +00:00
|
|
|
|
2012-03-02 18:20:29 +00:00
|
|
|
begin
|
|
|
|
require 'msgpack'
|
|
|
|
rescue LoadError
|
|
|
|
raise LoadError, "Missing msgpack gem, try 'gem install msgpack' to use MSFGui"
|
|
|
|
end
|
|
|
|
|
2010-10-16 17:51:29 +00:00
|
|
|
msfbase = __FILE__
|
|
|
|
while File.symlink?(msfbase)
|
|
|
|
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
|
|
|
|
end
|
|
|
|
|
2010-10-24 00:57:50 +00:00
|
|
|
if RUBY_PLATFORM =~ /mswin|mingw/i
|
|
|
|
exec "javaw -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
|
|
|
|
else
|
|
|
|
exec "java -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
|
|
|
|
end
|