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

Fix string handling in hook #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix string handling in hook #5

wants to merge 1 commit into from

Conversation

Kiprey
Copy link

@Kiprey Kiprey commented Jan 22, 2022

When the value recorded in the API log is '" ' "', ApiFuzz will make an error when executing the evaluate function.
Because python recognizes the second single quote as an identifier, but that is actually data.

To prevent ApiFuzz from reporting errors and allow API Log to display value strings better, I escaped all non-alpha and non-digital characters into the form of '\xXX'.

And it works pretty well.

{'name':'location','value': '"\x0f\x18"','size' : 0x80,'cnt':0x1, 'data':[]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant