Kamis, 26 Juni 2008

Bagaimana Menggunakan Linux Backtrack



Ok,banyak yang bertanya2 cara menggunakan linux backtrack.
Disini saya akan mengulas "sedikit" tentang cara menggunakan linux backtrack.
Download dulu linuxnya yang berbentuk livecd download backtrack2
Lalu burn menjadi livecd "caranya"
Booting komputer via cd (jgn lupa setting dibios boot first cd)
=============================================================

-------------------------------------------------------
:: Backtrack 2.0 ::
BackTrack
login: root
password: toor
--------------------------------------------------------
*** When finished, hit Ctrl+Alt+Delete and
wait until the computer reboots ***
--------------------------------------------------------
slax login:_
=============================================================
Lalu login masukkan login:root dan password:toor
Setelah itu Ketikkan xconf
=============================================================
Trying to autoconfigure Xwindow system, please wait...
creating /etc/X11/xorg.conf...
all done. Run startx now.
=============================================================
Atau langsung ketik startx
atau lo bisa ketik guifast
ok sekarang lo dah masuk ke linux backtracknya.


Biasanya backtrack akan men set network secara dhcp tapi kalau ngga caranya gini:
setting IP secara Dhcp.
caranya:
ketik "dhcpd eth0"
(untuk eth0 ini tergantung dari lan card yang lo gunain)
untuk memastikan ketik ifconfig


setting IP secara static.
caranya:
ketik "ifconfig eth0 192.168.1.2/24" ->setting IP dan subnet
ketik "route add default gw 192.168.1.1" -> setting gateway
ketik "echo nameserver 192.168.1.1 > /etc/resolve.conf" -> sett dns
untuk memastikan ketik ifconfig


Jangan lupa untuk ganti passwordnya
caranya:
ketik "passwd" masukkan pasword yang "kuat"


untuk memunculkan bash command bisa ketikkan:
leetmode atau yakuake


cara menginstal backtrack ke harddisk beserta pilihan dual boot:
jalanin "Qtparted" dari linux tsb dari bash command
nanti didalem qtparted tsb terdapat partisi (kayak fdisk di win)
ex: 4Giga
partisi pertama 3.5Giga
partisi Kedua 0.5Giga
yang partisi pertama di format ext3
yang partisi kedua di format linux-swap
(disini qtparted suka ngaco lo buka shell umount ato mount hda1 dan hda2)
hal ini supaya qtparted bisa di create ato format setelah itu jangan lupa commit di toolbarnya
setelah itu buka "backtrack installer" pilih "install backtrack to hda2" hal ini tergantung hdd lo
klo sata biasanya namanya sda klo ide biasanya namanya hda (hda1 buat windows and hda2 buat linux ext3) tunggu sampai 100% setelah itu restart and boot ke linux automatically
dari linux lo buka shell masuk ke folder /etc ketik "nano lilo.conf" trus di lilo tsb tambah ini diatas image
==============================
other = /dev/hda1
label = Windows
table = /dev/hda
==============================
jadi nya klo gw kayak gini
==============================
boot = /dev/hda
prompt
timeout =1200
bitmap=/boot/splash.bmp
change-rules
reset
vga = 0x317
other = /dev/hda1
label = Windows_Xp
table = /dev/hda
image = /boot/vmlinuz
root = current
initrd = /boot/splash.initrd
label = Backtrack_2
read-only
========================
dah sekarang restart lo bisa liat di waktu pertama boot di minta milih mau w1nd0ws apa linux


Sekarang merubah tampilan pertama backtrack :
caranya:
ketik ini di shell alias command promptnya klo di wnd0ws
bt ~ # nano /etc/issue
dah deh tinggal kreasiin sendiri


ngerubah command line logon menjadi otomatis saat kde start:
bt ~ #nano/etc/inittab
rubah id:3:initdefault: menjadi id:4:initdefault:


membuat leetmode start otomatis
ketik:
cd /root/.kde/Autostart
ln -s /usr/bin/leetmode leetmode
hal ini membuat link leetmode di outostart


membuat yakuake start otomatis
ketik:
cd /root/.kde/Autostart
ln -s /opt/kde/bin/yakuake yakuake
sekarang di KDE hanya tinggal tekan F12


Script dibawah yang membuat otomatis cd-rom keluar:
ketik:
cd /etc/rc.d
ketik:
nano rc.6
cari code yang seperti ini:
# eject cdrom devices
. ./usr/lib/liblinuxlive
#echo "Ejecting all CDROMs..."
#list_cdrom_devices while read DEVICE; do
# cdrecord dev=$DEVICE -eject >/dev/null 2>/dev/null
# can't use eject because it's not working with our kernel
# eject -s $DEVICE >/dev/null 2>/dev/null
#done
#echo "========================================"
#echo "It's safe to switch the computer off now"
#echo -ne "Press Enter to $command "
#read junk


cara merubah pesan pertama kali boot:
nano /etc/issue


cara menginstal java client:
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
- Firefox-Preferences-Content-Enable java
Good luck.


secure shell daemon
caranya:
ketik "sshd-generate"
ketik "/usr/sbin/sshd"
ketik "netstat -ant grep 22"


