PyRIT
PyRIT copied to clipboard
FEAT string to JSON converter
Describe the solution you'd like
Add a converter using json.dumps() to make the string json formatted
Can you elaborate? What if the string isn't JSON?
The use case for this would be cases like HTTP_CONVERTER or other places where a string needs to be encoded properly for the target to accept it. Currently, it is the search/replace converter is used (see https://azure.github.io/PyRIT/code/targets/7_http_target.html)
1- create a converter that just dumps the string 2- Update HTTP target example to use this converter instead of search/replace