module PWN::Plugins::ThreadPool

def self.authors

def self.authors
rt@0dayinc.com>

def self.fill(opts = {})

def self.fill(opts = {})
 opts[:enumerable_array]
[:max_threads].to_i
 max_threads.zero?
ach] ||= false
hread Pool of #{max_threads} Worker Threads...."
:FixedThreadPool.new(max_threads)
ach do |this_thread|
ead
ination unless detach
__method__} => Goodbye."
 => e
running?

def self.help

def self.help
ay. => 'required array for proper thread pool assignment',
optional number of threads in the thread pool (defaults to 9)',
nal boolean to detach threads (defaults to false)'
4, 5, 6, 7, 8, 9]
merable_array: arr, max_threads: 9) do |integer|