Files
metasploit-gs/dev/meterpreter/DemoClient.rb
T
Matt Miller 3d68b31643 stuff and or things
git-svn-id: file:///home/svn/incoming/trunk@2545 4d416f70-5f16-0410-b530-b9f4589650da
2005-06-02 20:35:19 +00:00

20 lines
317 B
Ruby

#!/usr/bin/ruby -I../../lib
require 'Rex/Post'
class DemoClient
def initialize(host, port)
self.sock = TCPSocket.new(host, port)
self.client = Rex::Post::Meterpreter::Client.new(sock)
self.client.core.use('Stdapi')
end
attr_reader :client
protected
attr_accessor :sock
attr_writer :client
end