Tag Archives: Backtrack

backtrack is ubuntu based OS that has penetration tools installed

Setting Static IP Address in Ubuntu / Backtrack

As laptop user, we may find that we usually connect to the internet using wifi, modem, or lan cable in public rooms, we usually get an IP address from dhcp, so that we dont need to configure manually our interface address. In some occasion, for example if we want to set our ubuntu to work as a server or to be kept in permanent place we need to set its IP address to static IP.

it can be done by modifiing /etc/network/interfaces file.
for default configuration this will display these lines
(eth0 for lan card
wlan0 for wirelesscard)

auto eth0
iface eth0 inet dhcp

by basic understanding for TCP/IP
u can change it to static configuration by doing this step :
1. Edit /etc/network/interfaces file

#rootbt: nano /etc/network/interfaces

2. Change the default example to these lines

auto eth0
iface eth0 inet static
address 192.168.1.5
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

3. Save edited file by pressing Ctrl+O
4. Restart Network just to make it sure it works
#rootbt: ifconfig eth0 down
#rootbt: ifconfig eth0 up
#rootbt: /etc/init.d/networking restart

its just example, u need to change all the number according to your own setting, ask your system administrator if you dont have any information about IP address allocation on your workplace.

How to Connect Wifi Using Command Line on Ubuntu/Backtrack

Instead of using GUI version of network manager (Wicd) we can use our command line to connect Wifi in backtrack / ubuntu. Here is the step :

1. Turn on your wireless card, (usually done by specific button).
2. Open terminal. enter command iwconfig.
bt# iwconfig
this is the example output

lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     Iunassociated  ESSID:off/any
          Mode:Managed  Channel=0  Access Point: 00:00:00:00:00:00
          Bit Rate=0 kb/s   Tx-Power:off
          Retry:on   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

it shows you that your wireless device’s name is wlan0

4. Do a scan
bt# iwlist wlan0 scan

5. Select ESSID dan enter its key
bt# iwconfig wlan0 essid ESSIDNAME key s:password

this will only work for wifi with WEP
for working with access point with WPA we need wpa-supplicant
read this article to read further:

http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/

from those link i got this post

How to connect to a wireless network from the Ubuntu command line using a WPA/WPA2 Personal key.
For this to work.. you need to have WPA-Supplicant installed … Ubuntu comes with WPA-Supplicant installed by default.
if not present, install it using this command: sudo apt-get install wpasupplicant
Ubuntu doesn’t use a root password by default …so we need to use the sudo command here.

Now we need to create 2 files: wireless-wpa.sh + wireless-wpa.conf using the vi command. For those who are not familiar with vi , I will guide you through this.

OK ..lets start: first we gonna create the wireless-wpa.sh
type: sudo vi wireless-wpa.sh
press the “i” button ones and insert text below.
#!/bin/sh
iface=eth1

#shut down interface
ifconfig $iface down

#set ad-hoc/management of wireless device
iwconfig $iface mode Managed

#enable interface
ifconfig $iface up

#stop any persistent wireless wpa2 sessions
killall wpa_supplicant

#apply WPA/WPA2 personal settings to device
wpa_supplicant -B -Dwext -i $iface -c ./wireless-wpa.conf -dd

#obtain an IP address
dhclient $iface

Now we need to save this file and quit vi…. press “esc” button ones … then type.. :wq ( you need to type the : also )
Thats done … now we gonna make the wireless-wpa.conf

type: sudo vi wireless-wpa.conf
press the “i” button ones and insert text below.

# config file using WPA/WPA2-PSK Personal key.

ctrl_interface=/var/run/wpa_supplicant

network={
ssid=”my_router_id”
scan_ssid=1
key_mgmt=WPA-PSK
psk=”1234567890″
}

Now we need to save this file and quit vi…. press “esc” button ones … then type.. :wq ( you need to type the : also )
That’s also done … now we need to set the permissions for these 2 files.

sudo chmod 755 wireless-wpa.sh
sudo chmod 644 wireless-wpa.conf

Make sure you put these 2 files in the same directory anywhere you like…else it will not work.
Run the following command to make a connection to your wireless Router/Accespoint/
sudo ./wireless-wpa.sh

That’s all …. have fun!

from long example above i conclude that using GUI version of network manager will help us a lot.

source :
1. http://blog.tplus1.com/index.php/2008/06/13/how-to-connect-to-a-wireless-network-from-the-ubuntu-command-line/
2. https://help.ubuntu.com/community/WifiDocs/WPAHowTo

Backtrack 5 with Desktop Application

Backtrack is generally ubuntu with various penetration-testing software and security software installed inside. It is linux distribution that focused for security testing needed, so at your fresh install you will not find any desktop application software installed. nah, becaus of this you will not able use this software to please you with standard application such as mp3 player, file reader, etc.

here some software needed to be installed after you fresh installation.
1. Internet browser : For KDE there is Konkueror installed, but u can install other internet browser such as firefox and google chrome. after u connect the internet using wicd network manager, just use apt-get to install those software
[php]
apt-get install firefox
apt-get install chromium-browser
[/php]

2. Music Player : Thera some options such as amarok, banshee, and vlc player. but unfortunately (in my case) backtrack 5 can’t play mp3 file. you can solved this problem by installing gxine with all its dependencies.

here is the command :

sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gxine libxine-main1 libxine-extracodecs ogle ogle-gui

i get it from http://ubuntuforums.org/archive/index.php/t-335023.html

3. Video player : After u do the command above, any video file (must be) can be played with gxine or other software.

4. Pdf reader : thera some pdf reader avaliable such as : document viewer and xpdf, i think evince works better.
[php]
apt-get install evince
apt-get install kpdf
[/php]

5. Text editor : u can use nano (shell) as text editor but gedit should give you better view.
[php]
apt-get install gedit
[/php]

6. When i tried to open .chm file i find error occured, the software can not properly view the .chm file as it is. then i find out from google to use kchmviewer. kchmviewer is good .chm viewer for ubuntu.
[php]apt-get install kchmviewer[/php]

other software, u can easily choose it from package manager.

Change Desktop Background in Backtrack 5 KDE

i’ve spent some minute trying to find how to change backtrack 5 desktop background.
then i found out that its menu is located in our right click

1. place your mouse to your desktop
2. right click
3. choose view/folder setting
4. choose your image to be the desktop background