Sha256: 1cbae102f5c4c4fb27e59f25a2856e7b403795b920f294bc9b3bda65e443f22e
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'metasploit/aggregator' require 'metasploit/aggregator/cable' require 'metasploit/aggregator/logger' admin_host = '127.0.0.1' admin_port = 2447 listener = '127.0.0.1' remote_console = '127.0.0.1' # cert_file = './cert.pem' # cert_string = File.new(cert_file).read cert_string = nil # server = Metasploit::Aggregator::Server.new('127.0.0.1', 1337) server = Metasploit::Aggregator::MsgPackServer.new(admin_host, admin_port) server.start Logger.log "Starting administration service on #{admin_host}:#{admin_port}" loop do command = $stdin.gets if command.chomp == 'exit' exit elsif command.chomp == 'clear' forwarder.requests = [] forwarder.responses = [] elsif command.chomp == 'pause' Logger.log "paused" elsif command.chomp == 'start' server.start elsif command.chomp == 'stop' server.stop elsif command.chomp == 'park' client.release_session($stdin.gets.chomp) elsif command.chomp == 'details' client = Metasploit::Aggregator::ServerProxy.new(admin_host, admin_port) client.sessions.each_pair do |payload, console| details = client.session_details(payload) $stdout.puts payload details.each_pair do |key, attr| $stdout.print "\t" $stdout.print "#{key}:" $stdout.puts "#{attr}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metasploit-aggregator-0.1.2 | bin/metasploit-aggregator |