Initial When on Request but want to edit Response #80
Replies: 4 comments 2 replies
-
If I'm understanding correctly, you're missing the Then Set Event Direction -> Response. This is similar to this example: https://synfron.github.io/ReshaperForBurp/Examples.html#tip4 |
Beta Was this translation helpful? Give feedback.
-
Thanks. I tried this but i get a 404 message in the response in repeater rather than what was supposed to be sent. From logger if i send the repeater request (where the response was supposed to be modified after Set Event Direction) back to repeater i can see the Reshaper-ID header and the modified target which which is the loopback. It appears this loopback can't handle this reshaper request hence the 404. Burp v2024.12.1 on Windows 10. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help. I guess this doesn't directly align with what I'm trying to accomplish so maybe that's part of the problem.
The rule is configured as per the below If the above isn't actually possible we can probably leave it there but i did some further troubleshooting and i noticed the following error. "Sanity Check - Warning: The request changed but the data direction is set to Response. Your changes may have no impact. Consider using 'When Data Direction' or 'Then Set Data Direction' to restrict or change the data direction." I tried switching the order of Set Event Direction and Set Value which made no difference. Just to ensure it wasn't an upstream proxy or routing issue i actually changed burp to use a socks proxy via SSH tunnel taking it closer to the web server. When i did this the initial request fails with burp itself showing 'Malformed reply from SOCKS server'. |
Beta Was this translation helpful? Give feedback.
-
thanks. that sorted out what i was trying to accomplish. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to edit a server response to request 1 based a server response from request 2 being triggered using Send Request.
This is so when the burp scanner makes a request it actually sees the response from a request to another URL since that's where the payload or error messages messages end up.
I have the When Event Direction as Request, I use a send request to gather the real response i want and assign it to a variable, then and use Set Value to the Response Message but looking in logger or repeater i dont see the modification.
I've also tried using Run Rules with a separate rule where the When is set to Event Direction - Request however the logs say this isn't being triggered as the Event Direction is Request as per the original, and not per the new rule itself.
I suspect its not possible but it would be good if someone could confirm or suggest an alternative.
Beta Was this translation helpful? Give feedback.
All reactions