How can I grep a block of zeroes (wiped area with zeroes) in a file?
I have a malicious Word document with macros inside. An Antivirus solution wiped out a block with zeroes in this Word document. I would like to detect this in the future before analyzing...that the file is modified.
I tried this:
xxd -u -p /your/maldoc | tr -d '\n' | grep -c '44656C65746564204279204B6173706572736B79'
It detects "Deleted By Kaspersky Lab AV", but I would like to detect also other av solutions and grep for a block of zeroes.
Thanks for your help in advance!