mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
fixup
git-svn-id: file:///home/svn/incoming/trunk@2419 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
960a193a9a
commit
be7b71783b
@ -2,14 +2,15 @@
|
|||||||
|
|
||||||
require 'DemoClient'
|
require 'DemoClient'
|
||||||
|
|
||||||
host = ARGV[1] || '127.0.0.1'
|
host = ARGV[0] || '127.0.0.1'
|
||||||
port = ARGV[2] || '12345'
|
port = ARGV[1] || '12345'
|
||||||
dir = ARGV[3] || "%WINDIR%\\inf"
|
src_dir = ARGV[2] || "%WINDIR%\\inf"
|
||||||
client = DemoClient.new(host, port).client
|
dst_dir = ARGV[3] || "/tmp/mirror_demo"
|
||||||
|
client = DemoClient.new(host, port).client
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Dir.mkdir('/tmp/mirror_demo')
|
Dir.mkdir(dst_dir)
|
||||||
rescue
|
rescue
|
||||||
end
|
end
|
||||||
|
|
||||||
client.fs.dir.download('/tmp/mirror_demo', dir, true)
|
client.fs.dir.download(dst_dir, src_dir, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user