You are on page 1of 116

BackTrack

Akast saint H

Bluedon Information Security Technologies Co. Ltd.

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

1/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21


...................................................................................................................................................... 5
.............................................................................................................................................. 6
.
BackTrack ...................................................................................................... 6
.
BackTrack ........................................................................................ 10
.
BackTrack ..................................................................................................... 10
.
................................................................................................................ 12
.
................................................................................................................ 15
.
U 1 .............................................................................................................. 22
.
U 2 .............................................................................................................. 23
.
VMware ......................................................................................... 25
.
Vmware Tools ............................................................................................... 28
.
.................................................................................................... 31
.
ubuntu BackTrack ........................................................................................ 35
.
BackTrack .................................................................................................... 36
.
IP ........................................................................................................... 36
.
IP ........................................................................................................... 38
.
IP ........................................................................................................... 38
.
ADSL .................................................................................................... 41
.
........................................................................................................ 50
.
BackTrack ........................................................................................................ 53
.
BackTrack ............................................................................. 53
.
............................................................................................................ 57
.
BackTrack ..................................................................................... 61
.
................................................................................................ 61
.
.................................................................................................... 62
.
................................................................................................................ 64
.
Firefox .................................................................................................. 66
.
BackTrack ............................................................................................ 69
.
Windows ....................................................................................... 69
.
........................................................................................................ 71
.
U ............................................................................................................... 73
.
BackTrack .................................................................................................... 75
.
root ....................................................................................................... 75
.
.................................................................................................... 76
.
.................................................................................................... 78
.
........................................................................................................ 79
.
GPG ...................................................................................................... 80
.
apt ..................................................................................................... 80
.
dpkg .................................................................................................. 81
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

2/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

.
........................................................................................................ 81
.
............................................................................ 82
.
KDE Fluxbox .................................................................................. 82
. BackTrack QQ .............................................................................................. 86
.
BackTrack ............................................................................................................ 87
.
Rebuilding the BT4 ISO ........................................................................................ 87
.
.................................................................................................... 88
.
BackTrack .................................................................................................... 89
.
.................................................................................................... 89
1. rtl8187 vs r8187 ................................................................................................................... 89
2. b43 vs wl .............................................................................................................................. 89
3. ath5k vs. ath_pci .................................................................................................................. 90
4. compat wireless .................................................................................................................... 90
5. Tested and working cards ..................................................................................................... 91
6. Working, without injection................................................................................................... 91
7. NON working cards ............................................................................................................. 92
.
.................................................................................................... 92
.
BackTrack 4 Cuda ...................................................................................... 92
Installing the Nvidia Drivers .............................................................................................. 92
Installing the CUDA Toolkit .............................................................................................. 93
Installing the Nvidia SDK .................................................................................................. 93
Getting up and running with Pyrit...................................................................................... 94
Add CUDA syntax highlighting to Vim ............................................................................. 95
.
BackTrack 4 R2 Virtual Box ..................................................................... 95
Downloading and Installing ............................................................................................... 95
.
Virtual Box BackTrack ......................................................................... 96
Install Virtual Box guest additions in BackTrack .............................................................. 96
.
BackTrack VMware Workstation ..................................................... 98
.
BackTrack 4 R2 Compiz-Fusion ............................................................... 98
Downloading and Installing ............................................................................................... 98
Adding compiz to startup ................................................................................................... 98
.
Armitage ........................................................................................................ 99
.
OpenVas .............................................................................................. 101
Adding a user to OpenVas ................................................................................................ 102
Creating a Certificate ....................................................................................................... 103
Synchronize OpenVas NVT's ........................................................................................... 104
Start Openvas Scanner ..................................................................................................... 104
Start OpenVas Client and connect to Scanner .................................................................. 105
.
................................................................................................................. 108
.
BackTrack ........................................... 108
.
...................................................... 108
.
Ubuntu BackTrack4 ............................................... 108
.
.............................................................................. 109
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

3/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

.
BackTrack ............................................................................... 109
.
BackTrack 6432 .................................. 109
.
BackTrack 4 Final ................................................... 109
.
RC1 RC2 ................................................................. 109
.
BackTrack .................................. 110
.
BackTrack Windows ......................................... 110
. root ............................................................. 110
. BackTrack ............................................................... 110
. BackTrack ...................................................................... 110
. ...................................................................... 110
. BackTrack .......................................... 111
. BackTrack Ubuntu ................................. 111
. BackTrack .............................................. 111
. BackTrack VMWare Virtual box X? . 111
. USB ........................................................ 112
. ? ................................................................................... 112
.
IRC ? ............................................................... 112
.
Linux BackTrack ............................. 113
.
BackTrack .................................... 113
.
BackTrack ................................................................ 113
.
BackTrack ....................................................................... 113
.
BackTrack ................................... 114

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

4/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

BackTrack
BackTrack 4 R1 R2

BackTrack WIKI
200910
BackTrack4

BackTrack
WebFuzzers VoIP
RFIDPython GPU
BackTrack
Linux ubuntu ubuntu

Windows Windows
BackTrack
BackTrack 5 BT5
BackTrack BackTrack 4 R2http://www.BackTracklinux.org/downloads/ by the way , BackTrack 5510
backtrack
,
MagicTree backtrack 5

Akast Saint H

Courage, strength, determination!

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

5/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

backtrack
backtrack
backtrack
backtrack Linux
backtrack backtrack backtrack
backtrack

. BackTrack

BackTrack SLAX BackTrack 4 ubuntu


live usb live cd Linux BackTrack Auditor Security Live
CD2004 WHAX Whoppix2006 9 BackTrack
2007 6 BackTrack 4 R2
WiFiSlaxWifiwaynUbuntuSkyRidrPHLAKslitazmpentooNodeZero
REMnuxSecurity OnionOWASP livecd

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

6/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

2
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

7/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

4
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

8/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

9/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. BackTrack

. BackTrack
BackTrack VM USB
BackTrack http://www.BackTrack-linux.org/downloads/
BackTrack 4 R2 ISO VMware Image

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

10/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

MD5Linux MD5
md5sum Windows hashcalc
MD5

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

11/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

.
BackTrack
bt4-r2.iso 2G DVD

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

12/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

10

11

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

13/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

ImgBurn
BIOS BT
BackTrack forensicsno
swap startx

Start BackTrack Frame Buffer1024768

Start BackTrack FrameBuffer800600

live CD

root
toor

Start BackTrack Frame Buffer1024768


BackTrack
Start BackTrack FrameBuffer800600 BackTrack
Start BackTrack forensicsno swap

BackTrack
Start BackTrack in safe graphical mode
BackTrack
Start persistent live CD
live CD
Start BackTrack in text mode
BackTrack
Start BackTrack graphical mode from RAM RAM BackTrack
Memory test

