From ff2fc68d1170a523b6de40d8bbf43d579435655b Mon Sep 17 00:00:00 2001 From: James Lee Date: Thu, 12 Jun 2014 15:37:06 -0500 Subject: [PATCH] Fix busted vars --- modules/post/windows/gather/credentials/bulletproof_ftp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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