2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby -I../../lib
|
2005-04-18 02:41:13 +00:00
|
|
|
|
|
|
|
require 'Rex/Post'
|
|
|
|
|
|
|
|
class DemoClient
|
|
|
|
|
|
|
|
def initialize(host, port)
|
|
|
|
self.sock = TCPSocket.new(host, port)
|
|
|
|
self.client = Rex::Post::Meterpreter::Client.new(sock)
|
|
|
|
|
2005-06-02 20:35:19 +00:00
|
|
|
self.client.core.use('Stdapi')
|
2005-04-18 02:41:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
attr_reader :client
|
|
|
|
protected
|
|
|
|
attr_accessor :sock
|
|
|
|
attr_writer :client
|
|
|
|
|
|
|
|
end
|