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.

788 B
Raw Blame
package needslib;

import opensuite.core.ToolModule;

import javax.swing.JPanel;

/**
 * An extension that uses a library it does not bundle, and says in its name
 * where that library came from: its own class path (the library folder) or
 * the suite's. The suite under test has the library on its own class path,
 * since the tests compile it, so this is what tells the two apart.
 */
public class NeedsLibExtension implements ToolModule {
    @Override public String name() {
        boolean own = libsupport.Greeting.class.getClassLoader() == getClass().getClassLoader();
        return own ? "needslib-with-own-library" : "needslib-with-suite-library";
    }

    @Override public Tab[] tabs() {
        return new Tab[]{ new Tab(libsupport.Greeting.text(), new JPanel()) };
    }
}