2014-08-15 16:33:31 +00:00
|
|
|
# coding: utf-8
|
|
|
|
|
|
|
|
# During build, the Gemfile is temporarily moved and
|
|
|
|
# we must manually define the project root
|
|
|
|
if ENV['MSF_ROOT']
|
|
|
|
lib = File.realpath(File.expand_path('lib', ENV['MSF_ROOT']))
|
|
|
|
else
|
|
|
|
# have to use realpath as metasploit-framework is often loaded through a symlink and tools like Coverage and debuggers
|
|
|
|
# require realpaths.
|
|
|
|
lib = File.realpath(File.expand_path('../lib', __FILE__))
|
|
|
|
end
|
|
|
|
|
|
|
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
|
require 'metasploit/framework/version'
|
2014-12-19 17:37:23 +00:00
|
|
|
require 'metasploit/framework/rails_version_constraint'
|
2014-08-15 16:33:31 +00:00
|
|
|
|
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
spec.name = 'metasploit-framework'
|
|
|
|
spec.version = Metasploit::Framework::GEM_VERSION
|
|
|
|
spec.authors = ['Metasploit Hackers']
|
|
|
|
spec.email = ['metasploit-hackers@lists.sourceforge.net']
|
|
|
|
spec.summary = 'metasploit-framework'
|
|
|
|
spec.description = 'metasploit-framework'
|
|
|
|
spec.homepage = 'https://www.metasploit.com'
|
|
|
|
spec.license = 'BSD-3-clause'
|
|
|
|
|
|
|
|
spec.files = `git ls-files`.split($/).reject { |file|
|
|
|
|
file =~ /^config/
|
|
|
|
}
|
|
|
|
spec.bindir = '.'
|
|
|
|
spec.executables = [
|
|
|
|
'msfbinscan',
|
|
|
|
'msfcli',
|
|
|
|
'msfconsole',
|
|
|
|
'msfd',
|
|
|
|
'msfelfscan',
|
|
|
|
'msfencode',
|
|
|
|
'msfmachscan',
|
|
|
|
'msfpayload',
|
|
|
|
'msfpescan',
|
|
|
|
'msfrop',
|
|
|
|
'msfrpc',
|
|
|
|
'msfrpcd',
|
|
|
|
'msfupdate',
|
|
|
|
'msfvenom'
|
|
|
|
]
|
|
|
|
spec.test_files = spec.files.grep(%r{^spec/})
|
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
|
|
|
|
|
|
|
|
# Need 3+ for ActiveSupport::Concern
|
2014-12-19 19:54:13 +00:00
|
|
|
spec.add_runtime_dependency 'activesupport', *Metasploit::Framework::RailsVersionConstraint::RAILS_VERSION
|
2014-08-15 16:33:31 +00:00
|
|
|
# Needed for config.action_view for view plugin compatibility for Pro
|
2014-12-19 19:54:13 +00:00
|
|
|
spec.add_runtime_dependency 'actionpack', *Metasploit::Framework::RailsVersionConstraint::RAILS_VERSION
|
2014-08-15 16:33:31 +00:00
|
|
|
# Needed for some admin modules (cfme_manageiq_evm_pass_reset.rb)
|
|
|
|
spec.add_runtime_dependency 'bcrypt'
|
2014-09-20 00:10:39 +00:00
|
|
|
# Needed for Javascript obfuscation
|
2014-09-24 21:05:00 +00:00
|
|
|
spec.add_runtime_dependency 'jsobfu', '~> 0.2.0'
|
2014-08-15 16:33:31 +00:00
|
|
|
# Needed for some admin modules (scrutinizer_add_user.rb)
|
|
|
|
spec.add_runtime_dependency 'json'
|
2014-09-18 14:33:57 +00:00
|
|
|
# Metasploit::Concern hooks
|
2014-10-03 17:07:23 +00:00
|
|
|
spec.add_runtime_dependency 'metasploit-concern', '~> 0.3.0'
|
2014-08-15 16:33:31 +00:00
|
|
|
# Things that would normally be part of the database model, but which
|
|
|
|
# are needed when there's no database
|
2014-10-03 17:07:23 +00:00
|
|
|
spec.add_runtime_dependency 'metasploit-model', '~> 0.28.0'
|
2014-08-15 16:33:31 +00:00
|
|
|
# Needed for Meterpreter on Windows, soon others.
|
2015-01-09 15:35:27 +00:00
|
|
|
spec.add_runtime_dependency 'meterpreter_bins', '0.0.13'
|
2014-08-15 16:33:31 +00:00
|
|
|
# Needed by msfgui and other rpc components
|
|
|
|
spec.add_runtime_dependency 'msgpack'
|
|
|
|
# Needed by anemone crawler
|
|
|
|
spec.add_runtime_dependency 'nokogiri'
|
|
|
|
# Needed by db.rb and Msf::Exploit::Capture
|
|
|
|
spec.add_runtime_dependency 'packetfu', '1.1.9'
|
|
|
|
# Run initializers for metasploit-concern, metasploit-credential, metasploit_data_models Rails::Engines
|
|
|
|
spec.add_runtime_dependency 'railties'
|
2014-10-29 21:26:36 +00:00
|
|
|
# required for OS fingerprinting
|
|
|
|
spec.add_runtime_dependency 'recog', '~> 1.0'
|
2014-11-06 20:52:49 +00:00
|
|
|
|
|
|
|
# rb-readline doesn't work with Ruby Installer due to error with Fiddle:
|
|
|
|
# NoMethodError undefined method `dlopen' for Fiddle:Module
|
|
|
|
unless Gem.win_platform?
|
|
|
|
# Command line editing, history, and tab completion in msfconsole
|
|
|
|
spec.add_runtime_dependency 'rb-readline'
|
|
|
|
end
|
|
|
|
|
2014-08-15 16:33:31 +00:00
|
|
|
# Needed by anemone crawler
|
|
|
|
spec.add_runtime_dependency 'robots'
|
|
|
|
# Needed by some modules
|
|
|
|
spec.add_runtime_dependency 'rubyzip', '~> 1.1'
|
|
|
|
# Needed for some post modules
|
|
|
|
spec.add_runtime_dependency 'sqlite3'
|
|
|
|
# required for Time::TZInfo in ActiveSupport
|
|
|
|
spec.add_runtime_dependency 'tzinfo'
|
|
|
|
end
|