Burp Suite User Forum

Create new post

Delete specific request from Burp's proxy history using my custom plugin

AmroO | Last updated: Jan 20, 2023 04:42PM UTC

Hello, I've an idea to write a custom plugin to help my colleagues to delete some requests/responses that may include sensitive data that we usually don't need to push with the final burp file as an artifact at the end of the engagement. Is it possible to write a plugin that searches for these requests/responses within the Proxy History and deletes them if it found any? Appreciate your guidance.

Hannah, PortSwigger Agent | Last updated: Jan 23, 2023 11:50AM UTC

Hi The API does not have this functionality. There are multiple places that a request could be - Proxy History, Site Map, Repeater, etc, so it would be quite difficult to locate each request. You could set up your "Target > Scope" and exclude your sensitive requests from being added to the Site Map in the first place? Additionally, when saving a copy of a project file, you can choose to only include in-scope items. It is possible to write an extension to exclude items from the scope (Scope.excludeFromScope()).

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