File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,24 @@ def self.get_config_root
33
33
return val
34
34
end
35
35
36
+ # XXX Update this when there is a need to break compatibility
37
+ config_dir_major = 4
38
+ config_dir = ".msf#{ config_dir_major } "
39
+
36
40
# Windows-specific environment variables
37
41
[ 'HOME' , 'LOCALAPPDATA' , 'APPDATA' , 'USERPROFILE' ] . each do |dir |
38
42
val = Rex ::Compat . getenv ( dir )
39
43
if ( val and File . directory? ( val ) )
40
- return File . join ( val , ".msf #{ Metasploit :: Framework :: Version :: MAJOR } " )
44
+ return File . join ( val , config_dir )
41
45
end
42
46
end
43
47
44
48
begin
45
49
# First we try $HOME/.msfx
46
- File . expand_path ( "~#{ FileSep } .msf #{ Metasploit :: Framework :: Version :: MAJOR } " )
50
+ File . expand_path ( "~#{ FileSep } #{ config_dir } " )
47
51
rescue ::ArgumentError
48
52
# Give up and install root + ".msfx"
49
- InstallRoot + ".msf #{ Metasploit :: Framework :: Version :: MAJOR } "
53
+ InstallRoot + config_dir
50
54
end
51
55
end
52
56
You can’t perform that action at this time.
0 commit comments