Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (23 sloc) 0.554 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/usr/bin/env ruby
# -*- coding: binary -*-
#
# $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
Something went wrong with that request. Please try again.