<?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>vacmf</title>
	<atom:link href="http://vacmf.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://vacmf.org</link>
	<description>there's more than one way to do it</description>
	<lastBuildDate>Mon, 02 Nov 2009 21:24:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Test new contents</title>
		<link>http://vacmf.org/2009/07/06/test-new-contents/</link>
		<comments>http://vacmf.org/2009/07/06/test-new-contents/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 21:32:00 +0000</pubDate>
		<dc:creator>shima</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Duck typing]]></category>

		<guid isPermaLink="false">http://vacmf.org/?p=41</guid>
		<description><![CDATA[Duck typing example]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby;">class Fixnum
  def very_fast
    return &quot;299792458&quot;
  end
end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://vacmf.org/2009/07/06/test-new-contents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>test from n95 and webkit</title>
		<link>http://vacmf.org/2008/07/29/test-from-n95-and-webkit/</link>
		<comments>http://vacmf.org/2008/07/29/test-from-n95-and-webkit/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 20:36:06 +0000</pubDate>
		<dc:creator>shima</dc:creator>
				<category><![CDATA[weblogs]]></category>

		<guid isPermaLink="false">http://vacmf.org/2008/07/29/test-from-n95-and-webkit/</guid>
		<description><![CDATA[hello, does it work?
]]></description>
			<content:encoded><![CDATA[<p>hello, does it work?</p>
]]></content:encoded>
			<wfw:commentRss>http://vacmf.org/2008/07/29/test-from-n95-and-webkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slackware 12.0 is released!</title>
		<link>http://vacmf.org/2007/07/02/slackware-120-is-released/</link>
		<comments>http://vacmf.org/2007/07/02/slackware-120-is-released/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 20:44:06 +0000</pubDate>
		<dc:creator>shima</dc:creator>
				<category><![CDATA[weblogs]]></category>

		<guid isPermaLink="false">http://vacmf.org/2007/07/02/slackware-120-is-released/</guid>
		<description><![CDATA[The first Slackware release that come with the 2.6 kernel is available for download.
Here is the official  detailed announcement.
]]></description>
			<content:encoded><![CDATA[<p>The first Slackware release that come with the 2.6 kernel is available for download.</p>
<p>Here is the <a href="http://www.slackware.org/announce/12.0.php">official  detailed announcement</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://vacmf.org/2007/07/02/slackware-120-is-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix with relayhost and SASL client</title>
		<link>http://vacmf.org/2007/06/11/postfix-with-relayhost-and-sasl-client/</link>
		<comments>http://vacmf.org/2007/06/11/postfix-with-relayhost-and-sasl-client/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 10:07:25 +0000</pubDate>
		<dc:creator>shima</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://vacmf.org/2007/06/11/postfix-with-relayhost-and-sasl-client/</guid>
		<description><![CDATA[I wrote a simple document to help in configuring Postfix mail server with a relay host that require SASL authentication.
It&#8217;s a common situation when you have an MTA at home or at your office with a dynamic IP adrress.
You can find it im my wiki with the  Postfix with relayhost and SASL client
]]></description>
			<content:encoded><![CDATA[<p>I wrote a simple document to help in configuring Postfix mail server with a relay host that require SASL authentication.</p>
<p>It&#8217;s a common situation when you have an MTA at home or at your office with a dynamic IP adrress.</p>
<p>You can find it im my <a href="http://riccucci.com/wiki/doku.php" title="Lorenzo Riccucci's wiki" target="_blank">wiki</a> with the  <a href="http://riccucci.com/wiki/doku.php/postfix_relayhost_sasl_client" title="Postfix with relayhost and SASL" target="_blank">Postfix with relayhost and SASL client</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vacmf.org/2007/06/11/postfix-with-relayhost-and-sasl-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>italia.it XSS</title>
		<link>http://vacmf.org/2007/02/26/italiait-xss/</link>
		<comments>http://vacmf.org/2007/02/26/italiait-xss/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 10:45:56 +0000</pubDate>
		<dc:creator>shima</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://vacmf.org/2007/02/26/italiait-xss/</guid>
		<description><![CDATA[Il nuovo portale italiano sul turismo italia.it fa un po&#8217; acqua da tutte le parti inquanto a sicurezza.
Chi vuole un esempio, provi a sostituire il valore del parametro &#8220;scope&#8221; passato sulla URI del sito con:
"&#62;&#60;script&#62;alert('YaBaDaBaDoOoO');&#60;/script&#62;
&#60;"input type="hidden" value="
cosi facendo si inserisce lo script nella:
&#60;input type=...
http://www.italia.it/it/scout/text/5,it,SCH1,2005/objectId,
RGN8it,modulId,scout,s,0,season,at1,selectedEntry,
home/result.html?rgnCMP=RGN8it&#038;scope="&#62;
&#60;script&#62;alert('YaBaDaBaDoOoO');&#60;
/script&#62;&#60;input type="hidden"
value="&#038;Submit2.x=12&#038;Submit2.y=10
Con piu&#8217; fantasia, si puo&#8217; aggiungere un sondaggio :)
http://www.italia.it/it/scout/text/5,it,SCH1,2005/objectId,
RGN8it,modulId,scout,s,0,season,at1,selectedEntry,
home/result.html?rgnCMP=RGN8it&#038;scope=
"&#62;&#60;script&#62;alert('YaBaDaBaDoOoO');
&#60;/script&#62;&#60;br&#62;&#60;br&#62;Come sono stati <a href="http://vacmf.org/2007/02/26/italiait-xss/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Il nuovo portale italiano sul turismo italia.it fa un po&#8217; acqua da tutte le parti inquanto a sicurezza.<br />
Chi vuole un esempio, provi a sostituire il valore del parametro &#8220;scope&#8221; passato sulla URI del sito con:</p>
<pre>"&gt;&lt;script&gt;alert('YaBaDaBaDoOoO');&lt;/script&gt;
&lt;"input type="hidden" value="</pre>
<p>cosi facendo si inserisce lo script nella:</p>
<pre>&lt;input type=...</pre>
<pre>http://www.italia.it/it/scout/text/5,it,SCH1,2005/objectId,
RGN8it,modulId,scout,s,0,season,at1,selectedEntry,
home/result.html?rgnCMP=RGN8it&#038;scope="&gt;
&lt;script&gt;alert('YaBaDaBaDoOoO');&lt;
/script&gt;&lt;input type="hidden"
value="&#038;Submit2.x=12&#038;Submit2.y=10</pre>
<p>Con piu&#8217; fantasia, si puo&#8217; aggiungere un sondaggio :)</p>
<pre>http://www.italia.it/it/scout/text/5,it,SCH1,2005/objectId,
RGN8it,modulId,scout,s,0,season,at1,selectedEntry,
home/result.html?rgnCMP=RGN8it&#038;scope=
"&gt;&lt;script&gt;alert('YaBaDaBaDoOoO');
&lt;/script&gt;&lt;br&gt;&lt;br&gt;Come sono stati spesi i
soldi?&lt;select&gt;&lt;option&gt;Male&lt;option&gt;
Malissimo&lt;/select&gt;&lt;input type="submit"
value="Sei daccordo?" class="button"&gt;
&lt;input type="hidden"
value="&#038;Submit2.x=12&#038;Submit2.y=10</pre>
<p>o meglio: <a target="_blank" title="http://tinyurl.com/2h49x8" href="http://tinyurl.com/2h49x8">http://tinyurl.com/2h49&#215;8</a></p>
<p>In parole povere, possiamo piu&#8217; o meno ridefinire il sito abbastanza a piacere. E questo e&#8217; un grave problema di sicurezza ponendo il sito al centro dell&#8217;attenzione di chi fa del phishing<br />
la sua professione.</p>
]]></content:encoded>
			<wfw:commentRss>http://vacmf.org/2007/02/26/italiait-xss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reverse SSH tunnelling (exit by the door and come back from the window)</title>
		<link>http://vacmf.org/2006/12/20/reverse-ssh-tunnelling/</link>
		<comments>http://vacmf.org/2006/12/20/reverse-ssh-tunnelling/#comments</comments>
		<pubDate>Wed, 20 Dec 2006 11:50:06 +0000</pubDate>
		<dc:creator>shima</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[reverse tunnel]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[tunnel]]></category>

		<guid isPermaLink="false">http://vacmf.org/2006/12/20/reverse-ssh-tunnelling-exit-by-the-door-and-come-back-from-the-window/</guid>
		<description><![CDATA[Draft
What to do when you have a server behind a natted internet connection whitout public IP and you want to access it from your home or somewhere?
SSH is your best friend. So you can enable a reverse ssh tunnel that allow a connection from above the intranet.
server &#8220;S0&#8243; in the intranet &#8212;-> Router (without access) <a href="http://vacmf.org/2006/12/20/reverse-ssh-tunnelling/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p><em>Draft</em></p>
<p>What to do when you have a server behind a natted internet connection whitout public IP and you want to access it from your home or somewhere?<br />
SSH is your best friend. So you can enable a reverse ssh tunnel that allow a connection from above the intranet.<br />
server &#8220;S0&#8243; in the intranet &#8212;-> Router (without access) &#8212;-> (OoOo Internet oOoO) <---- router (my CISCO 803) <---- "C1" remote computer (my.example.cxm)<br />
In the server S0 I use ssh to create a tunnel that allow my C1 to connect it.</p>
<p><span style="font-weight: bold">On S0</span><br />
ssh -R 5000:localhost:22 my.example.cxm</p>
<p style="font-weight: bold">On Router CISCO</p>
<p>ip nat inside source static tcp 10.1.1.1 5000 interface Dialer 1 5000</p>
<p><span style="font-weight: bold">On C1</span></p>
<p>simply launch: ssh -p 5000 localhost</p>
<p>and you are connected to your server in the office intranet.<br />
<span style="font-weight: bold"><br />
What appen if the connection goes down?</span></p>
<p>we can assure that the tunnel back up again. So we must consider the idea to insert a cron job which check periodically the tunnel status.</p>
<p>next: example shell script</p>
]]></content:encoded>
			<wfw:commentRss>http://vacmf.org/2006/12/20/reverse-ssh-tunnelling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to prevent DHCP server to override your resolv.conf script</title>
		<link>http://vacmf.org/2006/12/20/how-to-prevent-dhcp-server-to-override-your-resolvconf-script/</link>
		<comments>http://vacmf.org/2006/12/20/how-to-prevent-dhcp-server-to-override-your-resolvconf-script/#comments</comments>
		<pubDate>Wed, 20 Dec 2006 11:49:50 +0000</pubDate>
		<dc:creator>shima</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcp client]]></category>
		<category><![CDATA[resolv.conf]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://vacmf.org/2006/12/20/how-to-prevent-dhcp-server-to-override-your-resolvconf-script/</guid>
		<description><![CDATA[Draft
The &#8220;problem&#8221; is caused by dhcp server that overwrite our resolv.conf script and we lose this personalization during the IP release session. Not even is a good idea to replace the dns configuration proposed by the dhcp server, if it push that to you, probably there is a reason. But some time you want to <a href="http://vacmf.org/2006/12/20/how-to-prevent-dhcp-server-to-override-your-resolvconf-script/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p><em>Draft</em></p>
<p>The &#8220;problem&#8221; is caused by dhcp server that overwrite our resolv.conf script and we lose this personalization during the IP release session. Not even is a good idea to replace the dns configuration proposed by the dhcp server, if it push that to you, probably there is a reason. But some time you want to use your own configuration such as when you use your broadband router and you want your /etc/resolv.conf has been preserved fron updates.</p>
<p>To prevent  this nasty situation we can operate in two ways, determined by which dhcp client you are using: dhcpcd ord dhclient.</p>
<p>In the first case, dhcpcd (as in my Slackware laptop), prevent overriding can be obtained simply add the -R option to the dhcpcd command:</p>
<pre># dhcpcd -R eth0</pre>
<p>In the second case, we must read the man page about dhclient-script which is invoked any time you use dhclient.<br />
In:</p>
<pre>man 8 dhclient-script</pre>
<p>at the HOOKS section we can read:</p>
<blockquote><p>HOOKS</p>
<p>When it starts, the client script first defines a shell function, <strong>make_resolv_conf ,</strong> which is later used to create the <strong>/etc/resolv.conf</strong> file. To override the default behaviour, redefine this function in the enter hook script.</p></blockquote>
<p>This means that we must to create /etc/dhclient-enter-hooks and  redefine the make_resolv_conf function to satisfy our needs.<br />
If we simply wants to prevent resolv.conf updates only, the fastest way is to redefine the function to do nothing:</p>
<pre># cat /etc/dhclient-enter-hooks
make_resolv_conf() {
exit 0
}</pre>
<p>Then save the file and ensure it is executable:</p>
<pre># chmod a+x /etc/dhclient-enter-hooks</pre>
<p>Note that, as explained in the man page, the dhclient-script is not standard so if this configuration doesn&#8217;t work, please read the man page.</p>
<p>Next: How to merge dns addresses pushed by the dhcp server and my own dns.</p>
]]></content:encoded>
			<wfw:commentRss>http://vacmf.org/2006/12/20/how-to-prevent-dhcp-server-to-override-your-resolvconf-script/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>whois and .eu domain name</title>
		<link>http://vacmf.org/2006/06/21/whois-and-eu-domain-name/</link>
		<comments>http://vacmf.org/2006/06/21/whois-and-eu-domain-name/#comments</comments>
		<pubDate>Wed, 21 Jun 2006 11:05:22 +0000</pubDate>
		<dc:creator>shima</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[whois]]></category>

		<guid isPermaLink="false">http://vacmf.org/2006/06/21/whois-and-eu-domain-name/</guid>
		<description><![CDATA[If you launch the command
whois eurid.eu
I returned the following message:
No whois server is known for this kind of object.
So you can simply use:
whois -h whois.eu eurid
but from `man whois` I read:
If the /etc/whois.conf config file exists, it will be consulted to find
a server before applying the normal rules. Each line of the file should
contain  <a href="http://vacmf.org/2006/06/21/whois-and-eu-domain-name/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>If you launch the command</p>
<pre>whois eurid.eu</pre>
<p>I returned the following message:</p>
<pre>No whois server is known for this kind of object.</pre>
<p>So you can simply use:</p>
<pre>whois -h whois.eu eurid</pre>
<p>but from `man whois` I read:</p>
<blockquote><p>If the /etc/whois.conf config file exists, it will be consulted to find<br />
a server before applying the normal rules. Each line of the file should<br />
contain  a  regular expression to be matched against the query text and<br />
the whois server to use, separated by white space.</p></blockquote>
<p>So I created the /etc/whois.conf file and filled it with:</p>
<pre>.eu whois.eu</pre>
<p>but it doesn&#8217;t work. From the output of:</p>
<pre>strace /usb/bin/whois  eurid.eu</pre>
<p>we can see that the program doesn&#8217;t search /etc/whois.conf file so the &#8220;problem&#8221; is in the source.<br />
To get whois read his config file you must download the program source from his developer web site</p>
<blockquote><p>http://www.linux.it/~md/software/</p></blockquote>
<p>then you need to extract the files from the archive and modify <strong>config.h </strong>simply to uncomment the line regarding /etc/whois.conf as reported:</p>
<pre>#define CONFIG_FILE "/etc/whois.conf"</pre>
<p>finally you have to recompile the program with make and install it.<br />
Now that whois read his config files you can create it</p>
<pre># echo ".eu whois.eu" > /etc/whois.conf</pre>
<p>and launch the program</p>
<pre>whois  eurid.eu</pre>
<p>Now in the output you have the whois search result.</p>
]]></content:encoded>
			<wfw:commentRss>http://vacmf.org/2006/06/21/whois-and-eu-domain-name/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
