2010-11-04 20:44:49

by Henry Ptasinski

[permalink] [raw]
Subject: Re: pci id 14e4:4727 (bcm4313) status?

On 11/04/2010 07:39 AM, G?bor Stefanik wrote:
> On Thu, Nov 4, 2010 at 1:21 PM, Ariel Pedraza<[email protected]> wrote:
>> I have the 14e4:4727 and using the brcm80211, this is an example of what I get and the status of each commands:
>>
>> airmon-ng #ok
>> airmon-ng stop wlan0 #ok
>> ifconfig wlan0 #ok
>> macchanger --mac yy:yy:yy:yy:yy:yy wlan0 #ok
>> airmon-ng start wlan0 #ok
>> airodump-ng mon0 #ok
>> airodump-ng -c canal -w nomarch --bssid xx:xx:xx:xx:xx:xx mon0 #ok, no datas
>>
>> In other terminal:
>> aireplay-ng -1 0 -a xx:xx:xx:xx:xx:xx -h yy:yy:yy:yy:yy:yy mon0 #ok, autentication succesful
>> aireplay-ng -3 -b xx:xx:xx:xx:xx:xx -h yy:yy:yy:yy:yy:yy mon0 #ok, supose to increment datas but NOP!!!
>>
>> In other terminal:
>> aircrack-ng -b xx:xx:xx:xx:xx:xx nomarch.cap #ok, no datas...
>>
>> So... when do you think that the brcm80211 implemetation will be ready to capture datas?
>
> Hmm... filter configuration issue? Apparently the "pass other-BSS
> data" filter flag is not getting written to the hardware. (Do we even
> have such a flag in the brcm80211 FW?)
>
> Can you see any data packets in Wireshark on the monitor interface?

The following flags should all work with the brcm80211 FW:

MCTL_KEEPBADFCS
MCTL_KEEPCONTROL
MCTL_PROMISC
MCTL_BCNS_PROMISC

The only one that's hooked up in the driver at the moment is
MCTL_BCNS_PROMISC (for FIF_BCN_PRBRESP_PROMISC). I haven't taken a look
at what it would take to enable monitor mode in the driver yet (setting
up the monitor interface, etc).

- Henry



2010-11-04 21:43:48

by Gábor Stefanik

[permalink] [raw]
Subject: Re: pci id 14e4:4727 (bcm4313) status?

2010/11/4 G?bor Stefanik <[email protected]>:
> 2010/11/4 Henry Ptasinski <[email protected]>:
>> On 11/04/2010 07:39 AM, G?bor Stefanik wrote:
>>>
>>> On Thu, Nov 4, 2010 at 1:21 PM, Ariel Pedraza<[email protected]> ?wrote:
>>>>
>>>> I have the 14e4:4727 and using the brcm80211, this is an example of what
>>>> I get and the status of each commands:
>>>>
>>>> airmon-ng #ok
>>>> airmon-ng stop wlan0 #ok
>>>> ifconfig wlan0 #ok
>>>> macchanger --mac yy:yy:yy:yy:yy:yy wlan0 #ok
>>>> airmon-ng start wlan0 #ok
>>>> airodump-ng mon0 #ok
>>>> airodump-ng -c canal -w nomarch --bssid xx:xx:xx:xx:xx:xx mon0 ?#ok, no
>>>> datas
>>>>
>>>> In other terminal:
>>>> aireplay-ng -1 0 -a xx:xx:xx:xx:xx:xx -h yy:yy:yy:yy:yy:yy mon0 #ok,
>>>> autentication succesful
>>>> aireplay-ng -3 -b xx:xx:xx:xx:xx:xx -h yy:yy:yy:yy:yy:yy mon0 #ok, supose
>>>> to increment datas but NOP!!!
>>>>
>>>> In other terminal:
>>>> aircrack-ng -b xx:xx:xx:xx:xx:xx nomarch.cap #ok, no datas...
>>>>
>>>> So... when do you think that the brcm80211 implemetation will be ready to
>>>> capture datas?
>>>
>>> Hmm... filter configuration issue? Apparently the "pass other-BSS
>>> data" filter flag is not getting written to the hardware. (Do we even
>>> have such a flag in the brcm80211 FW?)
>>
>>>
>>> Can you see any data packets in Wireshark on the monitor interface?
>>
>> The following flags should all work with the brcm80211 FW:
>>
>> ? ? ? ?MCTL_KEEPBADFCS
>> ? ? ? ?MCTL_KEEPCONTROL
>> ? ? ? ?MCTL_PROMISC
>> ? ? ? ?MCTL_BCNS_PROMISC
>>
>> The only one that's hooked up in the driver at the moment is
>> MCTL_BCNS_PROMISC (for FIF_BCN_PRBRESP_PROMISC). ?I haven't taken a look at
>> what it would take to enable monitor mode in the driver yet (setting up the
>> monitor interface, etc).
>
> For raw monitor mode, all but KEEPBADFCS are needed. If the "fcsfail"
> monitor mode flag is also set, KEEPBADFCS should be enabled too.
> For cooked monitor, AFAIK only KEEPCONTROL (and perhaps BCNS_PROMISC)
> are needed.
>
> However, do not set these based on interface type - use the FIF_ flags instead.

