Sha256: 4791ad6666173bc43b25fbe541dd99bd45e7d1621141484abf360d31413749ca

Contents?: true

Size: 935 Bytes

Versions: 1

Compression:

Stored size: 935 Bytes

Contents

#!/usr/bin/env ruby

require 'bundler/setup'
require 'msf/aggregator'
require 'msf/aggregator/cable'
require 'msf/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 = Msf::Aggregator::Server.new('127.0.0.1', 1337)
server = Msf::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)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metasploit-aggregator-0.1.0 bin/msfaggregator