Bikin http server klo bahasa neubenya bikin web server
caranya:
ketik "apachectl start" ->fungsinya hidupin apache server buat web
ketik "netstat -ant grep 80" ->cek apakah port 80 aktif
ketik "apachectl stop" ->fungsinya matiin apache server
ketik "netstat -ant grep 80" ->cek lagi


bikin file tansfer protocol atau kerennya ftp server
caranya:
ketik "atftpd --daemon --port 69 /tmp/"
ketik "netstat -anu grep 69"


bikin vnc server biasanya dipake buat ngeremote
caranya:
ketik "vncserver"
masukkan 8digit pass ato lebih
ketik "netstat -ant grep 5901"

caranya bikin dual boot secara otomatis (dikonfigurasi sendiri sama linuxnya)
tinggal ketik "liloconfig" tinggal ikutin perintahnya aja

konfigurasi IP memakai netconfig
di shell tinggal ketik "netconfig" aja

buat tanem ip
masuk k etc ubah file rc.inet1 "nano /etc/rc.d/rc.inet1.conf"
rubah:
# Config information for eth0:
IPADDR[0]="xxx.xxx.xxx.xxx"
NETMASK[0]="255.255.255.xxx"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Default gateway IP address:
GATEWAY="xxx.xxx.xxx.xx"
jangan lupa ketik
bt rc.d # rc.inet1

bikin techmon kayak leetmode di BT3
caranya di sheel ketik "superkaramba" trus download filenya jadi degh di desktop

cara install paket yang berextention .tgz
tinggal ketik:
"installpkg namapaket.tgz"

mengextrax file .gz
"tar -xzvf namafile.gz"
$ tar -zxvf nama_file.tar.gz -C /folder/tujuan/

mengextrax file .bz2
"tar -xjvf namafile.bz2"

bagaimana mengupdate slackware yang ada di backtrack pake slapt-get:
ketik ini di shell "slapt-get --update" setelah itu ketik "slapt-get --upgrade"
ketik 'kwrite /etc/slapt-get/slapt-getrc"
tambahin:
SOURCE=http://darkstar.ist.utl.pt/slackware/
buat download updatean nya
program yang lain yaitu:
Kslackcheck buat update slack juga
ini downloadnya kslackcheck
cara installnya tinggal "installpkg namafile.tgz" selesai lihat di system
nambah fast-track di BT2
caranya download dulu fast-track nya
lalu masukkan ke directory "/pentest/misc/"
setelah itu ketik "chmod 755 fast-track.py"

konfigurasi sound dibacktrack
tinggal ketik "alsaconf" ikutin perintahnya setelah selesai ketik "alsamixer" setelah setting suara ketik "alsactl store" buat nyimpen

ini hal aneh kok pentest ada officenya
yahhh gpp degh namanya juga belajar
pertama download officenya di open office
ekstrax "tar -xzvf OOo_2.3.1_LinuxIntel_install_en-US.tar.gz"
masuk ke folder "cd OOG680_m9_native_packed-1_en-US.9238"
masuk ke folder "cd RPMS"
ketik ini "rpm2tgz *.rpm"
install "installpkg *.tgz"
masuk ke diretory "cd /opt/openoffice.org2.3/program/"
jalanin program "soffice"
bikin di menu kde
bikin di menu start kde
klik kde start klk kanan pilih "edit menu"
pilih editor trus klik kanan pilih new item
name : office
command : '/opt/openoffice.org2.3/program/soffice' #pake tanda ' nya yah
work path : /opt/openoffice.org2.3/program
finish
gretzz to irfahmi
finish

mau milih window manager ketik ini "xwmconfig"


cara buat ngebaca ntfs yaitu pake ntfs-3g
sebelumnya umount dulu partisi yang mau di ntfs
"umount /dev/hda"
"ntfs-3g /dev/hda /mnt/hda? -o force"

cara nginstall Xvidcap buat bikin video tutorial
donwload
trus "installpkg namafile"

install kmail client
download kmailnya
"tar -xjvf kdepim-3.5.6.tar.bz2"
"configure && make && make install"

install thunderbird
download thunderbirdnya
ekstrax "tar -zxvf thunderbird-2.0.0.12.tar.gz"
buat linknya di kde menu editor linknya Thunderbird
atau "double klik thunderbird"

temen g ada yang nanya cara ngerubah password gimana
ketik aja "passwd" ketik password yang panjang
supaya ngga di konfirmasi sama linux lo

mengaktifkan ssh pada backtrack pertama kali
"setup-sshd" untuk start atau memulainya "start-sshd"
untuk stop "stop-sshd"

untuk mengaktifkan firewall di backtrack secara otomatis
bt / # cat >> /etc/rc.d/rc.local
. /etc/rc.d/rc.FireWall start
^d
bt / #
gretzz willy master slackware


Apasih kernel itu (bisa lihat disini)
Apasih perbedaan kernel SMP sama kernel biasa (bisa lihat disini)
semuanya diketik tanpa memakai " "

dikutip dari http://remote-exploits.blogspot.com/

BackTrack 3 USB install and Intel 3945 packet injection

BackTrack 3 USB install and Intel 3945 packet injection
Posted March 9th, 2008 by williamw

