Author Topic: Aircrack - Fast Wep Cracking Tool  (Read 46017 times)

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
Aircrack - Fast Wep Cracking Tool
« Reply #15 on: April 14, 2005, 01:32:14 am »
*BUMP* Please can someone get this tool updated or give us a resolution on how to get it working?

Same old malloc(80) error for me as well after installing on C860 / pdaXrom 1.1.0 RC8
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

silvio

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • http://www.iaccarino.de/silvio
Aircrack - Fast Wep Cracking Tool
« Reply #16 on: April 14, 2005, 02:52:04 am »
I have tested aircrack only under cacko 1.22 lite.
Maybe it is incompatible with pdaXrom.

I have unchecked pdaXrom in ELSI during upload.

For pdaXrom it should be better to recompile this package because it could be significant faster (gcc 3).
SL-C860, Cacko 1.22 lite and many toys.
My Zaurus stuff

jfv

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
Aircrack - Fast Wep Cracking Tool
« Reply #17 on: April 14, 2005, 09:51:57 am »
I am using the Sharp ROM and I get this error too, as reported earlier. Silvio, could you download the file from ELSI and install in your Zaurus and see if it works? Maybe the uploaded file is different from what you have on your machine.

Thanks,

Felipe
SL 5000 D  and C860 Sharp ROM
Too many accessories...

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Aircrack - Fast Wep Cracking Tool
« Reply #18 on: April 14, 2005, 10:45:09 am »
I am also getting the malloc error.  Looking at the aircrack binary Silvio and I should have the exact same libraries/hardware/OS.  Silvio, can you crack wellenrieter capture files?  If so, what are the exact commandline arguments that you use?

I wonder if the issue is that I don't have enough packets to get aircrack to work properly.  You need like 500,000 packets to crack 128-bit keys.  I certainly have not captured that many packets yet.  Hmm, some more experimentation is in order.

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

jfv

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
Aircrack - Fast Wep Cracking Tool
« Reply #19 on: April 14, 2005, 12:20:49 pm »
I downloaded the source from the original site and compiled it on the cluster at handhelds.org. The binary of different size as the binary from ELSI. I haven't got my Zaurus with me (shame on me) so I can't test it. I'll test it tonight, but if anyone wants to try it, I'll attach it here.

Felipe

p.s. I can't seem to attach it so here it is.
« Last Edit: April 14, 2005, 12:24:49 pm by jfv »
SL 5000 D  and C860 Sharp ROM
Too many accessories...

