Burp community forum

Java Extender API IScanQueueItem not working as expected in 2.1

Chris | Last updated: Jul 01, 2019 09:14AM UTC

Hi, I've noticed the following items in IScanQueueItem are not functioning as expected in 2.1 compared to 1.7. getPercentageComplete In 1.7 this returns the percentage complete of the scan, in 2.1 it always returns 0 getStatus in 1.7 this returns the status of the scan, in 2.1 it always returns completed. Use case: I have an extension which kicks off several scans via a java executable, performs custom authentication logic and generates some reports once the scan is completed. Now following the upgrade to 2.1 the scans execute fine, but they never report as completed so reports cannot be generated. I cannot use the rest API in this instance.

Rose, PortSwigger Agent | Last updated: Jul 01, 2019 12:30PM UTC

Thanks for your message. We're looking into this and will get back to you when we have some progress to report.

Patrick, PortSwigger Agent | Last updated: Jul 03, 2019 08:23AM UTC

Hi Chris, Apologies for taking so long to get back to you. I have looked into the problem that you described and you are quite right about the getPercentageComplete method. Following the release of Burp 2 scan items no longer have a "percentage complete" in the Burp UI and so the functionality has been lost. This method will soon be deprecated in the interface. Thank you for pointing it out to us. WRT getStatus, as far as I can tell, the method should return one of four values: "waiting"; "0% complete"; "finished" and "cancelled". "0% complete" is a pretty useless status so we plan to change this to "scanning" in the next release. Again, thank you for pointing this out. Long term we have plans to improve the API for creating extensions but we do not know when this will be. Please let us know if you need any further assistance.

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