Fix busted vars
parent
ac94f8e861
commit
ff2fc68d11
|
@ -243,8 +243,8 @@ class Metasploit3 < Msf::Post
|
|||
print_status("Searching BulletProof FTP Client installation directory...")
|
||||
# BulletProof FTP Client 2.6 uses the installation dir to store bookmarks files
|
||||
progfiles_env = session.sys.config.getenvs('ProgramFiles(X86)', 'ProgramFiles')
|
||||
progfilesx86 = prog_files_env['ProgramFiles(X86)']
|
||||
if not progfilesx86.empty? and progfilesx86 !~ /%ProgramFiles\(X86\)%/
|
||||
progfilesx86 = progfiles_env['ProgramFiles(X86)']
|
||||
if !progfilesx86.blank? && progfilesx86 !~ /%ProgramFiles\(X86\)%/
|
||||
program_files = progfilesx86 # x64
|
||||
else
|
||||
program_files = progfiles_env['ProgramFiles'] # x86
|
||||
|
|
Loading…
Reference in New Issue