PortSwigger / burp-extensions-montoya-api

Burp Extensions Api
Other
141 stars 5 forks source link

audit.issues allways empty #51

Closed Kaide0521 closed 1 year ago

Kaide0521 commented 1 year ago

Audit audit = LegacyBurpExtender.getInstance().getMontoyaApi().scanner().startAudit(AuditConfiguration.auditConfiguration(BuiltInAuditConfiguration.LEGACY_ACTIVE_AUDIT_CHECKS)); for(HttpMessage info : submitTraffic){ System.out.println(new String(info.getRequest())); audit.addRequest(HttpRequest.httpRequest(new String(info.getRequest()))); // LegacyBurpExtender.getInstance().getCallbacks().doActiveScan("127.0.0.1", // 8080, false, // info.getRequest()); } while (!"finished".equals(audit.statusMessage())) { System.out.println(audit.statusMessage()); System.out.println("audit.requestCount()" + audit.requestCount()); System.out.println("audit.issues()" + audit.issues().size()); List<AuditIssue> issues = LegacyBurpExtender.getInstance().getMontoyaApi().siteMap().issues(); System.out.println("siteMap.issues()" + issues.size()); Thread.sleep(5000); }