May 13, 2008

Wireless go into Monitor with Injection Support

I've been experimenting to use aircrack to test out Access Point(AP) security for about a month and a half now, and i used to do it with 3 wireless card that I own which is Broadcom(Built-in on my laptop), rt73usb(which is a USB wireless Device) and ZD1211rw(also a USB device).

Formerly, I have to patch my modules in order to make the cards to go into monitor mode so that it could be used with aircrack suite. All the hard work will paid out if you successfully patch your cards. But to find the right patch is the most hard part as not every patch is suitable with your chipset.

But, i notice somthing different on the latest linux kernel(maybe it might be working too on BSD's kernel), you dont have to patch your card to change your wireless mode into monitor-mode. But this is only tested on Mac80211 cards only. As far as I'm concern, b43(latest driver for broadcom), rt73usb and zd1211rw - all of this card happened to be mac80211 cards on kernel 2.6.24 and higher.

So al you need to do is install the iw application. So how to install 'iw'? It took a few steps to install 'iw'. But even a new linux user could install this without any problems. First all you have to do is install all the requirements needed by 'iw' in order to function.
sudo apt-get update && sudp apt-get install libnl-dev libnl1 libnl1-pre6
Then when all the requirements has been installed, we may proceed to gathering the 'iw' source:
mkdir iw && cd iw
wget && tar xvjf iw.tar.bz2
And now proceed to the final step:
make && sudo ln -s iw /usr/sbin/iw
And we are done. So now you may try to install the aircrack from SVN by using subversion. There is a simpe tutorial on how to install this latest version of aircrack from by using subversion. But first you need to install subversion first by apt. More tutorial on how to install aircrack is on my previous post.

Thank you for your unbelievable support on Negative Zero - Permission to read and write blog for nearly 4 years. Don't forget to like Negative Zero on Facebook. Blog Directory

Post(s) you might like to read :


  1. Hi,

    I followed your install tutorial (yes i'm a linux newb), installing to a folder on my desktop but i encountered 2 things: 1) libnl1-pre6 did not install because libnl1 replaced it and pre6 was no longer available, and 2) when i got to the make command, it gave me errors saying

    "christopher@USB-Ubuntu:~/Desktop/wireless/iw$ make && sudo ln-s iw /usr/sbin/iw
    CC iw.o
    iw.c:7:19: error: errno.h: No such file or directory
    iw.c:8:19: error: stdio.h: No such file or directory
    iw.c:9:20: error: string.h: No such file or directory
    In file included from /usr/include/netlink/genl/genl.h:15,
    from iw.c:11:
    /usr/include/netlink/netlink.h:16:20: error: stdint.h: No such file or directory
    /usr/include/netlink/netlink.h:18:20: error: stdlib.h: No such file or directory
    /usr/include/netlink/netlink.h:19:22: error: sys/poll.h: No such file or directory..........[it continues for a bit]"

    Any idea where it could have gone wrong? I searched for the file genl.h and have it, and same with errno.h and string.h (i have many of these...) but then i tried stdio.h, stdint.h,and stdlib.h and come up with nothing..Is there some other install I might need? I'm running ubuntu 8.04 and updated everything that came with it (and using default kernel) but off a USB key, which caused me some trouble setting up up (like.. couldnt get to the desktop!) Any suggestions would be very appreciated :)


  2. Dear Chris,

    I think you dont have the dependencies to compile iw source, you can solve this problem by assuming this command on first step :

    sudo apt-get install build-essential

    then proceed like usual.
    Yeah I have to admit that libnl1-pre6 isnt in the repo as it has been replace with libnl1. So you may ignore the libnl1-pre6 package on the steps given by me. I just recompile my 'iw' and it works fine. Just try the solution I gave above.

    Leave a comment on the outcome.
    thanks Chirs

  3. Gunblade iv,

    That was exactly it! Thanks so much for taking the time to answer my newb question :) It installed without a hitch. I was looking all over on how to install iw, when in fact it seems I couldn't install much of anything else either! Now, lets see if i can get the rest of this setup working with my 4965... :P

    Thanks again,

  4. hi there. I have the same problem as chris but your solution does not work...

    it gives me the following error message:

    sudo: apt-get: command not found

    any idea what this could be?

  5. may i know if you have apt-get service already installed on your ubuntu? By default, all machine that using ubuntu should have apt-get service and sudo.