<?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; testing</title>
	<atom:link href="http://www.manzotti.eu/tag/testing/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>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>

