Path: blob/master/lib/metasploit/framework.rb
19500 views
#1# Gems2#3# gems must load explicitly any gem declared in gemspec4# @see https://github.com/bundler/bundler/issues/2018#issuecomment-68193595#67require 'active_support'8require 'bcrypt'9require 'json'10require 'msgpack'11require 'metasploit/credential'12require 'nokogiri'13# railties has not autorequire defined14# rkelly-remix is a fork of rkelly, so it's autorequire is 'rkelly' and not 'rkelly-remix'15require 'rkelly'16require 'robots'17require 'zip'18require 'msf'19#20# Project21#222324# Top-level namespace that is shared between {Metasploit::Framework25# metasploit-framework} and pro, which uses Metasploit::Pro.26module Metasploit27# Supports Rails and Rails::Engine like access to metasploit-framework so it28# works in compatible manner with activerecord's rake tasks and other29# railties.30module Framework31extend ActiveSupport::Autoload3233autoload :Spec34autoload :ThreadFactoryProvider3536# Returns the root of the metasploit-framework project. Use in place of37# `Rails.root`.38#39# @return [Pathname]40def self.root41unless instance_variable_defined? :@root42pathname = Pathname.new(__FILE__)43@root = pathname.parent.parent.parent44end4546@root47end48end49end505152