Thanks ozzy. I've already removed the only plugin I had and am going to be upgrading to the latest version of vB but wanted to clear the database of any infection first.
I tried your first command and got an error saying that DatabaseName.plugin didn't exist. I tried swapping "plugin" for the table name but that didn't work either. I got the same problem with the second command i.e. an error message saying that the table template doesn't exist.
I can download that table, edit it in Notepad++ and then upload it back to the database. Would that work?
--------------- Added [DATE]1379422949[/DATE] at [TIME]1379422949[/TIME] ---------------
Nope, that didn't work. I backed up the db, edited the datastore.MYD in Notepad++ and uploaded it and I was getting all kinds of SQL errors. I had to revert to a saved copy of the database.
You're running these queries from within phpmyadmin correct? "plugin" is the table name, don't change that and do your tables use a prefix? If so add the prefix and then run example:
PHP Code:
SELECT title, phpcode, hookname, product FROM TABLEPREFIXHERE_plugin WHERE phpcode LIKE '%base64%' OR phpcode LIKE '%exec%' OR phpcode LIKE '%system%' OR phpcode like '%pass_thru%' OR phpcode like '%iframe%';
prefix_tablename
Also don't edit via notepad++ when you can edit via phpmyadmin, not all data is meant to nor can be edited that way.