I am late announcing this as the official beta has been out since December, however my circumstances recently have changed such that I now have a USB drive. I have been messing around with Backtrack for almost a year and a half now — mostly with the wireless tools — and have been impressed with the powerful arsenal this little bad boy gives you. The best part is that it is FREE!! If you aren’t sure what BackTrack is, I suggest you click here for more information. This will knock your socks off!


For the rest of us who know what it is, I will give you the break down of what you need to do to install BT3 on a USB drive. If you are like me then you are frustrated that your nice laptop comes with such a non-hacker friendly wireless card, the Intel 3945abg. I mean it is a fantastic card for ‘normal’ wireless use–however if one wants to get a little more aggressive with it, than it is near to impossible to allow this card to go into promiscuous mode or to actively inject packets wirelessly. Not to fear though, I will guide you through the steps needed to accomplish both these things.

**The author recognizes there are a variety of methods to go about doing this, however the document procedure below is the one that works best for the author. To follow these EXACT instructions you will need:

1- Computer with Linux

2- Computer with Windows

Step #1

We need to prepare the usb drive for the installation — the usb drive that I used was 8 gig in size, so I wanted to have the majority of the drive available to me as a portable storage space as well as allowing the drive to remain bootable–so my exact process might be a little different than your process. I will try to accommodate for both scenarios.

Ok first off we are going to assume that you don’t have anything on the usb drive (if you do please temporarily move it to another location). Now we need to remove any existing partitions from the USB drive and essentially start from scratch. Insert the USB device into the computer running linux; after the device is recognized and mounted we need to unmount the device from the system so that we can manipulate the partitions. To do this open a terminal window and enter the following command:

umount /dev/sdb [where sdb is the name of the usb drive]

**To find what the drive name is, type: ‘dmesg | tail’ immediately after plugging in the device.

After unmounting the device we want to now use the program called fdisk. From the terminal window type;

sudo fdisk /dev/sdb

[your prompt should change to look like this]

The number of cylinders for this disk is set to 14593.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):

press ‘p’ to show all the current partitions on the device — I am assuming that there is only one partition on the device, if there are more than one listed then you will need to duplicate the following steps until there are no more partitions showing on the disk.

d [to delete partition]

w [to write changes to disk]

After writing the changes to disk you can press ‘p’ again to confirm that there are no more partitions available on the disk. Now that the device is 100% unallocated space we need to repartition the disk so that we can have a partition for BackTrack 3 to be installed to and another partition to save any changes made to BackTrack and then the third partition is going to be used as the “storage space” that will act as a normal USB drive. Although fdisk is capable of creating new partitions on the device I am going to introduce another program that has a GUI front end that does a good job at creating and formatting the new partitions in one swoop. The program that we will be using is Gparted. If you are using Ubuntu you can install this program from the terminal window by typing:

sudo apt-get install gparted

After installing Gparted we need to start it so in the terminal type:

sudo gparted

This should know open a small rectangle window that displays your current drives partition information. In the upper right hand corner there should be a drop down menu that will allow you to change your device to the USB drive (/dev/sdb) that we just wiped out. After choosing that device you will see that there is no partitions available on the drive and that all space is counted as unallocated. Select the unallocated space and then choose “New”. We need to create a minimum of two partitions, or three if you want some space left on the disk to use as a normal USB drive. Below are the partition sizes and filesystem types I used.

sdb1 — size 6.5 gig — FAT32 [Normal USB storage space]

sdb2 — size 1 gig — FAT32 [BackTrack3 source files]

sdb3 — size 512 MB — EXT2 [BackTrack3 ‘changes’]

**Note you must create a FAT32 parition for the BackTrack3 files to exist on or else the boot script will not run properly

After getting the partitions into the correct order make sure you tell gparted to ‘Write’ the changes to disk. If all goes well gparted will inform you of a success, if not start over at wiping the disk.

Ok so now we have our partitions and file systems it is time to get install BackTrack! First you need to download the installation files specific to a USB installation, click here to get the files. Make sure you get the USB Version. After downloading the the file, extract the files onto the second partition (in my case sdb2). So in the root of the drive I should have two folders “boot and BT3″. After extracting the files we need to run a installation script that will make the first partition bootable. Go into the boot folder and you should see a file called “bootinst.sh” (if you are going to run the script from windows look for the file called “bootinst.bat”). Now we need to run that script file. From the terminal type the following

sudo ./bootinst.sh

Follow the prompts and that should now enable the first partition to be bootable drive. Now we need to configure BackTrack to allow us to save any changes that we make to disk. Once again go into the ‘boot’ folder and then into the ’syslinux’ folder. Inside of that directory there is a file called ’syslinux.cfg’. Open that file up with your favorite text editor. We need to find the section that says “LABEL pc change”, in that section there is a line that says

APPEND vga=0×317 initrd=/boot/initrd.gz ….

And we need to change that line so that it now reads

APPEND vga=0×317 changes=/dev/sdb3 initrd=/boot/initrd.gz

be careful of any extra commas or white spaces, they will disrupt the syntax of the command

(**Note this file displays the different ways that BT3 can be started, because I want to start BT3 in “persistent change” mode (aka it will always save any changes made) I actually moved the entire ‘pc change’ section to the top of the file so that by default BT3 starts in “persistent change” mode. )

