Files
metasploit-gs/msfgui
T
Tod Beardsley 4dce560e72 Try to load msgpack first, if it's not there, bail
And tell the user how to fix. This has come up a couple times.
2012-03-02 12:20:29 -06:00

26 lines
529 B
Ruby
Executable File

#!/usr/bin/env ruby
#
# $Id$
#
# Graphical user interface written in Java with rpc.
#
# $Revision$
#
begin
require 'msgpack'
rescue LoadError
raise LoadError, "Missing msgpack gem, try 'gem install msgpack' to use MSFGui"
end
msfbase = __FILE__
while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
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