Permalink
Browse files

Load from the absolute, not relative path

  • Loading branch information...
HD Moore
HD Moore committed Feb 4, 2012
1 parent e4faa33 commit bdf8d06b69c505dc0469777c61223615af7d6b22
Showing with 13 additions and 14 deletions.
  1. +1 −1 msfbinscan
  2. +1 −2 msfcli
  3. +1 −1 msfconsole
  4. +1 −1 msfd
  5. +1 −1 msfelfscan
  6. +1 −1 msfencode
  7. +1 −1 msfmachscan
  8. +1 −1 msfpayload
  9. +1 −1 msfpescan
  10. +1 −1 msfrop
  11. +1 −1 msfrpc
  12. +1 −1 msfrpcd
  13. +1 −1 msfvenom
View
@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
3 msfcli
@@ -14,11 +14,10 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
-
$:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
require 'rex'
View
@@ -13,7 +13,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
2 msfd
@@ -15,7 +15,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
2 msfrop
@@ -12,7 +12,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
2 msfrpc
@@ -13,7 +13,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
@@ -13,7 +13,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'
View
@@ -8,7 +8,7 @@ while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
require 'fastlib'

0 comments on commit bdf8d06

Please sign in to comment.