<?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>kill-9.it &#187; apple</title>
	<atom:link href="http://www.kill-9.it/blog/index.php/category/geek/apple/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kill-9.it/blog</link>
	<description>Coffee for the mind, pizza for the body, sushi for the soul.</description>
	<lastBuildDate>Sat, 22 May 2010 19:35:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Snow Leopard Trash, again</title>
		<link>http://www.kill-9.it/blog/index.php/2009/11/12/snow-leopard-trash-again/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/11/12/snow-leopard-trash-again/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 22:58:11 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=480</guid>
		<description><![CDATA[At first I did not notice, but emptying the trash took ages, even &#8220;not securely&#8221;. Well, being the geek I am I did a quick dtruss on the Locum process, which spit out a huge list of write_nocancel syscalls. So, it seems it was actually writing stuff over the files I asked him to delete, [...]]]></description>
			<content:encoded><![CDATA[<p>At first I did not notice, but emptying the trash took ages, even &#8220;not securely&#8221;.<br />
Well, being the geek I am I did a quick dtruss on the Locum process, which spit out a huge list of write_nocancel syscalls. So, it seems it was actually writing stuff over the files I asked him to delete, even if I never asked him to (I just did a right click on the Trash icon, and selected &#8220;Empty Trash&#8221;). WTF?</p>
<p>Well, I learned (thanks Google) that Snow Leopard does a secure erase of the trash by default. Annoying.<br />
And that I did not realize that until now. Embarassing.</p>
<p>So, this can be solved at least in two ways:</p>
<p><strong>The GUI one</strong><br />
Go into Finder preferences, Advanced, and uncheck &#8220;Empty Trash securely&#8221;</p>
<p align=center><img src="http://www.kill-9.it/images/finderpref.png" alt="Finder Preferences Window" /></p>
<p>or</p>
<p><strong>the CLI one</strong><br />
Go into ~/Library/Preferences, convert the Finder preferences to xml (it&#8217;s binary by default)<br />
<code>plutil -convert xml1 com.apple.finder.plist</code><br />
and change the stanza</p>
<p><code>        &lt;key&gt;EmptyTrashSecurely&lt;/key&gt;<br />
        &lt;true/&gt;</code><br />
to<code><br />
        &lt;key&gt;EmptyTrashSecurely&lt;/key&gt;<br />
        &lt;false/&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/11/12/snow-leopard-trash-again/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Verbosely emptying the trash</title>
		<link>http://www.kill-9.it/blog/index.php/2009/10/17/verbosely-emptying-the-trash/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/10/17/verbosely-emptying-the-trash/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 12:01:48 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=462</guid>
		<description><![CDATA[Like it happens on Windows, when you decide to delete something OSX simply moves that file or directory to &#8220;the Trash&#8221;, which is just a hidden directory on the volume you&#8217;re deleting from. Then, you right click on the Trash icon and select &#8220;Empty trash&#8221;. This action pops up a small window like this: I [...]]]></description>
			<content:encoded><![CDATA[<p>Like it happens on Windows, when you decide to delete something OSX simply moves that file or directory to &#8220;the Trash&#8221;, which is just a hidden directory on the volume you&#8217;re deleting from. Then, you right click on the Trash icon and select &#8220;Empty trash&#8221;.<br />
This action pops up a small window like this:</p>
<p align=center>
<img src="http://www.kill-9.it/images/osxtrash.png" alt="osx trash progress window" />
</p>
<p>I grew tired of asking myself what OSX was deleting (the operation can take a while, especially when &#8212; as I often do &#8212; you&#8217;re doing a secure erase) so this ugly one-liner, run as root, will give you the file the OS is working on:</p>
<p><code><br />
ps auxw | grep -i locum | grep -v grep | awk &#039;{print $2}&#039; | xargs lsof -p | grep -i Trash | awk &#039;{print $9}&#039;<br />
</code></p>
<p>It will output something like this:<br />
<code>/Volumes/FAT80GB/.Trashes/502/xcode3210a432.dmg</code></p>
<p>You can wrap that command inside the usual while/sleep loop if you want something that keeps you updated on what is going on &#8212; or make it an alias for your favourite shell.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/10/17/verbosely-emptying-the-trash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snow Leopard, ssh-agent and an everlasting memory</title>
		<link>http://www.kill-9.it/blog/index.php/2009/10/06/snow-leopard-ssh-agent-and-an-everlasting-memory/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/10/06/snow-leopard-ssh-agent-and-an-everlasting-memory/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 19:31:11 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=423</guid>
		<description><![CDATA[If you recently switched from an older (pre 10.6) version of OS X to the latest baby, and have the old habit of using ssh to connect around, you may have noticed a singular behaviour: while the older versions always asked you for a passphrase (you have a passphrase set on your private key, right?) [...]]]></description>
			<content:encoded><![CDATA[<p>If you recently switched from an older (pre 10.6) version of OS X to the latest baby, and have the old habit of using ssh to connect around, you may have noticed a singular behaviour: while the older versions always asked you for a passphrase (<em>you <strong>have</strong> a passphrase set on your private key, right?</em>) the new OS 10.6.x does it <strong>just the first time</strong> you use it.</p>
<p>Now, no doubt it is handy and user-friendly and automagical and&#8230; but I feel it disturbing: if by chance I hand over the laptop to somebody for a quick glance at a web page, for example, she can use it to connect anywhere without my consent &#8212; ok, I&#8217;m oversimplifying, but you get the idea.</p>
<p>The mistery lies into our old friend ssh-agent: it is spawn using<br />
<code>/System/Library/LaunchAgents/org.openbsd.ssh-agent.plist</code><br />
<em>[on a single line for yout copying pleasure]</em> as a configuration file and it will cache your passphrase the first time you use ssh.<br />
Up to here it&#8217;s fine.</p>
<p>What is troublesome to me is that the default cache time is unlimited (see the man page, this is the default behaviour when it is launched without specifying a &#8220;-t&#8221; option) therefore it will never forget the passphrase until I logout &#8212; being the only user of my laptop, this does not happen often.</p>
<p>Enter the joy of xml configuration files: edit the <code>org.openbsd.ssh-agent.plist</code>, and add the option to your liking, that is change this<br />
<code><br />
&lt;array&gt;<br />
&lt;string&gt;/usr/bin/ssh-agent&lt;/string&gt;<br />
&lt;string&gt;-l&lt;/string&gt;<br />
&lt;/array&gt;<br />
</code><br />
to something like this<br />
<code><br />
&lt;array&gt;<br />
&lt;string&gt;/usr/bin/ssh-agent&lt;/string&gt;<br />
&lt;string&gt;-l&lt;/string&gt;<br />
&lt;string&gt;-t&lt;/string&gt;<br />
&lt;string&gt;120&lt;/string&gt;<br />
&lt;/array&gt;<br />
</code><br />
if a couple of minutes of &#8220;grace period&#8221; suit your usage.<br />
Then, just kill the process &#8212; it will spawn again the next time you use ssh.</p>
<p>[By the way:<br />
Dear Internet, posting code like the XML up here sucks big time.<br />
It took me more time to format the two snippets to render correctly then writing the whole post.<br />
What do you use to ease this pain?<br />
thank you.]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/10/06/snow-leopard-ssh-agent-and-an-everlasting-memory/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>(OsX) Nuova icona per le preferenze energetiche</title>
		<link>http://www.kill-9.it/blog/index.php/2009/08/16/osx-nuova-icona-per-le-preferenze-energetiche/</link>
		<comments>http://www.kill-9.it/blog/index.php/2009/08/16/osx-nuova-icona-per-le-preferenze-energetiche/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 11:47:27 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Italiano]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/?p=396</guid>
		<description><![CDATA[Io me ne sono accorto solo stamattina, ma avete fatto caso che l&#8217;icona di &#8220;Energy Saver&#8221; e` stata trasformata dalla convenzionale lampadina a quella &#8212; molto piu` moderna &#8212; che ormai e` obbligatoria?]]></description>
			<content:encoded><![CDATA[<p>Io me ne sono accorto solo stamattina, ma avete fatto caso che l&#8217;icona di &#8220;Energy Saver&#8221; e` stata trasformata dalla convenzionale lampadina a quella &#8212; molto piu` moderna &#8212; che ormai e` obbligatoria?</p>
<div class="wp-caption aligncenter" style="width: 590px"><img alt="Energy Saver Icon" src="http://www.kill-9.it/images/energyicon.png" title="Energy Saver Icon" width="580" height="224" /><p class="wp-caption-text">Energy Preferences Icon</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2009/08/16/osx-nuova-icona-per-le-preferenze-energetiche/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ipod 6G (classic) vs Ipod 5G (video)</title>
		<link>http://www.kill-9.it/blog/index.php/2007/09/30/ipod-6g-classic-vs-ipod-5g-video/</link>
		<comments>http://www.kill-9.it/blog/index.php/2007/09/30/ipod-6g-classic-vs-ipod-5g-video/#comments</comments>
		<pubDate>Sat, 29 Sep 2007 23:36:54 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Italiano]]></category>
		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/index.php/2007/09/30/ipod-6g-classic-vs-ipod-5g-video/</guid>
		<description><![CDATA[Ieri ho provato uno dei nuovi Ipod. L&#8217;interfaccia mi pare migliorata, ugualmente usabile e rapida. In alcuni casi presenta informazioni che sul mio (5G) non ci sono. Mi chiedevo quante differenze ci fossero a livello hardware tra le due serie, e se fosse possibile mettere il firmware del nuovo sul vecchio. Direi da quello che [...]]]></description>
			<content:encoded><![CDATA[<p>Ieri ho provato uno dei nuovi Ipod.<br />
L&#8217;interfaccia mi pare migliorata, ugualmente usabile e rapida. In alcuni casi presenta informazioni che sul mio (5G) non ci sono.<br />
Mi chiedevo quante differenze ci fossero a livello hardware tra le due serie, e se fosse possibile mettere il firmware del nuovo sul vecchio. Direi da quello che ho letto che al momento non sia possibile, e pare che tra le altre cose il 6G monti una componentistica audio diversa dal precedente, che ad un orecchio allenato &#8220;suona&#8221; diversamente.<br />
Ovviamente qualcuno si e` preso la briga di <a href="http://homepage.mac.com/marc.heijligers/audio/ipod/comparison/measurements/measurements.html">analizzare la resa</a> con una certa precisione in un articolo lungo e dettagliato (di cui ho capito si e no la meta`).<br />
Posto che probabilmente io non mi accorgerei della differenza, i piu` audiofili forse e` meglio che attendano di capire se un ulteriore aggiornamento firmware risolvera` il &#8220;problema&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2007/09/30/ipod-6g-classic-vs-ipod-5g-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audio update 2007-001</title>
		<link>http://www.kill-9.it/blog/index.php/2007/07/10/audio-update-2007-001/</link>
		<comments>http://www.kill-9.it/blog/index.php/2007/07/10/audio-update-2007-001/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 18:41:04 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Italiano]]></category>
		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/index.php/2007/07/10/audio-update-2007-001/</guid>
		<description><![CDATA[Ah ecco&#8230; davo la colpa alla [stanchezza&#124;vecchiaia&#124;estate&#124;ora tarda], invece non me lo ero sognato: The Audio Update 2007-001 addresses an issue with version 1.0 of the Mac OS X 10.4.10 Update in which a &#8220;popping&#8221; sound might be heard with some external speakers on Intel-based Mac. This update is recommended for all Intel-based Macs running [...]]]></description>
			<content:encoded><![CDATA[<p>Ah ecco&#8230; davo la colpa alla [stanchezza|vecchiaia|estate|ora tarda], invece non me lo ero sognato:</p>
<blockquote><p>The Audio Update 2007-001 addresses an issue with version 1.0 of the Mac OS X 10.4.10 Update in which a &#8220;popping&#8221; sound might be heard with some external speakers on Intel-based Mac. This update is recommended for all Intel-based Macs running Mac OS X 10.4.10.</p></blockquote>
<p>Update disponibile nei posti soliti, o via SoftwareUpdate (richiede reboot, anche se&#8230;<br />
<code><br />
beepbeep:~ zen$ kextstat | grep -i audio<br />
   77    4 0x7c4000   0x17000    0x16000    com.apple.iokit.IOAudioFamily (1.6.0b7) &lt;76 35 11><br />
   79    1 0x8ae000   0x4b000    0x4a000    com.apple.driver.AppleFWAudio (2.1.0fc9) &lt;78 77 40 11><br />
   80    0 0x8f9000   0x3000     0x2000     com.apple.driver.AppleMLANAudio (2.1.0fc9) &lt;79 78 40 11><br />
   82    0 0x915000   0x4000     0x3000     com.apple.driver.AudioIPCDriver (1.0.2) &lt;77 5 4 3 2><br />
  102    0 0x9d6000   0xc000     0xb000     com.apple.driver.IOBluetoothSCOAudioDriver (1.9f8) &lt;77 64 11><br />
</code><br />
rimango dell&#8217;idea che un kextunload &#038;&#038; kextload potrebbero farlo fare, alle procedurine. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2007/07/10/audio-update-2007-001/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MKCS, alas MacBook Keyboard Crack Syndrome</title>
		<link>http://www.kill-9.it/blog/index.php/2007/07/06/mkcs-alas-macbook-keyboard-crack-syndrome/</link>
		<comments>http://www.kill-9.it/blog/index.php/2007/07/06/mkcs-alas-macbook-keyboard-crack-syndrome/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 21:43:33 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Italiano]]></category>
		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/index.php/2007/07/06/mkcs-alas-macbook-keyboard-crack-syndrome/</guid>
		<description><![CDATA[Uops, stavo scrivendo il post in inglese, e poi mi sono reso conto che non aveva alcun senso. Ci riprovo: Prima che succedesse ad un amico ed a me, ignoravo completamente che il problema esistesse. Le tastiere di alcune serie di MacBook tendono a sviluppare una graziosa crepa nella parte anteriore destra, proprio in corrispondenza [...]]]></description>
			<content:encoded><![CDATA[<p>Uops, stavo scrivendo il post in inglese, e poi mi sono reso conto che non aveva alcun senso. Ci riprovo:<br />
Prima che succedesse ad un amico ed a me, ignoravo completamente che il problema esistesse.<br />
<strong>Le tastiere</strong> di alcune serie di <strong>MacBook</strong> tendono a sviluppare <strong>una graziosa crepa</strong> nella parte anteriore destra, proprio in corrispondenza del punto di battuta dello schermo contro il case.<br />
Flickr ne ha <a href="http://www.flickr.com/search/?q=macbook%20crack&#038;w=all">una esauriente collezione</a>, percio&#8217; vi risparmio una foto della mia.<br />
Complice il fatto che dopo solo 8 mesi (e ~60 cicli di ricarica) la batteria indicasse una capacita` massima pari alla meta` circa della nuova, mi sono deciso a dare un colpo di telefono ad un centro di assistenza Mac che per me fosse comodo.<br />
Pare siano <strong>entrambi problemi noti</strong> (almeno a chi maneggia un numero considerevole di Mac) ed entrambi vengono <strong>risolti in garanzia</strong>, pero`:<br />
- la batteria va lasciata presso di loro, che ne ordinano una nuova e la fanno arrivare (almeno in linea teorica)<br />
- la tastiera non viene sostituita in loco immediatamente, solitamente chiedono di lasciare il mac per circa 4 giorni.</p>
<p>Visto che il mio MacBook non lo lascio in mano a nessuno (soprattutto con il mio disco dentro), stasera sono stato cortesemente avvisato che erano arrivate sia la batteria che la tastiera sostitutive (tempo ~4gg in effetti), e di fiondarmi in negozio per la sostituzione visto che a quanto pare hanno delle tempistiche piuttosto strette da rispettare.</p>
<p>Batteria nuova, spettacolo.<br />
Tastiera nuova, spettacolo.<br />
[<em>E qui, il Nostro ammette un concorso di colpa per non averlo fatto notare a chi ha preso nota del problema durante la prima visita, e sostiene di non averci proprio pensato, e che per lui e` naturale avere le {}, le [], la ~ e la \ a portata di mano e non sentire la mancanza delle accentate&#8230;</em>]</p>
<p>&#8230; aspetta un momento&#8230; mi hanno montato una TASTIERA ITALIANA! ARGH!<br />
Sollevo la questione, e il gentilissimo ragazzo che mi ha fatto la sostituzione ha detto che mi richiamera` settimana prossima per ri-trapiantare una tastiera con layout US al suo posto sul Mac. Uff, pero`.</p>
<p>*UPDATE*: Venerdi` scorso (27/07), dopo sole 3 settimane, finalmente mi e` stata restituita una tastiera americana. Ora il mondo gira un po&#8217; piu` rotondo.</p>
<p>Vi ho gia` detto di quanto <a href="http://lloogg.com/">LLOOGG</a> sia bello, senza zuccheri aggiunti ed aumenti la vostra potenza sessuale se siete <em>omarini</em>? Si`, eh?<br />
Vabbe`, allora vi dico che anche l&#8217;ultimo album dei Dream Theater, <em>Systematic Chaos</em> non e` niente male. Molto&#8230; &#8220;loro-ultimo-periodo&#8221;, quindi non aspettatevi di nuovo Images and Words, pero` dopo un primo ascolto pare bello.</p>
<p><strong>PS: feedback richiesto:</strong> il fatto che alcune &#8220;parole chiave&#8221; nel post vengano messe in grassetto vi aiuta? vi infastidisce? non vi fa ne caldo ne freddo? Io ho la mia opinione in proposito, ma sarei curioso di fare un micro sondaggio tra chi legge qui e poi uno piu` ampio.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2007/07/06/mkcs-alas-macbook-keyboard-crack-syndrome/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Metasploit 3.0 e MacOSX 10.4.9</title>
		<link>http://www.kill-9.it/blog/index.php/2007/05/08/metasploit-30-e-macosx-1049/</link>
		<comments>http://www.kill-9.it/blog/index.php/2007/05/08/metasploit-30-e-macosx-1049/#comments</comments>
		<pubDate>Tue, 08 May 2007 21:46:18 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Italiano]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.kill-9.it/blog/index.php/2007/05/08/metasploit-30-e-macosx-1049/</guid>
		<description><![CDATA[*update* 9 Maggio 23:05: la coincidenza e` impressionante. Nello stesso momento (quasi, non ho fatto i conti di chi prima e chi dopo) Richard Bejtlich (TaoSecurity) scriveva piu` o meno dello stesso argomento. E commentando gli stessi problemi! Questa sera ho provato a dare uno sguardo a Metasploit sul Mac: l&#8217;ultima versione con cui avevo [...]]]></description>
			<content:encoded><![CDATA[<p><strong>*update* 9 Maggio 23:05</strong>: la coincidenza e` impressionante.<br />
Nello stesso momento (quasi, non ho fatto i conti di chi prima e chi dopo) Richard Bejtlich (<a href="http://taosecurity.blogspot.com/">TaoSecurity</a>) scriveva piu` o meno <a href="http://taosecurity.blogspot.com/2007/05/metasploit-3-on-freebsd.html">dello stesso argomento</a>. E commentando gli stessi problemi! </p>
<p>Questa sera ho provato a dare uno sguardo a Metasploit sul Mac: l&#8217;ultima versione con cui avevo giocato era una delle beta della 3.0, e avevo ancora il Mac PPC.<br />
Sono su un Mac aggiornato alla ultima release (10.4.9 / Intel), ruby dice di essere<br />
<code><br />
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]</code></p>
<p>ma visto che mi sono guardato bene dal leggere la documentazione, all&#8217;esecuzione della console con interfaccia web di Metasploit sono stato accolto da questo messaggio:</p>
<p><code>./script/../config/boot.rb:18:in `require': No such file to load -- rubygems (LoadError)<br />
        from ./script/../config/boot.rb:18<br />
        from ./script/server:2:in `require'<br />
        from ./script/server:2<br />
        from ./msfweb:82:in `load'<br />
        from ./msfweb:82<br />
</code></p>
<p>dal che ne ho brillantemente dedotto che non ci fosse rubygems installato.<br />
Ora, si presentavano due opzioni:</p>
<ul>
<li>installare rubygems dai ports (MacPorts), il che si porta dietro altre cosette fastidiose come <strong>tutto il Perl</strong> (che non ho nessuna intenzione di compilare un&#8217;altra volta)
</li>
<li>installare il tutto dritto sulla parte di ruby di sistema</li>
</ul>
<p>La seconda opzione e` decisamente piu` rapida.<br />
<span id="more-186"></span><br />
Quindi:</p>
<ul>
<li>si va <a href="http://rubygems.org/read/chapter/3">qui</a>, si scarica l&#8217;ultima versione disponibile (in questo caso, la 0.9.2)</li>
<li>si spacchetta e si installa il tutto:<br />
<code><br />
tar xvfz rubygems-0.9.2.tgz<br />
cd rubygems-0.9.2<br />
ruby setup.rb<br />
</code></li>
<p>(abbiamo rubygems installato, ora funziona il comando <code>gem</code>)</p>
<li>ora proviamo ad installare Ruby On Rails come dice la documentazione di Metasploit (che nel frattempo abbiamo letto)
<p><code>gem install -v1.2.2 rails</code></p>
<p>per scoprire che la 1.2.2 non e` piu` disponibile. Quindi installiamo l&#8217;ultima.</li>
<li>Proviamo ottimisti a lanciare <code>./msfweb</code>, che protesta vivacemente dicendo
<p><code>Cannot find gem for Rails ~>1.2.2.0:<br />
    Install the missing gem with 'gem install -v=1.2.2 rails', or change environment.rb to define RAILS_GEM_VERSION with your desired version.</code></p>
<p>Ok, scopriamo quale versione di RoR mi ha installato (<code>gem list</code>, e si cerca rails) e andiamo a sistemare il file</p>
<p><code>./data/msfweb/config/environment.rb</code></p>
<p>mettendo la versione giusta di RoR:<br />
<code>RAILS_GEM_VERSION = '<strong>1.2.3</strong>' unless defined? RAILS_GEM_VERSION</code>
</li>
</ul>
<p>Ahh. Enjoy.</p>
<p><code>$ ./msfweb </p>
<p>[*] Starting msfweb v3.0 on http://127.0.0.1:55555/</p>
<p>=> Booting WEBrick...<br />
=> Rails application started on http://127.0.0.1:55555<br />
=> Ctrl-C to shutdown server; call with --help for options<br />
[2007-05-08 23:40:02] INFO  WEBrick 1.3.1<br />
[2007-05-08 23:40:02] INFO  ruby 1.8.2 (2004-12-25) [universal-darwin8.0]<br />
[2007-05-08 23:40:02] INFO  WEBrick::HTTPServer#start: pid=8915 port=55555<br />
</code></p>
<p>L&#8217;interfaccia e` davvero &#8220;<em>una fiqata pazzesca</em>&#8220;(C), moooolto webduepuntozero.</p>
<p><em>Note to self</em>: oggettivamente ho impiegato di piu` a scrivere questo post che a sistemare le cose. Bisogna che capisca se ne vale la pena.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kill-9.it/blog/index.php/2007/05/08/metasploit-30-e-macosx-1049/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