After saving the syslinux.cfg file we need to do one last thing — on the third partition that we made (/dev/sdb3) that contains the .EXT2 filesystem we need to create a folder called ‘changes’ in the root level of that partition. Linux is case sensitive so make sure that the folder is called EXACTLY ‘changes’. If your partition numbers are different than what is listed here you need to make the corresponding changes in the syslinux.cfg file to reflect the actual partition number where the ‘changes’ folder is stored. You also need to make sure that your ‘changes’ folder has the proper permissions configured for it; the author has his configured for 777, however this potentially leaves a security problem with respect to this drive. Only configure 755 permissions if you are doing this for testing purposes only. From the terminal window, inside of the /sdb3 root directory issue the following command:

chmod -R 755 changes

ls -l (to confirm that there is total ‘w r x’ permissions on the folder)

Phew well now that is taken care of we need to now enable our intel 3945 wireless card to support monitor mode and packet injection. To do this execute the following commands from the terminal.

1. Download the drivers

mkdir intel-drivers && cd intel-drivers

wget http://homepages.tu-darmstadt.de/~p_larbig/wlan/ipwraw-ng-2.0.0-10072007...

2. Extract the drivers

tar -xjf ipwraw-ng-2.0.0-10072007.tar.bz2

cd ipwraw-ng

3. Compile & Install & Blacklist from startup

make && make install

make install_ucode

echo “blacklist ipwraw” | sudo tee /etc/modprobe.d/ipwraw

depmod -ae

4. Load new modules and put intel 3945 into monitor mode

modprobe -r iwl3945

modprobe ipwraw

5. Test packet injection

aireplay-ng –test wifi0

6. Resort to normal mode

modprobe -r ipwraw

modprobe iwl3945

Well now you have the ultimate setup — BackTrack 3 on a stick and an internal wireless card that supports packet injection, what more could you want? Well ok, maybe there are just a few things . . . Stay tuned and I will keep you updated on new programs and tools I find using BT3.

dikutip dari https://island.byu.edu/blog/34/backtrack-3-usb-install-and-intel-3945-packet-injection
BackTrack 3 USB install and Intel 3945 packet injection
BackTrack 3 USB install and Intel 3945 packet injection
Posted March 9th, 2008 by williamw

I am late announcing this as the official beta has been out since December, however my circumstances recently have changed such that I now have a USB drive. I have been messing around with Backtrack for almost a year and a half now — mostly with the wireless tools — and have been impressed with the powerful arsenal this little bad boy gives you. The best part is that it is FREE!! If you aren’t sure what BackTrack is, I suggest you click here for more information. This will knock your socks off!


For the rest of us who know what it is, I will give you the break down of what you need to do to install BT3 on a USB drive. If you are like me then you are frustrated that your nice laptop comes with such a non-hacker friendly wireless card, the Intel 3945abg. I mean it is a fantastic card for ‘normal’ wireless use–however if one wants to get a little more aggressive with it, than it is near to impossible to allow this card to go into promiscuous mode or to actively inject packets wirelessly. Not to fear though, I will guide you through the steps needed to accomplish both these things.

**The author recognizes there are a variety of methods to go about doing this, however the document procedure below is the one that works best for the author. To follow these EXACT instructions you will need:

1- Computer with Linux

2- Computer with Windows

Step #1

We need to prepare the usb drive for the installation — the usb drive that I used was 8 gig in size, so I wanted to have the majority of the drive available to me as a portable storage space as well as allowing the drive to remain bootable–so my exact process might be a little different than your process. I will try to accommodate for both scenarios.

Ok first off we are going to assume that you don’t have anything on the usb drive (if you do please temporarily move it to another location). Now we need to remove any existing partitions from the USB drive and essentially start from scratch. Insert the USB device into the computer running linux; after the device is recognized and mounted we need to unmount the device from the system so that we can manipulate the partitions. To do this open a terminal window and enter the following command:

umount /dev/sdb [where sdb is the name of the usb drive]

**To find what the drive name is, type: ‘dmesg | tail’ immediately after plugging in the device.

After unmounting the device we want to now use the program called fdisk. From the terminal window type;

sudo fdisk /dev/sdb

[your prompt should change to look like this]

The number of cylinders for this disk is set to 14593.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):

press ‘p’ to show all the current partitions on the device — I am assuming that there is only one partition on the device, if there are more than one listed then you will need to duplicate the following steps until there are no more partitions showing on the disk.

d [to delete partition]

w [to write changes to disk]

After writing the changes to disk you can press ‘p’ again to confirm that there are no more partitions available on the disk. Now that the device is 100% unallocated space we need to repartition the disk so that we can have a partition for BackTrack 3 to be installed to and another partition to save any changes made to BackTrack and then the third partition is going to be used as the “storage space” that will act as a normal USB drive. Although fdisk is capable of creating new partitions on the device I am going to introduce another program that has a GUI front end that does a good job at creating and formatting the new partitions in one swoop. The program that we will be using is Gparted. If you are using Ubuntu you can install this program from the terminal window by typing:

sudo apt-get install gparted

After installing Gparted we need to start it so in the terminal type:

sudo gparted

