Browse Source

Load from the absolute, not relative path

HD Moore 7 years ago
parent
commit
bdf8d06b69
13 changed files 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

+ 1
- 1
msfbinscan View File

@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
9 9
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
10 10
 end
11 11
 
12
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
12
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
13 13
 require 'fastlib'
14 14
 
15 15
 

+ 1
- 2
msfcli View File

@@ -14,11 +14,10 @@ while File.symlink?(msfbase)
14 14
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
15 15
 end
16 16
 
17
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
17
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
18 18
 require 'fastlib'
19 19
 
20 20
 
21
-
22 21
 $:.unshift(ENV['MSF_LOCAL_LIB']) if ENV['MSF_LOCAL_LIB']
23 22
 
24 23
 require 'rex'

+ 1
- 1
msfconsole View File

@@ -13,7 +13,7 @@ while File.symlink?(msfbase)
13 13
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
14 14
 end
15 15
 
16
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
16
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
17 17
 require 'fastlib'
18 18
 
19 19
 

+ 1
- 1
msfd View File

@@ -15,7 +15,7 @@ while File.symlink?(msfbase)
15 15
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
16 16
 end
17 17
 
18
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
18
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
19 19
 require 'fastlib'
20 20
 
21 21
 

+ 1
- 1
msfelfscan View File

@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
9 9
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
10 10
 end
11 11
 
12
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
12
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
13 13
 require 'fastlib'
14 14
 
15 15
 

+ 1
- 1
msfencode View File

@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
9 9
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
10 10
 end
11 11
 
12
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
12
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
13 13
 require 'fastlib'
14 14
 
15 15
 

+ 1
- 1
msfmachscan View File

@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
9 9
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
10 10
 end
11 11
 
12
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
12
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
13 13
 require 'fastlib'
14 14
 
15 15
 

+ 1
- 1
msfpayload View File

@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
9 9
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
10 10
 end
11 11
 
12
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
12
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
13 13
 require 'fastlib'
14 14
 
15 15
 

+ 1
- 1
msfpescan View File

@@ -9,7 +9,7 @@ while File.symlink?(msfbase)
9 9
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
10 10
 end
11 11
 
12
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
12
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
13 13
 require 'fastlib'
14 14
 
15 15
 

+ 1
- 1
msfrop View File

@@ -12,7 +12,7 @@ while File.symlink?(msfbase)
12 12
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
13 13
 end
14 14
 
15
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
15
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
16 16
 require 'fastlib'
17 17
 
18 18
 

+ 1
- 1
msfrpc View File

@@ -13,7 +13,7 @@ while File.symlink?(msfbase)
13 13
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
14 14
 end
15 15
 
16
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
16
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
17 17
 require 'fastlib'
18 18
 
19 19
 

+ 1
- 1
msfrpcd View File

@@ -13,7 +13,7 @@ while File.symlink?(msfbase)
13 13
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
14 14
 end
15 15
 
16
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
16
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
17 17
 require 'fastlib'
18 18
 
19 19
 

+ 1
- 1
msfvenom View File

@@ -8,7 +8,7 @@ while File.symlink?(msfbase)
8 8
 	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
9 9
 end
10 10
 
11
-$:.unshift(File.join(File.dirname(msfbase), 'lib'))
11
+$:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
12 12
 require 'fastlib'
13 13
 
14 14
 

Loading…
Cancel
Save