2010-12-28 15:50:52 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# Ruby front-end to the Armitage Java user interface
|
|
|
|
#
|
|
|
|
# $Revision$
|
|
|
|
#
|
|
|
|
|
|
|
|
msfbase = __FILE__
|
|
|
|
while File.symlink?(msfbase)
|
|
|
|
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
|
|
|
|
end
|
|
|
|
|
|
|
|
if RUBY_PLATFORM =~ /mswin|mingw/i
|
2011-01-13 16:04:42 +00:00
|
|
|
exec "javaw", "-jar", "#{File.dirname(msfbase)}/data/armitage/armitage.jar", *ARGV
|
2010-12-28 15:50:52 +00:00
|
|
|
else
|
2011-01-13 16:04:42 +00:00
|
|
|
exec "java", "-jar", "#{File.dirname(msfbase)}/data/armitage/armitage.jar", *ARGV
|
2010-12-28 15:50:52 +00:00
|
|
|
end
|