1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-09-18 14:00:12 +02:00
git-svn-id: file:///home/svn/incoming/trunk@2419 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Matt Miller 2005-04-18 04:10:38 +00:00
parent 960a193a9a
commit be7b71783b

View File

@ -2,14 +2,15 @@
require 'DemoClient'
host = ARGV[1] || '127.0.0.1'
port = ARGV[2] || '12345'
dir = ARGV[3] || "%WINDIR%\\inf"
client = DemoClient.new(host, port).client
host = ARGV[0] || '127.0.0.1'
port = ARGV[1] || '12345'
src_dir = ARGV[2] || "%WINDIR%\\inf"
dst_dir = ARGV[3] || "/tmp/mirror_demo"
client = DemoClient.new(host, port).client
begin
Dir.mkdir('/tmp/mirror_demo')
Dir.mkdir(dst_dir)
rescue
end
client.fs.dir.download('/tmp/mirror_demo', dir, true)
client.fs.dir.download(dst_dir, src_dir, true)