Boot the first hard disk

12

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

14/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

13

.
BackTrack
install.sh shell
BackTrack
15
continue anyway
Linux
selected city1617

18
manual19
20G BackTrack
manual2048KB swap /
BackTrack live CD
BackTrack Grub
24

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

15/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

14

15
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

16/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

16

17
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

17/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

18

19
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

18/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

20

21
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

19/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

22

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

20/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

23

24

25

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

21/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. U 1
BackTrack
U U
2G U BackTrack 8G U FAT32
UNetbootinhttp://unetbootin.sourceforge.net/
UNetbootin Windows Linux
UNetbootin disk image BackTrack ISO
drive U OK U BackTrack
BIOS USB root toor

26

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

22/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

27

. U 2
U BackTrack Linux Live USB creator
http://www.linuxliveusb.com/en/download 4G 8G U
U FAT32
1. U .

28

2. BackTrack ISO

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

23/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

29

30

3. U

31

4. 3 U U FAT32
Windows Linux live

32

5. U BackTrack

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

24/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

33

. VMware
OKAkast VMware
Windows Windows BackTrack

BackTrack BackTrack VMware VMware


Windows
Windows Windows VMware VMware
BackTrack
BackTrack BackTrack bt4-r2-vm.tar.bz2 bt4-r2-vm.tar.bz2

VMware VMware Workstation 7.1.3


http://dl-sh-ctc-2.pchome.net/03/lt/VMware-workstation-full-7.1.3-324285.rar

34

Vmware BT4R2
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

25/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

BT4R2.vmx

35

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

26/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

36

37

38

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

27/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

39

. Vmware Tools
Vmware BackTrack BackTrack
VMware Tools VMware Workstation7.1.3 BackTrack VMware Tools

BackTrack VM VMTools
/mnt cdorm mkdir /mnt/cdrom
root sudo /dev/cdrom3 /mnt/cdrom
tmp cd /tmp tar VMTools tar
zxpf /mnt/cdrom/VMwareTools-8.4.3-282344.tar.gz
vmware-tools-distrib cd /vmware-tools-distrib
vmware-install.pl ./vmware-install.pl

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

28/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

VMware Workstation 7.1.3 VMware Tools


root@bt:~# mkdir /mnt/cdrom
root@bt:~# mount /dev/cdrom3 /mnt/cdrom/
mount: block device /dev/hdc is write-protected, mounting read-only
root@bt:~# cp -rf /mnt/cdrom/VM* /tmp/
root@bt:~# cd /tmp/
root@bt:/tmp# tar zxpf VMwareTools-8.4.3-282344.tar.gz
root@bt:/tmp# cd vmware-tools-distrib/
root@bt:/tmp# ./vmware-config-tools.pl

VMware Workstation 7.1.2 VMware Tools


root@bt:~# mkdir /mnt/cdrom
root@bt:~# mount /dev/cdrom3 /mnt/cdrom/
mount: block device /dev/hdc is write-protected, mounting read-only
root@bt:~# cp -rf /mnt/cdrom/VM* /tmp/
root@bt:~# cd /tmp/
root@bt:/tmp# tar zxpf VMwareTools-8.4.3-282344.tar.gz
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

29/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

root@bt:/tmp# tar xvf vmware-tools-distrib/lib/modules/source/vmxnet.tar


root@bt:/tmp# wget BackTrack-linux.org/patches/vmxnet-301548-2.6.35.patch
root@bt:/tmp# patch -p0 < vmxnet-301548-2.6.35.patch
root@bt:/tmp# tar cvf vmware-tools-distrib/lib/modules/source/vmxnet.tar vmxnet-only
root@bt:/tmp# tar xvf vmware-tools-distrib/lib/modules/source/vsock.tar
root@bt:/tmp# sed -i 's/sk->compat_sk_sleep/compat_sk_sleep(sk)/g' vsockonly/linux/af_vsock.c
root@bt:/tmp# sed -i 's/listener->compat_sk_sleep/compat_sk_sleep(listener)/g' vsockonly/linux/af_vsock.c
root@bt:/tmp# tar cvf vmware-tools-distrib/lib/modules/source/vsock.tar vsock-only
root@bt:/tmp# cd vmware-tools-distrib/
root@bt:/tmp# ./vmware-config-tools.pl

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

30/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

.
BackTrack 4 Final R1 BackTrack R2

root@bt:~# apt-get update


root@bt:~# apt-get dist-upgrade
root@bt:~# apt-get install linux-image-2.6.35.8

LSBLinux Standards BaseLinux Linux Linux


