Ticket #323 (accepted enhancement)

Opened 17 months ago

Last modified 7 weeks ago

Support for Realtek RTL8187B

Reported by: hdusel Owned by: gkruse
Priority: major Milestone: 0.4
Component: driver subsystem Version: 0.2.99
Keywords: Realtek, RTL8187B Cc: hdusel@…, enrique

Description

Hi folks,

I'm proud to announce that I have managed KisMAC to work with RTL8187B based WLAN Hardware too. So the existing RTL8187 driver should now deal with the RTL8187 prefixed by a 'B' too!

For my development I have used a Digitus WLAN Stick which is based on a Realtek RTL8187B.

This is not supported by the current driver because it manages RTL8187 or RTL8187L based hardware only.

If you want to verify the adaptation pls. try the special version KisMAC_RTL8187B.app.zip as attached to this ticket.

In order to add this support I need to touch a couple of source- and config files for this purpose.

Developers note: A diff of all relevant changes is shown in RTL8187_Changes.diff and in KisMAC_RTL8187B_Changes.zip attached below. The latter archive contains all touched files in respect of the directory hierarchy.

I have orientated myself on the recent Linux Kernel driver ( http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=tree;f=drivers/net/wireless/rtl818x;h=c57dc52a25c1c77753b90a91e524a1e532dcb301;hb=9f76208c33984ab777eace5d07a4e36e88703e02) However I added the support of the RTL8187B based USB stick into the existing rtl8187 driver code.

So the files rtl8187.h, rtl8187.mm and rtl818x.h has been changed a lot. In addition I enriched the file UsbVendorsRTL8187.plist and added a third key for each entry which is supposed to tell the USB Driver probe code if a particular hardware is based on a RTL8187(L) or RTL8187B chip.

Well, because I have heavily touched the existing RTL8187 driver code could anybody of you guys which owns a RTL8187(L) based hardware if this still works with his RTL8187(L) hardware?

I hope you will benefit of my changes and they will be integrated into the next version of KisMAC either.

Best Regards & TIA for testing!

  • Peter -

Attachments

KisMAC_RTL8187B_Changes.zip Download (49.6 KB) - added by hdusel 17 months ago.
Diffs which has to be applied for Realtek RTL8187B Support
changes_for_RTL8187B.zip Download (52.8 KB) - added by hdusel 9 months ago.
Changes for RTL8187B (2009-11-22)

Change History

Changed 17 months ago by hdusel

Diffs which has to be applied for Realtek RTL8187B Support

  Changed 17 months ago by hdusel

Since uploading of files is limited to 256kb I have put the prebuild Version of KisMAC with RTL8187 Support to  http://www.tangerine-soft.de/developer_free/KisMAC_RTL8187B.app.zip

  Changed 17 months ago by hdusel

  • cc hdusel@… added

  Changed 17 months ago by pr0gg3d

  • owner changed from nobody to pr0gg3d
  • status changed from new to assigned

nice work, will be added soon (next release maybe).

follow-ups: ↓ 5 ↓ 6   Changed 15 months ago by phfaty

this doesn't work with my rtl8187b usb dongle which is Rosewill RNX-G1W

in reply to: ↑ 4   Changed 15 months ago by fish

Replying to phfaty:

this doesn't work with my rtl8187b usb dongle which is Rosewill RNX-G1W

Define "this." If you are who I was chatting with on IRC, we determined that the patch most likely will not work against the current trunk. If you tried the binary, there are a lot of other possibilities that are better to talk through than add to a ticket (and everything is probably already covered on the FAQ).

in reply to: ↑ 4   Changed 15 months ago by hdusel

Replying to phfaty:

this doesn't work with my rtl8187b usb dongle which is Rosewill RNX-G1W

Hi,

This is Peter who has created the RTL8187B patch.

Could you please send me a profile of your USB Stick?

If you agree then please do:

1) Download the program 'DumpUSBDevices.app' as you'll may find at  http://tangerine-soft.de/download/DumpUSBDevices.app.zip

2) Plug in your USB WLAN Stick (The Rosewill RNX-G1W device)

3) Start 'DumpUSBDevices' and follow its instructions.

