Burp Suite User Forum

Login to post

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

Uthman, PortSwigger Agent | Last updated: Feb 03, 2021 02:26PM UTC

Can you please email support@portswigger.net with a full PoC?

You need to Log in to post a reply. Or register here, for free.