Burp Suite User Forum

Create new post

Match and Replace

Ram | Last updated: Sep 20, 2018 10:30PM UTC

Hi There, I have this URL "curl -X POST "http://foo.example.org/abcd?User=abcd&HelloCode=1234" When I POST this url I want Burp to manipulate this url as like this "curl -X POST "http://foo.example.org/abcd?User=abcd&HelloCode=5678". Can anyone suggest how should I compose a "Match& Replace" filter??

PortSwigger Agent | Last updated: Sep 21, 2018 09:58AM UTC

One way to do it is to create a match and replace rule like this: Type - Parameter value Match - 1234 Replace - 5678 Alternatively, you could create a session handling rule with the action "Set a specific cookie or parameter value".

ayadi | Last updated: Feb 16, 2023 07:54PM UTC

what if I want to search for a parameter name (e.g target=12345) and we want to change the value?

Ben, PortSwigger Agent | Last updated: Feb 20, 2023 08:43AM UTC

Hi, Are you able to provide us with some more detail around what you it is you are trying to achieve so that we can assist you further with this?

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