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.ui;
import opensuite.core.Alert;
import opensuite.core.SuiteContext;
import javax.swing.*;
import javax.swing.table.AbstractTableModel;
import java.awt.*;
import java.text.DateFormat;
import java.util.List;
/** The suite event log. */
public class AlertsPanel extends JPanel {
private final SuiteContext ctx;
private final Model model = new Model();
private final JTable table = new JTable(model);
private final DateFormat fmt = DateFormat.getTimeInstance(DateFormat.MEDIUM);
public AlertsPanel(SuiteContext ctx) {
super(new BorderLayout());
this.ctx = ctx;
Ui.styleTable(table);
Ui.distributeWidths(table, 90, 90, 900);
add(Ui.scroll(table), BorderLayout.CENTER);
JPanel south = new JPanel(new FlowLayout(FlowLayout.LEFT, 6, 4));
JButton clear = Ui.button("clear");
clear.addActionListener(e -> { ctx.clearAlerts(); model.fireTableDataChanged(); });
south.add(clear);
add(south, BorderLayout.SOUTH);
// Newest first, like every other history: the latest alert is the top row.
ctx.addAlertListener(a -> SwingUtilities.invokeLater(() -> {
model.fireTableDataChanged();
if (model.getRowCount() > 0) table.scrollRectToVisible(table.getCellRect(0, 0, true));
}));
}
private class Model extends AbstractTableModel {
private final String[] cols = {"Time", "Tool", "Message"};
@Override public int getRowCount() { return ctx.alerts().size(); }
@Override public int getColumnCount() { return cols.length; }
@Override public String getColumnName(int c) { return cols[c]; }
@Override public Object getValueAt(int r, int c) {
List<Alert> list = ctx.alerts();
if (r >= list.size()) return "";
Alert a = list.get(list.size() - 1 - r); // newest first
return switch (c) {
case 0 -> fmt.format(a.time);
case 1 -> a.tool;
default -> (a.repeats > 1 ? "[" + a.repeats + "] " : "") + a.message;
};
}
}
}