NetStumbler.org Forums

Go Back   NetStumbler.org Forums > Software > Unix/Linux
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 08-06-2005   #91 (permalink)
grcore
Member at large
 
grcore's Avatar
 
Join Date: Aug 2004
Posts: 121
Quote:
Originally Posted by abx5
I also tested it with 500k - 800k Unique packets. One of them already took 7 hours and I'm waiting for the result. The same packets with Aircrack 2.2 Beta 7 took only 18 second.

I remember that I also try to reduce fudge factor once but the result seems to be slow anyway. I will test it again once I'm done with above 7 hours process I'm waiting right now. (Tested with fudge factor set to 2 but it took more than an hour anyway.)
Try with the -x option (to turn off bruteforce on the last 2 keybytes)

g
grcore is offline   Reply With Quote
Old 08-06-2005   #92 (permalink)
abx5
Registered Member
 
Join Date: Jul 2005
Posts: 15
Quote:
Originally Posted by grcore
Try with the -x option (to turn off bruteforce on the last 2 keybytes)

g
- With default option, it took more than an hour. (As I said earlier that it took like 7 hours. I wait till 8 hours but accidentally shut it down.)
- With the -x alone took more than 20 mins. (Didn't wait since I have to do sth.)
- with the -x -f 2 took 10:06 mins to find the key
- with the -f 2 took 8:05 mins to find the key.

It seems like the result is acceptable this time with Fudge factor set to 2. One thing I don't understand is I already tested it a few times with -f 2 and it always take more than an hour. But this time, with the same packet, same computer, same OS, I can crack it without any problem in 8 - 10 mins. That's strange though.


Thank you,
abx5 is offline   Reply With Quote
Old 08-13-2005   #93 (permalink)
Rincebrain
Registered Member
 
Join Date: Aug 2005
Posts: 1
Question An interesting problem

Edit to note bug fixed:
Gentoo's automatic wireless config scripts are a pain in the arse, and were causing a chain.

Edit to subscribe and note that this is an awesome program, and thank everyone who contributed at all to it for working on it.

Last edited by Rincebrain : 08-13-2005 at 10:03 PM.
Rincebrain is offline   Reply With Quote
Old 08-24-2005   #94 (permalink)
cybergibbons
Registered Member
 
Join Date: May 2005
Posts: 15
Possible issue with newer Atheros chipset

I don't know if this is a bug with aireplay, madwifi, the hardware, or my head.

My understanding of the ARP reinjection attack is that the packet needs to stay the same, with regards to the encrypted ARP request, and the IV.

I am using aireplay 2.2 and madwifi-cvs-20050814 along with the respective patch.

The card is a D-Link DWL-G650 Hardware Revision C3, ("Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)" from lspci). I've seen reports than the C2 revision works fine with aireplay.

I perform a fake association, which repeats every 30 seconds as this appears to be necessary. This works fine:

aireplay -1 30 -e "My SSID" -a 00:09:4B:XX:XX:XX -h 0:1:2:3:4:5 ath0

I then perform an ARP-reinjection attack:

aireplay -3 -b 00:09:4B:XX:XX:XX -h 0:1:2:3:4:5 ath0

The "Read X packets" count then increases far faster than airodump or kismet report packets coming in. Once 1 ARP packet has been found, the "sent X packets" starts increasing rapidly, as does the "got X ARP requests". The ARP requests quickly hits 1024.

The IVs increase more rapidly in airodump now - but when I look into the file, these new IVs are simply the replayed ARP requests from 0:1:2:3:4:5. Each one of these has a different IV shown in ethereal.

It appears as if aireplay thinks these are new ARP requests, which is why the count increases to 1024 so quickly.

Is the hardware increasing the IVs, or is it a software bug?

Edit

I've now tried with unpatched madwifi-cvs-20050814, and the "Read x packets" increases far more slowly - at about the rate that kismet or airodump report the packets come in.

I also tried the latest madwifi-cvs-20050825 (unpatched, because there is no patch), and the packet count shoots up.

I also tried all of them using "sysctl -w dev.ath0.rawdev=1", and then using the ath0raw interface, but this appears exactly the same.

Edit 2

Appears to be an issue with having to use ath0raw with dev.ath0.rawdev_type=0 (not prism headers). I can now re-inject without IVs changing, and monitor at the same time. Problems with "malformed packets" - I think this is ethereal having issues with the CRC on the end.

Last edited by cybergibbons : 08-25-2005 at 06:58 AM.
cybergibbons is offline   Reply With Quote
Old 08-25-2005   #95 (permalink)
devine
Emergence
 
Join Date: Jul 2004
Location: Paris
Posts: 389
Quote:
Originally Posted by cybergibbons
The IVs increase more rapidly in airodump now - but when I look into the file, these new IVs are simply the replayed ARP requests from 0:1:2:3:4:5. Each one of these has a different IV shown in ethereal.
Looks like the driver and/or the card is somewhat re-encrypting the packets. Does "iwconfig ath0 key off" help ? Also, aireplay automatically enables rawdev_type=1. Try changing this to rawdev_type=0 in the aireplay.c source.
devine is offline   Reply With Quote
Old 08-25-2005   #96 (permalink)
cybergibbons
Registered Member
 
Join Date: May 2005
Posts: 15
Quote:
Originally Posted by devine
Looks like the driver and/or the card is somewhat re-encrypting the packets. Does "iwconfig ath0 key off" help ? Also, aireplay automatically enables rawdev_type=1. Try changing this to rawdev_type=0 in the aireplay.c source.
Ok, I've played around some more. I checked that aireplay was changing the sysctls as expected, and it was. So using ath0 or ath0raw makes no difference.

With:

aireplay -2 -r arp1.cap ath0

And capturing using ethereal on ath0raw, the replayed packet (arp1.cap contains one packet only) is exactly as recorded, no change in sequence number or IV or anything.

However, with the -3 ARP reinjection, no matter what I use, I get the problem where the packet sent out has a different IV, and hence it gets recorded as a new ARP request.

Both use the same send_packet function, so it is either in the way that the h80211 variable is written, or in the way that the card is dealt with.

It looks as if the madwifi drivers themselves are partly to blame, as if dev.ath0.rawdev_type=1 is set, I get total rubbish in ethereal. I also seem to receive my own packets, whatever the case (not sure if this is supposed to happen or not). I'm also getting a lot of PHY errors showing in athstat - I will try to take a closer look tommorrow to isolate some of these issues.
cybergibbons is offline   Reply With Quote
Old 08-26-2005   #97 (permalink)
cybergibbons
Registered Member
 
Join Date: May 2005
Posts: 15
Ok, I've spent all day playing around with different drivers, hacked aireply, and so on. It's only really served to confuse me.

Several things:
*Something is up with madwifi because I get a lot of PHY errors caused by timing.
*I can connect to B and G networks fine, and they are fast and reliable, using any of the madwifi drivers (aircrack July, August and latest CVS). Can't really see any difference between onoe, sample and the other one.
* Depending on settings (ath0 or ath0raw, rawdev_type 0 or 1), I get different captures.
* Depending on the program I use, I get different captures.
* dev.ath0.rxfilter doesn't seem to change anything
* If I use my Orinoco (Hermes) for capture, it looks different again.
* Sometimes using -2 the IVs stay the same, sometimes they don't, I was too lazy to write stuff down, so I need to confirm what happens when.

It's all quite frustrating, I can't put my finger on the problem, and I know it's quite specific to me, so can't really expect people to do my work for me. And it's quite interesting learning about all this stuff anyway.
cybergibbons is offline   Reply With Quote
Old 08-27-2005   #98 (permalink)
cybergibbons
Registered Member
 
Join Date: May 2005
Posts: 15
Now I am physically hacking the outside of the d-link card off so that I can have both the orinoco and d-link in the laptop at the same time. Not sure if this will cause the front end of the receiving card to be overloaded, but it should make life a bit easier. It will certain look like I know what I'm doing.

If this is getting too verbose, or not really on the subject of bugs with aircrack, then a moderator can move these posts into a seperate thread.
cybergibbons is offline   Reply With Quote
Old 08-27-2005   #99 (permalink)
Weifei
No wires required
 
Join Date: Aug 2005
Posts: 8
I don't mean to be rude why does this discussion (as cybergibbons has already stated) takes place in a thread about bugreports of an old beta-version (aircrack 2.2beta-x? Non-beta (latest is 2.2.23) versions are available for ages (?)

If this thread is intended for aircrack-bug-reports in general the subject should be changed (have the beta-x removed, please)

Cheers
Weifei

Last edited by Weifei : 08-27-2005 at 04:04 AM.
Weifei is offline   Reply With Quote
Old 08-27-2005   #100 (permalink)
devine
Emergence
 
Join Date: Jul 2004
Location: Paris
Posts: 389
Quote:
Originally Posted by cybergibbons
Now I am physically hacking the outside of the d-link card off so that I can have both the orinoco and d-link in the laptop at the same time. Not sure if this will cause the front end of the receiving card to be overloaded, but it should make life a bit easier. It will certain look like I know what I'm doing.
Consider buying an usb rt2570 card, like the DWL-G122 or tthe WUSB54G. There are quite cheap, and work pretty well for monitor/injection (patching required).

Quote:
Originally Posted by cybergibbons
If this is getting too verbose, or not really on the subject of bugs with aircrack, then a moderator can move these posts into a seperate thread.
No problem, I'm very interested to learn more about your madwifi problem (I couldn't reproduce it myself).
devine is offline   Reply With Quote
Old 08-27-2005   #101 (permalink)
cybergibbons
Registered Member
 
