<?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>David Hrbáč</title>
	<atom:link href="http://www.hrbac.cz/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hrbac.cz</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 17 Jan 2012 21:43:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Firefox and Thunderbird repositories for Ubuntu 10.10</title>
		<link>http://www.hrbac.cz/2012/01/firefox-and-thunderbird-repositories-for-ubuntu-10-10/</link>
		<comments>http://www.hrbac.cz/2012/01/firefox-and-thunderbird-repositories-for-ubuntu-10-10/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 21:43:41 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=359</guid>
		<description><![CDATA[sudo add-apt-repository ppa:mozillateam/firefox-stable sudo add-apt-repository ppa:mozillateam/thunderbird-stable]]></description>
			<content:encoded><![CDATA[<p><code>sudo add-apt-repository ppa:mozillateam/firefox-stable<br />
sudo add-apt-repository ppa:mozillateam/thunderbird-stable<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2012/01/firefox-and-thunderbird-repositories-for-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add line to the top of files with sed</title>
		<link>http://www.hrbac.cz/2011/10/add-line-to-the-top-of-files-with-sed/</link>
		<comments>http://www.hrbac.cz/2011/10/add-line-to-the-top-of-files-with-sed/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 15:20:21 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=354</guid>
		<description><![CDATA[One-liner to add line at the beginning of the file(s). find mirrors-* -exec sed -i 1i'http://webmel53.vsb.cz/hrb33/el$releasever/hrb/stable/$basearch/' &#123;&#125; \;]]></description>
			<content:encoded><![CDATA[<p>One-liner to add line at the beginning of the file(s).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> mirrors-<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> 1i<span style="color: #ff0000;">'http://webmel53.vsb.cz/hrb33/el$releasever/hrb/stable/$basearch/'</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2011/10/add-line-to-the-top-of-files-with-sed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ssh complains host id has been changed</title>
		<link>http://www.hrbac.cz/2011/10/ssh-complains-host-id-has-been-changed/</link>
		<comments>http://www.hrbac.cz/2011/10/ssh-complains-host-id-has-been-changed/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 10:30:04 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=350</guid>
		<description><![CDATA[There are situations when host id might be changed a few times during fast, automatic, and massive host deployment. Ssh client begins to complain on changed host id. &#91;root@builder2 ~&#93;# ssh webmel53 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping [...]]]></description>
			<content:encoded><![CDATA[<p>There are situations when host id might be changed a few times during fast, automatic, and massive host deployment. Ssh client begins to complain on changed host id.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>builder2 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ssh webmel53</span>
<span style="color: #000000; font-weight: bold;">@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</span>
<span style="color: #000000; font-weight: bold;">@</span>    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED<span style="color: #000000; font-weight: bold;">!</span>     <span style="color: #000000; font-weight: bold;">@</span>
<span style="color: #000000; font-weight: bold;">@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</span>
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY<span style="color: #000000; font-weight: bold;">!</span>
Someone could be eavesdropping on you right now <span style="color: #7a0874; font-weight: bold;">&#40;</span>man-in-the-middle attack<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">!</span>
It is also possible that the RSA host key has just been changed.
The fingerprint <span style="color: #000000; font-weight: bold;">for</span> the RSA key sent by the remote host is
7f:<span style="color: #000000;">14</span>:<span style="color: #000000;">74</span>:<span style="color: #000000;">68</span>:ca:9e:e2:ec:1c:<span style="color: #000000;">44</span>:8c:ea:<span style="color: #000000;">29</span>:a9:<span style="color: #000000;">84</span>:<span style="color: #000000;">60</span>.
Please contact your system administrator.
Add correct host key <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>known_hosts to get rid of this message.
Offending key <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>known_hosts:<span style="color: #000000;">80</span>
RSA host key <span style="color: #000000; font-weight: bold;">for</span> webmel53 has changed and you have requested strict checking.
Host key verification failed.</pre></div></div>

<p>Quick and easy step follows:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>builder2 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ssh-keygen -R !$</span>
<span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-R</span> webmel53
<span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>known_hosts updated.
Original contents retained <span style="color: #c20cb9; font-weight: bold;">as</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>known_hosts.old</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2011/10/ssh-complains-host-id-has-been-changed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove sw raid for VMware Converter to work</title>
		<link>http://www.hrbac.cz/2011/09/how-to-remove-sw-raid-for-vmware-converter-to-work/</link>
		<comments>http://www.hrbac.cz/2011/09/how-to-remove-sw-raid-for-vmware-converter-to-work/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 06:53:53 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=333</guid>
		<description><![CDATA[VMWare converter is very powerful tool to provide physical to virtual conversion. It&#8217;s quite easy to make P2V of Windows base servers. The last versions of VMware Converter claim to support P2V of Linux based servers. This is true, but there are limits. Linux server running sw raid (mdadm) is one of them. Here is [...]]]></description>
			<content:encoded><![CDATA[<p>VMWare converter is very powerful tool to provide physical to virtual conversion. It&#8217;s quite easy to make P2V of Windows base servers. The last versions of VMware Converter claim to support P2V of Linux based servers. This is true, but there are limits. Linux server running sw raid (mdadm) is one of them.</p>
<p>Here is breif HOWTO:</p>
<ul>
<li>stop all important services</li>
<li>disable these services</li>
<li>break the mirror</li>
<li>strip mdadm info from the disk</li>
<li>change the partition type from fd (Linux raid auto) to 83 (Linux)</li>
<li>chroot into single disk instance</li>
<li>rename mdadm.conf</li>
<li>edit fstab to replace root mountpoint to /dev/sdX</li>
<li>config the grub to point to /dev/sdX</li>
<li>build new initrd</li>
<li>poweroff source server</li>
<li>remove the proper disk</li>
<li>boot up with one disk only</li>
</ul>
<p>These are the steps we performed on SUSE 10 server:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sles10:~ <span style="color: #666666; font-style: italic;"># service oracle-xe stop</span>
...
sles10:~ <span style="color: #666666; font-style: italic;"># chkconfig oracle-xe off</span>
...
sles10:~ <span style="color: #666666; font-style: italic;"># mdadm --fail /dev/md0 /dev/sdb1</span>
sles10:~ <span style="color: #666666; font-style: italic;"># mdadm --remove /dev/md0 /dev/sdb1</span>
sles10:~ <span style="color: #666666; font-style: italic;"># mdadm --zero-superblock /dev/sdb1</span>
sles10:~ <span style="color: #666666; font-style: italic;"># fdisk /dev/sdb</span>
sles10:~ <span style="color: #666666; font-style: italic;"># mount /dev/sdb1 /mnt/</span>
sles10:~ <span style="color: #666666; font-style: italic;"># mv /etc/mdadm.conf{,.old}</span>
sles10:~ <span style="color: #666666; font-style: italic;"># chroot /mnt/</span>
sles10:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;"># vim /etc/fstab</span>
sles10:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;"># vim boot/grub/menu.lst</span>
sles10:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;"># mkinitrd</span>
sles10:~ <span style="color: #666666; font-style: italic;"># poweroff</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2011/09/how-to-remove-sw-raid-for-vmware-converter-to-work/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ESX Error 15</title>
		<link>http://www.hrbac.cz/2011/04/esx-error-15/</link>
		<comments>http://www.hrbac.cz/2011/04/esx-error-15/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 09:10:13 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=306</guid>
		<description><![CDATA[Esx 4.0/4.1 might be not able to boot after reboot. It happens after update installation. Esx console says: Filesystem type is ext2fs, partition type 0x83 uppermem 819200 kernel /vmlinuz ro root=UUID=ceadc074-b397-adcb-7b7604a8ab4a mem=800M quiet &#91;Linux-bzImage, setup-0x1e00, size=0x179cdc&#93; initrd /initrd.img &#160; Error 15: File not found &#160; Press any key to continue... Console snapshot: Quick look at [...]]]></description>
			<content:encoded><![CDATA[<p>Esx 4.0/4.1 might be not able to boot after reboot. It happens after update installation. Esx console says:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Filesystem <span style="color: #7a0874; font-weight: bold;">type</span> is ext2fs, partition <span style="color: #7a0874; font-weight: bold;">type</span> 0x83
uppermem <span style="color: #000000;">819200</span>
kernel <span style="color: #000000; font-weight: bold;">/</span>vmlinuz ro <span style="color: #007800;">root</span>=<span style="color: #007800;">UUID</span>=ceadc074-b397-adcb-7b7604a8ab4a <span style="color: #007800;">mem</span>=800M quiet
<span style="color: #7a0874; font-weight: bold;">&#91;</span>Linux-bzImage, setup-0x1e00, <span style="color: #007800;">size</span>=0x179cdc<span style="color: #7a0874; font-weight: bold;">&#93;</span>
initrd <span style="color: #000000; font-weight: bold;">/</span>initrd.img
&nbsp;
Error <span style="color: #000000;">15</span>: File not found
&nbsp;
Press any key to continue...</pre></div></div>

<p>Console snapshot:<br />
<a href="http://www.hrbac.cz/blog/wp-content/error15.png"><img src="http://www.hrbac.cz/blog/wp-content/error15.png" alt="" title="error15" width="630" height="260" class="alignnone size-full wp-image-314" /></a></p>
<p>Quick look at usage space:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>esx8 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># df -h</span>
Filesystem            Size  Used Avail Use<span style="color: #000000; font-weight: bold;">%</span> Mounted on
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5             4.9G  1.8G  2.9G  <span style="color: #000000;">38</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2             2.0G   97M  1.8G   <span style="color: #000000;">6</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p1      99M   91M  2.9M  <span style="color: #000000;">97</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>boot
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p2     4.9G  1.6G  3.1G  <span style="color: #000000;">34</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>esx3-installation
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p1      99M   91M  2.9M  <span style="color: #000000;">97</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>esx3-installation<span style="color: #000000; font-weight: bold;">/</span>boot
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p6     2.0G  114M  1.8G   <span style="color: #000000;">7</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>esx3-installation<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log</pre></div></div>

<p>There are still esx3 files remaining. This box has been upgraded from esx 3.x to esx 4.0. We can easily remove the old stuff with cleanup-esx3.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>esx8 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># cleanup-esx3</span>
Are you sure you want to remove ESX v3 references and files? <span style="color: #7a0874; font-weight: bold;">&#40;</span>y<span style="color: #000000; font-weight: bold;">/</span>N<span style="color: #7a0874; font-weight: bold;">&#41;</span> y
Cleanup of ESX v3 successful.  Please reboot your system.
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>esx8 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># df -h</span>
Filesystem            Size  Used Avail Use<span style="color: #000000; font-weight: bold;">%</span> Mounted on
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5             4.9G  1.8G  2.9G  <span style="color: #000000;">38</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2             2.0G   97M  1.8G   <span style="color: #000000;">6</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p1      99M   64M   30M  <span style="color: #000000;">69</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>boot
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p2     4.9G  1.6G  3.1G  <span style="color: #000000;">34</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>esx3-installation
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p1      99M   64M   30M  <span style="color: #000000;">69</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>esx3-installation<span style="color: #000000; font-weight: bold;">/</span>boot
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p6     2.0G  114M  1.8G   <span style="color: #000000;">7</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>esx3-installation<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>esx8 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>Patrition table looks like that after the reboot.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>esx8 ~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># df -h</span>
Filesystem            Size  Used Avail Use<span style="color: #000000; font-weight: bold;">%</span> Mounted on
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sds5             4.9G  1.8G  2.9G  <span style="color: #000000;">38</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sds2             2.0G   89M  1.8G   <span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cciss<span style="color: #000000; font-weight: bold;">/</span>c0d0p1      99M   83M   12M  <span style="color: #000000;">89</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>boot</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2011/04/esx-error-15/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Text_CAPTCHA_Numeral bugs</title>
		<link>http://www.hrbac.cz/2011/01/284/</link>
		<comments>http://www.hrbac.cz/2011/01/284/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 13:38:59 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=284</guid>
		<description><![CDATA[There are two bugs in Text_CAPTCHA_Numeral Pear Module. Here is the patch. diff -Nuar Text_CAPTCHA_Numeral-1.3.0.ok/php-pear-Text-CAPTCHA-Numeral.xml Text_CAPTCHA_Numeral-1.3.0/php-pear-Text-CAPTCHA-Numeral.xml --- Text_CAPTCHA_Numeral-1.3.0.ok/php-pear-Text-CAPTCHA-Numeral.xml 2010-10-24 04:16:40.000000000 +0200 +++ Text_CAPTCHA_Numeral-1.3.0/php-pear-Text-CAPTCHA-Numeral.xml 2010-11-18 23:15:05.000000000 +0100 @@ -43,7 +43,7 @@ &#60;file baseinstalldir=&#34;Text&#34; md5sum=&#34;1b16ce634831d571c8ba2e5819aaf6f9&#34; name=&#34;tests/captchanumeral.answerisok.phpt&#34; role=&#34;test&#34; /&#62; &#60;file baseinstalldir=&#34;Text&#34; md5sum=&#34;33de4b4f24e52c2e2ff35645cf1b4e51&#34; name=&#34;tests/captchanumeral.firstandsecond.phpt&#34; role=&#34;test&#34; /&#62; &#60;file baseinstalldir=&#34;Text&#34; md5sum=&#34;2f4a58be0ef33a4a112b265c0eb0b5dd&#34; name=&#34;tests/captchanumeral.operator.phpt&#34; role=&#34;test&#34; /&#62; - &#60;file baseinstalldir=&#34;/&#34; md5sum=&#34;554c5a360fb6efe189bdb8e73b2e2e70&#34; name=&#34;Text/CAPTCHA/Numeral.php&#34; role=&#34;php&#34; /&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>There are two bugs in <a href="http://pear.php.net/package/Text_CAPTCHA_Numeral">Text_CAPTCHA_Numeral</a> Pear Module. Here is the <a href="http://www.hrbac.cz/blog/wp-content/Text-CAPTCHA-Numeral-setOperation.txt">patch</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">diff <span style="color: #339933;">-</span>Nuar Text_CAPTCHA_Numeral<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>3<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>ok<span style="color: #339933;">/</span>php<span style="color: #339933;">-</span>pear<span style="color: #339933;">-</span>Text<span style="color: #339933;">-</span>CAPTCHA<span style="color: #339933;">-</span>Numeral<span style="color: #339933;">.</span>xml Text_CAPTCHA_Numeral<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>3<span style="color: #339933;">.</span>0<span style="color: #339933;">/</span>php<span style="color: #339933;">-</span>pear<span style="color: #339933;">-</span>Text<span style="color: #339933;">-</span>CAPTCHA<span style="color: #339933;">-</span>Numeral<span style="color: #339933;">.</span>xml
<span style="color: #339933;">---</span> Text_CAPTCHA_Numeral<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>3<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>ok<span style="color: #339933;">/</span>php<span style="color: #339933;">-</span>pear<span style="color: #339933;">-</span>Text<span style="color: #339933;">-</span>CAPTCHA<span style="color: #339933;">-</span>Numeral<span style="color: #339933;">.</span>xml	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">24</span> <span style="color: #208080;">04</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">16</span><span style="color: #339933;">:</span><span style="color:#800080;">40.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0200</span>
<span style="color: #339933;">+++</span> Text_CAPTCHA_Numeral<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>3<span style="color: #339933;">.</span>0<span style="color: #339933;">/</span>php<span style="color: #339933;">-</span>pear<span style="color: #339933;">-</span>Text<span style="color: #339933;">-</span>CAPTCHA<span style="color: #339933;">-</span>Numeral<span style="color: #339933;">.</span>xml	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">18</span> <span style="color: #cc66cc;">23</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">15</span><span style="color: #339933;">:</span><span style="color:#800080;">05.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">43</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">43</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span> <span style="color: #339933;">@@</span>
    <span style="color: #339933;">&lt;</span>file baseinstalldir<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Text&quot;</span> md5sum<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1b16ce634831d571c8ba2e5819aaf6f9&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tests/captchanumeral.answerisok.phpt&quot;</span> role<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;test&quot;</span> <span style="color: #339933;">/&gt;</span>
    <span style="color: #339933;">&lt;</span>file baseinstalldir<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Text&quot;</span> md5sum<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;33de4b4f24e52c2e2ff35645cf1b4e51&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tests/captchanumeral.firstandsecond.phpt&quot;</span> role<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;test&quot;</span> <span style="color: #339933;">/&gt;</span>
    <span style="color: #339933;">&lt;</span>file baseinstalldir<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Text&quot;</span> md5sum<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;2f4a58be0ef33a4a112b265c0eb0b5dd&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tests/captchanumeral.operator.phpt&quot;</span> role<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;test&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">-</span>   <span style="color: #339933;">&lt;</span>file baseinstalldir<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/&quot;</span> md5sum<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;554c5a360fb6efe189bdb8e73b2e2e70&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Text/CAPTCHA/Numeral.php&quot;</span> role<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;php&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">+</span>   <span style="color: #339933;">&lt;</span>file baseinstalldir<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/&quot;</span> md5sum<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;e12804274c4e51bed45b706a49f0efa4&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Text/CAPTCHA/Numeral.php&quot;</span> role<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;php&quot;</span> <span style="color: #339933;">/&gt;</span>
    <span style="color: #339933;">&lt;</span>file baseinstalldir<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/&quot;</span> md5sum<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;72851c7bf12ba07412098a83592aee0b&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Text/CAPTCHA/Numeral/NumeralInterface.php&quot;</span> role<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;php&quot;</span> <span style="color: #339933;">/&gt;</span>
   <span style="color: #339933;">&lt;/</span>dir<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>contents<span style="color: #339933;">&gt;</span>
diff <span style="color: #339933;">-</span>Nuar Text_CAPTCHA_Numeral<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>3<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>ok<span style="color: #339933;">/</span>Text<span style="color: #339933;">/</span>CAPTCHA<span style="color: #339933;">/</span>Numeral<span style="color: #339933;">.</span>php Text_CAPTCHA_Numeral<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>3<span style="color: #339933;">.</span>0<span style="color: #339933;">/</span>Text<span style="color: #339933;">/</span>CAPTCHA<span style="color: #339933;">/</span>Numeral<span style="color: #339933;">.</span>php
<span style="color: #339933;">---</span> Text_CAPTCHA_Numeral<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>3<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>ok<span style="color: #339933;">/</span>Text<span style="color: #339933;">/</span>CAPTCHA<span style="color: #339933;">/</span>Numeral<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">24</span> <span style="color: #208080;">04</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">16</span><span style="color: #339933;">:</span><span style="color:#800080;">39.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0200</span>
<span style="color: #339933;">+++</span> Text_CAPTCHA_Numeral<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>3<span style="color: #339933;">.</span>0<span style="color: #339933;">/</span>Text<span style="color: #339933;">/</span>CAPTCHA<span style="color: #339933;">/</span>Numeral<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">18</span> <span style="color: #cc66cc;">23</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">13</span><span style="color: #339933;">:</span><span style="color:#800080;">58.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">355</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">355</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span> <span style="color: #339933;">@@</span>
      <span style="color: #339933;">*/</span>
     <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">function</span> setOperation<span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
     <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">-</span>        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">stristr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'F'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">stristr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'F'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
             <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">operation</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFirstNumber</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">operator</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
             <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">operation</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFirstNumber</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span> <span style="color: #339933;">.</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">514</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">514</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">15</span> <span style="color: #339933;">@@</span>
                 <span style="color: #339933;">-&gt;</span><span style="color: #004000;">setSecondNumber</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$first</span><span style="color: #009900;">&#41;</span>
                 <span style="color: #339933;">-&gt;</span><span style="color: #004000;">setOperation</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">+</span>        <span style="color: #009933; font-style: italic;">/**
+        * Get rid of problematic zero result
+        */</span>
<span style="color: #339933;">+</span>        <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$first</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$second</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>            <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setFirstNumber</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$first</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">+</span>                 <span style="color: #339933;">-&gt;</span><span style="color: #004000;">setSecondNumber</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$second</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">+</span>                 <span style="color: #339933;">-&gt;</span><span style="color: #004000;">setOperation</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>        <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">+</span>
&nbsp;
         <span style="color: #000088;">$answer</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFirstNumber</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSecondNumber</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setAnswer</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$answer</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2011/01/284/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNSBL for Horde</title>
		<link>http://www.hrbac.cz/2011/01/dnsbl-for-horde/</link>
		<comments>http://www.hrbac.cz/2011/01/dnsbl-for-horde/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 09:57:46 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[horde]]></category>
		<category><![CDATA[mailing]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=275</guid>
		<description><![CDATA[Here we go with a small patch to implement DNSBL for Horde. I have again used PEAR package, this time it is the Net_DNSBL, and as usually CentOS package is in my repos &#8211; http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Net-DNSBL.html. The first patch is the important one. We let the attacker to log in, just to make sure he/she owns [...]]]></description>
			<content:encoded><![CDATA[<p>Here we go with a small patch to implement <a href="http://en.wikipedia.org/wiki/DNSBL" target="_blank">DNSBL</a> for Horde. I have again used PEAR package, this time it is the <a href="http://pear.php.net/package/Net_DNSBL" target="_blank">Net_DNSBL</a>, and as usually CentOS package is in my repos &#8211; <a href="http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Net-DNSBL.html" target="_blank">http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Net-DNSBL.html</a>.</p>
<p>The first patch is the important one. We let the attacker to log in, just to make sure he/she owns valid stolen credentials.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">---</span> imp<span style="color: #339933;">/</span>lib<span style="color: #339933;">/</span>Auth<span style="color: #339933;">/</span>imp<span style="color: #339933;">.</span>php<span style="color: #339933;">.</span>orig   <span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">05</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">21</span><span style="color: #339933;">:</span><span style="color:#800080;">05.224155622</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">+++</span> imp<span style="color: #339933;">/</span>lib<span style="color: #339933;">/</span>Auth<span style="color: #339933;">/</span>imp<span style="color: #339933;">.</span>php        <span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">05</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">39</span><span style="color: #339933;">:</span><span style="color:#800080;">24.699438519</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">146</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">146</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">36</span> <span style="color: #339933;">@@</span>
             <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">+</span>        <span style="color: #666666; font-style: italic;"># DNSBL START
</span><span style="color: #339933;">+</span>        <span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #339933;">,</span> <span style="color: #990000;">ini_get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">':/usr/share/php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>        <span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Net/DNSBL.php'</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>        <span style="color: #000088;">$dnsbl</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Net_DNSBL<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>        <span style="color: #666666; font-style: italic;">#$remoteIP = '41.206.12.1';
</span><span style="color: #339933;">+</span>        <span style="color: #000088;">$remoteIP</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>        <span style="color: #000088;">$dnsbl</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>setBlacklists<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #339933;">+</span>                <span style="color: #0000ff;">'sbl-xbl.spamhaus.org'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>                <span style="color: #0000ff;">'bl.spamcop.net'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>                <span style="color: #0000ff;">'b.barracudacentral.org'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>                <span style="color: #0000ff;">'spam.spamrats.com'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>                <span style="color: #0000ff;">'dyna.spamrats.com'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>                <span style="color: #0000ff;">'noptr.spamrats.com'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>                <span style="color: #0000ff;">'bl.tiopan.com'</span>
<span style="color: #339933;">+</span>                <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$dnsbl</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>isListed<span style="color: #009900;">&#40;</span><span style="color: #000088;">$remoteIP</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>            <span style="color: #000088;">$data</span><span style="color: #339933;">=</span><span style="color: #000088;">$dnsbl</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getListingBls<span style="color: #009900;">&#40;</span><span style="color: #000088;">$remoteIP</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>            <span style="color: #990000;">sort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>            <span style="color: #000088;">$entry</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;LOGIN SUCCESS FROM BLACKLISTED IP [<span style="color: #006699; font-weight: bold;">$remoteIP</span>] FOR <span style="color: #006699; font-weight: bold;">$userID</span>: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;, &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>            Horde<span style="color: #339933;">::</span><span style="color: #004000;">logMessage</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$entry</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">__LINE__</span><span style="color: #339933;">,</span> PEAR_LOG_ERR<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span>            <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'imp'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>            <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$prefs</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>                <span style="color: #000088;">$prefs</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>cleanup<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>            <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">+</span>            <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>_setAuthError<span style="color: #009900;">&#40;</span>AUTH_REASON_BADLOGIN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>            <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>        <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">+</span>        <span style="color: #666666; font-style: italic;"># DNSBL END
</span><span style="color: #339933;">+</span>
         <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span></pre></div></div>

<p>The second one is just to log only access from blocked IPs.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">---</span> imp<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>php<span style="color: #339933;">.</span>orig  <span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">05</span> <span style="color:#800080;">09</span><span style="color: #339933;">:</span><span style="color:#800080;">08</span><span style="color: #339933;">:</span><span style="color:#800080;">44.510891298</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">+++</span> imp<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>php       <span style="color: #cc66cc;">2011</span><span style="color: #339933;">-</span><span style="color: #208080;">01</span><span style="color: #339933;">-</span><span style="color: #208080;">05</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">34</span><span style="color: #339933;">:</span><span style="color:#800080;">26.763968526</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">449</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">449</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">33</span> <span style="color: #339933;">@@</span>
     <span style="color: #0000ff;">'var nomenu = '</span> <span style="color: #339933;">.</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conf</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'menu'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'always'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
 <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;"># DNSBL START
</span><span style="color: #339933;">+</span><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #339933;">,</span> <span style="color: #990000;">ini_get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">':/usr/share/php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Net/DNSBL.php'</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$dnsbl</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Net_DNSBL<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">#$remoteIP = '41.206.12.1';
</span><span style="color: #339933;">+</span><span style="color: #000088;">$remoteIP</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$dnsbl</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>setBlacklists<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #339933;">+</span>        <span style="color: #0000ff;">'sbl-xbl.spamhaus.org'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>        <span style="color: #0000ff;">'bl.spamcop.net'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>        <span style="color: #0000ff;">'b.barracudacentral.org'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>        <span style="color: #0000ff;">'spam.spamrats.com'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>        <span style="color: #0000ff;">'dyna.spamrats.com'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>        <span style="color: #0000ff;">'noptr.spamrats.com'</span><span style="color: #339933;">,</span>
<span style="color: #339933;">+</span>        <span style="color: #0000ff;">'bl.tiopan.com'</span>
<span style="color: #339933;">+</span>        <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$dnsbl</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>isListed<span style="color: #009900;">&#40;</span><span style="color: #000088;">$remoteIP</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>    <span style="color: #000088;">$data</span><span style="color: #339933;">=</span><span style="color: #000088;">$dnsbl</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>getListingBls<span style="color: #009900;">&#40;</span><span style="color: #000088;">$remoteIP</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>    <span style="color: #990000;">sort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>    <span style="color: #000088;">$entry</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;BLACKLISTED IP <span style="color: #006699; font-weight: bold;">$remoteIP</span>: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;, &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>    Horde<span style="color: #339933;">::</span><span style="color: #004000;">logMessage</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$entry</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">__LINE__</span><span style="color: #339933;">,</span> PEAR_LOG_ERR<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>    <span style="color: #000088;">$entry</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Not blacklisted ip <span style="color: #006699; font-weight: bold;">$remoteIP</span>&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;, &quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>    Horde<span style="color: #339933;">::</span><span style="color: #004000;">logMessage</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$entry</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">__LINE__</span><span style="color: #339933;">,</span> PEAR_LOG_INFO<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;"># DNSBL END
</span><span style="color: #339933;">+</span>
 <span style="color: #666666; font-style: italic;">// ZMENA</span>
 <span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #339933;">,</span> <span style="color: #990000;">ini_get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">':/usr/share/php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2011/01/dnsbl-for-horde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Captcha for Horde</title>
		<link>http://www.hrbac.cz/2010/12/captcha-for-horde/</link>
		<comments>http://www.hrbac.cz/2010/12/captcha-for-horde/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 12:22:54 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS 4.x]]></category>
		<category><![CDATA[CentOS 5.x]]></category>
		<category><![CDATA[horde]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=268</guid>
		<description><![CDATA[Here is small patch to implement captcha on Horde login page. We have implemeteded Text_CAPTCHA_Numeral. Package for Centos is here: http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Text-CAPTCHA-Numeral.html. Here is the patch. --- horde-webmail-1.2.8.orig/imp/login.php 2010-10-25 17:10:05.000000000 +0200 +++ horde-webmail-1.2.8/imp/login.php 2010-11-30 17:36:27.571023703 +0100 @@ -398,6 +398,7 @@ $t-&#62;set&#40;'user_vinfo', Horde::callHook&#40;'_imp_hook_vinfo', array&#40;'vdomain'&#41;, 'imp'&#41;&#41;; &#125; $t-&#62;set&#40;'password_tabindex', ++$tabindex&#41;; +$t-&#62;set&#40;'captch_tabindex', ++$tabindex&#41;; &#160; $t-&#62;set&#40;'change_smtphost', &#40;!empty&#40;$conf&#91;'server'&#93;&#91;'change_smtphost'&#93;&#41;&#41;&#41;; if &#40;$t-&#62;get&#40;'change_smtphost'&#41;&#41; &#123; @@ [...]]]></description>
			<content:encoded><![CDATA[<p>Here is small patch to implement captcha on Horde login page. We have implemeteded <a href="http://pear.php.net/package/Text_CAPTCHA_Numeral">Text_CAPTCHA_Numeral</a>. Package for Centos is here: <a href="http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Text-CAPTCHA-Numeral.html">http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Text-CAPTCHA-Numeral.html</a>. Here is the <a href='http://www.hrbac.cz/blog/wp-content/Text-CAPTCHA-Numeral-Horde.txt'>patch</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">---</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">.</span>orig<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color:#800080;">05.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0200</span>
<span style="color: #339933;">+++</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">30</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">36</span><span style="color: #339933;">:</span><span style="color:#800080;">27.571023703</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">398</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">398</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span> <span style="color: #339933;">@@</span>
     <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user_vinfo'</span><span style="color: #339933;">,</span> Horde<span style="color: #339933;">::</span><span style="color: #004000;">callHook</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_imp_hook_vinfo'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'vdomain'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imp'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
 <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'password_tabindex'</span><span style="color: #339933;">,</span> <span style="color: #339933;">++</span><span style="color: #000088;">$tabindex</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'captch_tabindex'</span><span style="color: #339933;">,</span> <span style="color: #339933;">++</span><span style="color: #000088;">$tabindex</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'change_smtphost'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conf</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'server'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'change_smtphost'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'change_smtphost'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">446</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">447</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">16</span> <span style="color: #339933;">@@</span>
     <span style="color: #0000ff;">'var imp_auth = '</span> <span style="color: #339933;">.</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imp_auth</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
     <span style="color: #0000ff;">'var nomenu = '</span> <span style="color: #339933;">.</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$conf</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'menu'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'always'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
 <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">-</span><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch</span><span style="color: #009900;">&#40;</span>IMP_TEMPLATES <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/login/login.html'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">// ZMENA</span>
<span style="color: #339933;">+</span><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #339933;">,</span> <span style="color: #990000;">ini_get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include_path'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">':/usr/share/php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Text/CAPTCHA/Numeral.php'</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$numcap</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Text_CAPTCHA_Numeral<span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #b1b100;">echo</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Vysledek'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$numcap</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getOperation</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' ='</span><span style="color: #339933;">,</span> <span style="color: #000088;">$t</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch</span><span style="color: #009900;">&#40;</span>IMP_TEMPLATES <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/login/login.html'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'answer'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$numcap</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAnswer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #666666; font-style: italic;">//KONEC ZMENY</span>
&nbsp;
 <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$recompose_data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #666666; font-style: italic;">/* Prepare recompose template. */</span>
&nbsp;
<span style="color: #339933;">---</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">.</span>orig<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>redirect<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color:#800080;">05.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0200</span>
<span style="color: #339933;">+++</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>redirect<span style="color: #339933;">.</span>php	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">30</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">36</span><span style="color: #339933;">:</span><span style="color:#800080;">27.555023948</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">91</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">91</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">14</span> <span style="color: #339933;">@@</span>
 <span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Horde/Maintenance.php'</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #000088;">$actionID</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Util<span style="color: #339933;">::</span><span style="color: #004000;">getFormData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'compose'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">'login_compose'</span> <span style="color: #339933;">:</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getFormData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'actionID'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>
<span style="color: #339933;">+</span><span style="color: #000088;">$captch</span> <span style="color: #339933;">=</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getFormData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'captch'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$captch</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'answer'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$captch</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'answer'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #339933;">+</span>            _redirect<span style="color: #009900;">&#40;</span>Auth<span style="color: #339933;">::</span><span style="color: #004000;">addLogoutParameters</span><span style="color: #009900;">&#40;</span>IMP<span style="color: #339933;">::</span><span style="color: #004000;">logoutUrl</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> AUTH_REASON_FAILED<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">+</span>    <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">+</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">+</span>
 <span style="color: #000088;">$autologin</span> <span style="color: #339933;">=</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getFormData</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'autologin'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #000088;">$imapuser</span> <span style="color: #339933;">=</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getPost</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'imapuser'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #000088;">$pass</span> <span style="color: #339933;">=</span> Util<span style="color: #339933;">::</span><span style="color: #004000;">getPost</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">---</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">.</span>orig<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>templates<span style="color: #339933;">/</span>login<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>html	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">25</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">:</span><span style="color:#800080;">05.000000000</span> <span style="color: #339933;">+</span><span style="color: #208080;">0200</span>
<span style="color: #339933;">+++</span> horde<span style="color: #339933;">-</span>webmail<span style="color: #339933;">-</span>1<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>8<span style="color: #339933;">/</span>imp<span style="color: #339933;">/</span>templates<span style="color: #339933;">/</span>login<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>html	<span style="color: #cc66cc;">2010</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">11</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">30</span> <span style="color: #cc66cc;">17</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">36</span><span style="color: #339933;">:</span><span style="color:#800080;">27.215029139</span> <span style="color: #339933;">+</span><span style="color: #208080;">0100</span>
<span style="color: #339933;">@@</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">94</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">6</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">94</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">12</span> <span style="color: #339933;">@@</span>
       <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span> tabindex<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;tag:password_tabindex /&gt;&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pass&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;direction:ltr&quot;</span> <span style="color: #339933;">/&gt;</span>
      <span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>    <span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>     <span style="color: #339933;">&lt;</span>td <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;light rightAlign&quot;</span><span style="color: #339933;">&gt;&lt;</span>label <span style="color: #b1b100;">for</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;captch&quot;</span><span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;&lt;</span>gettext<span style="color: #339933;">&gt;</span>Vysledek<span style="color: #339933;">&lt;/</span>gettext<span style="color: #339933;">&gt;&lt;/</span>strong<span style="color: #339933;">&gt;&lt;/</span>label<span style="color: #339933;">&gt;&lt;/</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>     <span style="color: #339933;">&lt;</span>td <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;leftAlign&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>      <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> tabindex<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;tag:captch_tabindex /&gt;&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;captch&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;captch&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;direction:ltr&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #339933;">+</span>     <span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">+</span>    <span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
 <span style="color: #339933;">&lt;</span>if<span style="color: #339933;">:</span>change_smtphost<span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;</span>tr style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;height: 1em;&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2010/12/captcha-for-horde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hunting the root kits</title>
		<link>http://www.hrbac.cz/2010/10/hunting-the-root-kits/</link>
		<comments>http://www.hrbac.cz/2010/10/hunting-the-root-kits/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 08:06:05 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=235</guid>
		<description><![CDATA[Within Linux mailing list there has been post on hacked Linux box. We have recommended root kit scan. There are two important tools on Linux now, rkhunter and chkrootkit. [root@box ~]# chkrootkit ROOTDIR is `/' Checking `amd'... not found Checking `basename'... not infected Checking `biff'... not found Checking `chfn'... not infected Checking `chsh'... not infected [...]]]></description>
			<content:encoded><![CDATA[<p>Within Linux mailing list there has been post on hacked Linux box. We have recommended root kit scan. There are two important tools on Linux now, rkhunter and chkrootkit.</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">[root@box ~]# chkrootkit
ROOTDIR is `/'
Checking `amd'... not found
Checking `basename'... not infected
Checking `biff'... not found
Checking `chfn'... not infected
Checking `chsh'... not infected
Checking `cron'... not infected
Checking `crontab'... not infected
Checking `date'... not infected
Checking `du'... not infected
Checking `dirname'... not infected
Checking `echo'... not infected
Checking `egrep'... not infected
Checking `env'... not infected
Checking `find'... not infected
Checking `fingerd'... not found
Checking `gpm'... not infected
Checking `grep'... not infected
Checking `hdparm'... not infected
Checking `su'... not infected
Checking `ifconfig'... not infected
Checking `inetd'... not found
Checking `inetdconf'... not found
Checking `identd'... not found
Checking `init'... not infected
Checking `killall'... not infected
Checking `ldsopreload'... not infected
Checking `login'... not infected
Checking `ls'... not infected
Checking `lsof'... not infected
Checking `mail'... not infected
Checking `mingetty'... not infected
Checking `netstat'... not infected
Checking `named'... not found
Checking `passwd'... not infected
Checking `pidof'... not infected
Checking `pop2'... not found
Checking `pop3'... not found
Checking `ps'... not infected
Checking `pstree'... not infected
Checking `rpcinfo'... not infected
Checking `rlogind'... not found
Checking `rshd'... not found
Checking `slogin'... not infected
Checking `sendmail'... not infected
Checking `sshd'... not infected
Checking `syslogd'... not infected
Checking `tar'... not infected
Checking `tcpd'... not infected
Checking `tcpdump'... not infected
Checking `top'... not infected
Checking `telnetd'... not found
Checking `timed'... not found
Checking `traceroute'... not infected
Checking `vdir'... not infected
Checking `w'... not infected
Checking `write'... not infected
Checking `aliens'... no suspect files
Searching for sniffer's logs, it may take a while... nothing found
Searching for HiDrootkit's default dir... nothing found
Searching for t0rn's default files and dirs... nothing found
Searching for t0rn's v8 defaults... nothing found
Searching for Lion Worm default files and dirs... nothing found
Searching for RSHA's default files and dir... nothing found
Searching for RH-Sharpe's default files... nothing found
Searching for Ambient's rootkit (ark) default files and dirs... nothing found
Searching for suspicious files and dirs, it may take a while...
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/Razor2/Preproc/deHTMLxs/.packlist /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/auto/mod_perl/.packlist /usr/lib/perl5/5.8.5/i386-linux-thread-multi/.packlist
&nbsp;
Searching for LPD Worm files and dirs... nothing found
Searching for Ramen Worm files and dirs... nothing found
Searching for Maniac files and dirs... nothing found
Searching for RK17 files and dirs... nothing found
Searching for Ducoci rootkit... nothing found
Searching for Adore Worm... nothing found
Searching for ShitC Worm... nothing found
Searching for Omega Worm... nothing found
Searching for Sadmind/IIS Worm... nothing found
Searching for MonKit... nothing found
Searching for Showtee... nothing found
Searching for OpticKit... nothing found
Searching for T.R.K... nothing found
Searching for Mithra... nothing found
Searching for LOC rootkit... nothing found
Searching for Romanian rootkit... nothing found
Searching for HKRK rootkit... nothing found
Searching for Suckit rootkit... nothing found
Searching for Volc rootkit... nothing found
Searching for Gold2 rootkit... nothing found
Searching for TC2 Worm default files and dirs... nothing found
Searching for Anonoying rootkit default files and dirs... nothing found
Searching for ZK rootkit default files and dirs... nothing found
Searching for ShKit rootkit default files and dirs... nothing found
Searching for AjaKit rootkit default files and dirs... nothing found
Searching for zaRwT rootkit default files and dirs... nothing found
Searching for Madalin rootkit default files... nothing found
Searching for Fu rootkit default files... nothing found
Searching for ESRK rootkit default files... nothing found
Searching for rootedoor... nothing found
Searching for ENYELKM rootkit default files... nothing found
Searching for common ssh-scanners default files... nothing found
Searching for suspect PHP files... nothing found
Searching for anomalies in shell history files... nothing found
Checking `asp'... not infected
Checking `bindshell'... INFECTED (PORTS:  465)
Checking `lkm'... chkproc: nothing detected
chkdirs: nothing detected
Checking `rexedcs'... not found
Checking `sniffer'... eth0: not promisc and no PF_PACKET sockets
eth0:0: not promisc and no PF_PACKET sockets
Checking `w55808'... not infected
Checking `wted'... chkwtmp: nothing deleted
Checking `scalper'... not infected
Checking `slapper'... not infected
Checking `chkutmp'...  The tty of the following user process(es) were not found
in /var/run/utmp !
! RUID          PID TTY    CMD
! root        19564 pts/0  -bash
! root        20746 pts/0  screen -DRU
chkutmp: nothing deleted
Checking `OSX_RSPLUG'... not infected</pre></div></div>

<p>Wow! It seems we have box chrooted.</p>
<pre><span style="color: #800000;">Checking `bindshell'... INFECTED (PORTS:  465)</span></pre>
<p>Something is listening on 465 port, we have to find out more.</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">[root@box ~]# netstat -lnp | grep 465
tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LISTEN      7624/master
[root@box ~]# fuser -vn tcp 465
here: 465
&nbsp;
                     USER        PID ACCESS COMMAND
465/tcp              root       7624 f....  master</pre></div></div>

<p>So, this is postfix running on port 465, providing SMTPS access. <img src='http://www.hrbac.cz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2010/10/hunting-the-root-kits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>avgd stops listening on port 54322</title>
		<link>http://www.hrbac.cz/2010/08/avgd-stops-listening-on-port-54322/</link>
		<comments>http://www.hrbac.cz/2010/08/avgd-stops-listening-on-port-54322/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 08:08:44 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[mailing]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=226</guid>
		<description><![CDATA[Last days I&#8217;m experiencing avgd not responding. Avgd stops to listen on port 54322, amavisd-new timeouts on talking to AV. Mails are being held and queue is slowly increasing its number. It&#8217;s strange, that I&#8217;m experiencing it not only on one production system&#8230; Aug 29 04:59:46 rakosnicek amavis&#91;25940&#93;: &#40;25940-01-5&#41; &#40;!&#41;AVG Anti-Virus av-scanner FAILED: run_av error: [...]]]></description>
			<content:encoded><![CDATA[<p>Last days I&#8217;m experiencing avgd not responding. Avgd stops to listen on port 54322, amavisd-new timeouts on talking to AV. Mails are being held and queue is slowly increasing its number. It&#8217;s strange, that I&#8217;m experiencing it not only on one production system&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="vim" style="font-family:monospace;">Aug <span style="color: #000000; font-weight:bold;">29</span> 04<span style="color: #000000;">:</span><span style="color: #000000; font-weight:bold;">59</span><span style="color: #000000;">:</span><span style="color: #000000; font-weight:bold;">46</span> rakosnicek amavis<span style="color: #000000;">&#91;</span><span style="color: #000000; font-weight:bold;">25940</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">:</span> <span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">25940</span><span style="color: #000000;">-</span>01<span style="color: #000000;">-</span><span style="color: #000000; font-weight:bold;">5</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">!</span><span style="color: #000000;">&#41;</span>AVG Anti<span style="color: #000000;">-</span>Virus av<span style="color: #000000;">-</span>scanner FAILED<span style="color: #000000;">:</span> run_av error<span style="color: #000000;">:</span> Too many retries <span style="color: #668080;">to</span> talk <span style="color: #668080;">to</span> 127<span style="color: #000000;">.</span>0<span style="color: #000000;">.</span>0<span style="color: #000000;">.</span>1<span style="color: #000000;">:</span><span style="color: #000000; font-weight:bold;">54322</span> <span style="color: #000000;">&#40;</span>timed
out<span style="color: #000000;">&#41;</span> at <span style="color: #000000;">&#40;</span><span style="color: #25BB4D;">eval</span> <span style="color: #000000; font-weight:bold;">111</span><span style="color: #000000;">&#41;</span> <span style="color: #25BB4D;">line</span> <span style="color: #000000; font-weight:bold;">373</span><span style="color: #000000;">.</span>\n</pre></div></div>

<p>It seems working after changing a little bit AVG configuration with following values:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">avgcfgctl <span style="color: #660033;">-w</span> Default.setup.features.antispam=<span style="color: #c20cb9; font-weight: bold;">false</span>
avgcfgctl <span style="color: #660033;">-w</span> Default.tcpd.avg.limiter_start=<span style="color: #000000;">150</span>
avgcfgctl <span style="color: #660033;">-w</span> Default.tcpd.avg.limiter_stop=<span style="color: #000000;">200</span>
avgcfgctl <span style="color: #660033;">-w</span> Default.tcpd.avg.timeout=<span style="color: #000000;">5000</span>
avgcfgctl <span style="color: #660033;">-w</span> Default.tcpd.smtp.enabled=<span style="color: #c20cb9; font-weight: bold;">false</span>
avgctl <span style="color: #660033;">--restart</span>=tcpd</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2010/08/avgd-stops-listening-on-port-54322/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

