git-svn-id: file:///home/svn/framework3/trunk@6891 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2009-07-24 21:22:20 +00:00
parent 466e8fe555
commit a13a923cba
4 changed files with 5 additions and 5 deletions

View File

@ -328,7 +328,7 @@ def checkdep(session)
end
#---------------------------------------------------------------------------------------------------------
def checkuac(session)
print_status("Checking if UAC is enaled ...")
print_status("Checking if UAC is enabled ...")
key = 'HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'
root_key, base_key = session.sys.registry.splitkey(key)
value = "EnableLUA"

View File

@ -116,7 +116,7 @@ def checkuac(session)
begin
winversion = session.sys.config.sysinfo
if winversion['OS']=~ /Windows Vista/ or winversion['OS']=~ /Windows 7/
print_status("Checking if UAC is enaled ...")
print_status("Checking if UAC is enabled ...")
key = 'HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'
root_key, base_key = session.sys.registry.splitkey(key)
value = "EnableLUA"

View File

@ -56,7 +56,7 @@ def checkuac(session)
uac = false
winversion = session.sys.config.sysinfo
if winversion['OS']=~ /Windows Vista/ or winversion['OS']=~ /Windows 7/
print_status("Checking if UAC is enaled ...")
print_status("Checking if UAC is enabled ...")
key = 'HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'
root_key, base_key = session.sys.registry.splitkey(key)
value = "EnableLUA"
@ -215,7 +215,7 @@ end
def upload(session,file)
location = session.fs.file.expand_path("%TEMP%")
fileontrgt = "#{location}\\svhost#{rand(100)}.exe"
print_status("Uploadingd #{file}....")
print_status("Uploading #{file}....")
session.fs.file.upload_file("#{fileontrgt}","#{file}")
print_status("#{file} uploaded!")
return fileontrgt

View File

@ -38,7 +38,7 @@ def upload(session,file,trgloc = "")
else
fileontrgt = "#{location}\\TMP#{rand(100)}#{ext}"
end
print_status("Uploadingd #{file}....")
print_status("Uploading #{file}....")
session.fs.file.upload_file("#{fileontrgt}","#{file}")
print_status("#{file} uploaded!")
print_status("#{fileontrgt}")