LSB LSB
Linux Linux
lsb-release y
Configuration file `/etc/lsb-release'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

31/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

N or O : keep your currently-installed version


D
: show the differences between the versions
Z
: background this process to examine the situation
The default action is to keep your current version.
*** lsb-release (Y/I/N/O/D/Z) [default=N] ? y

kernel install_new
reboot

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

32/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

BackTrack
root@bt:~# fix-splash

root@bt:~# apt-get install postgresql-BackTrack-config bf3 linux-BackTrack-firmware

root@bt:~# apt-get install linux-source


root@bt:~# cd /usr/src/
root@bt:/usr/src# tar jxpf linux-source-2.6.35.8.tar.bz2
root@bt:/usr/src# rm linux
root@bt:/usr/src# ln -s linux-source-2.6.35.8 linux
root@bt:/usr/src# cd linux
root@bt:/usr/src/linux# cp /boot/config-2.6.35.8 .config
root@bt:/usr/src/linux# make scripts && make prepare
root@bt:/usr/src/linux# ln -s /usr/src/linux /lib/modules/2.6.35.8/build
root@bt:/usr/src/linux# apt-get clean
root@bt:/usr/src/linux# cd /root/
BackTrack 4 R2

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

33/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

root@bt:~# wget BackTrack-linux.org/bt4r2.png


root@bt:~# mv bt4r2.png /opt/kde3/share/wallpapers/bt4.png

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

34/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. ubuntu BackTrack
BackTrack ubuntu BackTrack bt4
BackTrack /etc/apt/sources.list BackTrack ubuntu
/etc/apt/sources.list BackTrack

root@bt:~#
root@bt:~#
root@bt:~#
root@bt:~#

sudo cp
sudo vi
wget -q
apt-key

/etc/apt/sources.list /etc/apt/sources.list_backup
/etc/apt/sources.list

http://archive.offensive-security.com/BackTrack.gpg BackTrack
add BackTrack.gpg

deb http://archive.offensive-security.com pwnsauce main microverse macroverse


restricted universe multiverse
#deb http://archive.offensive-security.com/repotest/ ./ # BackTrack Devel Repository

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

35/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. BackTrack

. IP
IP dhclient eth0
root@bt:~# dhclient eth0
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:0c:29:81:74:21
Sending on LPF/eth0/00:0c:29:81:74:21
Sending on Socket/fallback
DHCPREQUEST of 192.168.1.112 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.112 from 192.168.1.1
bound to 192.168.1.112 -- renewal in 37595 seconds.
root@bt:~#

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

36/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

37/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. IP
IP
root@bt:~#
root@bt:~#
root@bt:~#
root@bt:~#

ifconfig eth0 192.168.1.112/24


route add default gw 192.168.1.1
echo nameserver 192.168.1.1 > /etc/resolv.conf
/etc/init.d/networking restart

IP

DNS

. IP
IP ifconfig a vi nano
iface eth0 inet dhcp #
addressnetmaskgateway
/etc/init.d/networking restart
root@bt:~# vi /etc/network/interfaces

IP

auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.112
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

IP

root@bt:~# /etc/init.d/networking restart

root@bt:~# vi /etc/resolv.conf
root@bt:~# update-rc.d networking defaults

DNS

Esc
Shift +
Shift + wq

update-rc.d System V

/etc/rcn.d/LnName,/etc/init.d/Script-name
1update-rc.d service start order runlevels
2update-rc.d service stop order runlevels
3update-rc.d -f script-name remove
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

38/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

39/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

40/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. ADSL
pppoeconf ISP
<Yes> Enter eth0
wlan0 eth0
pppoeconf pppoeconf
<Yes> Enter no authdefault
routeno detach
yes
OK
root@bt:~# pppoeconf
root@bt:~# pon dsl-provider
root@bt:~# poff
root@bt:~# plog
root@bt:~# vi /etc/ppp/peers/dsl-provider
root@bt:~# vi /etc/ppp/chap-secrets
root@bt:~# vi /etc/ppp/pap-secrets

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

41/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

42/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

43/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

,(DNS Server):

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

44/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

45/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

46/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

47/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

48/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

49/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

.
wicdInternet > Wicd Network
Manager
root@bt:~# /etc/init.d/wicd start

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

50/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

wicd
root@bt:~# update-rc.d wicd defaults

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

51/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

52/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. BackTrack

. BackTrack

KED

open office

root@bt:~# apt-get install language-pack-kde-zh language-pack-kde-zh-base language-pack-zh language-pack-zhbase


root@bt:~# apt-get install language-support-zh
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

53/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

root@bt:~# apt-get install kde-i18n-zhcn

Settings Regional &


http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

54/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Accessibility Country/Region & Language Add Language Other


Simplified Chinese Chinese Simplified Chinese
Move up

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

55/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

56/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

.
BackTrack
BackTrack
apt-get
apt-get install ttf-wqy-zenhei

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

57/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Windows
MSYH.TTF20.7MB
c:\windows\fonts\ Vmware Tools
BackTrack settingssystem administrationfont
installer MSYH.TTF
/usr/local/share/fonts/

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

58/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

59/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

60/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. BackTrack

.
Linux
POSIX locale locale
LC_ALL
root@bt:~# nano /etc/environment
LC_ALL="zh_CN.UTF-8"
LANG="zh_CN.UTF-8"
root@bt:~# nano /root/.kde/share/config/kdeglobals[locale]
[locale]
Country=cn
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

61/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Language=zh_CN

root@bt:~# locale
LANG=C
LC_CTYPE="C"

LC_NUMERIC="C"

LC_TIME="C"

LC_COLLATE="C"

LC_MONETARY="C"

LC_MESSAGES="C"

LC_PAPER="C"

LC_NAME="C"

LC_ADDRESS="C"

LC_TELEPHONE="C"

LC_MEASUREMENT="C"

LC_IDENTIFICATION="C"
locale
LC_ALL=

root@bt:~# locale
LANG=C
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=zh_CN.UTF-8

.
linux Fcitxibus
scim scim-python
sunpinyin ibus OS X
SCIMIBus
Firefox
fireinput apt-get install language-support-zh SCIM
fcitx

root@bt:~# wget http://www.fcitx.org/download/fcitx-3.6.3.tar.bz2


fcitx
root@bt:~# apt-get install libxpm-dev libxft-dev libxtst-dev debhelper

root@bt:~# ar -jxvf fcitx-3.6.3.tar.bz2


bz2
root@bt:~# cd fcitx-3.6.3

root@bt:~/fcitx-3.6.3# fakeroot debian/rules binary


fcitx deb
root@bt:~/fcitx-3.6.3# cd ..

root@bt:~# dpkg -i fcitx_3.6~rc-1_i386.deb


deb
root@bt:~#update-alternatives
install
/etc/X11/xinit/xinput.d/all_ALL
/etc/X11/xinit/xinput.d/fcitx 30
fcitx alternatives
root@bt:~# im-switch -s fcitx

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

xinput-all_ALL

62/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

63/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://pinyin.sogou.com/cloud/ QQ http://py.qq.com/web/

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

64/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

65/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. Firefox
BackTrack Firefox about:config
Firefox http://g-fox.cn/download.html http://dl1.gfox.cn/chinaedition/releases/zh-CN/FirefoxChinaEdition%202010.12.tar.bz2

root@bt:~# tar xjvf FirefoxChinaEdition2010.12.tar.bz2


root@bt:~# mv firefox-3.6.13 /usr/lib
root@bt:~# cd /usr/bin
root@bt:/usr/bin# rm firefox
root@bt:/usr/bin# ln s /usr/lib/firefox-3.6.13/firefox

/usr/lib
/usr/bin
firefox
firefox

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

66/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

67/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

ALT+F2kmenuedit KDE

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

68/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. BackTrack

. Windows

BackTrack Windows
Windows Windows NTFS
NTFS ntfs-config ntfs-config
Windows NTFS
$sudo apt-get install ntfs-config
$sudo ntfs-config

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

69/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

70/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

.
NTFS ntfs-config /etc/fstab

nano vi /etc/fstab

/etc/fstab ctrl+o
mount a
sudo mkdir /media/c
sudo nano /etc/fstab
mount -a

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

71/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

72/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. U
nano vi /etc/fstab ctrl + o
mount a
sudo fdisk l
sudo mkdir /mnt/usb1
sudo nano /etc/fstab
sudo umount /mnt/usb

/etc/fstab
U

fstab
/dev/sdb1 /media/h vfat exec,dev,suid,rw,umask=0,iocharset=gb2312,codepage=936 0 0
U
akast@akast-laptop:~$ sudo umount /media/h
umount: /mnt/usb: device is busy.
(In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

73/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

74/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. BackTrack

. root
root toor passwd
root@bt:~# passwd
Enter new UNIX password: {}
Retype new UNIX password: {}
passwd: password updated successfully
root@bt:~#

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

75/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

76/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

77/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

.
backtrack edit menuedit item KDE Menu Editor
backtrack

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

78/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

BackTrack Apache, SSH,


MySQL, VNC
SSH
root@bt:~# sshd-generate
root@bt:~# /etc/init.d/ssh start
root@bt:~# /etc/init.d/ssh stop
root@bt:~#

SSH
ssh
ssh

update-rc.d
root@bt:~# update-rc.d
Adding system startup
/etc/rc0.d/K20ssh ->
/etc/rc1.d/K20ssh ->
/etc/rc6.d/K20ssh ->

-f ssh defaults
for /etc/init.d/ssh ...
../init.d/ssh
../init.d/ssh
../init.d/ssh

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

79/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

/etc/rc2.d/S20ssh
/etc/rc3.d/S20ssh
/etc/rc4.d/S20ssh
/etc/rc5.d/S20ssh
root@bt:~#

->
->
->
->

../init.d/ssh
../init.d/ssh
../init.d/ssh
../init.d/ssh

. GPG
BackTrack

EF4186FE247510BE
W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the
public key is not available: NO_PUBKEY EF4186FE247510BE
W: You may want to run apt-get update to correct these problems

root@bt:~# gpg --keyserver subkeys.pgp.net --recv EF4186FE247510BE


gpg: requesting key 247510BE from hkp server subkeys.pgp.net
gpg: key 247510BE: public key "Launchpad PPA for Ubuntu Mozilla Daily Build Team" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:
imported: 1 (RSA: 1)
root@bt:~# gpg --export --armor EF4186FE247510BE | sudo apt-key add OK
root@bt:~#

. apt
apt-get install <package> Downloads <package> and all of its dependencies, and installs or
upgrades them.
apt-get remove [--purge] <package> Removes <package> and any packages that depend on it. -purge specifies that packages should be purged.
apt-get update Updates packages listings from the repo, should be run at least once a week.
apt-get upgrade Upgrades all currently installed packages with those updates available from
the repo. should be run once a week.
apt-get dist-upgrade [-u] Similar to apt-get upgrade, except that dist-upgrade will install
or remove packages to satisfy dependencies.

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

80/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

apt-cache search <pattern> Searches packages and descriptions for <pattern>.


apt-cache show <package> Shows the full description of <package>.
apt-cache showpkg <package> Shows a lot more detail about <package>, and its relationships
to other packages.
man apt Will give you more info on these commands as well as many that are in less common
usage.

. dpkg
dpkg -i <package.deb> Installs a package file; one that you downloaded manually, for example.
dpkg -c <package.deb> Lists the contents of <package.deb> a .deb file.
dpkg -I <package.deb> Extracts package information from <package.deb> a .deb file.
dpkg -r <package> Removes an installed package named <package>
dpkg -P <package> Purges an installed package named <package>. The difference between remove and purge is that while remove only deletes data and executables, purge also deletes
all configuration files in addition.
dpkg -L <package> Gives a listing of all the files installed by <package>. See also dpkg -c
for checking the contents of a .deb file.
dpkg -s <package> Shows information on the installed package <package>. See also apt-cache
show for viewing package information in the Debian archive and dpkg -I for viewing package
information extracted from a .deb file.
dpkg-reconfigure <package> Reconfigures an installed package
man dpkg Will give you more info on these commands as well as many that are in less common
usage.

.
root@bt:~# man
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

81/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

root@bt:~#
root@bt:~# -help

root@bt:~# --help

root@bt:~# -h

.
startx KDE
VMware tools BackTrack

1 VESA
root@bt:~# fix-vesa
[*] Backing up xorg.conf to xorg.conf.orig
cp: cannot stat `/etc/X11/xorg.conf': No such file or directory
[*] Copying over xorg.conf-vesa to xorg.conf
[*] Please restart X
root@bt:~#
2 X Xorg