I asume that the Vendor-/Device- ID's does not fit your device. With this info I'll be able to add these infos.

Thanks in advance for your help!

- Peter -

  Changed 13 months ago by marcoslopes.f

I'm from Brasil, and this dist work perfectly with this hardware: ENCORE ENUWI-G2 chipset RTL8187(B)  http://www.encore-usa.com/product_item.php?region=us&bid=2&pgid=4&pid=293 i just whanna thank you!

  Changed 13 months ago by cuzog

I also have the ENCORE ENUWI-G2 with RTL8187(B). The driver loads well and scans, but injection doesn't operate as expected. When the option is chosen the dialog for injecting comes up, but it stays stuck forever "Waiting for interesting packets... 0 Responses." When I use a pre-saved data list, it just sits at "Injecting... 0 Responses." I have no way of knowing whether this is an issue with the driver or the alpha build, but for me at least, injection isn't working.

Another thing that doesn't work in this build is the channel menu. No channel option works in this menu. In order to isolate a channel, I have to set it directly in the driver preference.

I've been using the KisMAC_RTL8187B.app provided earlier in this thread.

  Changed 12 months ago by samy

Hello,

I'm using the binary version provided here. I have a WG111v3 which uses the RTL8187BL chipset, however I receive this error when scanning: Could not instantiate driver. KisMAC was able to load the driver backend for USB RTL8187 device, but it was unable to create an interface. Make sure your capture device is properly plugged in. If you think everything is correct, you can try to restart your computer. Maybe your console.log and system.log show more details.

Here is the USB info:

NETGEAR WG111v3:

Product ID: 0x4260 Vendor ID: 0x0846 Version: 2.00 Serial Number: 00223FE953D9 Speed: Up to 480 Mb/sec Manufacturer: Manufacturer_NETGEAR Location ID: 0xfd100000 Current Available (mA): 500 Current Required (mA): 500

follow-up: ↓ 26   Changed 12 months ago by samy

I ended up getting this working, I had to "kextunload RTL8187Bl.kext" and then this binary version worked. However, the latest binary release does not work on the website so I'll have to stick to this version.

follow-up: ↓ 13   Changed 10 months ago by Romeyni

having the same problem as cuzog...with the same model... whoever solves this first will get a big hug from me!! i dont know how that brazilian dude said that the ENUWI-G2 worked, lies, take it off the hardware list for now...it only scans and collects slow traffic, doesnt inject, deauthenticate nor nothing else for that matter.

in reply to: ↑ 12   Changed 10 months ago by hdusel

Replying to Romeyni:

having the same problem as cuzog...with the same model... whoever solves this first will get a big hug from me!! i dont know how that brazilian dude said that the ENUWI-G2 worked, lies, take it off the hardware list for now...it only scans and collects slow traffic, doesnt inject, deauthenticate nor nothing else for that matter.

Hi, This is Peter, the author of this patch.

I'd just like to clarify the following issues:

1) The Version which supports the RTL8187B is a special private build and does *not* belong to the official version of Kismac which is hosted here. In fact the link above points to a version which is hosted on my private server.

2) The compatibility list which is hosted here does *not* claim, that the RTL8187B is supported. It does not because of reason 1)

So please do not claim issues in regard of the RTL8187B to the developers here. They do not support the RTL8187B (yet)!

I'm pretty aware of the issues that the RTL8187B Driver is not completely working. Especial the issue that injection still fails is an issue on my TODO list...

One last question 'cos I'm curious: What do you mean by "it only scans and collects slow traffic"? You could get in contact with me directly. drop me a mail at "hdusel at tangerine-soft.de"

Thanks for your cooperation! - Peter -

  Changed 10 months ago by gkruse

  • owner changed from pr0gg3d to gkruse
  • status changed from assigned to accepted

follow-up: ↓ 16   Changed 10 months ago by enrique

  • cc enrique added

hi,I want to say thank for your help with RTL8187B but i have the same problem as cuzog. I can scan , but inyection not "Waiting for interesting packets... 0 Responses."

It would be great if you could fix the injection problem.

Encore ENUWI-G2 802.11g wireless usb adapter. macbook snow leopard

