<?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áč &#187; CentOS</title>
	<atom:link href="http://www.hrbac.cz/category/centos/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>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>Firefox 3.6.2 and Thunderbird 3.0.3 for CentOS 5.4</title>
		<link>http://www.hrbac.cz/2010/03/firefox-3-6-2-and-thunderbird-3-0-3-for-centos-5-4/</link>
		<comments>http://www.hrbac.cz/2010/03/firefox-3-6-2-and-thunderbird-3-0-3-for-centos-5-4/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 09:08:58 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS 5.x]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=217</guid>
		<description><![CDATA[It&#8217;s a quite long time I have announced Firefox 3.6 and Thunderbird 3.0 packages for CentOS 5.  Announcement has been submitted via CentOS mail-list. See http://lists.centos.org/pipermail/centos-devel/2010-February/005416.html and http://lists.centos.org/pipermail/centos/2010-February/090418.html. Packages have been tested by users and have been always within the testing repository only. Today I&#8217;m pushing new firefox 3.6.2 into the stable repository together with [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a quite long time I have announced Firefox 3.6 and Thunderbird 3.0 packages for CentOS 5.  Announcement has been submitted via CentOS mail-list. See <a href="http://lists.centos.org/pipermail/centos-devel/2010-February/005416.html">http://lists.centos.org/pipermail/centos-devel/2010-February/005416.html</a> and <a href="http://lists.centos.org/pipermail/centos/2010-February/090418.html">http://lists.centos.org/pipermail/centos/2010-February/090418.html</a>.</p>
<p>Packages have been tested by users and have been always within the testing repository only. Today I&#8217;m pushing new firefox 3.6.2 into the stable repository together with xulrunner, mozilla-filesystem, and thunderbird. Packages are to be found here:</p>
<p><a href="http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/">http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/</a></p>
<p><a href="http://fs12.vsb.cz/hrb33/el5/hrb/stable/x86_64/repoview/">http://fs12.vsb.cz/hrb33/el5/hrb/stable/x86_64/repoview/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2010/03/firefox-3-6-2-and-thunderbird-3-0-3-for-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade DAViCal 0.9.7.2 to 0.9.8</title>
		<link>http://www.hrbac.cz/2010/02/upgrade-davical-0-9-7-2-to-0-9-8/</link>
		<comments>http://www.hrbac.cz/2010/02/upgrade-davical-0-9-7-2-to-0-9-8/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 09:54:31 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=189</guid>
		<description><![CDATA[DAViCal upgrade is quite easy: &#91;root@fs12 html&#93; wget http://debian.mcmillan.net.nz/packages/davical/davical_0.9.8.orig.tar.gz &#91;root@fs12 html&#93; tar xvzf davical_0.9.8.orig.tar.gz &#91;root@fs12 html&#93; cd davical-0.9.8.orig/dba &#91;root@fs12 dba&#93; su postgres bash-3.00$ ./update-davical-database The database is version 8.1 currently at revision 1.2.5. Applying patch 1.2.6.sql ... succeeded. Applying patch 1.2.7.sql ... succeeded. Successfully applied 2 patches. Supported locales updated. Updated view: dav_principal.sql applied. CalDAV [...]]]></description>
			<content:encoded><![CDATA[<p>DAViCal upgrade is quite easy:</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>fs12 html<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>debian.mcmillan.net.nz<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>davical<span style="color: #000000; font-weight: bold;">/</span>davical_0.9.8.orig.tar.gz
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fs12 html<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf davical_0.9.8.orig.tar.gz
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fs12 html<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">cd</span> davical-0.9.8.orig<span style="color: #000000; font-weight: bold;">/</span>dba
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fs12 dba<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">su</span> postgres
bash-<span style="color: #000000;">3.00</span>$ .<span style="color: #000000; font-weight: bold;">/</span>update-davical-database 
The database is version <span style="color: #000000;">8.1</span> currently at revision 1.2.5.
Applying <span style="color: #c20cb9; font-weight: bold;">patch</span> 1.2.6.sql ... succeeded.
Applying <span style="color: #c20cb9; font-weight: bold;">patch</span> 1.2.7.sql ... succeeded.
Successfully applied <span style="color: #000000;">2</span> patches.
Supported locales updated.
Updated view: dav_principal.sql applied.
CalDAV functions updated.
RRULE functions updated.
Database permissions updated.
bash-<span style="color: #000000;">3.00</span>$ <span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>fs12 html<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> davical-0.9.8.orig davical</pre></div></div>

<p>That&#8217;s all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2010/02/upgrade-davical-0-9-7-2-to-0-9-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running yum-3.2.8 on CentOS 4.7 &#8211; part II.</title>
		<link>http://www.hrbac.cz/2009/07/running-yum-328-on-centos-47-part-ii/</link>
		<comments>http://www.hrbac.cz/2009/07/running-yum-328-on-centos-47-part-ii/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 13:30:39 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 4.x]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=41</guid>
		<description><![CDATA[Today I have looked again at yum 3.2.8 on Centos 4. I wanted everything to clean up, go back to unittests again. I have backported python-nose and started to clean up the source. Finally I had to make all yum tests python 2.3 compatible. Here is the result: [root@build-c4-i386 yum-3.2.8]# make test .............................................................................................................................................................. ---------------------------------------------------------------------- Ran [...]]]></description>
			<content:encoded><![CDATA[<p>Today I have looked again at yum 3.2.8 on Centos 4. I wanted everything to clean up, go back to unittests again. I have backported python-nose and started to clean up the source. Finally I had to make all yum tests python 2.3 compatible. Here is the result:</p>
<pre>[root@build-c4-i386 yum-3.2.8]# make test

..............................................................................................................................................................

----------------------------------------------------------------------

Ran 158 tests in 0.889s

OK</pre>
<p>As you can see, all tests have passed. And as usual packages are available within my testing repo.</p>
<p><a href="http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/" target="_blank">http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/</a><br />
<a href="http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/" target="_blank">http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2009/07/running-yum-328-on-centos-47-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running yum-3.2.8 on CentOS 4.7</title>
		<link>http://www.hrbac.cz/2009/03/running-yum-328-on-centos-47/</link>
		<comments>http://www.hrbac.cz/2009/03/running-yum-328-on-centos-47/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 22:20:15 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 4.x]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=25</guid>
		<description><![CDATA[Today I spent a few hours testing and backporting yum-3.2.8 from CentOS 5.2 to CentOS 4.7. It wasn&#8217;t so hard to backport. Most of the time I have spent on testing and searching. Code is patched to allow sets, which are supported in python 2.3 ) and that&#8217;s almost all. Final rpms are available for [...]]]></description>
			<content:encoded><![CDATA[<p>Today I spent a few hours testing and backporting yum-3.2.8 from CentOS 5.2 to CentOS 4.7. It wasn&#8217;t so hard to backport. Most of the time I have spent on testing and searching. Code is patched to allow sets, which are supported in python 2.3 <img src='http://www.hrbac.cz/blog/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> ) and that&#8217;s almost all. Final rpms are available for testing here:</p>
<p><a href="http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/" target="_blank">http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/</a><br />
<a href="http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/" target="_blank">http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/</a></p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">[root@webmel4 ~]# yum update yum
Loading &quot;fastestmirror&quot; plugin
Loading &quot;installonlyn&quot; plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Reducing CentOS.Karan.Org-EL4 - Stable to included packages only
Finished
Resolving Dependencies
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Downloading header for yum to pack into transaction set.
yum-3.2.8-9.el4.hrb.2.1.1 100% |=========================|  29 kB    00:00
---&gt; Package yum.noarch 0:3.2.8-9.el4.hrb.2.1.1 set to be updated
--&gt; Running transaction check
--&gt; Processing Dependency: python-iniparse for package: yum
--&gt; Processing Conflict: yum-metadata-parser conflicts yum &gt;= 3.0
--&gt; Processing Dependency: yum-fastestmirror for package: yum
--&gt; Processing Dependency: yum-metadata-parser &gt;= 1.1.0 for package: yum
--&gt; Processing Dependency: yum &amp;lt; 2.5 for package: yum-utils
--&gt; Restarting Dependency Resolution with new changes.
--&gt; Populating transaction set with selected packages. Please wait.
---&gt; Downloading header for yum-utils to pack into transaction set.
yum-utils-1.1.10-9.el4.hr 100% |=========================| 9.7 kB    00:00
---&gt; Package yum-utils.noarch 0:1.1.10-9.el4.hrb.1 set to be updated
---&gt; Downloading header for yum-fastestmirror to pack into transaction set.
yum-fastestmirror-1.1.10- 100% |=========================| 7.0 kB    00:00
---&gt; Package yum-fastestmirror.noarch 0:1.1.10-9.el4.hrb.1 set to be updated
---&gt; Downloading header for python-iniparse to pack into transaction set.
python-iniparse-0.2.3-4.e 100% |=========================| 5.3 kB    00:00
---&gt; Package python-iniparse.noarch 0:0.2.3-4.el4.hrb set to be updated
---&gt; Downloading header for yum-metadata-parser to pack into transaction set.
yum-metadata-parser-1.1.2 100% |=========================| 4.3 kB    00:00
---&gt; Package yum-metadata-parser.i386 0:1.1.2-2.el4.hrb set to be updated
--&gt; Running transaction check
&nbsp;
Dependencies Resolved
&nbsp;
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 yum                     noarch     3.2.8-9.el4.hrb.2.1.1  hrb-testing       506 k
Installing for dependencies:
 python-iniparse         noarch     0.2.3-4.el4.hrb  hrb-testing        34 k
 yum-fastestmirror       noarch     1.1.10-9.el4.hrb.1  hrb-testing        10 k
Updating for dependencies:
 yum-metadata-parser     i386       1.1.2-2.el4.hrb  hrb-testing        24 k
 yum-utils               noarch     1.1.10-9.el4.hrb.1  hrb-testing        58 k
&nbsp;
Transaction Summary
=============================================================================
Install      2 Package(s)
Update       3 Package(s)
Remove       0 Package(s)
Total download size: 633 k
Is this ok [y/N]: y
Downloading Packages:
(1/5): yum-utils-1.1.10-9 100% |=========================|  58 kB    00:00
(2/5): yum-fastestmirror- 100% |=========================|  10 kB    00:00
(3/5): python-iniparse-0. 100% |=========================|  34 kB    00:00
(4/5): yum-3.2.8-9.el4.hr 100% |=========================| 506 kB    00:00
(5/5): yum-metadata-parse 100% |=========================|  24 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
&nbsp;
  Updating  : yum-metadata-parser          ######################### [1/9]
  Installing: python-iniparse              ######################### [2/9]
  Updating  : yum                                                    [3/9]warning: /etc/yum.conf created as /etc/yum.conf.rpmnew
  Updating  : yum                          ######################### [3/9]
  Updating  : yum-utils                    ######################### [4/9]
  Installing: yum-fastestmirror            ######################### [5/9]
  Cleanup   : yum-utils                    ######################### [6/9]
  Removing  : yum-plugin-fastestmirror     ######################### [7/9]
  Cleanup   : yum                          ######################### [8/9]
  Cleanup   : yum-metadata-parser          ######################### [9/9]
&nbsp;
Dependency Installed: python-iniparse.noarch 0:0.2.3-4.el4.hrb yum-fastestmirror.noarch 0:1.1.10-9.el4.hrb.1
Updated: yum.noarch 0:3.2.8-9.el4.hrb.2.1.1
Dependency Updated: yum-metadata-parser.i386 0:1.1.2-2.el4.hrb yum-utils.noarch 0:1.1.10-9.el4.hrb.1
Complete!</pre></div></div>

<p>Everything works fine. Now it&#8217;s time to publish and make some public QA. As you can see, it handles obsolete packages!</p>
<pre>[root@webmel4 ~]# yum install hrb-foo
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * kbs-CentOS-Extras: centos.karan.org
 * fasttrack: ftp.fi.muni.cz
 * hrb-kernel-stable: fs12.vsb.cz
 * update: ftp.fi.muni.cz
 * rpmforge: ftp-stud.fht-esslingen.de
 * hrb-testing: fs12.vsb.cz
 * base: ftp.fi.muni.cz
 * addons: ftp.fi.muni.cz
 * hrb-stable: fs12.vsb.cz
 * extras: ftp.fi.muni.cz
Reducing CentOS.Karan.Org-EL4 - Stable to included packages only
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package hrb-bar.noarch 0:1-1.el4.hrb set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 hrb-bar                 noarch     1-1.el4.hrb      hrb-testing       2.1 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 2.1 k
Is this ok [y/N]: n
Exiting on user Command
Complete!</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2009/03/running-yum-328-on-centos-47/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Call to undefined function load_config() &#8211; squirrelmail-1.4.8-5.el4.centos.3</title>
		<link>http://www.hrbac.cz/2009/02/call-to-undefined-function-load_config-squirrelmail-148-5el4centos3/</link>
		<comments>http://www.hrbac.cz/2009/02/call-to-undefined-function-load_config-squirrelmail-148-5el4centos3/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 17:54:39 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/?p=13</guid>
		<description><![CDATA[During one of my squirrelmail upgrades I have discovered strange behavior. Users were able to login, but only blank page had appeared. I have found this in log: [Mon Feb 09 18:29:10 2009] [error] [client 89.103.46.115] PHP Fatal error: Call to undefined function load_config() in /usr/share/squirrelmail/plugins/change_sqlpass/functions.php on line 326, referer: http://blabla.blabla.tld/src/login.php change_sqlpass pluging needs compatibility [...]]]></description>
			<content:encoded><![CDATA[<p>During one of my squirrelmail upgrades I have discovered strange behavior. Users were able to login, but only blank page had appeared. I have found this in log:</p>
<pre>[Mon Feb 09 18:29:10 2009] [error] [client 89.103.46.115] PHP Fatal error:  Call to undefined function load_config() in /usr/share/squirrelmail/plugins/change_sqlpass/functions.php
on line 326, referer: http://blabla.blabla.tld/src/login.php</pre>
<p>change_sqlpass pluging needs compatibility plugin to run. So here is the patch:</p>
<pre>
--- ../../functions/strings.php.orig    2006-08-11 04:15:43.000000000 -0700
+++ ../../functions/strings.php 2006-09-01 06:11:03.000000000 -0700
@@ -31,6 +31,7 @@
* For that reason, bring in global.php AFTER we define the version strings.
*/
require_once(SM_PATH . 'functions/global.php');
+include_once(SM_PATH . 'plugins/compatibility/functions.php');

/**
* Wraps text at $wrap characters
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2009/02/call-to-undefined-function-load_config-squirrelmail-148-5el4centos3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remove old kernels</title>
		<link>http://www.hrbac.cz/2008/05/remove-old-kernels/</link>
		<comments>http://www.hrbac.cz/2008/05/remove-old-kernels/#comments</comments>
		<pubDate>Thu, 22 May 2008 13:49:30 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/archives/9</guid>
		<description><![CDATA[Simple way to remove all but one kernel: if [ $(rpm -q kernel &#124; wc -l) -gt 1 ]; then rpm -e $(rpm -q kernel &#124; sed '$d'); fi if [ $(rpm -q kernel-smp &#124; wc -l) -gt 1 ]; then rpm -e $(rpm -q kernel-smp &#124; sed '$d'); fi]]></description>
			<content:encoded><![CDATA[<p>Simple way to remove all but one kernel:</p>
<pre>if [ $(rpm -q kernel | wc -l) -gt 1 ]; then rpm -e $(rpm -q kernel | sed '$d'); fi
if [ $(rpm -q kernel-smp | wc -l) -gt 1 ]; then rpm -e $(rpm -q kernel-smp | sed '$d'); fi</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2008/05/remove-old-kernels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSSH5 on CentOS 5</title>
		<link>http://www.hrbac.cz/2008/04/opanssh5-on-centos-5/</link>
		<comments>http://www.hrbac.cz/2008/04/opanssh5-on-centos-5/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 15:14:12 +0000</pubDate>
		<dc:creator>David Hrbáč</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 5.x]]></category>

		<guid isPermaLink="false">http://www.hrbac.cz/blog/archives/8</guid>
		<description><![CDATA[I have rebuilt OpenSHH5 RPMs for CentOS 5. They seem ) to work pretty well. Files are located here: http://fs12.vsb.cz/hrb33/el5/hrb-ssh/stable/i386/ http://fs12.vsb.cz/hrb33/el5/hrb-ssh/stable/x86_64/]]></description>
			<content:encoded><![CDATA[<p>I have rebuilt OpenSHH5 RPMs for CentOS 5. They seem <img src='http://www.hrbac.cz/blog/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> ) to work pretty well.</p>
<p>Files are located here:</p>
<ul>
<li><a href="http://fs12.vsb.cz/hrb33/el5/hrb-ssh/stable/i386/">http://fs12.vsb.cz/hrb33/el5/hrb-ssh/stable/i386/</a></li>
<li><a href="http://fs12.vsb.cz/hrb33/el5/hrb-ssh/stable/x86_64/">http://fs12.vsb.cz/hrb33/el5/hrb-ssh/stable/x86_64/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hrbac.cz/2008/04/opanssh5-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

