Archive for February, 2009

Hello all the visitors.here I am going to tell how to install Nessus on Back|track 4 beta.don’t use apt-get install nessus as first I tried with apt-get but there was very older version of Nessus in respositories.something 2.x.quite useless isn’t it.so lets install the latest one.
First download these packages

Nessus-3.2.1-ubuntu804_i386.deb

NessusClient-3.2.1-debian4_i386.deb

(I choose this debian package because NessusClient-3.2.1.1-ubuntu804.i386.deb was missing some of dependencies and was not installing correctly.instead the debian package worked like a charm and it produces no error at all.

Next register your copy to get plugins update using homefeed and please provide the real mail ID as they will send you the activation key for homefeed.

Regsiter Here

Click accept and enter a valid working email ID.

now we start installing the packages.

root@ThUndErbOLt:~#dpkg -i Nessus-3.2.1-ubuntu804_i386.deb

now configure the certificate & admin user for nessus

root@ThUndErbOLt:~#/opt/nessus/sbin/nessus-mkcert  (this is neccessary to communicate between nessus client to nessus daemon/remote host)

CA certificate life time in days [1460]:
Server certificate life time in days [365]:
Your country (two letter code) [FR]:IN
Your state or province name [none]: Karnataka
Your location (e.g. town) [Paris]: Bangalore

it should show the message

Congratulations. Your server certificate was properly created.

hit enter to come out

root@ThUndErbOLt:~#/opt/nessus/sbin/nessus-adduser

enter information about the user.

Login

Authentication (Pass/Cert)

Password:

confirm password:

after configuring the parameters it ask for rule-set.we have configured the admin user having full permissions.if we wants to limit and want to add certain users then we can use rule-set here.

For configuring ruleset please refer to nessus-adduser( 8 ) man page for the rules syntax as it limit the use of nessus.

press ctrl + d

it asks for confirmation.choose y

now start Nessus daemon by using

root@ThUndErbOLt:~# /etc/init.d/nessusd start

$Starting Nessus : .

confirm that its running using

root@ThUndErbOLt:~# netstat -ant|grep 1241
tcp                      0                        0 0.0.0.0:1241            0.0.0.0:*               LISTEN
tcp6                   0                        0 :::1241                          :::*                            LISTEN

now Install NessusClient(the GUI Frontend to use nessusd)

root@ThUndErbOLt:~# dpkg -i NessusClient-3.2.1-debian4_i386.deb

now register the plugin feed for updating nessus

root@ThUndErbOLt:~#/opt/nessus/bin/nessus-fetch –register XXXX-XXXX-XXXX-XXXX(replace X with your keys)

Your activation code has been registered properly – thank you.
Now fetching the newest plugin set from plugins.nessus.org…
now it will download the plugins and will purge them into database.if you don’t wan’t to do this now.press ctrl + c to cancel it.later you can download it using

root@ThUndErbOLt:~#/opt/nessus/sbin/nessus-update-plugins

run the scan using NessusClient

backtrack menu->Internet->NessusClient

click on + icon

by default selection radiobox is single host

type Host Name localhost & hit save

select the localhost & press connect

from connect option box choose edit

set the Login & Password which we created earlier using nessus-adduser

hit Save

select localhost & hit connect

first time it asks for logging into nessus server.hit yes

now you can customize the default scan/microsoft scan policy and can scan.that’s it!

Advertisements

Compiz Fusion on BT 4 beta(cube/wobbly/transparent)

Posted: Wednesday,February 11, 2009 in Wifi-Hacking

First install the display driver for your card e.g. radion/nvidia.in my case I am using Nvidia 9200 M GS Chipset.so here is link to download.also check the supported chipset models.

please refer to this page for Nvidia chipset & to know which driver is for your chipset
http://www.nvidia.com/Download/index.aspx?lang=en-us

In my case of Nvidia 9 Series Mobile chipset I am using

wget http://us.download.nvidia.com/XFree86/Linux-x86/180.22/NVIDIA-Linux-x86-180.22-pkg1.run

for installing it,its neccessary that you logout from KDE X

root@ThUnDeRbOLt:~#install NVIDIA-Linux-x86-180.22-pkg1.run nvidia
root@ThUnDeRbOLt:~#./nvidia

it will autoconfigure options according to kernel.if all went well you will see success message else note the error messages as it may be because of installing wrong drivers for chipset or mismatch in kernel version.

next
root@ThUnDeRbOLt:~#apt-get install compiz compiz-fusion-plugins-extra compiz-fusion-plugins-unsupported emerald simple-ccsm fusion-icon

For Emerald windows decorator download:
root@ThUnDeRbOLt:~#wget http://fr.archive.ubuntu.com/ubuntu/pool/universe/e/emerald/libemeraldengine0_0.7.2-0ubuntu2_i386.deb
root@ThUnDeRbOLt:~#wget http://fr.archive.ubuntu.com/ubuntu/pool/universe/e/emerald/emerald_0.7.2-0ubuntu2_i386.deb
root@ThUnDeRbOLt:~#dpkg -i libemeraldengine0_0.7.2-0ubuntu2_i386.deb
root@ThUnDeRbOLt:~#dpkg -i emerald_0.7.2-0ubuntu2_i386.deb

Upgrade the Emerald themes using
root@ThUnDeRbOLt:~#svn ls https://svn.generation.no/emerald-themes
This will download and install the security key needed later to install these themes. When it asks, accept the certificate permanently.

More themes can be found here.Download and import in emerald theme manager

Invoke the compiz-fusion icon through backtrack menu->system->compiz fusion

right click on compiz fusion icon and choose reload window manager

some of effects you would like to play with
Cube
For cube its neccessary to have minimum 4 desktop.so first we set it
go to backtrack menu->system->settings->desktop->multiple desktops
set here 4 desktop at least

now right click on the compiz fusion icon and choose setting manager
choose genral options
select desktop size tab
move slider Horizontal Virtual Size to 4(Number of desktop you want to see)
press back to go back

now from effect choose desktop cube & Rotate cube
configure zoom setting in rotate cube->genral tab set zoom to 0.1827(play with this setting)

now when you can use this effect by holding ctrl+alt  & left mouse button or by simply pressing middle mouse button in the center of desktop.

Wobbly windows
click on this and enable it and goto genral tab & set friction to 2.1926(play with this setting)

enable 3D Windows
enable Animations

If you want cube reflection & deformation then select it as it will present cube in deform one.

cube atlantis will fill fishes etc in the depth of cube.the topmost part.see them playing.
goto cube atlantis water/ground tab & clear the checkbox render water wireframe

Transparency
goto desktop cube->transparent cube tab and adjust the “opacity during rotation” slider to 85.0000(set according to your wish)

select skydome & cube caps(upper cube caps)for desktop
goto desktop cube->appearance tab select image file
goto desktop cube->appearance tab checkbox select skydome option & choose image

now you have seen a lot of tweaks.have a beautiful desktop ahead.

compiz-effect1Water effect on backtrack 4 beta

compiz-effect2Fire effect on Back|Track 4 Beta

compiz-effect3Some Color Firy effect on BT4

compiz-effect4Blur effect on BT4 Beta

compiz-effect5Cube Relection & deformation effect in BackTrack 4 Beta

compiz-effect6Rotating 3D Cube in Back|Track 4 Beta

compiz-effect73D Cube with Transparent cube atlantis(fishes inside cube)

compiz-effect8Expo Effect of multiple desktops in BT 4

compiz-effect9cube effect after setting cube caps & skydome

For Enabling emerald theme manager
Right click on fusion icon
select window decorator as emerald
select window manager as compiz
choose the themes from Emerald Theme Manager
you should have pretty desktop now in front of you.

compiz-effect10Emerald Theme on B|T 4

compiz-effect116 desktop in rotating cube with Emerald theme


Back|Track 4 beta & Windows 7 Ultimate Dual Boot

Posted: Wednesday,February 11, 2009 in Wifi-Hacking

Hello to all the visitor of this blog.time to make some fun with back|track 4 beta along with windows 7 ultimate beta.the fun part is both of the distro’s are in beta state & will updated time to time untill final release.first install windows 7 ultimate and I assume you know how to do that(the most easiest thing is world I assume).here is what partition scheme I used.change it accordingly to your HDD partitions.also I assume you have make 3 extra partitions from the empty space from HDD using 3rd party tool like paragon partition manager as fdisk options wipe the partition.

Boot through BT4 ISO and see the mount point using

root@ThUnDerBolT:~#nano /etc/fstab

here is how my partition scheme looks like

snapshot4

Note down the partition scheme of your HDD as it will be use for later reference

now back to terminal

unmount all the NTFS & EXT,reiserfs File System

root@ThUnDerBolT:~#umount /dev/sda1

root@ThUnDerBolT:~#umount /dev/sda2

root@ThUnDerBolT:~#umount /dev/sda3

root@ThUnDerBolT:~#umount /dev/sda5

root@ThUnDerBolT:~#umount /dev/sda6

now fdisk the sda harddisk

root@ThUnDerBolT:~#fdisk /dev/sda

Here is how my hard-disk partition scheme is

snapshot5Please note down the linux partions start cylinder & last cylinder.In my case its

/dev/sda5     29561     30325     83    Linux

/dev/sda6     30326    30334     83     Linux

/dev/sda7     30335    30401     82     Linux swap / Solaris

now delete the Linux partitions carefully.use commands

d

7

d

6

d

5

w

now reboot once as the kernel is still using old tables

root@ThUnDerBolT:~#init 6

now back to terminal after reboot

root@ThUnDerBolT:~#fdisk /dev/sda

n

29561

30325

n

30326

30334

n

30335

30401

t

2  #only if you are seeing your NTFS partition as Hidden HPFS/NTFS

7  #change Hidden HPFS/NTFS to Normal HPFS/NTFS partition

t

3 #only if you are seeing your NTFS partition as Hidden HPFS/NTFS

7 #change Hidden HPFS/NTFS to Normal HPFS/NTFS partition

t

7

82 #setting last sda7 as swap partition

p

and it should look like this now

snapshot6now write the tables

w

root@ThUnDerBolT:~#mke2fs /dev/sda6

root@ThUnDerBolT:~#mkswap /dev/sda7

root@ThUnDerBolT:~#swapon /dev/sda7

root@ThUnDerBolT:~#mkreiserfs /dev/sda5

Choose Y

root@ThUnDerBolT:~#mkdir /mnt/backtrack

root@ThUnDerBolT:~#mount /dev/sda5 /mnt/backtrack

root@ThUnDerBolT:~#mkdir /mnt/backtrack/boot

root@ThUnDerBolT:~#mount /dev/sda6 /mnt/backtrack/boot

root@ThUnDerBolT:~#cp –preserve -R /{bin,dev,home,pentest,root,boot,usr,etc,lib,opt,sbin,var} /mnt/backtrack

root@ThUnDerBolT:~#cd /mnt/backtrack

root@ThUnDerBolT:~#mkdir {mnt,proc,sys,tmp}

root@ThUnDerBolT:~#chmod 1777 /mnt/backtrack/tmp

root@ThUnDerBolT:~#mount –bind /dev /mnt/backtrack/dev

root@ThUnDerBolT:~#mount -t proc proc /mnt/backtrack/proc/

root@ThUnDerBolT:~#chroot /mnt/backtrack /bin/bash

root@ThUnDerBolT:~#nano /etc/lilo.conf

your LILO config should look like this

snapshot7Replace the windows partition with yours e.g. /dev/sda1 to blah blah

save and exit

root@ThUnDerBolT:~#lilo -v

reboot

Make mount points for our windows/pen drive

root@ThUnDerBolT:~#mkdir /mnt {sda1,sda2,sda3,sdb1,sr0)

root@ThUnDerBolT:~#nano /etc/fstab

Update your fstab file & add entries of partitions there

here is how my fstab looks like.update it accordingly to your HDD partitions

snapshot8

Save & Exit

root@ThUnDerBolT:~#init 6

That’s it!

————————————————-

BUGS/Mods:

1.if you are getting error “cannot obtain lock on /media/.hal-mtab” then enter the mount partion entry into /etc/fstab file.e.g as I was getting this error while accessing DVD Drive and Pen-Drive or windows partitions then make directories and update fstab file

2.if you have used command “update-rc.d networking defaults”.every time BT starts it will look for DHCP address for NIC’s.if you don’t have any connection at that time.it will just keep looking.for getting it out press ctrl +c and enter.it will carry on booting then.

3.those who wants to manually start networking type

root@ThUnDerBolT:~#/etc/init.d/networking start

If any bugs feel free to comment it and to update on remote-exploit forum.