Fix busted vars

bug/bundler_fix
James Lee 2014-06-12 15:37:06 -05:00
parent ac94f8e861
commit ff2fc68d11
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 2 additions and 2 deletions

View File

@ -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