in reply to: ↑ 15 ; follow-up: ↓ 19   Changed 10 months ago by hdusel

Replying to enrique:

hi,I want to say thank for your help with RTL8187B but i have the same problem as cuzog. I can scan , but inyection not "Waiting for interesting packets... 0 Responses." It would be great if you could fix the injection problem. Encore ENUWI-G2 802.11g wireless usb adapter. macbook snow leopard

Thanks for the info.

Well, I revised the driver recently and injection should work now.

Could you pls. reload the recent "special" version from  http://www.tangerine-soft.de/developer_free/KisMAC_RTL8187B.app.zip and give it a second try?

This is based on the actual code (trunk) of KisMac? and hence includes all those fixes either.

TIA - Peter -

  Changed 10 months ago by antoniobal

  • version set to r319
  • type changed from enhancement to defect

Hi, I tried with the last one "special version" with a USB ALFA AWUS036H and I still have the same problem: "Waiting for interesting packets... 0 Responses."

Any idea about how to fix it ???

thanks

  Changed 10 months ago by fish

  • version changed from r319 to 0.2.99
  • type changed from defect to enhancement
  • milestone changed from KisMAC 0.22a to 0.3

in reply to: ↑ 16 ; follow-up: ↓ 21   Changed 9 months ago by gkruse

Thanks for your work hdusel.

Well, I revised the driver recently and injection should work now.

Can you provide a revised patch so I can look at getting this in for 0.3?

  Changed 9 months ago by gkruse

For those of you testing this patch, thanks for your feedback. Comments about not using tickets for support have been removed since I feel this is valuable feedback, not support requests.

in reply to: ↑ 19   Changed 9 months ago by hdusel

Replying to gkruse:

Thanks for your work hdusel.

Well, I revised the driver recently and injection should work now.

Can you provide a revised patch so I can look at getting this in for 0.3?

Hi gkruse,

Here is an archive which contains all changed files.

If you have any questions or if you'll need my assistant don't hesitate to contact me.

Best Regards, - Peter -

Changed 9 months ago by hdusel

Changes for RTL8187B (2009-11-22)

  Changed 8 months ago by verticalgrain

A big thank you to Hdusel for getting this to work with the 8187B. I bought one without realizing it was the B model, and thought I was out of luck but was very happy to be able to scan.

I also have the problem with injecting packets. I have the "special" version from a few posts above. Any thoughts or recent developments on getting it to work?

  Changed 4 months ago by scot999

Greetings,

have the changes for the 8187... been rolled into the trunk (or checked out by the authors)? the above .zip file almost worked for me -- it seemed to reinject once but after that it still remains stuck at the 'Waiting for interesting packets..." screen

thanks!

  Changed 4 months ago by verticalgrain

I'm wondering as well about the status of the 8187B drivers. I also get the "Waiting for interesting packets" screen but seem to get stuck there.

I have been using Backtrack 4 lately, as it does have fully functioning drivers for the 8187B, but would love to use Kismac as it's such a great program.

  Changed 4 months ago by fish

I see no recent changesets at all, so nothing has changed. gkruse has seen this ticket as he has stated as such just a few comments up.

Your issues with reinjection actually have very little to do with the driver and a LOT to do with the old Aircrack 0.3 that is implemented within KisMAC. From the FAQ, you need an 802.11b client for reinjection to be effective. The only way to *know* if you're injecting is to monitor the channel with another device on another machine; you can't really tell from the machine you're trying to inject from. You could very well be injecting, but the target may just not be responding—assuming there is even an acceptable target.

in reply to: ↑ 10   Changed 7 weeks ago by Caruso342

Replying to samy:

I ended up getting this working, I had to "kextunload RTL8187Bl.kext" and then this binary version worked. However, the latest binary release does not work on the website so I'll have to stick to this version.

Hey samy, how exactly did you get your WG111v3 to work? I tried doing the same thing and I just ended up getting the error saying "Can't open CFBundle for RTL8187Bl.kext". What exactly am I doing wrong? I'm a bit new to macs so I'd be the first to admit my ignorance. If anyone can help I'd be very appreciative.

Note: See TracTickets for help on using tickets.