We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f50410 + f74d306 commit 92e1604Copy full SHA for 92e1604
msfgui
@@ -8,17 +8,21 @@
8
# $Revision$
9
#
10
11
+msfbase = __FILE__
12
+while File.symlink?(msfbase)
13
+ msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
14
+end
15
+
16
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
17
+require 'fastlib'
18
+require 'msfenv'
19
20
begin
21
require 'msgpack'
22
rescue LoadError
23
raise LoadError, "Missing msgpack gem, try 'gem install msgpack' to use MSFGui"
24
end
25
-msfbase = __FILE__
-while File.symlink?(msfbase)
- msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
-end
-
26
if RUBY_PLATFORM =~ /mswin|mingw/i
27
exec "javaw -jar #{File.dirname(msfbase)}/data/gui/msfgui.jar"
28
else
0 commit comments