Filename | BackTrack - Penetration Testing Distribution Setting Part I |
Permission | rw-r--r-- |
Author | WhySoSeriousssssssssssss |
Date and Time | 01:59 |
Label | hack |
Action |
Whether you're hacking wireless, exploiting servers, performing a web application assessment, learning, social-engeneering a client BackTrack is the one-stop-shop for all your security needs.
-----------------------------------------------------------------------------------------------------------
BackTrack Live USB Install
This method of getting a live install to a USB drive is the simplest available using Unetbootin. NOTE: that we will format the USB drive and erase its contents.
- Plug in your USB Drive (Minimum USB Drive capacity 2 GB)
- Format the USB drive to FAT32
- Download Unetbootin from http://unetbootin.sourceforge.net/
- Start Unetbootin and select diskimage (use the backtrack-final ISO)
- Select your USB drive and click "OK" for creating a bootable BackTrack USB drive
- Log into BackTrack with the default username and password root / toor.
BackTrack 4 arranges tools in 11 categories
Information Gathering
Network Mapping
Vulnerability Identification
Web Application Analyses
Radio Network Analyses
Penetration
Privilege Escalation
Maintaining Access
Digital Forensics
Reverse Engeneering
Voice Over IP
Download it here
----------------------------------------------------------------------------------------------------------
Logging in to BackTrack
Once the installation of BackTrack is done, the default username and password for the console are root / toor. You will not be able to see the password as you type it.
Starting a GUI Environment
To start a KDE GUI environment, type at the console
startx
In rare occasions (such as after a VMware tools install, or when using unsupported Video cards), X will refuse to start. You have several options you can try:
Using the default VESA configuration:
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:~#
Reconfiguring the X server package
You can reset (and often fix) Xorg configurations with the following command:
root@bt:~# dpkg-reconfigure xserver-xorg
You can safely accept all the defaults if unsure of questions you are asked. If in a Vmware image, you can run:
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:~#
Switching Between KDE and Fluxbox
You can use the dragon utility to switch between KDE and Fluxbox desktops.
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:~#
Restart your X session by logging out, and then typing startx. To switch back from Flux to KDE, the command inside dragon would be desktop kde.
Getting Networking to work
BackTrack does not boot with networking by default (you don't always want to announce yourself with a DHCP request on a local network).
Setting your IP manually
To set your IP address manually, use the following commands. In this example, we will be assuming an address of 192.168.1.112/24, with a default gateway and DNS server - 192.168.1.1.
root@bt:~# ifconfig eth0 192.168.1.112/24
root@bt:~# route add default gw 192.168.1.
root@bt:~# echo nameserver 192.168.1.1 > /etc/resolv.conf
Getting a static IP to stick between reboots
To get your IP to stick between reboots, you can edit your /etc/network/interfaces file. For example:
# This file describes the network interfaces available on your system and how to activate them.
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
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
Edit the file as appropriate, then have the network come up automatically at boot time:
root@bt:~# update-rc.d networking defaults
root@bt:~# /etc/init.d/networking restart
Getting an IP from DHCP
You can use the dhclient command to automatically get an IP address from a DHCP server:
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:~#
Using the script to start networking
There is a script to start networking in the /etc/init.d directory. To start it issue the following command:
root@bt:~# /etc/init.d/networking start
The script attempts to start all the interfaces listed in the interfaces file. You can remove the ones you do not need by editing the following file:
root@bt:~# nano /etc/network/interfaces
Continue Part II here
0 comments:
Post a Comment