<?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>Smemorando &#187; Apache2</title>
	<atom:link href="http://www.smemorando.com/category/tutto-apache2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smemorando.com</link>
	<description>la libertà non esiste, siamo tutti schiavi</description>
	<lastBuildDate>Wed, 02 Jun 2010 08:10:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Generare file pdf da php con fpdf</title>
		<link>http://www.smemorando.com/2010/01/17/generare-file-pdf-da-php-con-fpdf/</link>
		<comments>http://www.smemorando.com/2010/01/17/generare-file-pdf-da-php-con-fpdf/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 20:45:44 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[fpdf]]></category>
		<category><![CDATA[html2fpdf]]></category>

		<guid isPermaLink="false">http://www.smemorando.com/?p=341</guid>
		<description><![CDATA[Fpdf è una classe PHP gratuita che permette di creare in php files PDF in modo molto semplice e rapido. Dal sito ufficiale del progetto fpdf è possibile scaricare l&#8217;ultima versione di questa libreria. Una volta caricata la classe sul vostro server potete provare il codice seguente per fare un test. &#60;?php require(&#8216;fpdf.php&#8217;); $pdf_doc=new FPDF(); [...]]]></description>
			<content:encoded><![CDATA[<p>Fpdf è una classe PHP gratuita che permette di creare in php files PDF in modo molto semplice e rapido.</p>
<p>Dal sito ufficiale del progetto <a title="fpdf" href="http://www.fpdf.org" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.fpdf.org?referer=');">fpdf</a> è possibile scaricare l&#8217;ultima versione di questa libreria.</p>
<p>Una volta caricata la classe sul vostro server potete provare il codice seguente per fare un test.</p>
<p>&lt;?php<br />
require(&#8216;fpdf.php&#8217;);<br />
$pdf_doc=new FPDF();<br />
$pdf_doc-&gt;AddPage();<br />
$pdf_doc-&gt;SetFont(&#8216;Arial&#8217;,'B&#8217;,24);<br />
$pdf_doc-&gt;Cell(60,30,&#8217;Ciao mondo!&#8217;);<br />
$pdf_doc-&gt;Output();<br />
?&gt;</p>
<p>Partendo dalla classe <a title="fpdf" href="http://www.fpdf.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.fpdf.org/?referer=');">fpdf</a> è stata creata la classe <a href="http://sourceforge.net/projects/html2fpdf/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/sourceforge.net/projects/html2fpdf/?referer=');">html2fpdf</a> che permette di creare un pdf da una pagina html.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smemorando.com/2010/01/17/generare-file-pdf-da-php-con-fpdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>decode/encode base64 e ASCII Text in php</title>
		<link>http://www.smemorando.com/2010/01/16/decodificate-dati-base64-in-php/</link>
		<comments>http://www.smemorando.com/2010/01/16/decodificate-dati-base64-in-php/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 13:08:44 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[base64]]></category>
		<category><![CDATA[base64_decode]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.smemorando.com/?p=328</guid>
		<description><![CDATA[il codice qui sotto restituisce a video la scritta Smemorando.com &#8230; il lavoro rende schiavi che è il risultato della conversione della stringa di dati da BASE64 ad ASCII Text &#60;?php $str = &#8216;U21lbW9yYW5kby5jb20gLi4uIGlsIGxhdm9ybyByZW5kZSBzY2hpYXZp&#8216;; echo base64_decode($str); ?&#62; il codice qui sotto restituisce a video la scritta U21lbW9yYW5kby5jb20gLi4uIGlsIGxhdm9ybyByZW5kZSBzY2hpYXZp che è il risultato della conversione della stringa di dati [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">il codice qui sotto restituisce a video la scritta <strong>Smemorando.com &#8230; il lavoro rende schiavi </strong>che è il risultato della conversione della stringa di dati da BASE64 ad ASCII Text</p>
<p>&lt;?php<br />
$str = &#8216;<strong>U21lbW9yYW5kby5jb20gLi4uIGlsIGxhdm9ybyByZW5kZSBzY2hpYXZp</strong>&#8216;;<br />
echo base64_decode($str);<br />
?&gt;</p>
<p style="text-align: left;">il codice qui sotto restituisce a video la scritta <strong>U21lbW9yYW5kby5jb20gLi4uIGlsIGxhdm9ybyByZW5kZSBzY2hpYXZp </strong>che è il risultato della conversione della stringa di dati da ASCII Text a BASE64</p>
<p>&lt;?php<br />
$str = &#8216;<strong>Smemorando.com &#8230; il lavoro rende schiavi</strong>&#8216;;<br />
echo base64_encode($str);<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smemorando.com/2010/01/16/decodificate-dati-base64-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resettare installazione Apache su Ubuntu</title>
		<link>http://www.smemorando.com/2010/01/10/resettare-installazione-apache-su-ubuntu/</link>
		<comments>http://www.smemorando.com/2010/01/10/resettare-installazione-apache-su-ubuntu/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 18:16:01 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[sites-enabled sites-available]]></category>

		<guid isPermaLink="false">http://www.smemorando.com/?p=251</guid>
		<description><![CDATA[Può capitare che dopo aver smanettato troppo sui file di configurazione di apache2 si senta la necessità di ripartire da zero senza reinstallare l&#8217;intero sistema si può quindi seguire questa semplice procedura anche a seguito di errori tipo [.: 44: Can't open /etc/apache2/envvars] allo start del servizio apache2. Dalla shell lancio: sudo dpkg &#8211;get-selections &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Può capitare che dopo aver smanettato troppo sui file di configurazione di apache2 si senta la necessità di ripartire da zero senza reinstallare l&#8217;intero sistema si può quindi seguire questa semplice procedura anche a seguito di errori tipo [.: 44: Can't open /etc/apache2/envvars] allo start del servizio apache2.</p>
<p>Dalla shell lancio:<strong><br />
sudo dpkg &#8211;get-selections | grep apache</strong><br />
<strong></strong></p>
<p>poi in base al risultato lancio il remove con l&#8217;opzione purge per cancellare anche tutti i file di configurazione<strong>:</strong><br />
<strong>sudo apt-get remove &#8211;purge apache2 apache2-mpm-worker apache2-threaded-dev apache2-utils apache2.2-common libapache2-mod-python libapache2-mod-python-doc libapache2-mod-wsgi</strong></p>
<p>poi reinstallo il tutto:<br />
<strong>sudo apt-get install apache2 libapache2-mod-python libapache2-mod-wsgi libapache2-mod-python-doc</strong></p>
<p>ora se vado in cd /etc/apache2/ trovo nuovamente tutti i file di configurazione aggiunti di default in fase di installazione.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.smemorando.com/2010/01/10/resettare-installazione-apache-su-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apache2: Could not reliably determine the server&#8217;s..</title>
		<link>http://www.smemorando.com/2010/01/07/apache2-could-not-reliably-determine-the-servers/</link>
		<comments>http://www.smemorando.com/2010/01/07/apache2-could-not-reliably-determine-the-servers/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 17:41:56 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[Could not reliably]]></category>

		<guid isPermaLink="false">http://www.smemorando.com/?p=320</guid>
		<description><![CDATA[Per risolvere questo warning su apache (apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.0.1 for ServerName) basta aprire il file di configurazione di Apache che su ubuntu è sotto /etc/apache2/apache2.conf ed aggiungere: ServerName 127.0.0.1]]></description>
			<content:encoded><![CDATA[<p>Per risolvere questo warning su apache (apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.0.1 for ServerName)</p>
<p>basta aprire il file di configurazione di Apache che su ubuntu è sotto /etc/apache2/apache2.conf ed aggiungere: <strong>ServerName 127.0.0.1</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.smemorando.com/2010/01/07/apache2-could-not-reliably-determine-the-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>w00tw00t.at.ISC.SANS.DFind come bloccarlo</title>
		<link>http://www.smemorando.com/2009/12/12/w00tw00t-at-isc-sans-dfind-come-bloccarlo/</link>
		<comments>http://www.smemorando.com/2009/12/12/w00tw00t-at-isc-sans-dfind-come-bloccarlo/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 23:36:17 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Sicurezza IT]]></category>
		<category><![CDATA[w00tw00t.at.ISC.SANS.DFind]]></category>

		<guid isPermaLink="false">http://www.smemorando.com/?p=289</guid>
		<description><![CDATA[Visto che c&#8217;è chi ci prova sempre a bucare il nostro website&#8230; [Sun Nov 15 22:39:48 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:) [Sat Nov 21 04:38:59 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:) [Sat Nov 21 05:19:41 2009] [...]]]></description>
			<content:encoded><![CDATA[<p>Visto che c&#8217;è chi ci prova sempre a bucare il nostro website&#8230;</p>
<p><span style="font-size: xx-small;">[Sun Nov 15 22:39:48 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
<span style="background-color: #ffffff;">[Sat Nov 21 04:38:59 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Sat Nov 21 05:19:41 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Sat Nov 21 20:49:55 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Wed Nov 25 06:23:15 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Thu Nov 26 04:22:24 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Fri Nov 27 06:23:02 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Fri Nov 27 07:00:35 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Fri Dec 04 08:37:26 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Fri Dec 04 22:20:37 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Tue Dec 08 06:13:16 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Tue Dec 08 11:30:17 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Wed Dec 09 06:32:59 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Fri Dec 11 01:57:56 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)<br />
[Fri Dec 11 05:30:52 2009] [error] [client xxx.xxx.xxx.xxx] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)</span></span></p>
<p style="text-align: justify;">con questo script molto semplice e ben fatto (trovato gia pronto su internet) è possibile aggiungere in automatico un drop su iptables per bloccare tutti quegli ip che provano a sfruttare Web Vulnerability Scanner tipo DFind, basta copiare il codice evidenziato qui sotto in un file tipo <strong>w00tw00t.sh</strong> e farlo girare con il cron.</p>
<p><span style="font-weight: normal;"><strong><span style="background-color: #ffffff; font-weight: normal;"><strong><span style="font-weight: normal; background-color: #ffffff;"><strong>#!/bin/sh<br />
<strong style="background-color: #ffffff;"># add iptables drop for w00tw00t scan<br />
</strong></strong></span></strong></span></strong></span></p>
<p><strong><span style="font-weight: normal; background-color: #ffffff;"><strong>for ip in `cat /var/log/apache2/error_log |grep w00tw00t | awk &#8216;{print $8}&#8217; | sed &#8216;s/]//g&#8217;  | sort -ug` ; do<br />
<span style="font-weight: normal; background-color: #ffffff;"><strong>countoff=$[$countoff+1]<br />
<span style="font-weight: normal; background-color: #ffffff;"><strong>countwoot=$[$countwoot+1]<br />
<span style="font-weight: normal; background-color: #ffffff;"><strong>iptables -I INPUT -s $ip -j DROP<br />
<span style="font-weight: normal; background-color: #ffffff;"><strong>iptables -I OUTPUT -s $ip -j DROP</strong></span></strong></span></strong></span></strong></span></strong></span></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.smemorando.com/2009/12/12/w00tw00t-at-isc-sans-dfind-come-bloccarlo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Warning: &#8230;php5/20060613+lfs/mcrypt.so</title>
		<link>http://www.smemorando.com/2009/12/12/php-warning%c2%a0-usrlibphp520060613lfsmcrypt-so/</link>
		<comments>http://www.smemorando.com/2009/12/12/php-warning%c2%a0-usrlibphp520060613lfsmcrypt-so/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 23:11:54 +0000</pubDate>
		<dc:creator>Cristian</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[mcrypt.so]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.smemorando.com/?p=284</guid>
		<description><![CDATA[Questo PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;/usr/lib/php5/20060613+lfs/mcrypt.so&#8217; su Ubuntu solitamente è dovuto al fatto che apache2 cerca di caricare il modulo mcrypt che non è stato installato e che quindi non viene trovato, basta quindi lanciare da shell: apt-get install php5-mcrypt]]></description>
			<content:encoded><![CDATA[<p>Questo <strong>PHP Warning:  PHP Startup: Unable to load dynamic library &#8216;/usr/lib/php5/20060613+lfs/mcrypt.so&#8217;</strong> su Ubuntu solitamente è dovuto al fatto che apache2 cerca di caricare il modulo mcrypt che non è stato installato e che quindi non viene trovato, basta quindi lanciare da shell:</p>
<p><strong>apt-get install php5-mcrypt</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.smemorando.com/2009/12/12/php-warning%c2%a0-usrlibphp520060613lfsmcrypt-so/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
