zgrab2
zgrab2 copied to clipboard
About some web content encoding issues
I found that some web content will be encoded as \ufffd E.g: 010-4200-4200.com 010apartment.com
The data stored in the database is garbled.
you can modify the code and base64encode it before output. have a lootk at -> https://github.com/commonscan/zgrab2/blob/a7a93f3f5da9fc7a09a57274cc6799d24844266d/modules/rapid7banner/scanner.go#L167
@imfht do you have, by any chance, a copy of the content? The link is dead now and I could also use a base64 encoding for the output.
@l3m0n I could be wrong but I believe this is the correct way to encode these characters in JSON. If you load using a standards compliant JSON loader (e.g. Python3 json.load
or Pandas pandas.read_json()
) it should come out as expected
Are you processing the JSON data without actually de-serializing theJSON? if so, that is expected behavior
@mzpqnxow I have issues with binary content: many (different) non-printable chars are encoded as \ufffd
, which makes the output unusable, regardless of the tool used to read the JSON file.
@p-l- here is a capture from 010apartment.com - though I'm not having any issues with any apps or libraries in loading it, despite the presence of the escaped characters. Maybe it's helpful to you, maybe not:
echo '/Td6WFoAAAFpIt42A8CcKa6UAyEBFgAAXA9FJuDKLRSUXQA9iIiHM/vVEuWguaLfwdGA0sKn8mUPuAItNB8h4ttMUuZpvPs5+Wa+nnJbCpb+KB88aVMEEJH3AWVwB6ksnfjE1ZEfg5o9vFlhYeiHFUmqEId3UKtQfTcMzz4sjVU84r05U9Nlv4mG8gJqnRcMjrAZ52egmGCBsRoTRhSpM1vqwQEQfpxBv7xU9dnN9dQty5zueBSm0fzKySgu+yf7oq4RJlbvd1nT++lyTE6X3TK6MYD/ZO0xM8YVcQU0hwO7xq3VYqSMd3oZzrFXldbMpmyo3GE9Ezao8vzdcXR2IvwDCbO6sRh0d9D/PyNLluwINEQKJKa6prAWjGPsa0iU2lIgKqza7/rrsjFedsml1z93f6tfX1LHTYBIV5WzzoA3z3AjY9BKug/t1NrHqXae5MrrIYE/KoKA+IWTDGIBmqLjVL4KA7mDIZbhPJe1Rv3toep4++l+Pbg2rdU8lQsJcr587IV54TLgfNvj324dHiiqvW2PA19Oicc8jBiTuQD8fk2ynTcgjueK5KTDB5/3j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4Bu8KnCel/3oKXhVxiI2yt7PwN7r7onQIMuivyV4f0oym0V7tiZrAAA88APQAABsCmulAMABKfNaT4wDYsCAAAAAAFZWg==' | base64 -d | xz -d > 010apartment.com.ndjson
@mzpqnxow I have no issues with that particular site. My use case is, for example, making a GET request to /favicon.ico
files.
@mzpqnxow I have no issues with that particular site. My use case is, for example, making a GET request to
/favicon.ico
files.
Ahhh... that makes much more sense, thanks for clarifying