root@bt:~# dpkg-reconfigure xserver-xorg


3 Vmware
root@bt:~# fix-vesa-vmware
[*] Backing up xorg.conf to xorg.conf.orig
[*] Copying over xorg.conf-vmware to xorg.conf
[*] Please restart X
root@bt:~#

. KDE Fluxbox
startx KDE BackTrack
Fluxbox dragon
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

82/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Fluxbox X Blackbox 0.61.1


Linux antiX
Fluxbox ubuntu Fluxbuntu 2007
Fluxbox Fluxbox
Fluxbox menu > Configure > Transparency
Menu Alpha 0~255 Window
Alpha Toolbar Alpha

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

83/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Fluxbox Fluxbox
KDE dragon desktop kde KDE
root@bt:~# dragon
2010 (C) Dragon v 0.1 - Back|Track Command Line Control Panel
upgrade
Upgrade your Back|Track box
follow
Install and Follow all Back|Track tools by Category
...
dragon >> desktop fluxbox
Selecting Fluxbox as default Desktop Manager
dragon >> quit
Good Bye
root@bt:~#

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

84/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

85/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

BackTrack QQ

BackTrack Ubuntu QQ QQ DEB


wget
QQ for linux http://im.qq.com/qq/linux/download.shtml
http://dl_dir.qq.com/linuxqq/linuxqq_v1.0.2-beta1_i386.deb
root@bt:~# wget http://dl_dir.qq.com/linuxqq/linuxqq_v1.0.2-beta1_i386.deb
root@bt:~# sudo dpkg -i linuxqq_v1.0.2-beta1_i386.deb

internet QQ BackTrack4

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

86/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. BackTrack

. Rebuilding the BT4 ISO


backtrackISO BT4 ISO
BT4 R2backtrack
15G
root@bt:~# df hl
root@bt:~# mkdir /root/BUILD/
root@bt:~# cd /root/BUILD/

BUILD ISO
BUILD

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

87/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

root@bt:~/BUILD# ls -l
bt4-r2.iso BUILD
total 1989129
-rw-r--r-- 1 root root 2034880512 Nov 22 00:36 bt4-r2.iso
root@bt:~/BUILD# wget offsec.com/bt4-customise.sh

root@bt:~/BUILD# sed 's/bt4-pre-final/bt4-r2/g' bt4-customise.sh >mod bt4-prefinal bt4-r2


root@bt:~/BUILD# mv mod bt4-customise.sh
mod bt4-customise.sh
root@bt:~/BUILD# chmod 755 bt4-customise.sh
bt4-customise.sh
root@bt:~/BUILD# ./bt4-customise.sh

root@bt:/# apt-get
root@bt:/# apt-get
root@bt:/# apt-get
root@bt:/# history
root@bt:/# exit
ISO

update

dist-upgrade

clean

chroot bt4-mod.iso

