<?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>Zapoyok &#187; Linux</title>
	<atom:link href="http://www.zapoyok.info/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zapoyok.info</link>
	<description></description>
	<lastBuildDate>Sun, 05 Feb 2012 09:12:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Debian 6.0 Squeeze est sortie…</title>
		<link>http://www.zapoyok.info/2011/02/06/debian-6-0-squeeze-est-sortie%e2%80%a6/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debian-6-0-squeeze-est-sortie%25e2%2580%25a6</link>
		<comments>http://www.zapoyok.info/2011/02/06/debian-6-0-squeeze-est-sortie%e2%80%a6/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 10:18:06 +0000</pubDate>
		<dc:creator>Jérôme FIX</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[deb]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://www.zapoyok.info/?p=496</guid>
		<description><![CDATA[C&#8217;est bon, mangez en ! http://debian.org/News/2011/20110205a En plus Debian en a profité pour modifier l&#8217;apparence de son site internet : le moins que l&#8217;on puisse dire c&#8217;est que c&#8217;est sobre et dépouillé ! Moi j&#8217;aime !]]></description>
			<content:encoded><![CDATA[<p>C&#8217;est bon, mangez en !<br />
<a href="http://debian.org/News/2011/20110205a">http://debian.org/News/2011/20110205a</a></p>
<p>En plus Debian en a profité pour modifier l&#8217;apparence de son site internet : le moins que l&#8217;on puisse dire c&#8217;est que c&#8217;est sobre et dépouillé ! Moi j&#8217;aime !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zapoyok.info/2011/02/06/debian-6-0-squeeze-est-sortie%e2%80%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aspirer un site internet pour une consultation hors-ligne</title>
		<link>http://www.zapoyok.info/2010/09/07/aspirer-un-site-internet-pour-une-consultation-hors-ligne/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=aspirer-un-site-internet-pour-une-consultation-hors-ligne</link>
		<comments>http://www.zapoyok.info/2010/09/07/aspirer-un-site-internet-pour-une-consultation-hors-ligne/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 05:21:16 +0000</pubDate>
		<dc:creator>Jérôme FIX</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Trucs et astuces]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.zapoyok.info/?p=446</guid>
		<description><![CDATA[Il doit certainement exister des logiciels avec possibilité de filtres et de dizaines d&#8217;autres options, mais pour la plupart des cas cette simple commande me suffit : wget -r -k -np -T 10 -t 1 http://www.zapoyok.info -r : signifie que le téléchargement sera récursif et suit les liens présent dans la page -k : permet [...]]]></description>
			<content:encoded><![CDATA[<p>Il doit certainement exister des logiciels avec possibilité de filtres et de dizaines d&#8217;autres options, mais pour la plupart des cas cette simple commande me suffit :</p>
<p><code><strong>wget -r -k -np -T 10 -t 1 http://www.zapoyok.info</strong></code></p>
<ul>
<li><code>-r</code> : signifie que le téléchargement sera récursif et suit les liens présent dans la page</li>
<li><code>-k</code> : permet de reconstituer le site localement afin d&#8217;être consultable hors connexion : les liens sont modifié pour pointer localement</li>
<li><code>-np</code> empêche de remonter dans le répertoire parent.</li>
<li><code>-T 10</code> : Time connection. Le temps max en seconde pour aspirer un lien. Quand cette option est omis, un lien difficilement accessible peut ralentir considérablement l&#8217;aspiration du site.</li>
<li><code>-t 1</code> : nombre de tentative de connexion si il y a erreur 404 (pas de lien). Ici, on veut qu&#8217;il n&#8217;y ait qu&#8217;une seule tentative de connexion afin d&#8217;accélérer le traitement d&#8217;aspiration.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.zapoyok.info/2010/09/07/aspirer-un-site-internet-pour-une-consultation-hors-ligne/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>git svn clone &#8230;. et  « temp file with moniker &#8216;svn_delta&#8217; already in use »</title>
		<link>http://www.zapoyok.info/2010/08/17/git-svn-clone-et-%c2%ab-temp-file-with-moniker-svn_delta-already-in-use-%c2%bb/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-svn-clone-et-%25c2%25ab-temp-file-with-moniker-svn_delta-already-in-use-%25c2%25bb</link>
		<comments>http://www.zapoyok.info/2010/08/17/git-svn-clone-et-%c2%ab-temp-file-with-moniker-svn_delta-already-in-use-%c2%bb/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 22:45:21 +0000</pubDate>
		<dc:creator>Jérôme FIX</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Trucs et astuces]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[serf]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.zapoyok.info/?p=406</guid>
		<description><![CDATA[Lors d&#8217;essai de cloner des dépôts SVN pour travailler dessus avec GIT, je me retrouve chaque fois avec la même erreur : Temp file with moniker 'svn_delta' already in use at /usr/share/perl5/Git.pm line 1022. avec git 1.7.1 et Subversion 1.6.12 Après quelques recherches infructueuses une piste et une solution (à mon problème en tout cas). [...]]]></description>
			<content:encoded><![CDATA[<p>Lors d&#8217;essai de cloner des dépôts SVN pour travailler dessus avec GIT, je me retrouve chaque fois avec la même erreur :<br />
<code>Temp file with moniker 'svn_delta' already in use at /usr/share/perl5/Git.pm line 1022.</code> avec  git 1.7.1 et Subversion 1.6.12</p>
<p>Après quelques recherches infructueuses une piste et une solution (à mon problème en tout cas). Dans le fichier <code>~/.subversion/servers</code> j&#8217;avais la section suivante :</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>global<span style="">&#93;</span></span>
<span style="color: #000099;">http-library</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> serf</span></pre></div></div>

<p>Une simple suppression de cette ligne pour réutiliser Neon par défaut et cela marche tout de suite mieux !<br />
Je ne sais pas vraiment le pourquoi du comment, mais si cela aide quelqu&#8217;un à son tour c&#8217;est tant mieux ! </p>
<p>Pour en savoir plus :<br />
<a href="http://git.661346.n2.nabble.com/git-svn-fails-to-fetch-repository-td2151475.html">http://git.661346.n2.nabble.com/git-svn-fails-to-fetch-repository-td2151475.html</a><br />
<a href="http://subversion.tigris.org/issues/show_bug.cgi?id=2932">http://subversion.tigris.org/issues/show_bug.cgi?id=2932</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zapoyok.info/2010/08/17/git-svn-clone-et-%c2%ab-temp-file-with-moniker-svn_delta-already-in-use-%c2%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer Flash sous Debian Testing &#171;&#160;Squeeze&#160;&#187; amd64</title>
		<link>http://www.zapoyok.info/2010/08/01/installer-flash-sous-debian-testing-squeeze-amd64/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installer-flash-sous-debian-testing-squeeze-amd64</link>
		<comments>http://www.zapoyok.info/2010/08/01/installer-flash-sous-debian-testing-squeeze-amd64/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 07:21:49 +0000</pubDate>
		<dc:creator>Jérôme FIX</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Trucs et astuces]]></category>
		<category><![CDATA[Chroot]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.zapoyok.info/?p=347</guid>
		<description><![CDATA[Suite aux nombreuses failles sur le plugin Flash, Adobe a jeté l&#8217;éponge et ne maintient plus son plugin en version 64 bits (Lire l&#8217;annonce d&#8217;Adobe.) Il reste dès lors peu de solutions : Revenir sur une distrib 32 bits Installé − à l&#8217;instar de windows − le plugin en version 32 bits chrooter complètement son [...]]]></description>
			<content:encoded><![CDATA[<p>Suite aux nombreuses failles sur le plugin Flash, Adobe a jeté l&#8217;éponge et ne maintient plus son plugin en version 64 bits (<a href="http://labs.adobe.com/technologies/flashplayer10/64bit.html">Lire l&#8217;annonce d&#8217;Adobe.</a>)</p>
<p>Il reste dès lors peu de solutions :</p>
<ul>
<li>Revenir sur une distrib 32 bits</li>
<li>Installé − à l&#8217;instar de windows − le plugin en version 32 bits</li>
<li><a class="http" href="http://people.debian.org/%7Ebartm/flashplugin-nonfree/flashplugin-nonfree_10.1.53.64.1_amd64.deb">chrooter complètement son environnement</a> pour avoir un Firefox en 32 bits dans son environnement 64</li>
<li>Se passer de flash</li>
<li>Installer des alternatives : gnash,…</li>
</ul>
<p>Je vais retenir l&#8217;installation du plugin en version 32 bits.<br />
La méthode est entièrement décrite à l&#8217;adresse suivante : <a href="http://wiki.debian.org/FlashPlayer">http://wiki.debian.org/FlashPlayer</a> et plus particulièrement : <a href="http://wiki.debian.org/FlashPlayer#DebianTesting.27Squeeze.27amd64">« Installation sous Squeeze AMD64 »</a></p>
<p>Je cite : </p>
<p><quote></p>
<h4>Debian Testing &#8216;Squeeze&#8217; amd64</h4>
<p>Currently not supported by Adobe.  See the <a class="http" href="http://labs.adobe.com/technologies/flashplayer10/64bit.html">announcement by Adobe</a> and bug <a class="interwiki open-bug" href="http://bugs.debian.org/586273" title="Open in flashplugin-nonfree/1:2.8.1, flashplugin-nonfree/1:2.8: #586273: flashplugin-nonfree: useless on amd64">#586273</a>. </p>
<p>However, there is a workaround: </p>
<ol>
<li><code>aptitude install fakeroot binutils nspluginwrapper ia32-libs</code></li>
<li>Download and run this script: <a class="http" href="http://people.debian.org/%7Ebartm/flashplugin-nonfree/ia32-libs-workaround-499043-squeeze.sh">http://people.debian.org/~bartm/flashplugin-nonfree/ia32-libs-workaround-499043-squeeze.sh</a> </li>
<li><code>dpkg -i ia32-libs-workaround-499043_0.0.1+squeeze1_amd64.deb</code></li>
<li>Install this package: <a class="http" href="http://people.debian.org/%7Ebartm/flashplugin-nonfree/flashplugin-nonfree_10.1.53.64.1_amd64.deb">http://people.debian.org/~bartm/flashplugin-nonfree/flashplugin-nonfree_10.1.53.64.1_amd64.deb</a></li>
</ol>
<p>Note (21/08/2010) : Aller voir régulièrement à la page <a href="http://wiki.debian.org/FlashPlayer#DebianTesting.27Squeeze.27amd64">« Installation sous Squeeze AMD64 »</a>, les paquets et leur version changent de temps à autre ! </p>
<p>An entirely different approach is to install a browser and the 32 bit plugin in an i386 chroot as described in <a class="http" href="http://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html">the AMD64 HOWTO</a>.
</p>
<p></quote></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zapoyok.info/2010/08/01/installer-flash-sous-debian-testing-squeeze-amd64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Supprimer les tentatives d&#8217;accès à phpMyAdmin en utilisant fail2ban</title>
		<link>http://www.zapoyok.info/2010/07/30/supprimer-les-tentatives-dacces-a-phpmyadmin-en-utilisant-fail2ban/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=supprimer-les-tentatives-dacces-a-phpmyadmin-en-utilisant-fail2ban</link>
		<comments>http://www.zapoyok.info/2010/07/30/supprimer-les-tentatives-dacces-a-phpmyadmin-en-utilisant-fail2ban/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 03:24:54 +0000</pubDate>
		<dc:creator>Jérôme FIX</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Trucs et astuces]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bots]]></category>
		<category><![CDATA[fail2ban]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[sécurité]]></category>

		<guid isPermaLink="false">http://www.zapoyok.info/?p=283</guid>
		<description><![CDATA[Comme beaucoup de monde il m&#8217;arrive d&#8217;être « scanné » sur mon serveur Web pour accéder à phpMyAdmin ou en exploiter une faille. On trouve ce genre d&#8217;info dans les mails quotidiens généré par logwatch par exemple. --------------------- httpd Begin ------------------------ &#160; Requests with error response codes […] 404 Not Found /PMA/scripts/setup.php: 1 Time(s) /PMA2005/scripts/setup.php: [...]]]></description>
			<content:encoded><![CDATA[<p>Comme beaucoup de monde il m&#8217;arrive d&#8217;être « scanné » sur mon serveur Web pour accéder à phpMyAdmin ou en exploiter une faille.</p>
<p>On trouve ce genre d&#8217;info dans les mails quotidiens généré par <a href="http://logwatch.sourceforge.net/">logwatch</a> par exemple.</p>

<div class="wp_syntax"><div class="code"><pre class="log" style="font-family:monospace;">--------------------- httpd Begin ------------------------ 
&nbsp;
 Requests with error response codes
   […]
    404 Not Found
       /PMA/scripts/setup.php: 1 Time(s)
       /PMA2005/scripts/setup.php: 1 Time(s)
     […]
       /phpMyAdmin-2.3.0/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.3.1/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.3.2/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.3.3/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.3.4/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.3.5/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.3.6/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.3.7/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.3.8/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.3.9/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.4.0/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.4.1/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.4.2/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.4.3/scripts/setup.php: 1 Time(s)
       /phpMyAdmin-2.4.4/scripts/setup.php: 1 Time(s)
     […]
&nbsp;
 ---------------------- httpd End -------------------------</pre></div></div>

<p>Pour y remédier : </p>
<ul>
<li>Ne pas l&#8217;installer !</li>
<li>N&#8217;autoriser que certaines IPs à y accéder </li>
<li>Utiliser <a href="http://www.fail2ban.org">fail2ban</a> pour limiter et contrer l&#8217;effet des scans</li>
</ul>
<h3>Utilisation de <a href="http://www.fail2ban.org">fail2ban</a></h3>
<p>J,ai trouvé un script tout fait… alors pourquoi se compliquer la vie ! Il est disponible à l&#8217;adresse suivante : <a href="http://foosel.org/blog/2008/04/banning_phpmyadmin_bots_using_fail2ban">http://foosel.org/blog/2008/04/banning_phpmyadmin_bots_using_fail2ban</a>.</p>
<p>Je le reprend ci-dessous avec quelques adaptations :</p>
<p><code>/etc/fail2ban/filter.d/apache-phpmyadmin.conf</code></p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"># Fail2Ban configuration file
# Bans bots scanning for non-existing phpMyAdmin installations on your webhost.
#
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Definition<span style="">&#93;</span></span>
 # Option:  failregex
# Notes.:  Regexp to match often probed and not available phpmyadmin paths.
# Values:  TEXT
#
<span style="color: #000099;">failregex</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> <span style="color: #000066; font-weight:bold;"><span style="">&#91;</span><span style="">&#91;</span><span style="">&#93;</span>client &lt;HOST&gt;<span style="">&#91;</span><span style="">&#93;</span><span style="">&#93;</span></span> File does not exist: .*<span style="">&#40;</span>PMA|phpmyadmin|myadmin|mysql|mysqladmin|sqladmin|mypma|admin|xampp|mysqldb|mydb|db|pmadb|phpmyadmin1|myadmin2<span style="">&#41;</span></span>
&nbsp;
# Option:  ignoreregex
# Notes.:  regex to ignore. If this regex matches, the line is ignored.
# Values:  TEXT
#
<span style="color: #000099;">ignoreregex</span> <span style="color: #000066; font-weight:bold;">=</span></pre></div></div>

<p>Activer le filtre dans le fichier de configuration : <code>/etc/fail2ban/jail.conf</code> :</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>apache-phpmyadmin<span style="">&#93;</span></span>
<span style="color: #000099;">enabled</span>  <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> true</span>
<span style="color: #000099;">port</span>     <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> http,https</span>
<span style="color: #000099;">filter</span>   <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> apache-phpmyadmin</span>
<span style="color: #000099;">logpath</span>  <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> /var/log/apache/error.log</span>
<span style="color: #000099;">maxretry</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 3</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.zapoyok.info/2010/07/30/supprimer-les-tentatives-dacces-a-phpmyadmin-en-utilisant-fail2ban/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Utilisation de mysqlsniffer</title>
		<link>http://www.zapoyok.info/2010/05/21/utilisation-de-mysqlsniffer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=utilisation-de-mysqlsniffer</link>
		<comments>http://www.zapoyok.info/2010/05/21/utilisation-de-mysqlsniffer/#comments</comments>
		<pubDate>Fri, 21 May 2010 17:47:31 +0000</pubDate>
		<dc:creator>Jérôme FIX</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Programmation]]></category>
		<category><![CDATA[Trucs et astuces]]></category>
		<category><![CDATA[base de données]]></category>
		<category><![CDATA[libpcap]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqlsniffer]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[tcpdump]]></category>

		<guid isPermaLink="false">http://www.zapoyok.info/?p=154</guid>
		<description><![CDATA[But et utilité : Pour pouvoir − en temps réel − visualiser et analyser et/ou capturer les requêtes effectuées sur un serveur ce petit logiciel est quasiment indispensable. Il permet d&#8217;afficher en détails les requêtes effectuées, les résultats de ces dernières,… Il est disponible sur le site : http://hackmysql.com/mysqlsniffer Installation : Sous Debian, il faut [...]]]></description>
			<content:encoded><![CDATA[<h2>But et utilité :</h2>
<p>Pour pouvoir − en temps réel − visualiser et analyser et/ou capturer les requêtes effectuées sur un serveur ce petit logiciel est quasiment indispensable.<br />
Il permet d&#8217;afficher en détails les requêtes effectuées, les résultats de ces dernières,…</p>
<p>Il est disponible sur le site : <a href="http://hackmysql.com/mysqlsniffer" target="_blank">http://hackmysql.com/mysqlsniffer</a></p>
<h2>Installation :</h2>
<p>Sous Debian, il faut au préalable installer libpcap-dev : <code>aptitude install libpcap-dev</code>.<br />
Puis :</p>
<ol>
<li><code>mkdir </code><code>mysqlsniffer </code></li>
<li><code>cd mysqlsniffer </code></li>
<li><code>wget http://hackmysql.com/code/mysqlsniffer.tgz </code></li>
<li><code>tar zxvf mysqlsniffer.tgz </code></li>
<li><code>gcc -O2 -lpcap -o mysqlsniffer mysqlsniffer.c packet_handlers.c misc.c </code></li>
</ol>
<h2>Utilisation :</h2>
<p>Attention ! La connexion à « écouter » doit se faire en TCP, il faut mettre 127.0.0.1 au lieu de localhost dans la configuration du client pour avoir un résultat !</p>
<p>Ensuite il suffit de lancer la commande <code>mysqlsniffer</code> et de lire le résultat dans la console ou le stocker dans un fichier pour une analyse ultérieure.</p>
<h3>Exemple de dump :</h3>
<p>Une simple requête (SELECT) qui récupère des préférences : </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;">127<span style="color: #66cc66;">.</span>0<span style="color: #66cc66;">.</span>0<span style="color: #66cc66;">.</span>1<span style="color: #66cc66;">.</span>47254 <span style="color: #66cc66;">&gt;</span> server: ID <span style="color: #cc66cc;">0</span> len <span style="color: #cc66cc;">26</span> COM_QUERY: <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> preferences
server <span style="color: #66cc66;">&gt;</span> 127<span style="color: #66cc66;">.</span>0<span style="color: #66cc66;">.</span>0<span style="color: #66cc66;">.</span>1<span style="color: #66cc66;">.</span>47254: ID <span style="color: #cc66cc;">1</span> len <span style="color: #cc66cc;">1</span> <span style="color: #cc66cc;">6</span> <span style="color: #993333; font-weight: bold;">FIELDS</span>
        ID <span style="color: #cc66cc;">2</span> len <span style="color: #cc66cc;">76</span> <span style="color: #993333; font-weight: bold;">FIELD</span>: preferences<span style="color: #66cc66;">.</span>categorie <span style="color: #66cc66;">&lt;</span>type var string <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">509</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">SIZE</span> <span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&gt;</span>
        ID <span style="color: #cc66cc;">3</span> len <span style="color: #cc66cc;">66</span> <span style="color: #993333; font-weight: bold;">FIELD</span>: preferences<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">TYPE</span> <span style="color: #66cc66;">&lt;</span>type var string <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">509</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">SIZE</span> <span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&gt;</span>
        ID <span style="color: #cc66cc;">4</span> len <span style="color: #cc66cc;">62</span> <span style="color: #993333; font-weight: bold;">FIELD</span>: preferences<span style="color: #66cc66;">.</span>id <span style="color: #66cc66;">&lt;</span>type var string <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1021</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">SIZE</span> <span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&gt;</span>
        ID <span style="color: #cc66cc;">5</span> len <span style="color: #cc66cc;">82</span> <span style="color: #993333; font-weight: bold;">FIELD</span>: preferences<span style="color: #66cc66;">.</span>defaultvalue <span style="color: #66cc66;">&lt;</span>type <span style="color: #993333; font-weight: bold;">BLOB</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4604</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">SIZE</span> <span style="color: #cc66cc;">65535</span><span style="color: #66cc66;">&gt;</span>
        ID <span style="color: #cc66cc;">6</span> len <span style="color: #cc66cc;">68</span> <span style="color: #993333; font-weight: bold;">FIELD</span>: preferences<span style="color: #66cc66;">.</span>label <span style="color: #66cc66;">&lt;</span>type var string <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">509</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">SIZE</span> <span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&gt;</span>
        ID <span style="color: #cc66cc;">7</span> len <span style="color: #cc66cc;">80</span> <span style="color: #993333; font-weight: bold;">FIELD</span>: preferences<span style="color: #66cc66;">.</span>description <span style="color: #66cc66;">&lt;</span>type <span style="color: #993333; font-weight: bold;">BLOB</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">4604</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">SIZE</span> <span style="color: #cc66cc;">65535</span><span style="color: #66cc66;">&gt;</span>
        ID <span style="color: #cc66cc;">8</span> len <span style="color: #cc66cc;">5</span> <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #66cc66;">&lt;</span>warnings <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&gt;</span>
        ID <span style="color: #cc66cc;">9</span> len <span style="color: #cc66cc;">119</span> <span style="color: #66cc66;">||</span> diagnostic <span style="color: #66cc66;">|</span> text <span style="color: #66cc66;">|</span> departement_favori <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">57</span> <span style="color: #66cc66;">|</span> Département par défaut <span style="color: #66cc66;">|</span> Doit être un des départements français <span style="color: #66cc66;">&#40;</span>format numérique<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">||</span>
        ID <span style="color: #cc66cc;">10</span> len <span style="color: #cc66cc;">49</span> <span style="color: #66cc66;">||</span> synchro <span style="color: #66cc66;">|</span> text <span style="color: #66cc66;">|</span> login <span style="color: #66cc66;">|</span> XXX <span style="color: #66cc66;">|</span> Votre compte utilisateur <span style="color: #66cc66;">|</span>  <span style="color: #66cc66;">||</span>
        ID <span style="color: #cc66cc;">11</span> len <span style="color: #cc66cc;">61</span> <span style="color: #66cc66;">||</span> divers <span style="color: #66cc66;">|</span> text <span style="color: #66cc66;">|</span> nb_clients_par_page <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">30</span> <span style="color: #66cc66;">|</span> Nombre de clients listés <span style="color: #66cc66;">|</span>  <span style="color: #66cc66;">||</span> 
        ID <span style="color: #cc66cc;">12</span> len <span style="color: #cc66cc;">61</span> <span style="color: #66cc66;">||</span> divers <span style="color: #66cc66;">|</span> text <span style="color: #66cc66;">|</span> nb_projets_par_page <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">30</span> <span style="color: #66cc66;">|</span> Nombre de projets listés <span style="color: #66cc66;">|</span>  <span style="color: #66cc66;">||</span>
        ID <span style="color: #cc66cc;">13</span> len <span style="color: #cc66cc;">48</span> <span style="color: #66cc66;">||</span> synchro <span style="color: #66cc66;">|</span> String <span style="color: #66cc66;">|</span> password <span style="color: #66cc66;">|</span> XXX <span style="color: #66cc66;">|</span> Votre mot de passe <span style="color: #66cc66;">|</span>  <span style="color: #66cc66;">||</span>
        ID <span style="color: #cc66cc;">14</span> len <span style="color: #cc66cc;">66</span> <span style="color: #66cc66;">||</span> diagnostic <span style="color: #66cc66;">|</span> text <span style="color: #66cc66;">|</span> rapport_pcs_2_m3 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">10.6</span> <span style="color: #66cc66;">|</span> Taux de conversion PCS<span style="color: #66cc66;">-&gt;</span>M3 <span style="color: #66cc66;">|</span>  <span style="color: #66cc66;">||</span>
        ID <span style="color: #cc66cc;">15</span> len <span style="color: #cc66cc;">60</span> <span style="color: #66cc66;">||</span> synchro <span style="color: #66cc66;">|</span> text <span style="color: #66cc66;">|</span> sapid <span style="color: #66cc66;">|</span> xxx <span style="color: #66cc66;">|</span> Votre identifiant de compte <span style="color: #66cc66;">&#40;</span>SAPID<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">|</span>  <span style="color: #66cc66;">||</span>
        ID <span style="color: #cc66cc;">16</span> len <span style="color: #cc66cc;">5</span> <span style="color: #993333; font-weight: bold;">END</span> <span style="color: #66cc66;">&lt;</span>warnings <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

<h2>Une autre façon de récupérer toutes les requêtes exécutées sur le serveur en écoute : <strong>TCPDUMP</strong></h2>
<p>Cette méthode ne permet pas de récupérer les infos complètes</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">tcpdump <span style="color: #660033;">-i</span> lo <span style="color: #660033;">-s</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-l</span> <span style="color: #660033;">-w</span> - dst port <span style="color: #000000;">3306</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">strings</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'
while(&amp;lt;&amp;gt;) { chomp; next if /^[^ ]+[ ]*$/;
if(/^(SELECT|UPDATE|DELETE|INSERT|SET|COMMIT|ROLLBACK|CREATE|DROP|ALTER|SHOW)/i) {
if (defined $q) { print &quot;$q\n&quot;; }
$q=$_;
} else {
$_ =~ s/^[ \t]+//; $q.=&quot; $_&quot;;
}
}'</span></pre></td></tr></table></div>

<p>On peut trouver de nombreux autres outils pour MYSQL sur le site : <a href="http://hackmysql.com/tools" lang="en">http://hackmysql.com/tools</a> avec notamment <a href="http://hackmysql.com/mysqlreport" lang="en">mysqlreport</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zapoyok.info/2010/05/21/utilisation-de-mysqlsniffer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Orange et blocage du port 25 (smtp) pour éviter les serveurs de mails zombie</title>
		<link>http://www.zapoyok.info/2007/10/16/orange-et-blocage-du-port-25-smtp-pour-eviter-les-serveurs-de-mails-zombie/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=orange-et-blocage-du-port-25-smtp-pour-eviter-les-serveurs-de-mails-zombie</link>
		<comments>http://www.zapoyok.info/2007/10/16/orange-et-blocage-du-port-25-smtp-pour-eviter-les-serveurs-de-mails-zombie/#comments</comments>
		<pubDate>Tue, 16 Oct 2007 09:16:00 +0000</pubDate>
		<dc:creator>Jérôme FIX</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://devel.zapoyok.dnsalias.com/2007/10/16/orange-et-blocage-du-port-25-smtp-pour-eviter-les-serveurs-de-mails-zombie/</guid>
		<description><![CDATA[Comme on peut le remarquer depuis le début de l&#8217;été, Orange bloque les autres serveurs SMTP que le leur en sortie [1]. Résultat : obligation d&#8217;utiliser smtp.orange.fr et pas moyen d&#8217;utiliser son propre serveur SMTP. Moyen souvent trouvé sur Internet : changer le port de votre serveur SMTP perso, c&#8217;est possible mais bon ! Ce [...]]]></description>
			<content:encoded><![CDATA[<p>Comme on peut le remarquer depuis le début de l&#8217;été, Orange bloque les autres serveurs SMTP que le leur en sortie [1]. Résultat : obligation d&#8217;utiliser smtp.orange.fr et pas moyen d&#8217;utiliser son propre serveur SMTP.</p>
<p>Moyen souvent trouvé sur Internet : changer le port de votre serveur SMTP perso, c&#8217;est possible mais bon !</p>
<p>Ce que je vous propose c&#8217;est d&#8217;adapter Postfix pour faire transiter tous les mails sortants de votre machine par le serveur smtp d&#8217;Orange. Ainsi tout le monde est content :</p>
<ul>
<li>Moi : je peux continuer à utiliser mon serveur local pour envoyer mes mails</li>
<li>Orange : mes mails passent par chez eu. de toute façon à un moment ou à un autre mes mails passent par leurs tuyaux.</li>
</ul>
<p>La méthode sous Postfix est vraiment simpliste :</p>
<h3>/etc/postfix/main.cf</h3>
<p> <code> relayhost = smtp.orange.fr<br/> smtp_sasl_auth_enable = yes<br/> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd<br/> smtp_sasl_security_options = </code><br />
<h3>/etc/postfix/sasl_passwd</h3>
<p> <code>smtp.orange.fr &lt;votre login&gt;:&lt;votre mot de passe&gt;   </code>
<p>On finalise en générant le sasl_passwd.db avec la commande :  <code>postmap /etc/postfix/sasl_passwd</code></p>
<p>[1] <a href="http://www.pcinpact.com/actu/news/37290-Orange-port-25-blocage-spams-pc-zombies.htm" target="_blank">http://www.pcinpact.com/actu/news/37290-Orange-port-25-blocage-spams-pc-zombies.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zapoyok.info/2007/10/16/orange-et-blocage-du-port-25-smtp-pour-eviter-les-serveurs-de-mails-zombie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compilation du noyau à la sauce Debian</title>
		<link>http://www.zapoyok.info/2006/02/18/compilation-du-noyau-a-la-sauce-debian/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=compilation-du-noyau-a-la-sauce-debian</link>
		<comments>http://www.zapoyok.info/2006/02/18/compilation-du-noyau-a-la-sauce-debian/#comments</comments>
		<pubDate>Sat, 18 Feb 2006 18:10:00 +0000</pubDate>
		<dc:creator>Jérôme FIX</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://devel.zapoyok.dnsalias.com/2006/02/18/compilation-du-noyau-a-la-sauce-debian/</guid>
		<description><![CDATA[fakeroot make-kpkg clean fakeroot make-kpkg --revision nom_de_la_machine_cible.numéro_de_version kernel_image fakeroot make-kpkg --added_modules=truc --added_patches=bordel --revision 0 linux-h.y.u puis un simple : sudo dpkg -i kernel-image-2.6.X_nom_de_la_machine_cible.numéro_de_version_amd64.deb Quelques liens : http://www.us.debian.org/doc/manuals/reference/ch-kernel.fr.html http://people.via.ecp.fr/~alexis/formation-linux/config-noyau.html Journal de ianux: de la compilation du noyau]]></description>
			<content:encoded><![CDATA[<p><code> fakeroot make-kpkg clean<br /> fakeroot make-kpkg --revision nom_de_la_machine_cible.numéro_de_version kernel_image<br /> fakeroot make-kpkg --added_modules=truc --added_patches=bordel --revision 0 linux-h.y.u </code>
<p>puis un simple :</p>
<p> <code>sudo dpkg -i kernel-image-2.6.X_nom_de_la_machine_cible.numéro_de_version_amd64.deb</code>
<p>Quelques liens  :</p>
<ul>
<li><a href="http://www.us.debian.org/doc/manuals/reference/ch-kernel.fr.html" target="_blank">http://www.us.debian.org/doc/manuals/reference/ch-kernel.fr.html</a></li>
<li><a href="http://www.debian-fr.org/article/articleview/14/1/2/" target="_blank">http://people.via.ecp.fr/~alexis/formation-linux/config-noyau.html</a></li>
<li><a href="http://linuxfr.org/%7Eianux/7535.html" target="_blank">Journal de ianux: de la compilation du noyau</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.zapoyok.info/2006/02/18/compilation-du-noyau-a-la-sauce-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix &#8211; Amavis &#8211; Clamav</title>
		<link>http://www.zapoyok.info/2006/01/01/postfix-amavis-clamav/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=postfix-amavis-clamav</link>
		<comments>http://www.zapoyok.info/2006/01/01/postfix-amavis-clamav/#comments</comments>
		<pubDate>Sun, 01 Jan 2006 18:10:00 +0000</pubDate>
		<dc:creator>Jérôme FIX</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://devel.zapoyok.dnsalias.com/2006/01/01/postfix-amavis-clamav/</guid>
		<description><![CDATA[Quelques liens +/- utiles pour l&#8217;installation, la configuration et la sécurisation du trio Postfix/Amavis/Clamav http://www.gcolpart.com/howto/mail.php4 http://frlinux.net/?section=reseau&#38;article=106 http://www.e-glop.net/howtos/antivirus-mail.xhtml Tutorial sur la sécurisation d&#8217;un serveur postfix : http://security-labs.org/index.php3?page=413 Mise en place d&#8217;un système de messagerie multidomaine avec postfix http://www.gentoo.org/doc/fr/virt-mail-howto.xml http://www.howtoforge.com/virtual_postfix_mysql_quota_courier http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System Permettre à Postfix de faire du RelayHost avec Orange.fr Mise en place du fichier contenant le [...]]]></description>
			<content:encoded><![CDATA[<h3>Quelques liens +/- utiles pour l&#8217;installation, la configuration et la sécurisation du trio Postfix/Amavis/Clamav</h3>
<ul>
<li><a href="http://www.gcolpart.com/howto/mail.php4">http://www.gcolpart.com/howto/mail.php4</a></li>
<li><a href="http://frlinux.net/?section=reseau&amp;article=106">http://frlinux.net/?section=reseau&amp;article=106</a></li>
<li><a href="http://www.e-glop.net/howtos/antivirus-mail.xhtml">http://www.e-glop.net/howtos/antivirus-mail.xhtml</a></li>
<li>Tutorial sur la sécurisation d&#8217;un serveur postfix : <a href="http://security-labs.org/index.php3?page=413">http://security-labs.org/index.php3?page=413</a></li>
</ul>
<h3>Mise en place d&#8217;un système de messagerie multidomaine avec postfix</h3>
<ul>
<li><a href="http://www.gentoo.org/doc/fr/virt-mail-howto.xml" target="_blank">http://www.gentoo.org/doc/fr/virt-mail-howto.xml</a></li>
<li><a href="http://www.howtoforge.com/virtual_postfix_mysql_quota_courier" target="_blank">http://www.howtoforge.com/virtual_postfix_mysql_quota_courier</a></li>
<li><a href="http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System" target="_blank">http://gentoo-wiki.com/HOWTO_Email:_A_Complete_Virtual_System</a></li>
</ul>
<h3>Permettre à Postfix de faire du RelayHost avec Orange.fr</h3>
<ul>
<li>Mise en place du fichier contenant le login /mot de passe pour le smtp.orange.fr. Pour cela on crée le fichier  /etc/postfix/sasl_passwd de la manière suivante :<code>mail.ispserver.com    username:password</code></li>
<li>Comme le fichier contient le mot de passe en clair, on s&#8217;arrange pour qu&#8217;il ne soit pas lisible par tous : <code>chown root:root /etc/postfix/sasl_passwd chmod 600 /etc/postfix/sasl_passwd</code></li>
<li><code>postmap /etc/postfix/sasl_passwd</code></li>
<li>Finalement on indique à Postfix dans le fichier /etc/postfix/main.cf de relayer les mails par le relais ainsi préparé :<code> relayhost = mail.ispserver.com smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = </code></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.zapoyok.info/2006/01/01/postfix-amavis-clamav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

