NikosG
6 years agoOccasional Contributor
Fuzzing Scan: manipulate REST body between iterations
Hi
I wonder if during fuzzing scan one could manipulate the values in the JSON request body between each request.
Let's suppose that the basic POST request is something like the following
{
"id":id,
"data":"actual data targetted by scan"
}
The problem in my case is that the id has to be unique.
I would like to be able to set the id part to a different value. Something like <prefix>_<autoincrement value> so that the ids in each POST sent during the fuzzing scan are unique. For example { "id":"Prefix_1", "data":"fuzzing scan value 1"}, { "id":"Prefix_2", "data":"fuzzing scan value 2"} and so on.
- Hi NikosG,
I just re-read your original message and i think you state you want to concatenate a prefix to your dynamic value?
So as per the detail below for your dynamic values, you could add in a prefix to concatenate so say for testcase1 your id attribute value could be as follows:
'TestCase1_${=System.currentTimeMillis()}'
This would generate the following in your published .json
"Id" : "TestCase1_1566669888473"
Cheers,
Rich