1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-09-18 14:00:12 +02:00
metasploit-framework/dev/meterpreter/DemoClient.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

20 lines
329 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('Module' => 'Stdapi')
end
attr_reader :client
protected
attr_accessor :sock
attr_writer :client
end