.
backtrack root

root@bt:~#
root@bt:~#
root@bt:~#
root@bt:~#

mkdir Desktop
nano /root/.config/user-dirs.dirs
logout
startx

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

88/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

# This file is written by xdg-user-dirs-update


# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/"
XDG_DESKTOP_DIR="$HOME/Desktop/"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

. BackTrack

dmesg

1. rtl8187 vs r8187
rtl8187 mac80211 r8187 IEEE

2. b43 vs wl
This is a nasty one. b43 supports only *some* broadcom cards. Make sure you know what card version you have
before you get frustrated. Check the b43 compatibility list. Some broadcom chipsets which are NOT covered by
b43, *are* covered by the broadcom-STA driver(wl). Note that the wl driver does not support injection! People
with macs, or unsupprted b43 broadcom cards such as the BCM4322 802.11a/b/g/n Wireless LAN, check out our
broadcom wl page.
Broadcom wl
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

89/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

To use the Broadcom STA drivers issue the following commands:


root@bt:~# rmmod wl
root@bt:~# rmmod b43
root@bt:~# rmmod mac80211
root@bt:~# rmmod cfg80211
root@bt:~# rmmod ssb
Insert the external wl driver:
root@bt:~# modprobe wl
The card should hopefully be working. Remember that the broadcom wl STA driver does not support injection!
Tested on:
Broadcom Corporation BCM4321 802.11a/b/g/n (rev 03)
Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN

3. ath5k vs. ath_pci


These drivers are for certain atheros cards - they should be interchangeable, and both support wireless injection.
For more information check the ath5k page

4. compat wireless
As Linux wireless drivers mature, more chipsets get added to the compatibility list. If none of the native
BackTrack kernel drivers work for you, you might want to consider using a more recent version of compatwireless.
Check out the compat-wireless page for information on how to get those drivers up and running.
Compiling Compat Wireless Drivers with Injection Patches
The compat-wireless drivers are constantly being updated, and may provide functionality that the current stock
kernel drivers in BackTrack do not.
This guide is for people who would like to try the compat-wireless drivers and apply all the needed patched
required for wireless injection. Note that we use the 2010-11-07 compat-wireless release as an example, as it was
tested well against our patches. You may try a more recent version of compat-wireless, however your mileage may
vary. We will try to keep our patch base updated to the best of our abilities).
cd /usr/src/
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-11-07.tar.bz2
tar jxpf compat-wireless-*
wget http://www.BackTrack-linux.org/patches/wireless-patches-2.6.35.8.tar.gz
tar xpf wireless-patches-2.6.35.8.tar.gz
cd compat-wireless-*
Apply the wireless injection patches:
patch -p1 < ../wireless-patches/404-ath_regd_optional.patch
patch -p1 < ../wireless-patches/ar9170_regdomain_override.patch
patch -p1 < ../wireless-patches/ath.patch
patch -p1 < ../wireless-patches/ath5k_regdomain_override.patch
patch -p0 < ../wireless-patches/ath9k_injection_fix.patch
patch -p1 < ../wireless-patches/channel-negative-one-maxim.patch
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

90/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

patch -p1 < ../wireless-patches/mac80211_2.6.32.2-wl_frag+ack_radiotap.patch


patch -p1 < ../wireless-patches/rtl8187-mac80211-injection-speed-2.6.30-rc3.patch
patch -p0 < ../wireless-patches/zd1211rw-inject+dbi-fix-2.6.26.patch
patch -p0 < ../wireless-patches/zd1211rw.patch
At this point you can decide to compile the whole compat-wireless driver-set, or just a single driver. If you know
which driver you need, the second option is the better one. If you do not enter a specific driver with the "driver
select" script, all drivers will be compiled.
./scripts/driver-select {required driver} # use this command to select a single driver to compile, rather than the
whole package.
Compile and install the drivers:
make
make install
make wlunload

5. Tested and working cards


We were able to test the following cards. Note that "passed" means "passed an aireplay -9" injection test. We will
be expanding on this list as more feedback domes form the community. From our testing we found that most
major chipsets were supported, as well as the most common cards.
AWUS036H (rtl8187, r8187) - both mac80211 and IEEE drivers - passed
AWUS036NH (Ralink RT2870/3070) - using the mac80211 rt2x00usb drivers - passed
BCM4312 802.11b/g LP-PHY (rev 01) - using the mac80211 b43, works well - passed
Rockland N3 - (Ralink RT2870/3070) - using the mac80211 rt2x00usb drivers -passed
Edimax EW-7318USG USB - (Ralink RT2501/RT2573) - using the mac80211 rt2500usb/rt73usb drivers passed
ASUSTek Computer, Inc. RT2573 - using the mac80211 rt2500usb/rt73usb drivers -passed
Linksys WUSB54GC ver 3 - using the mac80211 rt2800usb drivers -passed
Ubiquiti SRC - using the mac80211 ath9k drivers-passed
Internal Intel Corporation PRO/Wireless 3945ABG - using the mac80211 iwl3945 drivers-passed
Dlink WNA-2330 PCMCIA - using the mac80211 ath5k drivers-passed
Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01) - using the mac80211
ath9k drivers-passed
Netgear wg111v2 - using the mac80211 rtl8187 drivers-passed
ZyXEL AG-225H v2 - using the mac80211 zd1211 drivers - passed
Intel 4956/5xxx - using the iwlagn drivers - passed

6. Working, without injection


Broadcom Corporation BCM4321 802.11a/b/g/n (rev 03)
Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

91/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

7. NON working cards


D-Link DWL-122 - using the mac80211 prism2_usb drivers - fail
Linksys WUSB600N v2 - using the mac80211 rt2800usb drivers - fail
AWUS051NH - fail

.
compat- wireless compat- wireless
Linux Linux 2.6.25
Linux 802.11
compat-wireless

root@bt:~# apt-get install linux-source


root@bt:~# cd /usr/src/
root@bt:/usr/src# tar jxpf linux-source-2.6.35.8.tar.bz2
root@bt:/usr/src# rm linux
root@bt:/usr/src# ln -s linux-source-2.6.35.8 linux
root@bt:/usr/src# cd linux
root@bt:/usr/src/linux# cp /boot/config-2.6.35.8 .config
root@bt:/usr/src/linux# make scripts && make prepare
root@bt:/usr/src/linux# ln -s /usr/src/linux /lib/modules/2.6.35.8/build
root@bt:/usr/src/linux# apt-get clean
root@bt:/usr/src/linux# cd /root/