Join Date: May 2005
Posts: 15
Quote:
Originally Posted by devine
Consider buying an usb rt2570 card, like the DWL-G122 or tthe WUSB54G. There are quite cheap, and work pretty well for monitor/injection (patching required).
I now also have a DWL-G122, which seems to work well. Slightly less sensitivity than the other cards, but 100% functional. That's 4 wireless adapters in one laptop now. Hopefully I can use experience with the USB adapter to find problems with the Atheros card.

I'll have a play with it and see what I can work out.
cybergibbons is offline   Reply With Quote
Old 08-29-2005   #102 (permalink)
cybergibbons
Registered Member
 
Join Date: May 2005
Posts: 15
Many apologies - this is my mistake - I think.

Aireplay was taking a packet, re-writing it with the destination address as broadcast, and FromDS=0, ToDS=1. This is expected. It was then sending out that packet, with that IV. This is also expected.

I then receive back the same packet - yet it has been re-encrypted. I thought that the AP would just re-broadcast the packet, as it has the source and destination address there. Maybe check that the WEP key is right, but not tamper with the packet. I thought the reason behind ARP re-injection was that you got the reponses with different IVs, not that the AP broadcast it with different IVs, otherwise re-injecting any packet with any valid source/address would cause IV increases.

So are these APs playing about with stuff they wouldn't? If so, and I think it is, is this not a serious vulnerability, as any replay will cause IV generation?
cybergibbons is offline   Reply With Quote
Old 08-29-2005   #103 (permalink)
devine
Emergence
 
