public void actionPerformed(ActionEvent e) { softwareTable.refreshTable(domains, cbxSoftwareShowVuln.isSelected()); } });
/** * Creates Custom GUI forms */ private void createUIComponents() { tblRules = rulesTable = new RulesTable(); tblPaths = pathsTable = new PathsTable(); tblSoftware = softwareTable = new SoftwareTable(); }
public void actionPerformed(final ActionEvent e) { for (Map.Entry<String, Domain> d : domains.entrySet()) { d.getValue().setSoftware(new HashMap<String, Software>()); } softwareTable.getDefaultModel().setRowCount(0); } });
public SoftwareTable() { DefaultTableModel model = new DefaultTableModel() { @Override public boolean isCellEditable(int row, int column) { return false; } }; model.addColumn("Domain"); model.addColumn("Name"); model.addColumn("Version"); model.addColumn("CVSS Score"); model.addColumn("Vulnerabilities"); setModel(model); this.defaultModel = model; }
@Override public void onFail(JSONObject error) { // update gui component tabComponent.getSoftwareTable().refreshTable(domains, tabComponent.getCbxSoftwareShowVuln().isSelected()); callbacks.addScanIssue(new SoftwareIssue( baseRequestResponse, helpers, callbacks, startStop, domains.get(domainName).getSoftware().get(software.getKey()) )); } });
@Override public void onScannerSuccess(Set<Vulnerability> vulnerabilities) { for (Vulnerability vulnerability : vulnerabilities) { // update cache domains.get(domainName) .getSoftware() .get(software.getKey()) .getVulnerabilities() .add(vulnerability); } // update gui component tabComponent.getSoftwareTable().refreshTable(domains, tabComponent.getCbxSoftwareShowVuln().isSelected()); // add Burp issue callbacks.addScanIssue(new SoftwareIssue( baseRequestResponse, helpers, callbacks, startStop, domains.get(domainName).getSoftware().get(software.getKey()) )); }