PortSwigger / python-scripter

Sourced from gist: https://gist.github.com/mwielgoszewski/7026954
50 stars 11 forks source link

How to just drop or return a fake response? #8

Open maxpaynebupt opened 1 year ago

maxpaynebupt commented 1 year ago

How to just drop the request and return a fake response?

A detailed API document is a must to use the plugin.

stavinski commented 1 year ago

So the objects exposed are the same ones as if you were to write an extension for Burp, full documentation can be found here https://portswigger.net/burp/extender/api/.

There is an example here https://github.com/lanmaster53/pyscripter-er/blob/master/snippets/response_replace.py that shows replacing the response.