diff --git a/modules/post/windows/gather/credentials/bulletproof_ftp.rb b/modules/post/windows/gather/credentials/bulletproof_ftp.rb index f60bf65c85..dfe2972c50 100644 --- a/modules/post/windows/gather/credentials/bulletproof_ftp.rb +++ b/modules/post/windows/gather/credentials/bulletproof_ftp.rb @@ -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