Fix post/test/* modules' loadpath
Allows loading when pwd is not framework's install rootbug/bundler_fix
parent
4ed085d0d2
commit
23b04c8ece
|
@ -2,7 +2,8 @@
|
|||
require 'msf/core'
|
||||
require 'rex'
|
||||
|
||||
$:.push "test/lib" unless $:.include? "test/lib"
|
||||
lib = File.join(Msf::Config.install_root, "test", "lib")
|
||||
$:.push(lib) unless $:.include?(lib)
|
||||
require 'module_test'
|
||||
|
||||
class Metasploit4 < Msf::Post
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
require 'msf/core'
|
||||
|
||||
$:.push "test/lib" unless $:.include? "test/lib"
|
||||
lib = File.join(Msf::Config.install_root, "test", "lib")
|
||||
$:.push(lib) unless $:.include?(lib)
|
||||
require 'module_test'
|
||||
|
||||
#load 'test/lib/module_test.rb'
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
require 'msf/core'
|
||||
|
||||
$:.push "test/lib" unless $:.include? "test/lib"
|
||||
lib = File.join(Msf::Config.install_root, "test", "lib")
|
||||
require 'module_test'
|
||||
|
||||
#load 'test/lib/module_test.rb'
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
require 'msf/core'
|
||||
require 'rex'
|
||||
|
||||
$:.push "test/lib" unless $:.include? "test/lib"
|
||||
lib = File.join(Msf::Config.install_root, "test", "lib")
|
||||
$:.push(lib) unless $:.include?(lib)
|
||||
require 'module_test'
|
||||
|
||||
class Metasploit4 < Msf::Post
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
|
||||
##
|
||||
# This file is part of the Metasploit Framework and may be subject to
|
||||
# redistribution and commercial restrictions. Please see the Metasploit
|
||||
# Framework web site for more information on licensing and terms of use.
|
||||
# http://metasploit.com/framework/
|
||||
# This module requires Metasploit: http//metasploit.com/download
|
||||
# Current source: https://github.com/rapid7/metasploit-framework
|
||||
##
|
||||
|
||||
require 'msf/core'
|
||||
require 'rex'
|
||||
require 'msf/core/post/windows/railgun'
|
||||
|
||||
$:.push "test/lib" unless $:.include? "test/lib"
|
||||
lib = File.join(Msf::Config.install_root, "test", "lib")
|
||||
$:.push(lib) unless $:.include?(lib)
|
||||
require 'module_test'
|
||||
|
||||
class Metasploit3 < Msf::Post
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
|
||||
##
|
||||
# This file is part of the Metasploit Framework and may be subject to
|
||||
# redistribution and commercial restrictions. Please see the Metasploit
|
||||
# Framework web site for more information on licensing and terms of use.
|
||||
# http://metasploit.com/framework/
|
||||
# This module requires Metasploit: http//metasploit.com/download
|
||||
# Current source: https://github.com/rapid7/metasploit-framework
|
||||
##
|
||||
|
||||
require 'msf/core'
|
||||
require 'rex'
|
||||
require 'msf/core/post/windows/registry'
|
||||
|
||||
$:.push "test/lib" unless $:.include? "test/lib"
|
||||
lib = File.join(Msf::Config.install_root, "test", "lib")
|
||||
$:.push(lib) unless $:.include?(lib)
|
||||
require 'module_test'
|
||||
|
||||
class Metasploit3 < Msf::Post
|
||||
|
|
|
@ -6,7 +6,8 @@ require 'msf/core'
|
|||
require 'rex'
|
||||
require 'msf/core/post/windows/services'
|
||||
|
||||
$:.push "test/lib" unless $:.include? "test/lib"
|
||||
lib = File.join(Msf::Config.install_root, "test", "lib")
|
||||
$:.push(lib) unless $:.include?(lib)
|
||||
require 'module_test'
|
||||
|
||||
class Metasploit3 < Msf::Post
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
require 'msf/core'
|
||||
|
||||
$:.push "test/lib" unless $:.include? "test/lib"
|
||||
lib = File.join(Msf::Config.install_root, "test", "lib")
|
||||
$:.push(lib) unless $:.include?(lib)
|
||||
require 'module_test'
|
||||
|
||||
#load 'test/lib/module_test.rb'
|
||||
|
|
Loading…
Reference in New Issue