Sha256: 52268a96df5032f1fcca8abddcc4f498c9e74eedeabb245e61151b4a6b577c8c

Contents?: true

Size: 1.12 KB

Versions: 7

Compression:

Stored size: 1.12 KB

Contents

class Buby

  # Extensions can implement this interface and then call
  # {Buby#registerIntruderPayloadGeneratorFactory} to register a factory for
  # custom Intruder payloads.
  #
  # @see IntruderPayloadGenerator
  class IntruderPayloadGeneratorFactory
    include Java::Burp::IIntruderPayloadGeneratorFactory

    # This method is used by Burp to obtain the name of the payload generator.
    # This will be displayed as an option within the Intruder UI when the user
    # selects to use extension-generated payloads.
    #
    # @return [String] The name of the payload generator.
    #
    def getGeneratorName; self.class.name.to_java_string; end

    # This method is used by Burp when the user starts an Intruder attack that
    # uses this payload generator.
    #
    # @param [IIntruderAttack] attack object that can be queried to obtain
    #   details about the attack in which the payload generator will be used.
    # @return [IIntruderPayloadGenerator] A new payload generator for the
    #   attack.
    #
    # @abstract
    def createNewInstance(attack)
      Buby::Implants::IntruderAttack.implant(attack)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
buby-1.5.2-java lib/buby/intruder_payload_generator_factory.rb
buby-1.5.1-java lib/buby/intruder_payload_generator_factory.rb
buby-1.5.0-java lib/buby/intruder_payload_generator_factory.rb
buby-1.5.0.pre4-java lib/buby/intruder_payload_generator_factory.rb
buby-1.5.0.pre3-java lib/buby/intruder_payload_generator_factory.rb
buby-1.5.0.pre2-java lib/buby/intruder_payload_generator_factory.rb
buby-1.5.0.pre1-java lib/buby/intruder_payload_generator_factory.rb