Grep binary
Short note: One of my script that uses grep
broken down in the last week:
grep: access.log: binary file matches
That’s strange, what happened?
Seems like that some bot dropped some binary code into my webserver to exploit some old PHP thingy. However, my system does not care because it does not run PHP. Nevertheless, I can’t parse my logs now. To fix this grep
has to treat the binary part like textwith the parameter -a
.
Short note: One of my script that uses grep broken down in the last week:
grep: access.log: binary file matches
That’s strange, what happend?
Seems like that some bot dropped some binary code into my webserver to exploit some
old php thingy. However, my system does not care, because it does not run PHP. Nevertheless, I can’t parse my logs now.
To fix this grep
has to treat the with the parameter -a
.
So far, akendo