This should know open a small rectangle window that displays your current drives partition information. In the upper right hand corner there should be a drop down menu that will allow you to change your device to the USB drive (/dev/sdb) that we just wiped out. After choosing that device you will see that there is no partitions available on the drive and that all space is counted as unallocated. Select the unallocated space and then choose “New”. We need to create a minimum of two partitions, or three if you want some space left on the disk to use as a normal USB drive. Below are the partition sizes and filesystem types I used.

sdb1 — size 6.5 gig — FAT32 [Normal USB storage space]

sdb2 — size 1 gig — FAT32 [BackTrack3 source files]

sdb3 — size 512 MB — EXT2 [BackTrack3 ‘changes’]

**Note you must create a FAT32 parition for the BackTrack3 files to exist on or else the boot script will not run properly

After getting the partitions into the correct order make sure you tell gparted to ‘Write’ the changes to disk. If all goes well gparted will inform you of a success, if not start over at wiping the disk.

Ok so now we have our partitions and file systems it is time to get install BackTrack! First you need to download the installation files specific to a USB installation, click here to get the files. Make sure you get the USB Version. After downloading the the file, extract the files onto the second partition (in my case sdb2). So in the root of the drive I should have two folders “boot and BT3″. After extracting the files we need to run a installation script that will make the first partition bootable. Go into the boot folder and you should see a file called “bootinst.sh” (if you are going to run the script from windows look for the file called “bootinst.bat”). Now we need to run that script file. From the terminal type the following

sudo ./bootinst.sh

Follow the prompts and that should now enable the first partition to be bootable drive. Now we need to configure BackTrack to allow us to save any changes that we make to disk. Once again go into the ‘boot’ folder and then into the ’syslinux’ folder. Inside of that directory there is a file called ’syslinux.cfg’. Open that file up with your favorite text editor. We need to find the section that says “LABEL pc change”, in that section there is a line that says

APPEND vga=0×317 initrd=/boot/initrd.gz ….

And we need to change that line so that it now reads

APPEND vga=0×317 changes=/dev/sdb3 initrd=/boot/initrd.gz

be careful of any extra commas or white spaces, they will disrupt the syntax of the command

(**Note this file displays the different ways that BT3 can be started, because I want to start BT3 in “persistent change” mode (aka it will always save any changes made) I actually moved the entire ‘pc change’ section to the top of the file so that by default BT3 starts in “persistent change” mode. )

After saving the syslinux.cfg file we need to do one last thing — on the third partition that we made (/dev/sdb3) that contains the .EXT2 filesystem we need to create a folder called ‘changes’ in the root level of that partition. Linux is case sensitive so make sure that the folder is called EXACTLY ‘changes’. If your partition numbers are different than what is listed here you need to make the corresponding changes in the syslinux.cfg file to reflect the actual partition number where the ‘changes’ folder is stored. You also need to make sure that your ‘changes’ folder has the proper permissions configured for it; the author has his configured for 777, however this potentially leaves a security problem with respect to this drive. Only configure 755 permissions if you are doing this for testing purposes only. From the terminal window, inside of the /sdb3 root directory issue the following command:

chmod -R 755 changes

ls -l (to confirm that there is total ‘w r x’ permissions on the folder)

Phew well now that is taken care of we need to now enable our intel 3945 wireless card to support monitor mode and packet injection. To do this execute the following commands from the terminal.

1. Download the drivers

mkdir intel-drivers && cd intel-drivers

wget http://homepages.tu-darmstadt.de/~p_larbig/wlan/ipwraw-ng-2.0.0-10072007...

2. Extract the drivers

tar -xjf ipwraw-ng-2.0.0-10072007.tar.bz2

cd ipwraw-ng

3. Compile & Install & Blacklist from startup

make && make install

make install_ucode

echo “blacklist ipwraw” | sudo tee /etc/modprobe.d/ipwraw

depmod -ae

4. Load new modules and put intel 3945 into monitor mode

modprobe -r iwl3945

modprobe ipwraw

5. Test packet injection

aireplay-ng –test wifi0

6. Resort to normal mode

modprobe -r ipwraw

modprobe iwl3945

Well now you have the ultimate setup — BackTrack 3 on a stick and an internal wireless card that supports packet injection, what more could you want? Well ok, maybe there are just a few things . . . Stay tuned and I will keep you updated on new programs and tools I find using BT3.

dikutip dari https://island.byu.edu/blog/34/backtrack-3-usb-install-and-intel-3945-packet-injection

Kamis, 29 Mei 2008

Putty dan ssh

July 11, 2007 by oasisnet

SSH Tunnels bisa juga disebut Port Forwarding. Berikut langkah-langkah yang sudah saya
pelajari dan sudah saya praktekkan. Karena masih dibilang Newbie, untuk itu mohon maaf jika ada kesalahan dalam tutorial ini. Selama ini SSH Tunnels saya
gunakan untuk mIRC dan atau untuk browsing.Mungkin SSH Tunnels bisa digunakan untuk kebutuhan yang lain yang lebih penting, saya kurang tahu. Selamat mencoba…



—-Read —-

Persiapan :
* Koneksi Internet
* SSH
* Putty
* Rokok + Kopi
* Apa aja deh…
Langkah Pertama :
1. Buka Putty
2. Klik tab Tunnels
3. Pilih Dynamic
4. Isikan Port (Socks 4 atau Socks 5)
5. Add

