Bots are malicious programs that infect computers without the owner's permission and join networks of infected machines called botnets. Botnets are then used by cybercriminals to carry out illegal activities like spamming, denial of service attacks, and identity theft. Criminals infect machines using techniques like exploiting vulnerabilities on websites or getting users to download Trojan horse programs disguised as other files. The bots communicate with command and control servers operated by the criminals to receive instructions. Activities facilitated by botnets include large-scale spamming, hosting phishing websites, and distributed denial of service attacks.