Dozens of unrelated websites contain malicious scripts that attempt to infect users' machines with malware, security experts said today.