. BackTrack 4 Cuda
BackTrack includes many tools which utilize the power of graphics cards to greatly improve
performance. This section will help you get your environment set up to use these tools and
also to set up a development environment to make your own tools
Check http://en.wikipedia.org/wiki/CUDA to see if your video card is capable of running
CUDA applications
Installing the Nvidia Drivers
Installing the driver is now easier than ever. We use the installer from the nvidia web
site and do not alter the install in any way. This means no matter which kernel version you
are running on BackTrack the nvidia-driver package should work
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

92/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Note: Be sure to log out of X before installing the driver or it will fail
root@bt:~# apt-get install nvidia-driver
Simply follow the prompts and choose the defaults and you should be fine
Since every system is different there are 2 ways to get your xorg.conf working on BackTrack.
Method 1: The installer attempts to do this method but in some cases its needed to do it
manually. Log out of the X server
root@bt:~# Xorg -configure
root@bt:~# cp /root/xorg.conf.new /etc/X11/xorg.conf
root@bt:~# startx
Method 2: Nvidia bundles a config tool with their install which may work better for you
that the Xorg tools Log out of the X server
root@bt:~# nvidia-xconfig
root@bt:~# startx
Installing the CUDA Toolkit
The toolkit contains the nvcc compiler and all the libraries needed to build any GPU based
applications from source. The toolkit is also needed if you are planning on developing any
of your own applications.
root@bt:~# apt-get install cuda-toolkit
The default install is /opt/cuda
Note: The toolkit is designed to be installed as root. If you want to install it as another
user you will need to add the following lines to the users .bashrc file
PATH=$PATH:/usr/local/cuda/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib
export PATH
export LD_LIBRARY_PATH
Installing the Nvidia SDK
We no longer package the cuda code samples in our repositories due to the size the package
has become. The code samples are extremely useful though if you are interested in cuda development. Getting it installed on BackTrack is fairly simple.
root@bt:~# wget
http://developer.download.nvidia.com/compute/cuda/3_1/sdk/gpucomputingsdk_3.1_linux.run
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

93/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

root@bt:~# chmod 755 gpucomputingsdk_3.1_linux.run


root@bt:~# ./gpucomputingsdk_3.1_linux.run
The only thing I change aside from the default choices is the place where the NVIDIA_SDK is
installed. On BackTrack we install to /opt so since I like to keep my stuff in the same
place I instruct the installer to install to /opt/cuda/ so that my code samples are inside
my cuda directory
Getting up and running with Pyrit
Pyrit is included in the BackTrack iso but in order to use it with cuda you will need to
install the cuda kernel module. This is part of the cpyrit package. Installation is fairly
straight forward:
root@bt:~# apt-get install cpyrit-cuda
You can check if your GPU is being recognized with the following command:
root@bt:~# pyrit list_cores
Pyrit 0.3.1-dev (svn r279) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
The following cores seem available...
#1: 'CUDA-Device #1 'GeForce GTX 295
#2: 'CUDA-Device #2 'GeForce GTX 295
#3: 'CUDA-Device #3 'GeForce GTX 295
#4: 'CUDA-Device #4 'GeForce GTX 295
#5: 'CUDA-Device #5 'GeForce GTX 295
#6: 'CUDA-Device #6 'GeForce GTX 295
#7: 'CUDA-Device #7 'GeForce GTX 295
#8: 'CUDA-Device #8 'GeForce GTX 295

You can then run a benchmark to see how many keys per second your system in capable of:
root@bt:~# pyrit benchmark
Pyrit 0.3.1-dev (svn r279) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
Running benchmark (97384.8 PMKs/s)... |
Computed 97384.83 PMKs/s total.
#1: 'CUDA-Device #1 'GeForce GTX 295: 11520.5 PMKs/s (RTT 2.9)
#2: 'CUDA-Device #2 'GeForce GTX 295: 11274.3 PMKs/s (RTT 2.9)
#3: 'CUDA-Device #3 'GeForce GTX 295: 10439.3 PMKs/s (RTT 2.9)
#4: 'CUDA-Device #4 'GeForce GTX 295: 11095.7 PMKs/s (RTT 2.9)
#5: 'CUDA-Device #5 'GeForce GTX 295: 10564.8 PMKs/s (RTT 2.6)
#6: 'CUDA-Device #6 'GeForce GTX 295: 10533.7 PMKs/s (RTT 2.9)
#7: 'CUDA-Device #7 'GeForce GTX 295: 10414.8 PMKs/s (RTT 2.6)
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

94/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

#8: 'CUDA-Device #8 'GeForce GTX 295: 11333.7 PMKs/s (RTT 2.9)

Add CUDA syntax highlighting to Vim


I like to use Vim for coding so here is how to add CUDA syntax highlighting to BackTrack

First we need to install vim-full:


root@bt:~# apt-get install vim-full
Then grab the syntax file:
root@bt:~# cd /usr/share/vim/vim71/syntax/
root@bt:/usr/share/vim/vim71/syntax# wget http://www.BackTrack-linux.org/patches/cu.vim.txt
root@bt:/usr/share/vim/vim71/syntax# mv cu.vim.txt cu.vim
Next change into your root directory (or whichever user you are using):
root@bt:~# touch .vimrc
root@bt:~# vi .vimrc
Add the following lines:
au BufNewFile,BufRead *.cu set ft=cu
syntax on
Now your vi should be set up for CUDA syntax highlighting

. BackTrack 4 R2 Virtual Box

It should be noted that adding third party repositories to any distribution can cause problems. That being said, many of us have downloaded and installed Virtual box using this
method with out any problems.
Downloading and Installing
Add the repository to your source file
root@bt:~# echo "deb http://download.virtualbox.org/virtualbox/debian intrepid non-free"
>> /etc/apt/sources.list

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

95/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Download the Oracle public key and install it


root@bt:~# wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- |
sudo apt-key add OK
Update your system
root@bt:~# sudo apt-get update
Install Virtual Box
root@bt:~# apt-get install virtualbox-3.1
What to do when experiencing GPG error: following signatures were invalid
root@bt:~#
root@bt:~#
root@bt:~#
root@bt:~#
root@bt:~#
root@bt:~#
root@bt:~#

