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.

https://regex101.com/r/pg1ku1/17


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -