Burp community forum

burp extensions using makeHttpRequest

P | Last updated: Feb 29, 2016 05:08PM UTC

I'm trying to create a python Burp Extension where I new to do an HTTP request. I would like to use makeHttpRequest, however I'm getting the error: "java.lang.RuntimeException: java.lang.RuntimeException: Extensions should not make HTTP requests in the Swing event dispatch thread" How can I fix this? I already tried to create a new thread with the makeHttpRequest but unsuccessfully. Any help? Thanks.

PortSwigger Agent | Last updated: Mar 01, 2016 10:25AM UTC

Burp prevents you from making HTTP requests in the Swing EDT, because this will just lock up the whole of the Burp UI while the request is made, and cripple Burp. You need to start a new thread to do the work. In Java, you would make a Runnable and do the work in the run() method, and then call new Thread(runnable).start() to start the thread. This should translate directly over to Python.

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