sudo -s -H
apt-get clean
rm /var/lib/apt/lists/*
rm /var/lib/apt/lists/partial/*
mkdir /var/lib/apt/lists/partial
apt-get clean
apt-get update

If you have completed the steps properly you should now be able to launch Virtual Box from
the System section of the KDE menu

. Virtual Box BackTrack

Download and check the BackTrack iso following this guide


http://www.BackTrack-linux.org/wiki/index.php/Downloading
Install BackTrack following this guide
http://www.BackTrack-linux.org/wiki/index.php/Install_BackTrack_to_Disk
Once BackTrack is installed
Install Virtual Box guest additions in BackTrack
Install lastest dkms package from BT repository

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

96/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

root@bt:~# apt-get update


root@bt:~# apt-get upgrade
root@bt:~# apt-get install dkms
Then
root@bt:~# mount /dev/hdX /mnt/cdrom
root@bt:~# cd /mnt/cdrom
root@bt:~# ./VBoxLinuxAdditions-x86.run
where /dev/hdX is replaced by your Virtual Box guest additions drive assignment
Follow any onscreen instructions.
Once completed.
root@bt:~# reboot
Now we should check the the guest additions have installed correctly.
So run
root@bt:~# /usr/bin/VBoxClient-all
Then check that the services have started correctly
root@bt:~# ps ax |grep VBoxClient
6351 ?
Sl
0:00 /usr/bin/VBoxClient --clipboard
6355 ?
Sl
0:01 /usr/bin/VBoxClient --display
6356 ?
Sl
0:01 /usr/bin/VBoxClient --seamless
6404 pts/1
S+
0:01 grep VBoxClient
root@bt:~#
Where you should see output similar to that shown above.
Now we need to make the services autostart when the system boots
root@bt:~# nano /root/.xinitrc
and add this line at the end
exec /usr/bin/VBoxClient-all
^O to save the changes to the file
^X to exit nano

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

97/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Finally we should now restart our virtual machine just to make sure all the guest additions
and the autostart of the services are working correctly.
root@bt:~# reboot
Enjoy your BackTrack Virtual Box install with all of the Guest additions fully working.

. BackTrack VMware Workstation

The latest VMware Workstation (At the time of writing VMware-Workstation-Full-7.1.3324285.i386.bundle) installs flawlessly with the latest BackTrack r2 2.6.35.8 kernel.
It is a simple case of running the ./VMware-Workstation-Full-7.1.3-324285.i386.bundle and
then following the directions in the GUI that pops up.
The VMware programs can then be found in the KDE menu > System.

. BackTrack 4 R2 Compiz-Fusion

Compiz-Fusion can add some really nice graphics and effects to your BackTrack installation.
We do not include it by default but it can be added fairly easily. Keep in mind these programs can be resource intensive so be sure you have adequate ram and processing. You will
also need to be sure you have compositing enabled in the xorg.conf and that your graphics
card is supported.
Downloading and Installing
Download the following packages.
root@bt:~#apt-get install compiz compiz-fusion-plugins-extra compiz-fusion-pluginsunsupported emerald simple-ccsm fusion-icon
Go to BackTrack menu -> system -> compiz fusion Right click the Compiz-Fusion icon and select "Reload Window Manager"
Adding compiz to startup
Go to /etc/ and edit the file called "rc.local". And just add the files you installed to it,
like this:
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

98/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
compiz
compiz-fusion-plugins-extra
compiz-fusion-plugins-unsupported
emerald
simple-ccsm
fusion-icon
exit 0
Now open a terminal and type in
root@bt:~#chmod u+x /etc/rc.local
Reboot and Compiz-Fusion should start with the system

. Armitage

To install Armitage in BackTrack, we simply need to update the repositories and install the
"armitage" package.
root@bt:~# apt-get update
...snip...
Reading package lists... Done
root@bt:~# apt-get install armitage
...snip...
Unpacking armitage (from .../armitage_0.1-bt0_i386.deb) ...
Setting up armitage (0.1-bt0) ...
root@bt:~#

Armitage communicates with Metasploit via the RPC daemon so we need to start that next.
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

99/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

root@bt:~# msfrpcd -f -U msf -P test -t Basic


[*] XMLRPC starting on 0.0.0.0:55553 (SSL):Basic...

Next, we need to start our MYSQL server so Armitage has a place to store its results.
root@bt:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
root@bt:~#

Lastly, we need to run "armitage.sh" from the /pentest/exploits/armitage directory at which


point, we are presented with the connection dialog.
root@bt:~# cd /pentest/exploits/armitage
root@bt:/pentest/exploits/armitage# ./armitage.sh

We select the "Use SSL" checkbox, verify the rest of the settings and click "Connect". Afterwards, the main Armitage window is displayed.

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

100/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

For more information on Armitage and Metasploit usage, be sure to check out our free
Metasploit Unleashed training course.

. OpenVas

This guide will show you how to setup OpenVas so that you can use it properly. Since the
easiest way to use OpenVas is through the GUI we will need to start the X-server.

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

101/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Adding a user to OpenVas


The first thing we want to do is add a user for our OpenVas scanner. You can add as many as
you need, but we will only focus on adding one.

Clicking the menu entry will bring up a console where you will create the user. Alternatively "openvas-adduser" in the console. Here we will define a user named "test"

Using /var/tmp as a temporary file holder.


Add a new openvassd user
--------------------------------Login : test
Authentication (pass/cert) [pass] : Hitting Enter accepts the default in this case a
password
Login password :
Login password (again) :
User rules
--------------openvassd has a rules system which allows you to restrict the hosts that test has the
right to test.
For instance, you may want him to be able to scan his own host only.
Please see the openvas-adduser(8) man page for the rules syntax.
Enter the rules for this user, and hit ctrl-D once you are done:
(the user can have an empty rules set)
Login
: test
Password
: ***********
Rules
:
Is that ok? (y/n) [y] y
user added.
root@bt:~#

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

102/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Once you are satisfied with your user account select 'y' to create it and return to the
shell.
Creating a Certificate
When adding a user to OpenVas you have the options to choose between having a password or
certificate for authentication. Here we will create a certificate. You can either go
through the menu system (OpenVas Make Cert) or open a console and type "openvas-mkcert"
Note: You do not need to do this step in order to use OpenVas.

------------------------------------------------------------------------------Creation of the OpenVAS SSL Certificate


-----------------------------------------------------------------------------This script will now ask you the relevant information to create the SSL certificate of
OpenVAS.
Note that this information will *NOT* be sent to anybody (everything stays local), but
anyone with the
ability to connect to your OpenVAS daemon will be able to retrieve this information.
CA certificate life time in days [1460]:
Server certificate life time in days [365]:
Your country (two letter code) [DE]:
Your state or province name [none]: Hitting Enter will accept the defaults
Your location (e.g. town) [Berlin]:
Your organization [OpenVAS Users United]:
------------------------------------------------------------------------------Creation of the OpenVAS SSL Certificate
------------------------------------------------------------------------------Congratulations. Your server certificate was properly created.
/usr/local/etc/openvas/openvassd.conf updated
The following files were created:
. Certification authority:
Certificate = /usr/local/var/lib/openvas/CA/cacert.pem
Private key = /usr/local/var/lib/openvas/private/CA/cakey.pem
. OpenVAS Server :
Certificate = /usr/local/var/lib/openvas/CA/servercert.pem
Private key = /usr/local/var/lib/openvas/private/CA/serverkey.pem
Press [ENTER] to exit
root@bt:~#

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

103/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Synchronize OpenVas NVT's


Now that we have a user for OpenVas, you need to synchronize the NVT's (Network Vulnerability Tests)

Again clicking the menu entry will launch a console and start the synchronization process.
Once you start this process it may take quite a bit of time depending on your computer and
network as well as the number of NVT's to sync.

Upon completion the console will return to the prompt. Once it does exit it.

Start Openvas Scanner


Now that you have synchronized the NVT database you can start the Openvas scanner. In the
console it's "openvassd".
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

104/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Starting the scanner may take some time, as it will load the NVT's. Once it is finished you
should see the following.

Start OpenVas Client and connect to Scanner


There are two ways in which you can run OpenVas. The first is through the GUI client, and
the second is the command line interface. Which one you use is up to your needs. Using the
menu you would select on OpenVas Client. In the console it is "OpenVAS-Client". Once the
client starts up you will need to connect it to the scanner, and give in the supplied user
credentials, if you created a certificate then you can supply it here as well.

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

105/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

If you created a certificate then you can supply it here as well.

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

106/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Note: Once you click on "ok" the client will load the plugins and this may take some time
to complete. When all of the plugins are loaded the pop-up will let you know this and ask
you to select "ok".

After hitting "ok" you will be logged onto the client and connected to the scanner.

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

107/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. BackTrack
roottoor

.
shoulder
surfing, shoulder surfing

. Ubuntu BackTrack4
Debian backtrack 4 Ubuntu

Defcon User Agents, Defcon BackTrack


http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

108/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

wget BackTrack

300 BackTrack
500 BackTrack
BT4 BT4
Live CD ubuntu

.
DVDUSB HDD GUI
startx

. BackTrack

. BackTrack 6432
BackTrack 3264
32
6464
BackTrack

. BackTrack 4 Final
RC1 RC2Final
R1 Final R2 R1
R2

. RC1 RC2
BT4 Final

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

109/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

. BackTrack
ISO md5
DVD

. BackTrack Windows
BackTrack live DVD Windows installer

root

BackTrack root BackTrack


root

BackTrack

Every ones version of perfect is different. There is no perfect computer. Please check
the forums where users post their thoughts on models of computers.
Please remember to add yours to the list too

BackTrack

There is no manual. We do write official documentation on how to install BackTrack and how
to use some of the more exotic tools, however, we do not write guides on hacking in general.
We have a forum community and a wiki which both contain many user and dev team submitted
tutorials. Please also remember to check the manual section of the website for more info on
official documentation.

Check our Offensive Security Training website for the only official BackTrack Training. By
the way NST BackTrack DreamWorks QQ
74293375

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

110/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

BackTrack

Keep updated with our blog, check our forums and check for BackTrack Fixes here.
BackTrack DreamWorks QQ 74293375

BackTrack Ubuntu

We highly recommend against this action because BackTrack tools are built with many custom
features, libraries and kernel. We have no way of knowing how they will preform on a non
BackTrack distribution, plus you will very quickly break your install.
Also if you chose to add the ubuntu repositories to your BackTrack install, you will most
certainly break your entire BackTrack install very quickly.
We do a lot of testing to ensure that all packages in our Repository will work together
without causing problems.
If you decide on this course of action you do so entirely at your own risk and the BackTrack team will not offer any support in any way.

BackTrack

BackTrack is a penetration testing distribution and as such DHCP requests etc entering the
network when you boot are usually very undesirable. You can easily enable networking by issuing the following command:
/etc/init.d/networking start

BackTrack VMWare Virtual box

X?
Any virtualisation software can only use USB wireless network cards as physical devices,
all other types of wireless card are seen as virtual ethernet devices and can only be seen
as a wireless device by the host and not by the guest operating system. So if you want to
run BackTrack in VMWare or Virtualbox and have full wireless capabilities, make sure you
are using a USB device.

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

111/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

USB

U USB
BackTrack USB U
Unetbootin

To be honest, in the majority of cases you really don't need to.


Firstly consider this, we each get hundreds of emails and Private Messages both on the forums and in our IRC channel every day. Almost all of these messages are from people asking
simple questions that are either covered in this wiki, FAQ or on the forum itself. Almost
every single one of those is a question that should be asked on the forum as it is either
covered there, or the question and it's subsequent answer would be of benefit to the entire
community rather than just the person asking it. Think of it this way, if you are asking
this question, wouldn't it make sense that somebody else may have the same question or may
have already asked it. The forum and wiki are valuable sources of information, and that information is only as good as the questions asked and the answers given.
Secondly, all of the team are volunteers, none of us are paid to work on the project and
all of us have lives, family, work etc etc outside of BackTrack. We all give our free time
to the project and the more of that which is taken up answering these questions is less
time we have to work on making BackTrack even better than it is.
So in short, if your question falls into the description above, then it's in your interest
not to email or send a Private Message. It will most likely just get ignored if it does
fall into this category.
However, if there is a something not covered by the above, then by all means do contact us.
You can find all of the dev team in our IRC channel (remember we don't live there all the
time), in the forums or contact details on the About page of the website.
backtrack BackTrack DreamWorks QQ 74293375

IRC ?

If you would like to join the community and contribute, visit us on irc.freenode.net, in
channel #BackTrack-linux. Our website will continue to be the main source for all news and
updates regarding BackTrack. Be sure to see our channel rules read the channel topic and
remember that you need to be registered to speak.

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

112/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

Important: root ( *root*@* ) is banned by default on this channel, so please ensure you
configure your irc client appropriately.
By the wayIRC QQ
BackTrack DreamWorks QQ 74293375

Linux BackTrack

BackTrack BackTrack
BackTrack Linux
Kubuntu ( BackTrack )
Kubuntu
BackTrack
BackTrack
BackTrack Linux

BackTrack

ISO VM
BackTrack BackTrack

BackTrack

BackTrack

BackTrack

BackTrack

root@bt:~# apt-get update


root@bt:~# apt-get upgrade

root@bt:~# apt-get update


root@bt:~# apt-get dist-upgrade
http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

113/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

BackTrack

dpkg list

apt-cache search <keyword of interest>

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

114/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

BLUEDON

16 A 20-21

510631

020-85526663

020-85526000
800-830-3187

Bluedon Information Security Technology Co., Ltd.


20F-21F, A Building, Information Port,No.16,KeYun Road Tianhe district Guangzhou Guangdong,
P.R.C
Postcode: 510631
Phone: 86-20-85526663
Fax: 86-20-85526000

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

115/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

http://www.bluedon.com
510631
BackTrack DreamWorks QQ 74293375

116/116
http://www.ngsst.com
Emailakast@ngsst.com
16 A 20-21

You might also like