[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
parent
99cb6ce049
commit
1064c050de
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue