IContextMenuInvocation - getSelectedMessage of original request / response
I have added a custom context menu item, which reads the selected text of the currently open request / response.
So far so good, however in the history view of Burp, when i have three tabs, i can only differentiate between Edited Request and Response. This means if the user has the Original Request Tab open and uses the context menu, the Edited Request text is returned from ihrr.getRequest().
Code which i am referring to:
line 35 - 44.
Thanks for your help and regards,
Thanks for this report. We’ll investigate this issue and get back to you.
Having looked into this, part of the issue is that we are limited with the current API, in that there aren’t methods on that interface to distinguish between the original and edited requests. We are planning a general revamp of the API, and will look into fixing this at that point.
Thanks for the feedback, looking forward to the fix / revamp!