I have detected a malware code inside all pages on my site, there are thousands of pages, I need that deleted with a script. There are plenty of scripts/shell commands that can do, the problem is that I need a regular expression of the code to use any of that script. Code is attached. I don't need any help to delete the malware from my site I need only the regular expression of the malware code, please check attached file. I need this quick guys SO PLEASE don't submit CVs or Portfolios or whatever else about your experience...Who submits the regular expression of the code to message board first will be considered as winner.
so you need to have regex only?
also, can you send few more patterns within the encoded string? or is it just an alphanumeric string inside decode function?
You didn't specify which regex standard you are looking to use. It's going to be different in PHP, Java, grep, sed etc.
If you accept my bid I will provide you with a bash script that will recursively remove the entire base64 decode line from any file in any sub-directory beneath where ever you start it at.
My underlaying assumption is that this is static HTML. However there is the strong possibility that these pages are being generated and if that's the case then you're going to need to clean out whatever is generating them. That would likely mean you've suffered a SQL injection attack. Anyways, pick me and I'll help you clean it up, regardless of what the source is for the same price.
I have worked with regex. I can make accurate regex to find specific item from your code if you provide more info about the pattern appearing in you code.