logo

blog

My website can't be that messy, right? git clone https://anongit.hacktivis.me/git/blog.git/

La neutralitée du Net sur un wifi Orange™, deuxième mensonge.xhtml (7684B)


  1. <!--
  2. Copyright © 2014 Haelwenn (lanodan) Monnier
  3. SPDX-License-Identifier: LAL-1.3
  4. -->
  5. <article xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class="h-entry">
  6. <a class="u-url" href="/articles/La%20neutralit%C3%A9e%20du%20Net%20sur%20un%20wifi%20Orange%E2%84%A2,%20deuxi%C3%A8me%20mensonge"><h1 class="p-name">La neutralitée du Net sur un wifi Orange™, deuxième mensonge</h1></a>
  7. <p>Vut que je n’ai pas de vraie connection internet chez moi autre qu’un forfait à 50MB de 4G, j’utilise le réseau de orange… qui en plus de bloquer l’envoit des courriels par un client classique(mutt, thunderbird, …) (j’ai un tunnel SSH pour ceci et je pense mettre mutt sur mon serveur) fait aussi de la merde sur des nom-de-domaine inexistant·e, c’est à dire me rediriger(merci chromium, firefox a une option pour contrer ça) vers http://instantfwding.com/?dn=cet.abruti.de.nom.de.domaine.com&amp;pid=7PO2UM87 Heuresement que j’ai uMatrix pour bloquer ces conneries. Sauf que ce n’est pas un comportement normal de mon réseau j’ai donc voulut voir ça de plus près.</p>
  8. <pre><code>$ <kbd>cat /etc/resolv.conf.head</kbd>
  9. <samp>nameserver 127.0.0.1
  10. nameserver 80.67.169.12
  11. nameserver 80.67.169.40
  12. domain hacktivis.me
  13. search hacktivis.me
  14. </samp>$ <kbd>cat /etc/resolv.conf</kbd>
  15. <samp># Generated by dhcpcd from wlp0s22f2u3.dhcp
  16. nameserver 127.0.0.1
  17. nameserver 80.67.169.12
  18. nameserver 80.67.169.40
  19. domain hacktivis.me
  20. search hacktivis.me
  21. domain orange-hotspot.com
  22. nameserver 80.10.46.232
  23. # /etc/resolv.conf.tail can replace this line
  24. </samp>$ <kbd>dig nxdomain.tld</kbd>
  25. <samp>; &lt;&lt;&gt;&gt; DiG 9.10.3-P2 &lt;&lt;&gt;&gt; nxdomain.tld
  26. ;; global options: +cmd
  27. ;; Got answer:
  28. ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NXDOMAIN, id: 27819
  29. ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
  30. ;; OPT PSEUDOSECTION:
  31. ; EDNS: version: 0, flags:; udp: 4096
  32. ;; QUESTION SECTION:
  33. ;nxdomain.tld. IN A
  34. ;; AUTHORITY SECTION:
  35. . 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016100900 1800 900 604800 86400
  36. ;; Query time: 47 msec
  37. ;; SERVER: 80.67.169.12#53(80.67.169.12)
  38. ;; WHEN: Sun Oct 09 16:34:01 CEST 2016
  39. ;; MSG SIZE rcvd: 116
  40. </samp>$ <kbd>dig nxdomain.tld @80.10.46.232</kbd>
  41. <samp>; &lt;&lt;&gt;&gt; DiG 9.10.3-P2 &lt;&lt;&gt;&gt; nxdomain.tld @80.10.46.232
  42. ;; global options: +cmd
  43. ;; Got answer:
  44. ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 26873
  45. ;; flags: qr aa ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
  46. ;; QUESTION SECTION:
  47. ;nxdomain.tld. IN A
  48. ;; ANSWER SECTION:
  49. nxdomain.tld. 3600 IN A 10.10.10.10
  50. ;; Query time: 43 msec
  51. ;; SERVER: 80.10.46.232#53(80.10.46.232)
  52. ;; WHEN: Sun Oct 09 16:36:26 CEST 2016
  53. ;; MSG SIZE rcvd: 58
  54. </samp></code></pre>
  55. On commence déjà à avoir du DNS menteur, mais n’oubliont pas <code>domain orange-hotspot.com</code> (J’ai modifié ma config dhcpcd juste après avoir rédigé·e ce billet)
  56. <pre><code>$ <kbd>dig nxdomain.tld.orange-hotspot.com</kbd>
  57. <samp>; &lt;&lt;&gt;&gt; DiG 9.10.3-P2 &lt;&lt;&gt;&gt; nxdomain.tld.orange-hotspot.com
  58. ;; global options: +cmd
  59. ;; Got answer:
  60. ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 54935
  61. ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 5
  62. ;; OPT PSEUDOSECTION:
  63. ; EDNS: version: 0, flags:; udp: 4096
  64. ;; QUESTION SECTION:
  65. ;nxdomain.tld.orange-hotspot.com. IN A
  66. ;; ANSWER SECTION:
  67. nxdomain.tld.orange-hotspot.com. 3600 IN A 103.224.212.222
  68. ;; AUTHORITY SECTION:
  69. orange-hotspot.com. 171919 IN NS ns16.above.com.
  70. orange-hotspot.com. 171919 IN NS ns15.above.com.
  71. ;; ADDITIONAL SECTION:
  72. ns15.above.com. 171919 IN A 103.224.182.5
  73. ns15.above.com. 171919 IN A 103.224.212.5
  74. ns16.above.com. 171919 IN A 103.224.212.6
  75. ns16.above.com. 171919 IN A 103.224.182.6
  76. ;; Query time: 180 msec
  77. ;; SERVER: 127.0.0.1#53(127.0.0.1)
  78. ;; WHEN: Sun Oct 09 16:39:12 CEST 2016
  79. ;; MSG SIZE rcvd: 184
  80. </samp></code></pre>
  81. <p>Bon génial, on à deux addresses… je me suis dit que un nmap pourrait être sympa, aller hop zou !</p>
  82. <pre><code>$ <kbd>nmap -A 10.10.10.10</kbd>
  83. <samp>Starting Nmap 7.25BETA1 ( https://nmap.org ) at 2016-10-09 16:42 CEST
  84. Nmap scan report for 10.10.10.10
  85. Host is up (0.044s latency).
  86. Not shown: 999 filtered ports
  87. PORT STATE SERVICE VERSION
  88. 80/tcp closed http
  89. Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
  90. Nmap done: 1 IP address (1 host up) scanned in 12.40 seconds
  91. </samp>$ <kbd>nmap -A 103.224.212.222</kbd>
  92. <samp>Starting Nmap 7.25BETA1 ( https://nmap.org ) at 2016-10-09 16:43 CEST
  93. Nmap scan report for lb-212-222.above.com (103.224.212.222)
  94. Host is up (0.20s latency).
  95. Not shown: 998 closed ports
  96. PORT STATE SERVICE VERSION
  97. 25/tcp open smtp
  98. |_smtp-commands: SMTP EHLO lb-212-222.above.com: failed to receive data: connection closed
  99. |_smtp-ntlm-info: ERROR: Script execution failed (use -d to debug)
  100. 80/tcp open http Apache httpd (PHP/5.4.45-0+deb7u5)
  101. | http-robots.txt: 5 disallowed entries
  102. | /cpx.php /medios1.php /toolbar.php /check_image.php
  103. |_/check_popunder.php
  104. |_http-server-header: Apache
  105. |_http-title: Did not follow redirect to http://www.qfind.net?_inv
  106. 1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
  107. SF-Port25-TCP:V=7.25BETA1%I=7%D=10/9%Time=57FA57A5%P=x86_64-pc-linux-gnu%r
  108. SF:(NULL,25,"220\x20mwinf5d62\x20ME\x20ESMTP\x20server\x20ready\r\n")%r(He
  109. SF:llo,46,"220\x20mwinf5d62\x20ME\x20ESMTP\x20server\x20ready\r\n501\x20EH
  110. SF:LO\x20requires\x20valid\x20address\r\n");
  111. Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
  112. Nmap done: 1 IP address (1 host up) scanned in 36.60 seconds
  113. </samp></code></pre>
  114. Et un HTTP… voyons voir si c’est celui qui ment.
  115. <pre><code>$ <kbd>curl -v -H 'Host: nxdomain.tld' 103.224.212.222</kbd>
  116. <samp>* Rebuilt URL to: 103.224.212.222/
  117. * Trying 103.224.212.222...
  118. % Total % Received % Xferd Average Speed Time Time Time Current
  119. Dload Upload Total Spent Left Speed
  120. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 103.224.212.222 (103.224.212.222) port 80 (#0)
  121. &gt; GET / HTTP/1.1
  122. &gt; Host: nxdomain.tld
  123. &gt; User-Agent: curl/7.50.1
  124. &gt; Accept: */*
  125. &gt;
  126. &lt; HTTP/1.1 200 OK
  127. &lt; Date: Sun, 09 Oct 2016 14:45:05 GMT
  128. &lt; Server: Apache
  129. &lt; X-Powered-By: PHP/5.4.45-0+deb7u5
  130. &lt; Content-Length: 371
  131. &lt; Connection: close
  132. &lt; Content-Type: text/html; charset=UTF-8
  133. &lt;
  134. { [371 bytes data]
  135. 100 371 100 371 0 0 866 0 --:--:-- --:--:-- --:--:-- 868
  136. * Closing connection 0
  137. &lt;html&gt;
  138. &lt;head&gt;
  139. &lt;title&gt;nxdomain.tld&lt;/title&gt;
  140. &lt;/head&gt;
  141. &lt;frameset rows="100%,*" frameborder="no" border="0" framespacing="0"&gt;
  142. &lt;frame src="http://instantfwding.com/?dn=nxdomain.tld&amp;pid=7PO2UM885"&gt;
  143. &lt;noframes&gt;
  144. &lt;body bgcolor="#ffffff" text="#000000"&gt;
  145. &lt;a href="http://instantfwding.com/?dn=nxdomain.tld&amp;pid=7PO2UM885"&gt;Click here to enter&lt;/a&gt;.
  146. &lt;/body&gt;
  147. &lt;/noframes&gt;
  148. &lt;/frameset&gt;
  149. &lt;/html&gt;
  150. </samp></code></pre>
  151. <p>Trouvé !<br />
  152. Si vous avez encore des personnes qui ne vous croient pas sur une connection non-neutre, mettez-les sur un wifi orange semi-public y’aurat des trucs pas habituels :P</p>
  153. <p>Ah et orange à l’air d’utiliser une bonne grosse masse de Debian(cf. le deb dans la version du Serveur apache menteur ainsi que pour PHP) donc ouais <a href="https://davenull.tuxfamily.org/linux-livebox/">le libre ça marche pas avec orange™</a></p>
  154. </article>