mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
Error in variable declaration, minor output improvement
git-svn-id: file:///home/svn/framework3/trunk@10188 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
a0f86c62e3
commit
1c45eba566
@ -4,7 +4,7 @@
|
|||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
@client = client
|
@client = client
|
||||||
location = nil
|
location = nil
|
||||||
search_blob = nil
|
search_blob = []
|
||||||
input_file = nil
|
input_file = nil
|
||||||
output_file = nil
|
output_file = nil
|
||||||
recurse = false
|
recurse = false
|
||||||
@ -64,8 +64,9 @@ if client.platform =~ /win32|win64/
|
|||||||
if input_file and logs
|
if input_file and logs
|
||||||
if ::File.exists?(input_file)
|
if ::File.exists?(input_file)
|
||||||
print_status("Reading file #{input_file}")
|
print_status("Reading file #{input_file}")
|
||||||
|
print_status("Downloading to #{logs}")
|
||||||
::File.open(input_file, "r").each_line do |line|
|
::File.open(input_file, "r").each_line do |line|
|
||||||
print_status("Downloading #{line.chomp}")
|
print_status("\tDownloading #{line.chomp}")
|
||||||
@client.fs.file.download(logs, line.chomp)
|
@client.fs.file.download(logs, line.chomp)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user