Dozens of government websites have fallen victim to a PDF-based SEO scam, while others have been hijacked to sell sex toys.