Sha256: a3122d3670bb42a6c86aac67818175b97de8b2612a0862f00a2feef025ae029c

Contents?: true

Size: 644 Bytes

Versions: 5

Compression:

Stored size: 644 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'optparse'
require 'msfrpc-client'
require 'rex/ui'


# Use the RPC option parser to handle standard flags
opts   = {}
parser = Msf::RPC::Client.option_parser(opts)
parser.parse!(ARGV)

# Parse additional options, environment variables, etc
opts = Msf::RPC::Client.option_handler(opts)

# Create the RPC client with our parsed options
rpc  = Msf::RPC::Client.new(opts)

$stdout.puts "[*] The RPC client is available in variable 'rpc'"
if rpc.token
	$stdout.puts "[*] Sucessfully authenticated to the server"
end

$stdout.puts "[*] Starting IRB shell..."
Rex::Ui::Text::IrbShell.new(binding).run

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
msfrpc-client-1.1.0 examples/msfrpc_irb.rb
msfrpc-client-1.0.3 examples/msfrpc_irb.rb
msfrpc-client-1.0.2 examples/msfrpc_irb.rb
msfrpc-client-1.0.1 examples/msfrpc_irb.rb
msfrpc-client-1.0.0 examples/msfrpc_irb.rb