We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7cf750 commit f642aa6Copy full SHA for f642aa6
modules/post/windows/gather/credentials/steam.rb
@@ -43,7 +43,6 @@ def initialize(info={})
43
end
44
45
def run
46
- drive = expand_path('%SystemDrive%')
47
steamappdata = 'SteamAppData.vdf'
48
steamconfig = 'config.vdf'
49
u_rx = /AutoLoginUser\W*\"(.*)\"/
@@ -52,9 +51,9 @@ def run
52
51
# the correct program files folder.
53
# We will just use an x64 only defined env variable to check.
54
if not expand_path('%ProgramFiles(X86)%').empty?
55
- progs = drive + '\\Program Files (x86)' #x64
+ progs = expand_path('%ProgramFiles(X86)%') #x64
56
else
57
- progs = drive + '\\Program Files' #x86
+ progs = expand_path('%ProgramFiles%') #x86
58
59
path = progs + '\\Steam\\config\\'
60
0 commit comments