title: Grep for specific php malware pattern
body: <p>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:</p>
  <pre><code>$bhbwjhu[11].$bhbwjhu[15].$bhbwjhu[34].$bhbwjhu[23].$bhbwjhu[30].$bhbwjhu[6].$bhbwjhu[3].$bhbwjhu[34].$bhbwjhu[31]
  </code></pre>
  <p>Tried with something like this, but obviously, my grep skills are quite poor (this gives invalid range end error):</p>
  <pre><code>find . -type f | xargs grep -s -l &quot;\$[A-z]*\[[0-9]*\]\.\$[A-z]*\[[0-9]*\]\.\$[A-z]*\[[0-9]*\]&quot;
  </code></pre>
  <p>Any way to search for that bunch of array elements in files?</p>
  <p>Grep version is</p>
  <blockquote>
  <p>grep (GNU grep) 2.20</p>
  <p>Linux version 2.6.32-896.16.1.lve1.4.54.el6.x86_64</p>
  </blockquote>