Fix some cosmetic issues

bug/bundler_fix
William Vu 2016-02-19 15:00:56 -06:00
parent 8118198628
commit bfd204ac50
1 changed files with 5 additions and 5 deletions

View File

@ -111,13 +111,13 @@ class Metasploit3 < Msf::Post
#check uninstall key
begin
root_key, base_key = session.sys.registry.splitkey("HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Ultravnc2_is1")
open_key = session.sys.registry.open_key(root_key,base_key,KEY_READ)
open_key = session.sys.registry.open_key(root_key, base_key, KEY_READ)
vnclocation = open_key.query_value("InstallLocation").data
locations << {:name => 'UltraVNC',
:check_file => vnclocation + "\\ultravnc.ini",
:pass_variable => 'passwd=',
:viewonly_variable => 'passwd2=',
:port_variable => 'PortNumber='}
:check_file => vnclocation + "\\ultravnc.ini",
:pass_variable => 'passwd=',
:viewonly_variable => 'passwd2=',
:port_variable => 'PortNumber='}
rescue Rex::Post::Meterpreter::RequestError => e
vprint_error(e.message)
end