1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-09-18 14:00:12 +02:00
metasploit-framework/dev/meterpreter/demo_site.rb
Matt Miller 9ea2b1f1c1 demo stuff
git-svn-id: file:///home/svn/incoming/trunk@2414 4d416f70-5f16-0410-b530-b9f4589650da
2005-04-18 02:41:13 +00:00

14 lines
295 B
Ruby
Executable File

#!/usr/bin/ruby -I. -I../../lib
require 'DemoClient'
HTML_FILE = "demo1.html"
host = ARGV[1] || '127.0.0.1'
port = ARGV[2] || '12345'
client = DemoClient.new(host, port).client
client.fs.file.upload('%TEMP%', HTML_FILE)
client.sys.process.execute('cmd /C "explorer %TEMP%\demo1.html"')