Computers infected by ads on a large scale are used for botnets or the installation of crappy toolbars to make money. The ads are not used to hack webmasters...
Your WP installation probably had a vulnerable script. Everyone here who owns a VPS or dedicated server can tell you their server logs are full of IP's scanning wordpress directories on your server.
They place a backdoor on your server and at a certain time a script checks if the malicious code got removed. If it's removed they upload it again automatically
Not having a good anti-virus program is your own fault imo.
|