Sort:  

Modern advertising is application as well. So it can run any code. Also, so hackers put „mining code“ to the Free WIFI stations.SO when you join them, and get the landing page – you also start mining.