Sha256: b0715c765b545eb6d5d91e8e8d524edc2250cd001b68d9294d2d4966a2c7d443
Contents?: true
Size: 1.71 KB
Versions: 5
Compression:
Stored size: 1.71 KB
Contents
=begin Copyright 2010-2022 Ecsypno <http://www.ecsypno.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> # @version 0.1 class Arachni::Plugins::BrowserClusterJobMonitor < Arachni::Plugin::Base def run while framework.running? s = '' browser_cluster.workers.each.with_index do |worker, i| s << "[#{i+1}] #{worker.job || '-'}\n" s << "#{'-' * 100}\n" worker.proxy.active_connections.each do |connection| next if !connection if connection.request s << "* #{connection.request.url}\n" else s << "* Still reading request data.\n" end end s << "\n" end IO.write( options[:logfile], s ) sleep 1 end end def self.info { name: 'BrowserClusterJobMonitor', description: %q{ Monitor with: watch -n1 cat /tmp/browser_cluster_job_monitor.log }, author: 'Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>', version: '0.1', options: [ Options::String.new( :logfile, description: 'Executable to be called prior to the scan.', default: '/tmp/browser_cluster_job_monitor.log' ) ] } end end
Version data entries
5 entries across 5 versions & 1 rubygems