Archive for febbraio, 2009

feb 21 2009

Installare BackTrack 4 beta su hard disk

Published by manzotti under Pen Testing, manzotti.eu

Vediamo come installare la nostra BT4 beta sull’ HD.

Avviamo il dvd e dopo aver caricato la tastiera italiana “loadkeys it” prepariamo l’HD per l’installazione creando 3 partizione primarie:

/dev/sda1 --> /boot
/dev/sda2 --> swap
/dev/sda3 --> /

Ovviamente lo spazio dipende da quanto abbiamo libero nel nostro hd. Tuttavia 128M, 1024M e 10G rispettivamente dovrebbe andare.
Possiamo fare questo sia con “fdisk /dev/sda” che con “cfdisk“, ricordandoci di mettere il type 82 allo swap e il bootable alla /boot.

Ora non ci resta che seguire questi comandi:

root@bt:~# mke2fs /dev/sda1
root@bt:~# mkswap /dev/sda2
root@bt:~# swapon /dev/sda2
root@bt:~# mkreiserfs /dev/sda3
root@bt:~# mkdir /mnt/bt
root@bt:~# mount /dev/sda3 /mnt/bt/
root@bt:~# mkdir /mnt/bt/boot
root@bt:~# mount /dev/sda1 /mnt/bt/boot
root@bt:~# cp --preserve -R /{bin,dev,home,pentest,root,usr,boot,etc,lib,opt,sbin,var} /mnt/bt/
root@bt:~# mkdir /mnt/bt/{mnt,tmp,proc,sys}
root@bt:~# chmod 1777 /mnt/bt/tmp/
root@bt:~# mount -t proc proc /mnt/bt/proc
root@bt:~# mount -o bind /dev /mnt/bt/dev/
root@bt:~# chroot /mnt/bt/ /bin/bash

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

lba32
boot=/dev/sda
root=/dev/sda3
 
# bitmap=/boot/sarge.bmp
# bmp-colors=1,,0,2,,0
# bmp-table=120p,173p,1,15,17
# bmp-timer=254p,432p,1,0,0
# install=bmp
 
# delay=20
 
prompt
timeout=50
 
# map=/boot/map
 
vga=0x317
 
image=/boot/vmlinuz
label="BT4"
read-only
initrd=/boot/splash.initrd
append=quiet

Facendo bene attenzione alle partizioni di root e di boot.

A questo punto modifichiamo il file /etc/fstab elimando i mount inutili come segue:

/dev/sda3 / reiserfs defaults 0 0 # AutoUpdate
/dev/sda2 none swap sw 0 0
proc /proc proc defaults 0 0 # AutoUpdate
sysfs /sys sysfs defaults 0 0 # AutoUpdate
devpts /dev/pts devpts gid=5,mode=620 0 0 # AutoUpdate
tmpfs /dev/shm tmpfs defaults 0 0 # AutoUpdate

Infine salviamo le modifiche di lilo:

root@bt:/# lilo -v

Ora usciamo dal filesytem chrootato e rebootiamo la macchina!!

root@bt:/# exit
exit
root@bt:~# reboot

Se tutto è andato per il verso giusto avrete la vostra BT4 beta installata e funzionante.
Buon pen testing a tutti.

Riferimenti pdf

13 responses so far

feb 03 2009

Vmware gira sulla 902

Published by manzotti under manzotti.eu

Se vi dovesse capitare di installare una vmware server su una macchina windows e dovete poi accedervi da un player esterno: ricordatevi di configurare il firewall!

Il classico errore che compare è il seguente:

errore

Per porre rimedio basta andare nelle impostazioni del firewall e aggiungere un’eccezione indicando la 902 come numero di porta:

firewall

No responses yet