forked from rapid7/metasploit-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmsfgui
More file actions
executable file
·30 lines (26 loc) · 660 Bytes
/
msfgui
File metadata and controls
executable file
·30 lines (26 loc) · 660 Bytes
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
27
28
29
30
#!/usr/bin/env ruby
# -*- coding: binary -*-
#
# $Id$
#
# Graphical user interface written in Java with rpc.
#
# $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
require 'msgpack'
rescue LoadError
raise LoadError, "Missing msgpack gem, try 'gem install msgpack' to use MSFGui"
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