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 09-11-2004   #1 (permalink)
KoreK
Banned in DC
 
KoreK's Avatar
 
Join Date: Jul 2004
Posts: 102
Injection in monitor mode (airjack)

I adapted wlan-ng to work like airjack, but I am kind of stuck with a nasty problem. Injection works, but whenever the packet gets ack'ed, the transmission rate drops to less than a packet per second. I tried different firmwares, I also tried airjack and got the same problem. Has anybody got good results with airjack, or injection in monitor mode against an AP?

Hardware: MA401, component ID 800c, sec firmware 1.0.3/1.3.6/1.4.9/1.7.4/1.8.3
KoreK is offline   Reply With Quote
Old 09-12-2004   #2 (permalink)
KoreK
Banned in DC
 
KoreK's Avatar
 
Join Date: Jul 2004
Posts: 102
Got a solution. Use "transmit exception suppression" mode (0x0a) instead of "monitor" mode (0x0b). You lose the ack frames, but transmission works fine. Now chopchop takes 1m40s to crack a 62 byte ARP packet (and the associated 58-byte PRGA).

If you encounter the same problem with airjack, just replace 0x0b by 0x0a in the following line in airjack.h:
#define HFA384X_MONITOR_ENABLE ((__u16)(0x0b))
Note that with wlan-ng, I need to set up monitor,do a dot11req_reset, then set up monitor once more. After that everything is a peach.

Even though days seem to take weeks, chopchop should be out very soon. I'll also check airjack.

Notice: Some testmodes can damage your card, so beware.

Last edited by KoreK : 09-12-2004 at 05:42 PM.
KoreK is offline   Reply With Quote
Old 09-13-2004   #3 (permalink)
devine
Emergence
 
Join Date: Jul 2004
Location: Paris
Posts: 389
Quote:
Originally Posted by KoreK
Got a solution. Use "transmit exception suppression" mode (0x0a) instead of "monitor" mode (0x0b). You lose the ack frames, but transmission works fine. Now chopchop takes 1m40s to crack a 62 byte ARP packet (and the associated 58-byte PRGA).

If you encounter the same problem with airjack, just replace 0x0b by 0x0a in the following line in airjack.h:
#define HFA384X_MONITOR_ENABLE ((__u16)(0x0b))
Note that with wlan-ng, I need to set up monitor,do a dot11req_reset, then set up monitor once more. After that everything is a peach.

Even though days seem to take weeks, chopchop should be out very soon. I'll also check airjack.

Notice: Some testmodes can damage your card, so beware.
Great job, well done Can your modifications be applied to hostap as well ?
devine is offline   Reply With Quote
Old 09-13-2004   #4 (permalink)
sylvain
Wireless Auditor
 
Join Date: Jun 2004
Location: Paris, France
Posts: 175
great job Korek, I really have to buy a prism2 card !!
sylvain is offline   Reply With Quote
Old 09-21-2004   #5 (permalink)
Tubez
Registered Member
 
Join Date: Sep 2004
Posts: 8
Devine is raising an interesting point. Are your changes are wlan-ng specific or can any driver be patched in a similar manner? I took a look at the patches and, while more complex than the hostap one that is bundled with aireplay, it looks rather (deceptively?) simple. Are you relying on wlan-ng specific functionality in the chopchop app as well?
Because if you tell us it's not too hard and reusable, well, there might be some interest from some parties (like, I dunno, devine and I) to give patching other systems a shot (hostap and madwifi?).

On the other hand, if the specifics of the card/driver permeate all through the application code, then it's not as advantageous and I might just as well run out and get myself a prism2 on the side
Tubez is offline   Reply With Quote
Old 09-21-2004   #6 (permalink)
KoreK
Banned in DC
 
KoreK's Avatar
 
Join Date: Jul 2004
Posts: 102
Quote:
Originally Posted by Tubez
Devine is raising an interesting point. Are your changes are wlan-ng specific or can any driver be patched in a similar manner? I took a look at the patches and, while more complex than the hostap one that is bundled with aireplay, it looks rather (deceptively?) simple. Are you relying on wlan-ng specific functionality in the chopchop app as well?
Because if you tell us it's not too hard and reusable, well, there might be some interest from some parties (like, I dunno, devine and I) to give patching other systems a shot (hostap and madwifi?).

On the other hand, if the specifics of the card/driver permeate all through the application code, then it's not as advantageous and I might just as well run out and get myself a prism2 on the side
It's prism2 specific. It relies on a testmode specific to the firmware. I don't know anything about other chipsets (madwifi = atheros, does it have a firmware?). It should work with hostap, but hostap is fucked up. Injection works, but monitor is half broken, unicast packets are dropped (I worked on it, and giving it another 24 hours - if anybody wants the incomplete patch, send me a message).
Nice thing about wlan-ng is that the module is just an interface to the firmware. What you type on the command line (wlanctl-ng, wlancfg) are the firmware commands. Hostap does a whole lot of initialization by default, and breaks the testmode. It's not like those were designed to be reliable anyway...
BTW, stay away from 0.2.1-pre20 (it's an half-finished dev module), as it tends to kernel-panic when you remove an active card... Though I did not test 0.2.0 that much, it should be more stable.
KoreK is offline   Reply With Quote
Old 09-21-2004   #7 (permalink)
KoreK
Banned in DC
 
KoreK's Avatar
 
Join Date: Jul 2004
Posts: 102
Ok, cleared things up, and hostap still screws things up. Monitoring is now OK, but injection fails after a few packets (that does not happen with wlan-ng). I might have missed something obvious (it's my second kernel patch), but I think that hostap is too broken to use in monitor/injection mode. Fine tool to drive an AP, maybe, lousy to modify, probably. Has anybody counted the number of element in the local struct? Over 140 elements. KISS, anybody? For the moment, I am going to stick to wlan, see what the firmware can do... If anybody wants to give it a try, and needs my (broken) patch, send me a message.
KoreK is offline   Reply With Quote
Old 09-22-2004   #8 (permalink)
Tubez
Registered Member
 
Join Date: Sep 2004
Posts: 8
I'm not sure what the anatomy of the atheros card is exactly, but the driver has no explicit firmware files. I'm guessing it uploads code that is compiled in the drivers, either in the open part or in the closed source "HAL". Firmwareless operation for such a complex device would be at least a bit silly from an engineering standpoint. You can't talk to it without goign through the HAL though.

At any rate it is capable to emitting arbitrary frames with the wilpackets drivers, but at least with airopeek it cannot capture at the same time. Whether that's a failure of the card or of the program, i can't tell without additional work. For the moment I fear the worst

Anyway, thanks for the off-topic aside
Tubez is offline   Reply With Quote
Old 10-11-2004   #9 (permalink)
rips123
Registered Member
 
Join Date: Oct 2004
Posts: 1
Patch for hostap

Quote:
It should work with hostap, but hostap is fucked up. Injection works, but monitor is half broken, unicast packets are dropped (I worked on it, and giving it another 24 hours - if anybody wants the incomplete patch, send me a message).
If this hasn't been looked at yet, I wouldn't mind having a go. Could you send me your half-finished patch? I'll try and compare it to what goes on in wlan-ng.
rips123 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 02:20 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, 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.