Burp Suite User Forum

Create new post

burp hangs while shell command completes

Joseph | Last updated: Aug 31, 2015 01:17PM UTC

Hello, I have an extension which calls a shell command that takes a bit to complete. After invoking this from the context menu, burpsuite hangs and resumes after the command completes. I have tried using threading to avoid the hang but have not had any luck. The extension is written in python and I am using Popen and communicate because I need certain tasks to wait until the command completes. Any tips on how I can have the command (and these tasks) run in the background while the rest of the burpsuite functionality continues? Thanks,

PortSwigger Agent | Last updated: Sep 01, 2015 09:18AM UTC

When a context menu item is invoked, you are running in the Swing event dispatch thread, and no other events will be dispatched until your code returns. From a user perspective, the UI locks up. In Java, you would normally deal with this situation by starting a new thread to do your work, for example: new Thread(new Runnable() { @Override public void run() { // do the work here } }).start();

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.