Burp Suite User Forum

Create new post

Sciript a Proxy Match/Replace (or well really just an insert)

kingthorin | Last updated: May 21, 2015 07:03PM UTC

Is there a way to script or conditionally to Match/Replace with the Proxy. Similar to what's in the "Options" tab but slightly more complicated. Specifically what I'm looking for a find requests that don't have a referer and insert a specific one. (i.e.: If request header doesn't contain referer then insert Referer: http://something.i.want.com) But I can also foresee other similar uses.

PortSwigger Agent | Last updated: May 22, 2015 03:31PM UTC

There isn't a way to do conditional match/replace using those options, sorry. The easiest way to do something custom like this might be via a quick extension. You could register an IHttpListener to hook into all requests, and modify those without an existing Referer header.

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