php - RegExp to find specific string with random characters in between -
i'm not hopeful possible. i'm looking string "base64_decode" in php files (yes clean site has been hacked). problem hacker has "hidden" string so:
'ba'.'se'.(32*2).'_d'.'eco'.'de' or 'b'.'as'.'e6'.'4_d'.'ec'.'ode';
and few other ways.
therefore search string "decode" or "base" ignoring characters in between each letter. understand cpu intensive (especially when have few hundred mb of files go through (yes, hide code in other files gif image).
is possible?
i know sucuri online website, if have other suggestion of tools scan files , discover other hacks i'm interested.
(?:b[^a-za-z]*?a[^a-za-z]*?s[^a-za-z]*?e)|(?:d[^a-za-z]*?e[^a-za-z]*?c[^a-za-z]*?o[^a-za-z]*?d[^a-za-z]*?e)
you can try this.see demo.
Comments
Post a Comment