File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 10
10
# Project
11
11
#
12
12
13
- require 'msf/core'
14
13
require 'rex/compat'
15
14
16
15
module Msf
@@ -37,16 +36,16 @@ def self.get_config_root
37
36
[ 'HOME' , 'LOCALAPPDATA' , 'APPDATA' , 'USERPROFILE' ] . each do |dir |
38
37
val = Rex ::Compat . getenv ( dir )
39
38
if ( val and File . directory? ( val ) )
40
- return File . join ( val , ".msf#{ Msf ::Framework ::Major } " )
39
+ return File . join ( val , ".msf#{ Metasploit ::Framework ::Version :: MAJOR } " )
41
40
end
42
41
end
43
42
44
43
begin
45
44
# First we try $HOME/.msfx
46
- File . expand_path ( "~#{ FileSep } .msf#{ Msf ::Framework ::Major } " )
45
+ File . expand_path ( "~#{ FileSep } .msf#{ Metasploit ::Framework ::Version :: MAJOR } " )
47
46
rescue ::ArgumentError
48
47
# Give up and install root + ".msfx"
49
- InstallRoot + ".msf#{ Msf ::Framework ::Major } "
48
+ InstallRoot + ".msf#{ Metasploit ::Framework ::Version :: MAJOR } "
50
49
end
51
50
end
52
51
You can’t perform that action at this time.
0 commit comments