I am trying to figure out grep for malware that is hard to match with a single pattern. One line from the malicious file looks like this:
$bhbwjhu[11].$bhbwjhu[15].$bhbwjhu[34].$bhbwjhu[23].$bhbwjhu[30].$bhbwjhu[6].$bhbwjhu[3].$bhbwjhu[34].$bhbwjhu[31]
Tried with something like this, but obviously, my grep skills are quite poor (this gives invalid range end error):
find . -type f | xargs grep -s -l "\$[A-z]*\[[0-9]*\]\.\$[A-z]*\[[0-9]*\]\.\$[A-z]*\[[0-9]*\]"
Any way to search for that bunch of array elements in files?
Grep version is
grep (GNU grep) 2.20
Linux version 2.6.32-896.16.1.lve1.4.54.el6.x86_64