Adds fastlib and lib/metasploit.fastlib to the include path

unstable
HD Moore 2011-11-21 14:18:57 -06:00
parent 8a4ee906c6
commit bfc32f4a0f
14 changed files with 58 additions and 2 deletions

View File

@ -10,6 +10,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'metasm'

4
msfcli
View File

@ -15,6 +15,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex'

View File

@ -13,7 +13,11 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
$:.unshift(File.join(File.expand_path(File.dirname(msfbase)), 'lib'))
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'optparse'

4
msfd
View File

@ -16,6 +16,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'msf/base'

View File

@ -10,6 +10,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex/elfparsey'

View File

@ -10,6 +10,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex'

View File

@ -10,6 +10,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex/machparsey'

View File

@ -15,6 +15,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex'

View File

@ -10,6 +10,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex'

View File

@ -10,6 +10,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex/peparsey'

4
msfrop
View File

@ -13,6 +13,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex'

4
msfrpc
View File

@ -14,6 +14,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex/parser/arguments'

View File

@ -14,6 +14,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex/parser/arguments'

View File

@ -9,6 +9,10 @@ while File.symlink?(msfbase)
end
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
require 'fastlib'
$:.unshift(File.join(File.dirname(msfbase), 'lib', 'metasploit.fastlib'))
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
Status = "[*] "