Langkah Kedua :
1. Pilih Session
2. Isikan Host Name (IP Address)
3. Open

Langkah Ketiga :
1. Login ke SSH
2. Isikan Password
3. Biarkan SSH terbuka

Samarkan IP dengan SSH Tunnels pada mIRC
1. Buka IP localhost 127.0.0.1
2. Isikan Port yang digunakan pada SSH
3. Pilih tab Connect
4. Isi form yang ada di tab Connect
5. OK
6. Connect ke server yang diinginkan
7. Whois nick
8. Horay…!!!

Samarkan IP dengan SSH Tunnels pada Internet Explorer
1. Buka Internet Explorer
2. Pilih tab Connection
3. Pilih tab LAN Setting
4. Centang Option pada Proxy Server
5. Pilih Advance
6. Isikan pada kolom Socks
7. Isikan IP localhost 127.0.0.1 dengan port yang digunakan pada SSH
8. OK
9. Check IP ( showip.com )
10. Horay…!!!
http://ndost.wong-mbatu.or.id/2006/09/Browsing via SSH Tunneling Posted on
2007-02-03 19:22:58. 471 views. 11 comment(s).
Berhubung sudah dibahas oleh matriphe untuk client under Windows, sekarang
mari kita bahas penggunaannya untuk client dengan sistem operasi berbasis UNIX,
misalnya Mac OS X, FreeBSD, atau Linux. Dan tentu saja kali ini saya memakai
Mac OS X.

Mari kita lihat contoh skenario dari gambar di atas. Sebuah jaringan lokal
terhubung ke internet melalui sebuah PC router yang berfungsi sebagai NAT,
singkatnya, PC router terhubung dengan internet dan membagi koneksi ini ke
jaringan lokal. Dan PC router ini menggunakan sistem operasi FreeBSD. Lalu ada
sebuah server lagi yang bertindak sebagai proxy server, dalam kasus ini server
tersebut menggunakan sistem operasi Linux dengan aplikasi Squid sebagai proxy
servernya. Serta sebuah host client bandel yang menggunakan sistem operasi Mac
OS X.

OK. Secara default, segala akses ke internet melalui PC router selain dari
proxy server adalah terblokir (digambarkan dengan tanda panah hitam nomor 4).
Sehingga, untuk berhubungan dengan internet, client mesti melewati proxy
server. Seperti gambar di atas, tanda panah hitam nomor 1 menunjukkan hubungan
client dengan proxy server. Tanda panah hitam nomor 2, menunjukkan bahwa
request dari client diteruskan ke internet melalui PC router. Dan tanda panah
hitam nomor 3, menunjukkan bahwa request dari proxy server diteruskan ke
internet, juga terjadi proses translasi alamat privat ke alamat publik oleh NAT.

Biasanya pemilik jaringan memaksa client agar melewati proxy server selain
untuk menghemat bandwidth juga untuk manajemen accounting. Misalnya membatasi
quota volume tiap user, membatasi kecepatan download user, ataupun membatasi
ukuran file yang boleh di-download oleh user, serta memblokir alamat-alamat
yang mengandung kata-kata tertentu. Namun dasar client bandel, selalu mencoba
untuk mengakali limitasi yang diberikan oleh proxy server. Hehehehe…

Untuk membuat koneksi SSH, tentu saja baik klien dan server mesti memiliki
aplikasi untuk ssh. Karena servernya menggunakan FreeBSD yang berbasis UNIX,
tentu saja sudah memiliki aplikasi sshd sebagai SSH server. Dan aplikasi ini
harus aktif agar dapat diakses dari host lain. Biasanya aplikasi sshd ini
diaktifkan oleh admin untuk remote console, sehingga sang admin tidak perlu
mengakses servernya secara fisik. Sementara untuk kliennya, biasanya sistem
operasi berbasis UNIX memiliki aplikasi ssh. Untuk klien yang menggunakan
sistem operasi Windows, dapat menggunakan aplikasi PuTTY seperti yang telah
dijelaskan oleh matriphe di blognya.

Kita misalkan alamat IP PC router tersebut di sisi LAN adalah 10.14.0.1. Maka
kita harus login ke komputer tersebut dengan menggunakan perintah ssh. Kita
mulai saja. Pada OSX, jalankan aplikasi Terminal.app, lalu login ke komputer
korban dengan sintax sebagai berikut. Namun tetap saja Anda membutuhkan
password dan username yang valid untuk digunakan. Hehehehe…

$ ssh -D 4567 [EMAIL PROTECTED]

Parameter -D 4567 adalah untuk mengaktifkan port-forwarding dinamis di
komputer lokal dengan port 4567. Nomor portnya sendiri adalah bebas, Anda dapat
menggunakan port berapa saja yang tidak terpakai. Gunakanlah port dengan nomor
di atas 1000. [EMAIL PROTECTED] berarti kita akan login sebagai root di
komputer dengan alamat IP 10.14.0.1. Anda tidak harus login sebagai root,
sebagai user lain juga bisa.

