Back|Track Configuration

Here are some tidbits to get your Back|Track 2.0 Final up an running

Link to some other B|T Tutorials: http://forums.remote-exploit.org/showthread.php?t=5601

Install and Enable Java for Firefox

INSTALL JAVA CLIENT
http://java.com/en/download/manual.jsp
- Download Java Linux (self-extracting file)

- cd opt
- mkdir java
- cp /tmp/jre-6u1-linux-i586.bin /opt/java
- cd java
- ls
- chmod a+x jre-6u1-linux-i586.bin
- ls -l
- ./jre-6u1-linux-i586.bin
- yes
- ls

http://java.com/en/download/help/5000010500.xml#enable

cd /opt/firefox/plugins
ln -s /opt/java/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so
Open Firefox->Preferences->Content->Enable java

Disable CUPS

cd /etc/rc.d/
chmod -x rc.cups

Disable X Server on Port 6000

Navigate to /etc/X11/xdm/
nano Xservers
add the following (inside the quotes) "-nolisten tcp"

-OR-

Navigate to /usr/X11R6/bin
nano startx
modify the line serverargs="" to serverargs="-nolisten tcp"

Leetmode

If you want leetmode to start automatically. From the bash prompt type:

cd /root/.kde/Autostart

ln -s /usr/bin/leetmode leetmode

That will create a link to leetmode in your autostart directory.

How to get Hostap Working with Prism2 Cards

Wlan-ng drivers are not included in BT2 v.2.0 final. This is how I get my SMC2532W-B to run under Hostap (also works with Senao NL-2511CD PLUS EXT2).

I shove the card in, and the wrong drivers get loaded:

Module Size Used by
orinoco_cs 13576 1
orinoco 37280 1 orinoco_cs
hermes 6272 2 orinoco_cs,orinoco

I remove the card, and:

bt ~ # rmmod orinoco_cs
bt ~ # rmmod orinoco
bt ~ # rmmod hermes
bt ~ # modprobe hostap_cs

Then reinsert the card.

If your card still does not get recognized and is identified by "pccardctl info" as 0x0156,0x0002 (for instance) you can patch hostap_cs.c (search for 0x0138 and replace it with 0x0156). Afterwards "make modules && make modules_install".
cd /root/.kde/Autostart

Dual Boot

Enable Dual Boot Between Windows XP and Backtrack

This assumes your Windows drive is hda1.

In the console, type:

nano /etc/lilo.conf

Add the lines:

other=/dev/hda1
label=Windows_XP (spaces are not allowed)

Save the file.

Type:

lilo

Now, reboot and you should be able to boot between OSs.

Note: Every time you modify lilo.conf you must type lilo in order for your changes to be made to the lilo system.

Nessus Install

Alright, here it is from start to finish with a brand spank'n new install of BT2

Save these files to your desktop:
Nessus-3.0.5-fc5.rpm
NessusClient-1.0.2.tar.gz

cd /root/Desktop/
rpm2tgz Nessus-3.0.5-fc5.i386.rpm
installpkg Nessus-3.0.5-fc5.i386.tgz
tar -zxf NessusClient-1.0.2.tar.gz
cd NessusClient-1.0.2
./configure
make && make install


NessusClient has been sucessfully installed.


yay….

nano /etc/profile (make sure "/opt/nessus/bin" and "/opt/nessus/sbin" are in your path. it should look like mine below)

PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/apache/bin:/usr/local/pgsql/bin:/opt/mono/bin:/usr/local/pgsql/bin:/opt/nessus/bin:/opt/nessus/sbin:."

cd /lib
ln libdb-4.2.so libdb-4.3.so
cd /usr/lib
ln -s libssl.so.0 libssl.so.6
ln -s libcrypto.so.0 libcrypto.so.6
cd /etc/rc.d
ldconfig
cd /opt/nessus/sbin
nessus-mkcert
nessus-adduser
NessusClient

Remote Desktop

Remote Desktop

Type in console:

rdesktop –f –a 16 ip_address

rdesktop –f –a 16 –r sound:local 127.0.0.1

ip_address the ip of the computer you are trying to connect to
-f fullscreen
-a 16 sets color attributes
-r sound:local sets sound to play on machine you are sitting at
-r disk:name=/root maps drive on local computer to one on remote computer

SSH

Type in console:

ssh –l user_name ssh_server_ip –L externalport:internal_ip:internalport

For example if you wanted to ssh to your home network and be able to remote desktop to it:

ssh –l admin 68.50.103.50 –L 3389:192.168.0.1:3389

or

ssh –l admin 68.50.103.50 –L 80:127.0.0.1:80

Boot Directly to KDE

Directly loading into the GUI

nano /etc/inittab

change this line: id:3:initdefault

-to-

id:4:initdefault

Modify Login/Password Page

To change the logon screen from:

BACKTRACK
User: root
Pass: toor

Edit the /etc/issue file.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.