The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

highlight many keyword in the response

luffy | Last updated: Feb 03, 2021 02:51AM UTC

I used this code: if (resKeywords.size() > 0) { List<int[]> resp = new ArrayList<>(); for (byte[] msg : resKeywords) { List<int[]> matches = getMatches(response, msg); resp.addAll(matches); } // _stdout.println(resKeywords.size()); // 3 CustomScanIssue issue = new CustomScanIssue(baseRequestResponse.getHttpService(), analyzedRequest.getUrl(), new IHttpRequestResponse[]{_callbacks.applyMarkers(baseRequestResponse, null, resp)}, DETAIL, ISSUE_TYPE, ISSUE_NAME, SEVERITY, CONFIDENCE, "", "", ""); issues.add(issue); return issues; } but I got Invalid offsets: the list should be in sequence and offsets should not overlap single word, example: CustomScanIssue issue = new CustomScanIssue(baseRequestResponse.getHttpService(), analyzedRequest.getUrl(), new IHttpRequestResponse[]{_callbacks.applyMarkers(baseRequestResponse, null, getMatches(response, resKeywords.get(0)))}, DETAIL, ISSUE_TYPE, ISSUE_NAME, SEVERITY, CONFIDENCE, "", "", ""); is ok

luffy | Last updated: Feb 03, 2021 02:54AM UTC