Class: Buby::IntruderPayloadGeneratorFactory

Inherits:
Object
  • Object
show all
Includes:
Java::Burp::IIntruderPayloadGeneratorFactory
Defined in:
lib/buby/intruder_payload_generator_factory.rb

Overview

Extensions can implement this interface and then call #registerIntruderPayloadGeneratorFactory to register a factory for custom Intruder payloads.

Instance Method Summary collapse

Instance Method Details

#createNewInstance(attack) ⇒ IIntruderPayloadGenerator

Deprecated.

This will become a raw version/proxied version pair like ContextMenuFactory#createMenuItems in 2.0.

This method is abstract.

This method is used by Burp when the user starts an Intruder attack that uses this payload generator.

Parameters:

  • attack (IIntruderAttack)

    object that can be queried to obtain details about the attack in which the payload generator will be used.

Returns:

  • (IIntruderPayloadGenerator)

    A new payload generator for the attack.



29
30
31
# File 'lib/buby/intruder_payload_generator_factory.rb', line 29

def createNewInstance(attack)
  Buby::Implants::IntruderAttack.implant(attack)
end

#getGeneratorNameString

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.

Returns:

  • (String)

    The name of the payload generator.



17
# File 'lib/buby/intruder_payload_generator_factory.rb', line 17

def getGeneratorName; self.class.name.to_java_string; end