Closed Kaide0521 closed 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); }
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); }