Tales of the Parodyverse >> View Post
·
Post By
HH

In Reply To
Manga Shoggoth

Member Since: Fri Jan 02, 2004
Posts: 391
Subj: And so to the next problem...
Posted: Fri Dec 18, 2015 at 06:52:44 pm EST (Viewed 2 times)
Reply Subj: Yup - Notepad++ has come good features (it isn't an editor I use much, but other people at work speak very well of it)
Posted: Fri Dec 18, 2015 at 12:07:54 pm EST (Viewed 444 times)


My website has been hacked at some point, and around 220 pages have been modified with a long block of advertising links.

It must have been some time ago, since even my "clean" backup copies of the site are infected.

It's been quite a clever little spambot, randomly scambling the order it placed about 150 links on each page to make it harder for bulk deletion. The links are, for some reason, in black font on my black backgrounds, at the very bottom of pages. For example: http://www.chillwater.org.uk/HH/dull%20thud.htm

What I need to do to eliminate it without hand-editing every file is to use Notepad++ or some such program. Specifically, I need a regular expression or macro that works through batch files and finds the text:

[div style="position:absolute;filter:alpha (the square bracket is actually a left arrow)

It then needs to delete that and all text after it in the whole file, replacing it with:

[/div] [/body]

Any ideas?








Posted with Mozilla Firefox 42.0 on Windows XP
On Topic™ © 2003-2024 Powermad Software
Copyright © 2003-2024 by Powermad Software