BTW, please consider a KEEPBADPLCP flag in the next firmware release -
it is needed for implementing the "plcpfail" monitor flag.

>
>>
>> - Henry
>>
>>
>
>
>
> --
> Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
>



--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)

2010-11-04 21:42:58

by Gábor Stefanik

[permalink] [raw]
Subject: Re: pci id 14e4:4727 (bcm4313) status?

2010/11/4 Henry Ptasinski <[email protected]>:
> On 11/04/2010 07:39 AM, G?bor Stefanik wrote:
>>
>> On Thu, Nov 4, 2010 at 1:21 PM, Ariel Pedraza<[email protected]> ?wrote:
>>>
>>> I have the 14e4:4727 and using the brcm80211, this is an example of what
>>> I get and the status of each commands:
>>>
>>> airmon-ng #ok
>>> airmon-ng stop wlan0 #ok
>>> ifconfig wlan0 #ok
>>> macchanger --mac yy:yy:yy:yy:yy:yy wlan0 #ok
>>> airmon-ng start wlan0 #ok
>>> airodump-ng mon0 #ok
>>> airodump-ng -c canal -w nomarch --bssid xx:xx:xx:xx:xx:xx mon0 ?#ok, no
>>> datas
>>>
>>> In other terminal:
>>> aireplay-ng -1 0 -a xx:xx:xx:xx:xx:xx -h yy:yy:yy:yy:yy:yy mon0 #ok,
>>> autentication succesful
>>> aireplay-ng -3 -b xx:xx:xx:xx:xx:xx -h yy:yy:yy:yy:yy:yy mon0 #ok, supose
>>> to increment datas but NOP!!!
>>>
>>> In other terminal:
>>> aircrack-ng -b xx:xx:xx:xx:xx:xx nomarch.cap #ok, no datas...
>>>
>>> So... when do you think that the brcm80211 implemetation will be ready to
>>> capture datas?
>>
>> Hmm... filter configuration issue? Apparently the "pass other-BSS
>> data" filter flag is not getting written to the hardware. (Do we even
>> have such a flag in the brcm80211 FW?)
>
>>
>> Can you see any data packets in Wireshark on the monitor interface?
>
> The following flags should all work with the brcm80211 FW:
>
> ? ? ? ?MCTL_KEEPBADFCS
> ? ? ? ?MCTL_KEEPCONTROL
> ? ? ? ?MCTL_PROMISC
> ? ? ? ?MCTL_BCNS_PROMISC
>
> The only one that's hooked up in the driver at the moment is
> MCTL_BCNS_PROMISC (for FIF_BCN_PRBRESP_PROMISC). ?I haven't taken a look at
> what it would take to enable monitor mode in the driver yet (setting up the
> monitor interface, etc).

For raw monitor mode, all but KEEPBADFCS are needed. If the "fcsfail"
monitor mode flag is also set, KEEPBADFCS should be enabled too.
For cooked monitor, AFAIK only KEEPCONTROL (and perhaps BCNS_PROMISC)
are needed.

However, do not set these based on interface type - use the FIF_ flags instead.

>
> - Henry
>
>



--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)