Permalink
Browse files

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

  • Loading branch information...
HD Moore
HD Moore committed Nov 21, 2011
1 parent 8a4ee90 commit bfc32f4a0f8cbb90e8b8921229c8be6b3dc02791
Showing with 58 additions and 2 deletions.
  1. +5 −1 msfbinscan
  2. +4 −0 msfcli
  3. +5 −1 msfconsole
  4. +4 −0 msfd
  5. +4 −0 msfelfscan
  6. +4 −0 msfencode
  7. +4 −0 msfmachscan
  8. +4 −0 msfopcode
  9. +4 −0 msfpayload
  10. +4 −0 msfpescan
  11. +4 −0 msfrop
  12. +4 −0 msfrpc
  13. +4 −0 msfrpcd
  14. +4 −0 msfvenom
View
@@ -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'
@@ -292,4 +296,4 @@ files.each do |file|
$stderr.puts("Skipping #{file}")
next
end
-end
+end
View
4 msfcli
@@ -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
@@ -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'
View
4 msfd
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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'
View
4 msfrop
@@ -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'
View
4 msfrpc
@@ -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
@@ -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
@@ -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 = "[*] "

0 comments on commit bfc32f4

Please sign in to comment.