Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT string to JSON converter #454

Open
jbolor21 opened this issue Oct 10, 2024 · 2 comments
Open

FEAT string to JSON converter #454

jbolor21 opened this issue Oct 10, 2024 · 2 comments
Labels
converters Related to PyRIT converters enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jbolor21
Copy link
Contributor

Describe the solution you'd like

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

@jbolor21 jbolor21 added converters Related to PyRIT converters good first issue Good for newcomers help wanted Extra attention is needed labels Oct 10, 2024
@nina-msft nina-msft added the enhancement New feature or request label Oct 10, 2024
@romanlutz
Copy link
Contributor

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

@rlundeen2
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
converters Related to PyRIT converters enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants