Burp Suite User Forum

Login to post

how to load request[]

lpc | Last updated: Jan 10, 2022 03:20AM UTC

mycode: byte[] request = callbacks.getHelpers().stringToBytes(Config.CSRF_REQUEST); IRequestInfo requestInfo = callbacks.getHelpers().analyzeRequest(request); List<String> header_list = requestInfo.getHeaders(); CSRF_REQUEST is copy from burpsuite but header_list only one row why? how to load request from file or properties?

Hannah, PortSwigger Agent | Last updated: Jan 10, 2022 11:33AM UTC

Hi Could you provide us with some more information on what you're trying to do? If needed, you can drop us an email at support@portswigger.net. Have you tried looking at the code for some existing extensions? All BApp Store extension source code can be found on our GitHub here: https://github.com/PortSwigger

AssistantX | Last updated: Jan 12, 2022 01:47AM UTC

When you say one row, do you mean that all of the headers are showing in that one row, or that one row is not one of the header you wanted? If the former, then I would expect that your issue might be that the Config.CSRF_REQUEST text does not have carriage return + new line (\r\n) between each header. Instead, it has just new lines (\n).

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