module Arachni::Framework::Parts::Platform
Provides access to {Arachni::Platform} helpers.
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Public Instance Methods
list_platforms()
click to toggle source
@return [Array<Hash>]
Information about all available platforms.
# File lib/arachni/framework/parts/platform.rb, line 20 def list_platforms platforms = Arachni::Platform::Manager.new platforms.valid.inject({}) do |h, platform| type = Arachni::Platform::Manager::TYPES[platforms.find_type( platform )] h[type] ||= {} h[type][platform] = platforms.fullname( platform ) h end end