Sha256: 86da85b0c2e582695fb0a79734bd625dc0f95d906cc5d1f4898074094fce73a1
Contents?: true
Size: 644 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
msfrpc-client-1.1.1 | examples/msfrpc_irb.rb |