2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2005-07-22 03:52:10 +00:00
|
|
|
|
|
|
|
$: << 'lib' << '../lib' << '../../lib'
|
|
|
|
|
|
|
|
require 'socket'
|
2005-07-22 03:53:04 +00:00
|
|
|
require 'rex'
|
|
|
|
require 'rex/post/meterpreter'
|
2005-07-22 03:52:10 +00:00
|
|
|
|
|
|
|
if(ARGV.length != 2)
|
|
|
|
puts "usage: <ip> <port>"
|
|
|
|
exit(1)
|
|
|
|
end
|
|
|
|
|
|
|
|
sock = TCPSocket.new(ARGV[0], ARGV[1])
|
|
|
|
|
|
|
|
c = Rex::Post::Meterpreter::Client.new(sock)
|
|
|
|
|
|
|
|
c.core.use('Stdapi')
|
|
|
|
|
|
|
|
@c = c
|
|
|
|
|
|
|
|
irb
|