[FixRM:#8132] - Fix undefined method '+' in total_commander.rb

The return value of registry_getvaldata can return nil when a
RequestError occurs, so you can't always assume it's gonna throw
you a string.
unstable
sinn3r 2013-07-03 12:10:23 -05:00
parent 99cb6ce049
commit 1064c050de
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class Metasploit3 < Msf::Post
when "wcx_ftp.ini"
print_status("Already Checked SYSTEMROOT")
when ".\\wcx_ftp.ini"
hklminstpath = registry_getvaldata(commander_key, 'InstallDir')
hklminstpath = registry_getvaldata(commander_key, 'InstallDir') || ''
check_other(hklminstpath +'\\wcx_ftp.ini')
when /APPDATA/
print_status("Already Checked AppData")
@ -74,7 +74,7 @@ class Metasploit3 < Msf::Post
when "wcx_ftp.ini"
print_status("Already Checked SYSTEMROOT")
when ".\\wcx_ftp.ini"
hklminstpath = registry_getvaldata(profile_commander_key, 'InstallDir')
hklminstpath = registry_getvaldata(profile_commander_key, 'InstallDir') || ''
check_other(hklminstpath +'\\wcx_ftp.ini')
when /APPDATA/
print_status("Already Checked AppData")