Skip to content

A free, open-source alternative to Burp Suite: an intercepting proxy and web app security testing suite with Repeater, Intruder, Collaborator and a built-in OWASP ZAP scanner. Linux, AGPL-3.0.

824 B
Raw Blame
package opensuite.intruder;

import opensuite.ui.NoticeDialog;

import java.awt.Component;
import java.util.List;

/**
 * What is wrong with an attack's configuration, shown when Start attack is
 * pressed: the problems in a list, with the choice of going back to put them
 * right or starting regardless.
 */
final class AttackConfigDialog {
    private AttackConfigDialog() {}

    /**
     * Show the problems and wait for the choice.
     *
     * @return true to start the attack regardless, false to go back
     */
    static boolean ignore(Component owner, List<String> errors) {
        return NoticeDialog.ask(owner, NoticeDialog.Kind.ERROR, "Intruder attack configuration",
                "There are issues with your attack configuration.", "Errors", errors, null, 1, "Ignore", "Go back").button() == 0;
    }
}