IMF
IMF copied to clipboard
Fix string handling in hook
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':[]}