mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
9ea2b1f1c1
git-svn-id: file:///home/svn/incoming/trunk@2414 4d416f70-5f16-0410-b530-b9f4589650da
14 lines
295 B
Ruby
Executable File
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"')
|