Setelah koneksi SSH dengan korban tercipta, mari kita setting browser kita. Di
sini saya mencontohkan dengan browser Firefox. Masuk ke preferences, lalu cari
bagian network connections. Pilih “Manual Proxy Configurations”, kosongkan
semua field, lalu isi field “SOCKS Host” dengan alamat loopback, yakni
127.0.0.1, lalu isi port-nya sesuai dengan port yang Anda gunakan. Sebagai
contoh, saya sertakan gambar contoh di bawah.

Lalu mari kita lihat hasilnya.

Dengan SSH Tunneling ini, request akan langsung dikirimkan ke PC router tanpa
melewati proxy server (digambarkan dengan garis putus-putus biru nomor 5)
melalui jalur tunnel ssh yang telah dibuat sebelumnya. Lalu request ini
langsung di kirimkan ke internet, seolah-olah request ini dikirimkan dari PC
router langsung (digambarkan dengan garis putus-putus biru nomor 6). Jadi Anda
berinternet seolah-olah berada di komputer PC router tersebut. Untuk bandwith,
tentu sudah jaminan mutu tanpa ada limitasi proxy maupun dari PC router itu
sendiri.
Memahami Perintah Dasar di Linux

July 11, 2007 by oasisnet

Secara umum perintah-perintah Linux dan UNIX memiliki sintaks sbb :
perintah [option...] [argumen...]
Option merupakan pilihan yang dapat kita gunakan untuk memberikan hasil tertentu dari suatu perintah.
Argumen umumnya merupakan sesuatu yang akan diproses oleh perintah, misalnya nama file atau nama direktori.
Tanda [ ] merupakan simbol bahwa option dan argumen tidak harus selalu digunakan dalam menjalankan perintah.
Tanda titik-titik menandakan bahwa baik option dan argumen dapat lebih dari satu.
Seluruh perintah dalam Linux dan UNIX bersifat case sensitive, jadi perintah LS akan dianggap berbeda dengan ls.

Sekarang kita mulai dengan perintah-perintah dasar yang umum digunakan dalam Linux:

—- read —-
ls
Perintah ini merupakan perintah untuk menampilkan isi suatu direktori. Perintah ini mirip seperti perintah dir dalam DOS.
Ada beberapa cara untuk menggunakan perintah ini, misalnya :
# ls
# ls -l
Untuk mengetahui lebih lengkap tentang perintah ls, silakan lihat di manual dengan perintah man ls.
more
Perintah more dapat digunakan untuk melihat isi suatu file teks dengan layar per layar. untuk keluar dari tampilan more dengan menekan tombol q.
cat
Perintah ini digunakan untuk menampilkan isi file ke layar tanpa fasilitas tampilan layar per layar.
Biasanya digunakan bersamaan dengan pipeline atau redirection. Misal untuk menampilkan isi file /etc/passwd dan /etc/group, gunakan perintah :
# cat /etc/passwd /etc/group
cd
Perintah ini mirip seperti perintah cd dalam DOS yaitu digunakan untuk pindah ke direktori tertentu. Contoh perintah :
# cd /home/adje
Untuk menuju kembali ke direktori /home, maka digunakan perintah :
# cd ..
cp
Perintah ini digunakan untuk mengkopi suatu file atau direktori. misalnya :
# cp contoh1 contoh2
Perintah di atas maksudnya akan mengkopi contoh1 ke file contoh2. Untuk mengkopi seluruh direktori menggunakan perintah :
# cp -R /home/adje /home/afri
mv
Perintah ini digunakan untuk memindahkan suatu file ke lokasi lain atau dengan nama lain. Contoh :

# mv contoh1.php contoh2.php
#mv contoh1.php /home/adje/contoh2.php
rm
Perintah ini digunakan untuk menghapus direktori atau file. Perintah ini mirip dengan perintah del dalam DOS. Dalam menggunakan perintah ini agar hati-hati karena dalam Linux tidak ada perintah undelete atau unerase. Contoh penggunaan rm sbb :
#rm contoh1.php
Untuk menghapus suatu direktori gunakan perintah :
#rm /home/adje/temp
mkdir
Perintah ini digunakan untuk membuat direktori. Misalnya :
#mkdir contoh
Pipeline
Pada Linux dan UNIX, hasil keluaran suatu proses program dapat diberikan sebagai input pada proses lainnya. Contohnya :

#ls -l /home/adje | more
grep
Perintah grep digunakan untuk men-filter masukan dan menampilkan dalam bentuk baris-baris yang sesuai dengan pola yang anda inginkan. Contoh :

# ps ax |grep wvdial
Redirection
Di dalam Linux atau UNIX, anda dapat membelok-belokkan standar input, output ataupun standar error menuju tujuan lain.
Misalnya anda dapat membelokkan standar output suatu program ke file atau membelokkan standar input suatu program dari suatu file.
Proses pembelokkan ini disebut redirection dan di *NIX digunakan simbol > (untuk membelokkan standar output ke file) dan simbol < (untuk membelokkan standar input dari file). Contoh :

Untuk menyimpan tampilan isi seluruh directori /etc ke sebuah file, gunakan perintah :

#ls -lR /etc > isi-etc
Untuk menambahkan isi file isi-etc dengan data lain, gunakan simbol >> (append) pada redirection, misal :

#ls -lR /home/adje >> isi-etc

