IMF icon indicating copy to clipboard operation
IMF copied to clipboard

Fix string handling in hook

Open Kiprey opened this issue 2 years ago • 0 comments

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':[]}

Kiprey avatar Jan 22 '22 15:01 Kiprey