The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Custom response without forwarded request ?

Bjorn | Last updated: Jul 15, 2016 09:44PM UTC

Hi, I'm intercepting requests from an application and want to return a response based on it, without actually forwarding the request to the original destination. Currently I'm doing it like this: + Intercepting request + Changing target host on GUI and in raw request to i.e. 'google.com' + Select 'Action' -> 'Do intercept' -> 'Response to this request' + Forward request + wait for response + Change raw response to my own content + forward it Is it possible to do it in another way, e.g. with extender API ?

PortSwigger Agent | Last updated: Jul 18, 2016 10:49AM UTC

There isn't currently a neat way to do this, sorry. You can't prevent Burp from actually trying to issue the request. Using the API, you could programatically set the request target to an invalid host, or another webserver that you control, and then change the response as it comes back in.

Burp User | Last updated: Jul 19, 2016 08:01AM UTC

Ok, it works quite well this way. I'm now using a local Python SimpleHTTPServer which responses to all requests.

Burp User | Last updated: Feb 21, 2017 06:19PM UTC