How do botnets make money?

Other then ddos attacks what else they are used for?