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.
Java application-securityappsecbug-bountyburp-alternativeburp-suitedasthttp-proxyinfosecintercepting-proxyjavaowaspowasp-zappenetration-testingpentestingsecuritysecurity-toolsvulnerability-scannerweb-application-securityweb-security
package opensuite.core;
/**
* An optional hook the {@link HttpClient} consults around each send, so session
* handling can run for any tool without the client knowing what a session is.
*
* <p>Defined in core and implemented in the session package, mirroring how the
* context already reaches the out-of-band collaborator: core owns the contract,
* the feature owns the logic.
*/
public interface SessionHook {
/** Mutate the outgoing request before it goes on the wire (e.g. add cookies). */
void beforeSend(String tool, HttpService svc, HttpMessage req);
/**
* Learn from the response (e.g. store Set-Cookie), and decide whether the
* request should be sent again once. Returning true asks the client to
* re-run {@link #beforeSend} and resend, which is how a rule re-authenticates
* after detecting an expired session.
*/
boolean afterResponse(String tool, HttpService svc, HttpMessage req, HttpMessage resp);
}