I don't think there is any kind of software that takes care of mining without permission, it's their website that does all the shady stuff, this is one of the easy ways for pirate sites to earn revenues and even though it's illegal they do it because pirating is also illegal.