<?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>Michele Manzotti &#187; BackTrack</title>
	<atom:link href="http://www.manzotti.eu/tag/backtrack/feed" rel="self" type="application/rss+xml" />
	<link>http://www.manzotti.eu</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 09:56:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>SSH anonimo via TOR</title>
		<link>http://www.manzotti.eu/ssh-anonimo-via-tor</link>
		<comments>http://www.manzotti.eu/ssh-anonimo-via-tor#comments</comments>
		<pubDate>Fri, 04 Sep 2009 23:52:05 +0000</pubDate>
		<dc:creator>manzotti.eu</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[anonima]]></category>
		<category><![CDATA[BackTrack]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tor]]></category>

		<guid isPermaLink="false">http://manzotti.eu/?p=1459</guid>
		<description><![CDATA[Dopo aver installato il Tor in BT4, vediamo come poterlo utilizzare per effettuare connessioni ssh anonime. La suite del pacchetto mette a disposizione l&#8217;utility torify che come vedete ci permette di effettuare connessioni TCP via tor: $ apropos torify torify (1) - wrapper for tsocks and tor &#8230;.e per non farci mancare proprio nulla: $ [...]]]></description>
			<content:encoded><![CDATA[<p>Dopo aver installato il <a href="http://manzotti.eu/installare-tor-su-backtrack-4">Tor in BT4</a>, vediamo come poterlo utilizzare per effettuare connessioni ssh anonime.<br />
La suite del pacchetto mette a disposizione l&#8217;utility <strong>torify</strong> che come vedete ci permette di effettuare connessioni TCP via tor:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ apropos torify
torify (1)           - wrapper for tsocks and tor</pre></div></div>

<p>&#8230;.e per non farci mancare proprio nulla:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ apropos tor-resolve
tor-resolve (1)      - resolve a hostname to an IP address via tor</pre></div></div>

<p>Bè credo che sia chiaro&#8230;. quindi digitando semplicemente:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ torify ssh root@a.b.c.d</pre></div></div>

<p>&#8230; avremo la nostra bella shell anonima :)</p>
<p>Una via speculare potrebbe essere quella del programma connect, disponibile su ubuntu e debian come <strong>connect-proxy</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ ssh -o ProxyCommand=&quot;/usr/bin/connect -S 127.0.0.1:9050 %h %p&quot; root@a.b.c.d</pre></div></div>

<p>Ulteriori riferimenti: <a href="http://psylocibe.noblogs.org/post/2008/07/15/come-aprire-una-connessione-anonima-verso-un-server-con-ssh-e-tor">qui</a><br />
<br />
Alla prossima ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manzotti.eu/ssh-anonimo-via-tor/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrare Metasploit e Nessus</title>
		<link>http://www.manzotti.eu/integrare-metasploit-e-nessus</link>
		<comments>http://www.manzotti.eu/integrare-metasploit-e-nessus#comments</comments>
		<pubDate>Fri, 22 May 2009 23:14:47 +0000</pubDate>
		<dc:creator>manzotti.eu</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[BackTrack]]></category>
		<category><![CDATA[integrare]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[Nessus]]></category>
		<category><![CDATA[nmap]]></category>

		<guid isPermaLink="false">http://manzotti.eu/?p=941</guid>
		<description><![CDATA[Dopo aver letto come installare e aggiornare Nessus in questo post, vediamo ora come poterlo utilizzare con il framework di Metasploit. Una guida molto interessante per muovere i primi passi la trovate sul sito del mio amico Andrea. Lanciamo Nessus e dopo aver effettuato la connessione, proprio perchè lavoriamo in modalità client server, procediamo con [...]]]></description>
			<content:encoded><![CDATA[<p>Dopo aver letto come installare e aggiornare Nessus in questo <a href="http://manzotti.eu/installare-nessus-su-backtrack-4"><u>post</u></a>, vediamo ora come poterlo utilizzare con il framework di <a href="http://www.metasploit.com/"><u>Metasploit</u></a>. Una guida molto interessante per muovere i primi passi la trovate sul <a href="http://www.securitygiampy.altervista.org/metasploit.htm"><u>sito</u></a> del mio amico Andrea.</p>
<p>Lanciamo Nessus e dopo aver effettuato la connessione, proprio perchè lavoriamo in modalità client server, procediamo con la scansione del target. Terminata l&#8217;analisi possiamo salvare il tutto in un file con estensione <strong>.nbe</strong>, proprio come mostra l&#8217;immagine:</p>
<p style="text-align: center;"><a href="http://farm3.static.flickr.com/2445/3554545607_7caac93bbf_o.jpg"><img class="aligncenter" src="http://farm3.static.flickr.com/2445/3554545607_7caac93bbf_o.jpg" title="Nesuss_save_as_nbe" width="538" height="323" alt="Nesuss_save_as_nbe"/></a></p>
<p>A questo punto colleghiamoci alla console di Metasploit e diamogli come input il file appena creato. Per far questo è necessario creare un database (nel mio caso ho utilizzato mysql, tuttavia supporta anche postgres e sqlite) dove poter importare i dati di Nessus. Niente di più semplice:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">msf <span style="color: #339933;">&gt;</span> db_driver mysql
<span style="color: #009900;">&#91;</span><span style="color: #339933;">*</span><span style="color: #009900;">&#93;</span> Using database driver mysql
msf <span style="color: #339933;">&gt;</span> db_create root<span style="color: #339933;">:</span>pwd<span style="color: #0000ff;">@localhost</span><span style="color: #339933;">/</span>host1
msf <span style="color: #339933;">&gt;</span> db_import_nessus_nbe <span style="color: #339933;">/</span>root<span style="color: #339933;">/</span>Documents<span style="color: #339933;">/</span>scansioni<span style="color: #339933;">/</span>host1<span style="color: #339933;">.</span>nbe</pre></div></div>

<p>Ora avremo Metasploit con il database &#8220;host1&#8243; caricato e pronto per essere lanciato. Vediamo infatti nell&#8217;immagine successiva come abbia riconosciuto l&#8217;host e i servizi precedentemente individuati da Nessus:</p>
<p style="text-align: center;"><a href="http://farm4.static.flickr.com/3388/3554509405_b2865730f5_o.jpg"><img class="aligncenter" title="metasploit_nessus" src="http://farm4.static.flickr.com/3388/3554509405_b2865730f5_o.jpg" alt="metasploit_nessus" width="538" height="323" /></a></p>
<p>
Ovviamente è possibile fare la stessa cosa anche <a href="http://nmap.org/"><u>Nmap</u></a>. L&#8217;importante è eseguire una scansione con l&#8217;opzione <strong>-oX</strong> in modo che la salvi in file xml. Poi il procedimento con Metasploit rimane pressochè identico, tranne per il fatto che utilizzeremo il comando <strong>db_import_nmap_xml</strong> per importare l&#8217;xml.</p>
<p>
Il <strong><u>vantaggio</u></strong> di lavorare con i database sta nella possibilità di scindere la fase di auditing rispetto a quella dell&#8217;attacco vero e proprio in modo che il pen tester non debba successivamente ripetere le operazioni fatte nello step precedente.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manzotti.eu/integrare-metasploit-e-nessus/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installare Tor su BackTrack 4</title>
		<link>http://www.manzotti.eu/installare-tor-su-backtrack-4</link>
		<comments>http://www.manzotti.eu/installare-tor-su-backtrack-4#comments</comments>
		<pubDate>Fri, 27 Mar 2009 18:41:39 +0000</pubDate>
		<dc:creator>manzotti.eu</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[anonima]]></category>
		<category><![CDATA[BackTrack]]></category>
		<category><![CDATA[installare]]></category>
		<category><![CDATA[privoxy]]></category>
		<category><![CDATA[tor]]></category>

		<guid isPermaLink="false">http://manzotti.eu/?p=411</guid>
		<description><![CDATA[Vediamo come installare il Tor su BT4, strumento utile per la navigazione anonima sul web. Perchè tutto funzioni avremo bisogno di: - Tor, il demone; - Privoxy, un proxy locale a cui collegarci; - TorButton, un addons di Firefox per collegare il nostro browser. Dunque apriamo una shell e digitiamo: # apt-get install tor In [...]]]></description>
			<content:encoded><![CDATA[<p>Vediamo come installare il Tor su BT4, strumento utile per la navigazione anonima sul web.<br />
Perchè tutto funzioni avremo bisogno di:<br />
- <span style="text-decoration: underline;"><em>Tor</em></span>, il demone;<br />
- <span style="text-decoration: underline;"><em>Privoxy</em></span>, un proxy locale a cui collegarci;<br />
- <span style="text-decoration: underline;"><em>TorButton</em></span>, un addons di Firefox per collegare il nostro browser.</p>
<p>Dunque apriamo una shell e digitiamo:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apt-get install tor</span></pre></div></div>

<p>In questo modo installeremo anche Privoxy, poichè risulta essere una dipendenza del pacchetto Tor.<br />
Dunque, non ci resta che installare l&#8217;addons di Firefox presente <a href="https://addons.mozilla.org/en-US/firefox/downloads/latest/2275">qui</a>.<br />
Bene, ora che abbiamo tutti i pacchetti necessari, facciamo un minimo di configurazione. In particolare modifichiamo il file di conf di Privoxy presente nel percorso &#8220;/etc/privoxy/config&#8221; proprio come il seguente:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Generally, this file goes in /etc/privoxy/config</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Tor listens as a SOCKS4a proxy here:</span>
forward<span style="color: #339933;">-</span>socks4a <span style="color: #339933;">/</span> 127<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>1<span style="color: #339933;">:</span><span style="color: #cc66cc;">9050</span> <span style="color: #339933;">.</span>
confdir <span style="color: #339933;">/</span>etc<span style="color: #339933;">/</span>privoxy
logdir <span style="color: #339933;">/</span>var<span style="color: #339933;">/</span><span style="color: #000066;">log</span><span style="color: #339933;">/</span>privoxy
actionsfile standard  <span style="color: #666666; font-style: italic;"># Internal purpose, recommended</span>
actionsfile default   <span style="color: #666666; font-style: italic;"># Main actions file</span>
actionsfile user      <span style="color: #666666; font-style: italic;"># User customizations</span>
filterfile default<span style="color: #339933;">.</span>filter
&nbsp;
<span style="color: #666666; font-style: italic;"># Don't log interesting things, only startup messages, warnings and errors</span>
<span style="color: #666666; font-style: italic;">#logfile logfile</span>
<span style="color: #666666; font-style: italic;">#jarfile jarfile</span>
<span style="color: #666666; font-style: italic;">#debug   0    # show each GET/POST/CONNECT request</span>
debug   <span style="color: #cc66cc;">4096</span> <span style="color: #666666; font-style: italic;"># Startup banner and warnings</span>
debug   <span style="color: #cc66cc;">8192</span> <span style="color: #666666; font-style: italic;"># Errors - *we highly recommended enabling this*</span>
&nbsp;
user<span style="color: #339933;">-</span>manual <span style="color: #339933;">/</span>usr<span style="color: #339933;">/</span>share<span style="color: #339933;">/</span>doc<span style="color: #339933;">/</span>privoxy<span style="color: #339933;">/</span>user<span style="color: #339933;">-</span>manual
listen<span style="color: #339933;">-</span>address  127<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>1<span style="color: #339933;">:</span><span style="color: #cc66cc;">8118</span>
toggle  <span style="color: #cc66cc;">1</span>
enable<span style="color: #339933;">-</span>remote<span style="color: #339933;">-</span>toggle <span style="color: #cc66cc;">0</span>
enable<span style="color: #339933;">-</span>edit<span style="color: #339933;">-</span>actions <span style="color: #cc66cc;">0</span>
enable<span style="color: #339933;">-</span>remote<span style="color: #339933;">-</span>http<span style="color: #339933;">-</span>toggle <span style="color: #cc66cc;">0</span>
buffer<span style="color: #339933;">-</span>limit <span style="color: #cc66cc;">4096</span></pre></div></div>

<p>Riavviamo i servizi e Firefox:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/init.d/tor start</span>
Raising maximum number of filedescriptors <span style="color: #009900;">&#40;</span>ulimit <span style="color: #339933;">-</span>n<span style="color: #009900;">&#41;</span> to <span style="color: #cc66cc;">32768</span><span style="color: #339933;">.</span>
Starting tor daemon<span style="color: #339933;">:</span> tor<span style="color: #339933;">...</span>
Mar <span style="color: #cc66cc;">27</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">31</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">23.179</span> <span style="color: #009900;">&#91;</span>notice<span style="color: #009900;">&#93;</span> Tor v0<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>31 <span style="color: #009900;">&#40;</span>r16744<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span> This is experimental software<span style="color: #339933;">.</span> Do <span style="color: #b1b100;">not</span> rely on it <span style="color: #b1b100;">for</span> strong anonymity<span style="color: #339933;">.</span> <span style="color: #009900;">&#40;</span>Running on Linux i686<span style="color: #009900;">&#41;</span>
Mar <span style="color: #cc66cc;">27</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">31</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">23.180</span> <span style="color: #009900;">&#91;</span>notice<span style="color: #009900;">&#93;</span> Initialized libevent version 1<span style="color: #339933;">.</span>3e using method epoll<span style="color: #339933;">.</span> Good<span style="color: #339933;">.</span>
Mar <span style="color: #cc66cc;">27</span> <span style="color: #cc66cc;">19</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">31</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">23.181</span> <span style="color: #009900;">&#91;</span>notice<span style="color: #009900;">&#93;</span> Opening Socks listener on 127<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>1<span style="color: #339933;">:</span><span style="color: #cc66cc;">9050</span>
done<span style="color: #339933;">.</span>
<span style="color: #666666; font-style: italic;"># /etc/init.d/privoxy start</span>
Starting filtering proxy server<span style="color: #339933;">:</span> privoxy<span style="color: #339933;">.</span></pre></div></div>

<p>A questo punto abilitiamo l&#8217;addons di Firefox e controlliamo che il tutto funzioni collegandoci a questo <a href="https://check.torproject.org/">link</a>.<br />
Se vi ritorna una scritta verde indicando che il Tor è abilitato allora funziona, altrimenti provate a seguire la guida ufficiale <a href="https://www.torproject.org/docs/tor-doc-unix.html.it">qui</a>.</p>
<p>Buona navigazione!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manzotti.eu/installare-tor-su-backtrack-4/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installare Nessus su BackTrack 4</title>
		<link>http://www.manzotti.eu/installare-nessus-su-backtrack-4</link>
		<comments>http://www.manzotti.eu/installare-nessus-su-backtrack-4#comments</comments>
		<pubDate>Thu, 05 Mar 2009 22:16:20 +0000</pubDate>
		<dc:creator>manzotti.eu</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[BackTrack]]></category>
		<category><![CDATA[installare]]></category>
		<category><![CDATA[Nessus]]></category>
		<category><![CDATA[scanning]]></category>

		<guid isPermaLink="false">http://manzotti.eu/?p=311</guid>
		<description><![CDATA[Ora che BackTrack 4 è basata su Ubuntu, installare pacchetti aggiuntivi è un&#8217;operazione facile e veloce. Vediamo come installare Nessus. Dapprima è necessario collegarsi a nessus.org ed effettuare la registrazione; dopo di che scarichiamo i due pacchetti .deb: - Nessus-3.2.1-ubuntu804_i386.deb - NessusClient-3.2.1.1-ubuntu804.i386.deb Rispettivamente il server e il client dell&#8217;applicazione. Prima di installarli però controlliamo di [...]]]></description>
			<content:encoded><![CDATA[<p>Ora che <a href="http://www.remote-exploit.org/backtrack_download.html">BackTrack 4</a> è basata su Ubuntu, installare pacchetti aggiuntivi è un&#8217;operazione facile e veloce. Vediamo come installare <a href="http://nessus.org/">Nessus</a>.</p>
<p>Dapprima è necessario collegarsi a nessus.org ed effettuare la registrazione; dopo di che scarichiamo i due pacchetti .deb:</p>
<p>- Nessus-3.2.1-ubuntu804_i386.deb<br />
- NessusClient-3.2.1.1-ubuntu804.i386.deb</p>
<p>Rispettivamente il server e il client dell&#8217;applicazione.</p>
<p>Prima di installarli però controlliamo di avere i seguenti pacchetti. Nel dubbio, procediamo comunque con apt:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># apt-get install libqt4-core libqt4-gui libqtcore4 libqt4-network libqt4-script libqt4-xml libqt4-dbus libqt4-test libqtgui4 libqt4-svg libqt4-opengl libqt4-designer libqt4-assistant</span></pre></div></div>

<p>Ora installiamo i due pacchetti precedentemente scaricati:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># dpkg --install Nessus-3.2.1-ubuntu804_i386.deb</span>
<span style="color: #666666; font-style: italic;"># dpkg --install NessusClient-3.2.1.1-ubuntu804.i386.deb</span></pre></div></div>

<p>Una volta terminate le installazioni, sulla macchina server procediamo alla creazione del certificato e dell&#8217;utente che effettuarà l&#8217;accesso:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /opt/nessus/sbin/nessus-mkcert</span>
<span style="color: #666666; font-style: italic;"># /opt/nessus/sbin/nessus-adduser</span></pre></div></div>

<p>Durante la creazione del certificato, andrà benissimo utilizzare le opzioni di default segnalate.</p>
<p>A questo punto non ci rimane che <a href="http://nessus.org/plugins/index.php?view=register-info">registrare</a> il prodotto per poter aggiornare i plugin di Nessus. Vi sono due alternative: la versione a pagamento (circa $1,200) oppure quella <a href="http://nessus.org/plugins/index.php?view=register">free</a>.<br />
Una volta ottenuta la chiave possiamo registrare Nessus tramite il comando:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /opt/nessus/bin/nessus-fetch --register [chiave]</span></pre></div></div>

<p>Se tutto è andato a buon fine, possiamo lanciare l&#8217;applicazione:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/init.d/nessusd start</span>
<span style="color: #666666; font-style: italic;"># /opt/nessus/bin/NessusClient</span></pre></div></div>

<p>L&#8217;interfaccia che ci troviamo di fronte risulta essere semplice e intuitiva. Cliccando su &#8220;<em>connect</em>&#8221; e successivamente su &#8220;<em>edit</em>&#8221; possiamo definire l&#8217;<span style="text-decoration: underline;">hostname</span>, la <span style="text-decoration: underline;">porta</span> (di solito la 1241) l&#8217;<span style="text-decoration: underline;">username</span> e la <span style="text-decoration: underline;">password</span> con i quali accedere al server. Effettuata la connessione, nella parte sinistra possiamo definire il target (range o ip singolo) da scansire mentre in quella destra definiamo la politica della scansione (come le opzioni, i plugin ecc..).</p>
<p>Infine per aggiornare i plugin alle ultime versioni disponibili, basta semplicemente digitare:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /opt/nessus/sbin/nessus-update-plugins -v</span></pre></div></div>

<p>Buona scansione a tutti.</p>
<p>Riferimenti <a href="http://nessus.org/documentation/nessus_3.2_installation_guide.pdf">pdf_install</a> <a href="http://nessus.org/documentation/NessusClient_3.2_User_Guide.pdf">pdf_configure</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.manzotti.eu/installare-nessus-su-backtrack-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installare BackTrack 4 beta su hard disk</title>
		<link>http://www.manzotti.eu/installare-backtrack-4-beta-su-hard-disk</link>
		<comments>http://www.manzotti.eu/installare-backtrack-4-beta-su-hard-disk#comments</comments>
		<pubDate>Fri, 20 Feb 2009 23:40:08 +0000</pubDate>
		<dc:creator>manzotti.eu</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[BackTrack]]></category>
		<category><![CDATA[installare]]></category>
		<category><![CDATA[penetration]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://manzotti.eu/?p=282</guid>
		<description><![CDATA[Vediamo come installare la nostra BT4 beta sull&#8217; HD. Avviamo il dvd e dopo aver caricato la tastiera italiana &#8220;loadkeys it&#8221; prepariamo l&#8217;HD per l&#8217;installazione creando 3 partizione primarie: /dev/sda1 --&#62; /boot /dev/sda2 --&#62; swap /dev/sda3 --&#62; / Ovviamente lo spazio dipende da quanto abbiamo libero nel nostro hd. Tuttavia 128M, 1024M e 10G rispettivamente [...]]]></description>
			<content:encoded><![CDATA[<p>Vediamo come installare la nostra <a href="http://remote-exploit.org/backtrack_download.html">BT4 beta</a> sull&#8217; HD.</p>
<p>Avviamo il dvd e dopo aver caricato la tastiera italiana &#8220;<strong>loadkeys it</strong>&#8221; prepariamo l&#8217;HD per l&#8217;installazione creando 3 partizione primarie:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #339933;">/</span>dev<span style="color: #339933;">/</span>sda1 <span style="color: #339933;">--&gt;</span> <span style="color: #339933;">/</span>boot
<span style="color: #339933;">/</span>dev<span style="color: #339933;">/</span>sda2 <span style="color: #339933;">--&gt;</span> <span style="color: #006600;">swap</span>
<span style="color: #339933;">/</span>dev<span style="color: #339933;">/</span>sda3 <span style="color: #339933;">--&gt;</span> <span style="color: #339933;">/</span></pre></div></div>

<p>Ovviamente lo spazio dipende da quanto abbiamo libero nel nostro hd. Tuttavia 128M, 1024M e 10G rispettivamente dovrebbe andare.<br />
Possiamo fare questo sia con &#8220;<strong>fdisk</strong> /dev/sda&#8221; che con &#8220;<strong>cfdisk</strong>&#8220;, ricordandoci di mettere il type 82 allo swap e il bootable alla /boot.</p>
<p>Ora non ci resta che seguire questi comandi:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mke2fs /dev/sda1</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mkswap /dev/sda2</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># swapon /dev/sda2</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mkreiserfs /dev/sda3</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mkdir /mnt/bt</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mount /dev/sda3 /mnt/bt/</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mkdir /mnt/bt/boot</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mount /dev/sda1 /mnt/bt/boot</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># cp --preserve -R /{bin,dev,home,pentest,root,usr,boot,etc,lib,opt,sbin,var} /mnt/bt/</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mkdir /mnt/bt/{mnt,tmp,proc,sys}</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># chmod 1777 /mnt/bt/tmp/</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mount -t proc proc /mnt/bt/proc</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># mount -o bind /dev /mnt/bt/dev/</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># chroot /mnt/bt/ /bin/bash</span></pre></div></div>

<p>Configuriamo il boot loader lilo editando il file /etc/lilo.conf come segue:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">lba32
boot<span style="color: #339933;">=/</span>dev<span style="color: #339933;">/</span>sda
root<span style="color: #339933;">=/</span>dev<span style="color: #339933;">/</span>sda3
&nbsp;
<span style="color: #666666; font-style: italic;"># bitmap=/boot/sarge.bmp</span>
<span style="color: #666666; font-style: italic;"># bmp-colors=1,,0,2,,0</span>
<span style="color: #666666; font-style: italic;"># bmp-table=120p,173p,1,15,17</span>
<span style="color: #666666; font-style: italic;"># bmp-timer=254p,432p,1,0,0</span>
<span style="color: #666666; font-style: italic;"># install=bmp</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># delay=20</span>
&nbsp;
prompt
timeout<span style="color: #339933;">=</span><span style="color: #cc66cc;">50</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># map=/boot/map</span>
&nbsp;
vga<span style="color: #339933;">=</span>0x317
&nbsp;
image<span style="color: #339933;">=/</span>boot<span style="color: #339933;">/</span>vmlinuz
label<span style="color: #339933;">=</span><span style="color: #ff0000;">&quot;BT4&quot;</span>
read<span style="color: #339933;">-</span>only
initrd<span style="color: #339933;">=/</span>boot<span style="color: #339933;">/</span>splash<span style="color: #339933;">.</span>initrd
append<span style="color: #339933;">=</span>quiet</pre></div></div>

<p>Facendo bene attenzione alle partizioni di root e di boot.</p>
<p>A questo punto modifichiamo il file /etc/fstab elimando i mount inutili come segue:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #339933;">/</span>dev<span style="color: #339933;">/</span>sda3 <span style="color: #339933;">/</span> reiserfs defaults <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #666666; font-style: italic;"># AutoUpdate</span>
<span style="color: #339933;">/</span>dev<span style="color: #339933;">/</span>sda2 none swap sw <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span>
proc <span style="color: #339933;">/</span>proc proc defaults <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #666666; font-style: italic;"># AutoUpdate</span>
sysfs <span style="color: #339933;">/</span>sys sysfs defaults <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #666666; font-style: italic;"># AutoUpdate</span>
devpts <span style="color: #339933;">/</span>dev<span style="color: #339933;">/</span>pts devpts gid<span style="color: #339933;">=</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span>mode<span style="color: #339933;">=</span><span style="color: #cc66cc;">620</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #666666; font-style: italic;"># AutoUpdate</span>
tmpfs <span style="color: #339933;">/</span>dev<span style="color: #339933;">/</span>shm tmpfs defaults <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #666666; font-style: italic;"># AutoUpdate</span></pre></div></div>

<p>Infine salviamo le modifiche di lilo:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:/</span><span style="color: #666666; font-style: italic;"># lilo -v</span></pre></div></div>

<p>Ora usciamo dal filesytem chrootato e rebootiamo la macchina!!</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:/</span><span style="color: #666666; font-style: italic;"># exit</span>
<span style="color: #000066;">exit</span>
root<span style="color: #0000ff;">@bt</span><span style="color: #339933;">:~</span><span style="color: #666666; font-style: italic;"># reboot</span></pre></div></div>

<p>Se tutto è andato per il verso giusto avrete la vostra BT4 beta installata e funzionante.<br />
Buon pen testing a tutti.</p>
<p>Riferimenti <a href="http://www.offensive-security.com/documentation/bt4install.pdf">pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.manzotti.eu/installare-backtrack-4-beta-su-hard-disk/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

