1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
metasploit-framework/dev/meterpreter/demo_mirror_dir2.rb
Matt Miller 8d13da25af Dir.upload
git-svn-id: file:///home/svn/incoming/trunk@2422 4d416f70-5f16-0410-b530-b9f4589650da
2005-04-18 05:42:46 +00:00

17 lines
353 B
Ruby
Executable File

#!/usr/bin/ruby -I. -I../../lib
require 'DemoClient'
host = ARGV[0] || '127.0.0.1'
port = ARGV[1] || '12345'
src_dir = ARGV[2] || "/tmp/mirror_src_demo"
dst_dir = ARGV[3] || "c:\\personal\\temp\\dst_mirror"
client = DemoClient.new(host, port).client
begin
client.fs.dir.mkdir(dst_dir)
rescue
end
client.fs.dir.upload(dst_dir, src_dir, true)