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

Converting Python List to java.util.List

Hamoon | Last updated: Sep 29, 2019 07:22PM UTC

Using Python, I am trying to get the result of invocation.getSelectedMessages() to be passed into the function sendToIntruder() as the payloadPositionOffsets Parameter. I can't seem to get the right format to put into sendToIntruder() as it is expecting a java.util.List and what I have might be a python LIST. Function: sendToIntruder(java.lang.String host, int port, boolean useHttps, byte[] request, java.util.List<int[]> payloadPositionOffsets) Code: self._messages = invocation.getSelectedMessages() selectionBounds = self._selectionBounds aJavaList = java.util.Arrays.asList(self._selectionBounds) anArray = jarray.array(self._selectionBounds, java.lang.Object) self._callbacks.sendToIntruder(host,port,True,request, aJavaList)

Mike, PortSwigger Agent | Last updated: Oct 01, 2019 10:22AM UTC