Sha256: 76968d0188b510c033883188aa1eb0f10cd73b27a1b498bd02b1736e3a37e874

Contents?: true

Size: 1.75 KB

Versions: 8

Compression:

Stored size: 1.75 KB

Contents

package burp;

/*
 * @(#)IIntruderPayloadGenerator.java
 *
 * Copyright PortSwigger Ltd. All rights reserved.
 *
 * This code may be used to extend the functionality of Burp Suite Free Edition
 * and Burp Suite Professional, provided that this usage does not violate the
 * license terms for those products.
 */
/**
 * This interface is used for custom Intruder payload generators. Extensions
 * that have registered an
 * <code>IIntruderPayloadGeneratorFactory</code> must return a new instance of
 * this interface when required as part of a new Intruder attack.
 */
public interface IIntruderPayloadGenerator
{
    /**
     * This method is used by Burp to determine whether the payload generator is
     * able to provide any further payloads.
     *
     * @return Extensions should return
     * <code>false</code> when all the available payloads have been used up,
     * otherwise
     * <code>true</code>.
     */
    boolean hasMorePayloads();

    /**
     * This method is used by Burp to obtain the value of the next payload.
     *
     * @param baseValue The base value of the current payload position. This
     * value may be
     * <code>null</code> if the concept of a base value is not applicable (e.g.
     * in a battering ram attack).
     * @return The next payload to use in the attack.
     */
    byte[] getNextPayload(byte[] baseValue);

    /**
     * This method is used by Burp to reset the state of the payload generator
     * so that the next call to
     * <code>getNextPayload()</code> returns the first payload again. This
     * method will be invoked when an attack uses the same payload generator for
     * more than one payload position, for example in a sniper attack.
     */
    void reset();
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
buby-1.6.0-java ext/burp_interfaces/burp/IIntruderPayloadGenerator.java
buby-1.5.2-java ext/burp_interfaces/burp/IIntruderPayloadGenerator.java
buby-1.5.1-java ext/burp_interfaces/burp/IIntruderPayloadGenerator.java
buby-1.5.0-java ext/burp_interfaces/burp/IIntruderPayloadGenerator.java
buby-1.5.0.pre4-java ext/burp_interfaces/burp/IIntruderPayloadGenerator.java
buby-1.5.0.pre3-java ext/burp_interfaces/burp/IIntruderPayloadGenerator.java
buby-1.5.0.pre2-java ext/burp_interfaces/burp/IIntruderPayloadGenerator.java
buby-1.5.0.pre1-java ext/burp_interfaces/burp/IIntruderPayloadGenerator.java