PyRIT icon indicating copy to clipboard operation
PyRIT copied to clipboard

FEAT string to JSON converter

Open jbolor21 opened this issue 1 year ago • 2 comments

Describe the solution you'd like

Add a converter using json.dumps() to make the string json formatted

jbolor21 avatar Oct 10 '24 17:10 jbolor21

Can you elaborate? What if the string isn't JSON?

romanlutz avatar Oct 14 '24 02:10 romanlutz

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

rlundeen2 avatar Jan 04 '25 17:01 rlundeen2