Untuk membuat perintah mensortir data yang terdapat pada file contoh.txt dapat digunakan perintah :

#sort < contoh.txt
Perintah-perintah di atas adalah perintah-perintah yang sering digunakan dalam Linux atau UNIX. Bila anda masih merasa kesulitan silakan baca manual-nya terlebih dahulu. Karena membaca manual itu sangat penting bila kita sering meng-oprek Linux atau UNIX. Dari manual itu kita bisa mendapat solusi dari masalah yang kita hadapi

Reff: http://zaki-math.web.ugm.ac.id/mod.php?mod=publisher&op=viewarticle&artid=16

Dasar-Dasar Perintah Linux

July 11, 2007 by oasisnet

eBagi yg biasa make putty tentunya udah biasa dengan perintah2 linux, dibawah ini kami sajikan beberara perintah2 dasar linux khusus bagi pemula (yg udah expert gak usah baca Cool!) Peintah2 ini bersifat sangat dasar dan hanya secara garis besarnya aja, kalo mau tau detailnya bisa make perintah: man

—- read —-

Perintah2 Dasar Linux:

Perintah Contoh Keterangan
ls ls -la Tampilkan daftar file/direktori
cd cd /tmp Berpindah ke direktori tmp
cp cp olib.txt ancu.txt Mengcopy file olib.txt jadi ancu.txt
mv mv ippank.tcl mrscripe.tcl Merubah nama ippank.tcl menjadi mrscripe.tcl
mkdir mkdir galardo Membuat direktori baru bernama galardo
rm rm -rf jagiring Menghapus dir jagiring beserta sub-dir2 nya
find find / -name reza.txt
find / -perm 777 -type d
find /var -user nobody Mencari reza.txt mulai dari awal direktoriMencari semua dir yg drwxrwxrwx

Mencari semua file/dir milik nobody mulai dari dir /var
ps ps x Menampilkan semua proses dari id saat itu
kill kill -9 6693 Mematikan proses pid 6693
killall killall -9 help Mematikan semua proses yg bernama help
crontab crontab -lcrontab -r Melihat crontabMenghapus crontab
head head dhaenk.txthead -5 dhaenk.txt Menampilkan 10 baris awal pada file dhaenk.txtMenampilkan 5 baris awal pada file dhaenk.txt
tail tail joe.txttail -7 joe.txt Menampilkan 10 baris akhir pada file joe.txtMenampilkan 7 baris akhir pada file joe.txt
pwd pwd Menampilkan posisi direktori yg aktif saat itu
id id Menampilkan id user
mail mail Berkomunikasi dengan user lain
passwd passwd Mengganti password user
cal cal Menampilkan kalender
date date Menampilkan tanggal dan waktu
finger finger Menampilkan informasi user
du du /home/ichal Memeriksa total pemakaian disk pada dir /home/ichal
clear clear Membersihkan layar
whoami whoami Menampilkan id

Perintah Linux beserta kegunaannya

July 11, 2007 by oasisnet

cd x atau cd /x = masuk ke direktori x
cd .. atau cd ../ atau cd/.. = pindah ke direktori satu level di bawah
x lalu [tab] [tab] == berguna untuk mengetahui perintah apa saja yang tersedia yang berawalan huruf x
adduser = untuk menambahkan user baru
ls atau dir = untuk melihat isi suatu direktori
cat = untuk melihat isi dari suatu file text
mv x y = untuk memindahkan atau merename file x ke file y
cp x y = untuk mengkopi file x ke file y
rm x = untuk menghapus file x
mkdir x = untuk membuat direktori x
rmdir x = untuk menghapus direktori x
rm -r x = untuk menghapus direktori x beserta seluruh isinya
rm p = untuk menghapus paket tertentu
df atau df x = untuk mengetahui space kosong dalam device x
top = untuk mengetahui status memori (tekan q untuk quit)
man x = untuk mengetahui keterangan manual dari suatu perintah
less x = untuk melihat isi dari suatu file text
echo x = untuk mencetak isi dari suatu file x ke screen
mc = untuk menghidupkan Norton Commander dalam Linux (sangat berguna dan memudahkan bagi newbie)
mount = untuk menghidupkan suatu device spt cdrom
halt = untuk shutdown
reboot atau [ctl + alt + del] = untuk reboot

—- read —-
chmod = untuk mengubah permission suatu file
ls -l x = untuk melihat isi suatu direktori secara rinci
ln -s x y = untuk membuat link dari suatu file x ke file y
find x -name y -print = untuk menemukan file y, dengan mencari mulai dari direktori x dan tampilkan hasilnya pada layar
ps = untuk melihat seluruh proses yang sedang berjalan
kill x = untuk mematikan proses x (x adalah PID di dalam ps)
[alt] + F1 - F7 == untuk berpindah dari terminal 1 - 7 (ciri khas Linux)
lilo = untuk membuat boot disk

startx = untuk menjalankan X-Windows
[ctl] + [alt] + [backspace] == untuk keluar dari X-Windows jika terjadi trouble
[ctl] + [alt] + F1 - F6 = untuk pindah dari satu terminal ke terminal lain dalam X-Windows
xf86Config = untuk mengeset X (primitif) dalam text mode
Xconfigurator = sama seperti di atas