Join Date: Jul 2004
Location: Paris
Posts: 389
Quote:
Originally Posted by cybergibbons
So are these APs playing about with stuff they wouldn't? If so, and I think it is, is this not a serious vulnerability, as any replay will cause IV generation?
It's a very serious vulnerability; with any AP that does re-encrypt the packet, you can generate IVs with just any WEP data packet by changing the type as 'ToDS', the source MAC as the fake client and the destination MAC as the broadcast address. That's why attack 3 sometimes goes up to 1024 ARPs very quickly, because the AP actually re-encrypts the ARP request we're sending. This would be called the "any data re-broadcast attack"; please see http://www.cr0.net:8040/code/network/aircrack/#q193 for more details and usage instructions for attack 2.
devine is offline   Reply With Quote
Old 08-29-2005   #104 (permalink)
cybergibbons
Registered Member
 
Join Date: May 2005
Posts: 15
How common would you say this is? It threw me at first, as it seemed like very odd behavior. I probably missed any ARP responses in the traffic, and hence thought something was going wrong.

Anyways, what is the point in decrypting the packet? These are very simple APs. Even acting as part of a DS, there is no need to decrypt and re-broadcast. I presume I should get onto the manufacturer for some firmware updates as well.

Nonetheless, there are no bugs in the aircrack suite that I can see. Thanks for the brilliant work. My understanding of drivers and 802.11 is much better now anyway.
cybergibbons is offline   Reply With Quote
Old 01-04-2006   #105 (permalink)
k0b3_bryant
Registered Member
 
Join Date: Jan 2006
Posts: 2
DWL-G650 rev. C3 ... monitor mode for madwifi????

Quote:
Originally Posted by cybergibbons
...

The card is a D-Link DWL-G650 Hardware Revision C3, ("Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)" from lspci). I've seen reports than the C2 revision works fine with aireplay.
hi there, greeting to all, this is my first post in this forum.

cybergibbons, i hv a card (D-Link DWL-G650 rev c3) which is simliar with urs one (i think).i'd installed the madwifi-cvs driver for the card and everything works fine for me till now.But i'm having trouble whenever i wan to run the airodump with my card.

here is the problem that i encounter:

1)b4 running the airodump, the iwconfig shows the correct ESSID and it's connected to the access point in G mode.

2)after tat i change my card to B mode:

iwpriv ath0 mode 2 channel 6
ifconfig ath0 up

3)then i switch my card to monitor mode as requested by the aircrack documnetation:

iwconfig ath0 mode monitor
ifconfig ath0 up

and the problem happened here, when i 'ifconfig ath0', the H/W address appears to be invalid:

H/w add:00-13-40-9C-1B-4C-00-00-00-00

and also the 'iwconfig ath0' shows me tat the card is disconnected from my access point.

...
IEEE 802.11b
Mode:Monitor
ESSID:00:00:00:00:00:00
Bit rate:0 Mbps
...

4)Ok, after setup all the things, i started my airodump, n it's running, but it caputers the IV's data slowly without connecting to any station...????

since you r using the same card with me, so i need your advice to solve this problem and how u configure your card to make it works with airodump ...

i really appreciate for your help !!
k0b3_bryant is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 08:08 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.