berkenb

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • http://
Aircrack - Fast Wep Cracking Tool
« Reply #20 on: April 14, 2005, 12:35:22 pm »
I looked at the aircrack source a while back. I believe the way it works (and I don't really know anything about it, so I might just be talking nonsense here) is by gathering statistical information about 24bit IVs that are part of each wireless packet.
In order to do this, aircrack allocates 5 bytes of memory for each possible IV - i.e. 5*2^24 = 80MB. Hence the program tries to allocate one big 80MB chunk of memory (cf. row 1012 in aircrack.c, version 2.1).
Since the Z has (at most) 64MB of ram (so your free memory is considerably less than that), you will need a big swap file in order to get this to work, otherwise it will always fail. So that's the error message you guys see.
Besides, I think that a capture file with enough packets in it will easily run in the hundreds of MB...
It seems like this whole endeavor is a little impractical on the Z.
« Last Edit: April 14, 2005, 12:54:06 pm by berkenb »

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Aircrack - Fast Wep Cracking Tool
« Reply #21 on: April 14, 2005, 02:14:13 pm »
Quote
I downloaded the source from the original site and compiled it on the cluster at handhelds.org. The binary of different size as the binary from ELSI. I haven't got my Zaurus with me (shame on me) so I can't test it. I'll test it tonight, but if anyone wants to try it, I'll attach it here.

Felipe

p.s. I can't seem to attach it so here it is.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75175\"][{POST_SNAPBACK}][/a][/div]
FYI I have the exact same malloc issue as with Silvio's aircrack binary.

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

berkenb

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • http://
Aircrack - Fast Wep Cracking Tool
« Reply #22 on: April 14, 2005, 06:49:38 pm »
Maybe my last answer was a little too long winded....
I think there is absolutely nothing wrong with the binaries you are trying - it is just that aircrack needs to be able to allocate 80MB of memory, and that is impossible on any Z to date (even the newer ones only have 64megs of memory), unless you have a large swap file somewhere...

charlesa

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://
Aircrack - Fast Wep Cracking Tool
« Reply #23 on: April 14, 2005, 07:32:47 pm »
Quote
Maybe my last answer was a little too long winded....
I think there is absolutely nothing wrong with the binaries you are trying - it is just that aircrack needs to be able to allocate 80MB of memory, and that is impossible on any Z to date (even the newer ones only have 64megs of memory), unless you have a large swap file somewhere...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75250\"][{POST_SNAPBACK}][/a][/div]

OK, to test this what is the best way to set a swap file size on a SD card?

berkenb

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • http://
Aircrack - Fast Wep Cracking Tool
« Reply #24 on: April 14, 2005, 07:51:35 pm »
Quote
Quote
Maybe my last answer was a little too long winded....
I think there is absolutely nothing wrong with the binaries you are trying - it is just that aircrack needs to be able to allocate 80MB of memory, and that is impossible on any Z to date (even the newer ones only have 64megs of memory), unless you have a large swap file somewhere...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75250\"][{POST_SNAPBACK}][/a][/div]

OK, to test this what is the best way to set a swap file size on a SD card?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75260\"][{POST_SNAPBACK}][/a][/div]

I am not the world's leading expert in doing this, but in order to create a swap file on your SD card, you could follow something like the following steps:
 
Code: [Select]
dd if=/dev/zero of=/mnt/card/swapfile bs=1M count=64
mkswap /mnt/card/swapfile
swapon /mnt/card/swapfile
This creates a 64mb file called "swapfile" on /mnt/card containing just 0s, initializes it as a swapfile, and then turns the swapfile on. As a more permanent solution, you would add an entry for this swapfile in your /etc/fstab, but the above steps will do as a quick and dirty method. You can check the status with
Code: [Select]
cat /proc/swapsand turn it off with
Code: [Select]
swapoff /mnt/card/swapfileMind you though that swapping on SD is probably agonizingly slow and puts some wear on your card (flash memory doesn't have the same amount of write cycles a harddrive has). I think I have used a swapfile on SD before, but only as a test, and certainly never for extended periods of time.
Hope this helps...

jfv

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
Aircrack - Fast Wep Cracking Tool
« Reply #25 on: April 14, 2005, 10:22:32 pm »
I created the swapfile (64MB) on my SD card and aircrack did run, although it said my dump file did not contain enough data to recover the key  
I won't leave the swapfile there, takes too much room and, as mentioned above, there are some drawbacks. But it's good to know that, in a pinch, I can make it work.

Felipe
SL 5000 D  and C860 Sharp ROM
Too many accessories...

undrwater

  • Full Member
  • ***
  • Posts: 232
    • View Profile
    • http://
Aircrack - Fast Wep Cracking Tool
« Reply #26 on: April 15, 2005, 12:52:23 am »
Confirmed.

I set up a swap partition on my CF HD, and it now works.  Not sure why swapd didn,t work on my SD (actually I think it did something bad to it).

Cool

eji

  • Full Member
  • ***
  • Posts: 233
    • View Profile
    • http://charlatan.blogspot.com/
Aircrack - Fast Wep Cracking Tool
« Reply #27 on: April 15, 2005, 02:16:58 am »
When I've deleted some MP3s and have a bit more space, I'll try creating a swapfile to see if it works.

FYI, maslovsky's memory applet has a handy GUI for creating swapfiles of any size to any media.
Zaurus SL-6000L w/ Sharp ROM v1.12 - 1GB SanDisk CF - 1GB Lexar SD - Socket Rev. E BT CF | Mac OS X 10.5.x - iMac 24" 2.8Ghz | SIP: 864753@voip.brujula.net - 1 747 603 3461 (Gizmo/SIPhone)

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
Aircrack - Fast Wep Cracking Tool
« Reply #28 on: April 15, 2005, 05:53:35 am »
here's my theory:

when creating swap files on memory cards, I would recommend the larger the swap file the better!

you want to spread the wear on the memory card as much as possible, if you force the kernel to use the smallest swap file possible, it will be writing the same set of memory cells intensely (assuming that the card can't somehow write new data to a completely different region of flash), but if you make the swap file really huge, it will not need to use the same area twice?

how about swapping over the network? on a previous project, LinuxAP, using a eumitcom (x86-compatible) system, it was possible to swap over the network block device, which could make a big difference to performance (it only had 4MB of ram).

Paul
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Aircrack - Fast Wep Cracking Tool
« Reply #29 on: April 15, 2005, 01:07:22 pm »
Hmm, a low memory version aircrack would be nice.

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image