Land #7305, missing env var fix for Steam module
commit
a5502264d4
|
@ -42,12 +42,12 @@ class MetasploitModule < Msf::Post
|
|||
# We will just use an x64 only defined env variable to check.
|
||||
progfiles_env = session.sys.config.getenvs('ProgramFiles(X86)', 'ProgramFiles')
|
||||
progfilesx86 = progfiles_env['ProgramFiles(X86)']
|
||||
if not progfilesx86.empty? and progfilesx86 !~ /%ProgramFiles\(X86\)%/
|
||||
if not progfilesx86.blank? and progfilesx86 !~ /%ProgramFiles\(X86\)%/
|
||||
progs = progfilesx86 # x64
|
||||
else
|
||||
progs = progfiles_env['ProgramFiles'] # x86
|
||||
end
|
||||
path = progs + '\\Steam\\config'
|
||||
path = "#{progs}\\Steam\\config"
|
||||
|
||||
print_status("Checking for Steam configs in #{path}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue