Saturday, February 11, 2012

Aircrack-ng on phones (Android, iPhone and others)

I've often seen questions like "How can I get Aircrack-ng on my iPhone/Android/Symbian/[ADD YOUR OS]?". Let me clarify the status for phones.

In order to have Aircrack-ng running on the phone, there are several requirements:

  1. Being able to cross compile (because the CPU on your phone has a different architecture than the one on your computer). So if you cannot find a cross compiler for that specific platform, forget it.
  2. A wireless card. Most phones have one these days, so that's easy.
  3. If your phone is Linux based, you will also need to be able to be 'root' to run the commands.
  4. The driver must allow monitor mode. That's usually where almost all phones fail because only a few have that. Sometimes the card doesn't have a stable monitor mode. The reason behind it is that it must be low power (and cheap to manufacture) so the chipset (and its firmware) is very limited.

To give you a quick answer, only one phone meets all the requirements with its internal card: the Nokia N900 (it needs the 'power' kernel available in the extra-devel repositories). While doing monitor mode/injection, the battery last about 4h.

  • iOS devices: Forget it because it is never going to happen, Apple is consumer oriented and doesn't really care about the computer security industry. Plus,  iOS is too closed source and AFAIK the chipset is not capable of proper monitor mode. You could argue that it is available via Cydia. It's true but you don't have any monitor mode capabilities, so it doesn't worth it (also don't bother sending me Cydia bug reports, I don't read them).
  • Android: Forget it with the internal card. However, it will be possible with an external USB card. Dragorn, the author of Kismet Wireless is working on it.
  • Other OS: Forget it (for the same reasons as Apple).

30 comments:

  1. thank you Mister_X

    welcome back

    ReplyDelete
  2. can you explain how to run aircrack-ng on nokia n900..

    ReplyDelete
  3. The same way you run it on linux.
    You need the extra or extra devel repository and must install the 'power' kernel and aircrack-ng.

    ReplyDelete
  4. Hello, Im Luis from Peru, I got part of the program compile to certain part, but then It got stuck. There are routines (functions) that Android NDK SDK cant seem to find such as the WI- functions, everything else went thru fine. Im using Eclipse, now that it can use native C++ code. If we can get to compile into the de .o file into the android apk then Im pretty sure then we can customize any tablet to run the code.

    ReplyDelete
  5. Thank you for the clarification.

    ReplyDelete
  6. hiii i have xperia neo v and had updated it has 2.6.32.9 kernel version ...pls tell me to crack wifi pssword with aircrack ...i am beginner.and i want to do soooooooooo..

    ReplyDelete
  7. For those wanting to use aircrack on the N900, may i suggest and program called Cleven which is available in repositories. It is a GUI for aircrack-ng. The package will install everything you require apart from the linux power kernal which is also available from the repositories.

    ReplyDelete
  8. someone managed to create a monitor mode driver for the Google G1, so a fully working aicrack-ng for android is totally possible.

    ReplyDelete
  9. G1 is the only exception (and it is not sold anymore). It works with a SDIO card which has the exact same chipset (and driver) as the N900, wl1251. Unfortunately, no other phone has another compatible chipset yet.

    ReplyDelete
  10. What's about a developement for iOS?
    Can you try it to make it compitable or can you call me a programm which is it?

    ReplyDelete
  11. N900 is very weak not worth try sgs2 it works like charm under ubuntu.

    ReplyDelete
  12. aircrack-ng does make NO sense on a phone. What you want to achieve with it? Instead of aircrack-ng what we need for the phones ist airmon-ng, airodump-ng and aireplay-ng. That's it! You can sniff and record a handshake, copy the file later to your POWER machine called desktop at home and try to bruteforce or dictionary attack with aircrack-ng. So, is it possible to run these 3 apps on an Android smartphone?

    ReplyDelete
  13. no, since you still need the monitor mode and that seems to be the main problem..

    ReplyDelete
  14. Hello, plz do u have any idea if its possible to run it on htc one X? Thx alot

    ReplyDelete
  15. anon: your post makes me laugh! most of modern smartphones have powerful quad core processors so some people have mobiles that are more powerful than their desktopss and would be perfect fit for aircrack-ng

    ReplyDelete
  16. aircrack-ng is often used interchangeably as the actually cracking program and to refer to the suite of all the tools.

    I how the entire suite working on my Galaxy Nexus (Android), check my thread here: http://forum.xda-developers.com/showthread.php?t=1650817

    ReplyDelete
  17. Monitor mode for broadcomm chipsets has arrived, check XDA!!!

    ReplyDelete
  18. We've added monitor mode support to the broadcom firmware, If your'e interested look at our blog:
    http://bcmon.blogspot.com

    ReplyDelete
  19. Working monitor mode on Nexus one & Galaxy S II : http://bcmon.blogspot.com.es/ ,
    Project page : https://code.google.com/p/bcmon/ ,

    ReplyDelete
  20. now we can use the integrated chipsets in phones for injection and monitor mode: http://forum.xda-developers.com/showthread.php?t=1892535 & http://bcmon.blogspot.com/

    ReplyDelete
  21. Thank you for you work!!! aircrack is great!

    ReplyDelete
  22. nokia n900 IS the phone to get for capturing packets. For those of you who are commenting why would you do it on your phone, i know exactly why because i am in that circumstance sometimes. I would use the phone to capture packets then pipe crunch thru aircrack later on my laptop

    ReplyDelete
  23. I dont remember where i saw it but i remember seeing a guy who is or has made an app that allows an Alfa 36H & NH adapter to connect via the USB off an android phone. All you would need is the USB mini port to USB cable, which is like 3 bucks from ebay. The thing that really caught my eye was that he achieved this without needing to root his phone. He said rooting your phone can sometimes lead to unauthorized scripts and other stuff entering the phone without your knowledge when you download some apps from the app store. Since its the Alfa doing the monitoring/cracking, he just needed to get the phone to interpret the data through his app. I was looking for the website but couldn't find it again. I believe lifehacker or hack a day were the once announcing this. I publish were i found it when i find it.

    ReplyDelete
    Replies
    1. That's right dude:
      http://www.thepowerbase.com/2012/12/wifi-monitor-mode-with-android-pcap-capture/

      Is it possible to do the same thing (no root required) with an iphone?

      Please reply via email:
      id1[at]safe-mail.net

      Delete
  24. Honestly, I don't see why someone doesn't just make a new software for Android or IOS that is based off of AirCrack-NG. I remember one of my friends doing it, but it wasn't public sourced. Maybe that will be my next project ;D

    ReplyDelete
  25. **I'm commenting on an old post only because I haven't seen what I'm going to say while skimming the comments:
    ...
    The only reason I'd like this on my iPhone is "just for fun" ... which is also why I jailbroke mine/jailbreak at every opportunity that I've had... I don't know about the iPhone 4's (what I have) performance, but I'd like to see it compete with my computer (which isn't even that fast, but... eh)on checking my network... Seems a bit weird since a lot of people seem to want a packet-sniffing-super-phone but I, personally, just want to see if the A5 (or whatever processor, I don't keep track) is really the awesome sauce...

    ReplyDelete
  26. in a linked subject. is it possible the have aircarck-ng on a handheld device.

    ReplyDelete
  27. does aircrack-ng.apk contain airmon-ng airodump-ng aireplay-ng ?

    ReplyDelete
  28. hi..Im college student, thanks for sharing :)

    ReplyDelete
  29. How to install aircrack-ng on rooted HTC EXPLORER. I have installed jaggy Rom with 2.3.5 android version.
    Plzz help me out.

    Thanks in advance

    ReplyDelete