zd1211rw
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
zd1211rw [2007/06/10 19:55] – updated link to zd211 wiki darkaudax | zd1211rw [2011/06/26 17:32] – Update for modern kernels, rearrange stuff. wicher | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
====== zd1211rw ====== | ====== zd1211rw ====== | ||
+ | authored by sleek | ||
- | This driver supports the zd1211 | + | **Review |
- | + | ||
- | The older zd1211 chipset only partially supports | + | |
- | + | ||
- | The new zd1211b chipset fully supports all functions. | + | |
- | + | ||
- | The zd1211rw driver has been incorporated into the latest kernels. | + | |
- | + | ||
- | The following links may be helpful to you to learn more about the driver and which devices are supported by it: | + | |
- | + | ||
- | * [[http:// | + | |
- | | + | |
- | | + | |
- | + | ||
- | + | ||
- | + | ||
- | ===== Patching zd1211rw ===== | + | |
- | This section will describe how to patch your driver for injection. | + | The ZyDAS zd1211 and zd1211b (//also known as AR5007UG//) chips are one of the most distributed wireless b/g chips in the market. They are also the cheapest, on eBay, you can get one for about 5-6USD shipping included. In the same time, these chips are very stable, with excellent range and sensitivity, both under Linux and Windows and you can purchase one with or without an external antenna. The [[http://linuxwireless.org/en/ |
- | You will need to have your kernel | + | The zd1211rw was included in mainline |
- | Copy contents of **/ | + | The only unsupported function is the fragmentation " |
- | Copy contents of **/ | + | Overall, its a great all-purpose chip to have for wireless auditing and general connectivity. |
- | Download and expand the latest version of the aircrack-ng suite to obtain the patches or download the from [[http:// | + | ====== Patching ====== |
+ | To enable injection, we'll have to patch the driver first. | ||
- | Copy zd1211rw_inject_2.6.20.patch to **/ | + | ==== Modern kernels ==== |
+ | For modern kernels, good results can be obtained even when sticking closely to stock kernels. | ||
- | cd / | ||
- | NOTE: In the following lines, verbose and dry-run have a double dash in front of them. | + | === Kernel 2.6.39+ === |
- | patch -Np1 --verbose --dry-run -i zd1211rw_inject_2.6.20.patch | + | See [[http://trac.aircrack-ng.org/ |
- | If it was OK: | + | **1.** cd into your kernel sources |
- | patch -Np1 --verbose | + | |
- | Copy ieee80211_inject.patch | + | **2.** Apply the patch: |
- | | + | |
- | If it was OK: | + | **3.** Recompile and reload the driver as usual. Refer to your distro' |
- | patch -Np1 --verbose | + | |
- | **NOTE**: In the following lines, change "2.6.20-1.2944.fc6" | + | === Kernel |
- | cd / | + | **1.** cd into your kernel sources |
- | make -C / | + | |
- | | + | |
- | make -C / | + | |
- | Now copy the new modules to the /lib/modules tree to be used. | + | **2.** Apply the patch: |
+ | wget -O - 'http://patches.aircrack-ng.org/ | ||
- | cp / | + | **3.** Recompile and reload the driver as usual. Refer to your distro' |
- | cp / | + | |
- | cp / | + | |
- | And finally, rebuild | + | ==== Legacy kernels ==== |
+ | On old kernels, you need to use the compat-wireless approach. | ||
+ | The most frequent road block you'll stumble upon is compilation errors with compat-wireless. They' | ||
- | | + | === Kernel 2.26.24+ === |
- | At this point, the simplest method to bring up the new modules live is to reboot your system. | + | **1.** Go to http:// |
+ | **2.** Next up, **cd to your / | ||
- | ===== Installing Fedora kernel headers and source ===== | + | **3.** Apply the patches: |
- | These instructions are specific to Fedora. Change **2.6.20-1.2944.fc6** to the particular kernel version you have installed. **uname -r** can help you determine what is currently installed. | + | patch -Np0 -i zd1211rw-inject+dbi-fix-2.6.26.patch. |
+ | patch -Np1 -i mac80211.compat08082009.wl_frag+ack_v1.patch. | ||
+ | patch -Np1 -i channel-negative-one-maxim.patch. | ||
+ | __Note:__ //the **xxxxx-xxxx-xxxx.patch** files must be in your compat-wireles-xxxx-xx-xx directory while patching, otherwise | ||
- | You need these packages already installed: | + | **4.** Patching is complete and we are ready to compile our driver, type **make** for the process to begin and wait for few minutes to complete. |
- | kernel-headers-2.6.20-1.2944.fc6 | + | |
- | kernel-devel-2.6.20-1.2944.fc6 | + | |
- | Running the command | + | **5.** Barring any errors, next up is installing, **sudo make install** |
- | If the headers and development packages are not already | + | **6.** Now that the newly compiled driver is installed, we are ready to use it, but before that we have to unload the old driver by typing **sudo make wlunload** |
- | rpm -ivh kernel-headers-2.6.20-1.2944.fc6.i386.rpm | + | **7.** To load the new driver, just type **sudo modprobe zd1211rw** |
- | rpm -ivh kernel-devel-2.6.20-1.2944.fc6.i686.rpm (obtain i586 or i686 depending on your architecture) | + | |
- | Alternatively, | + | **8.** That's it! This concludes the zd1211 injection tutorial. You should now be able to inject. [[injection_test|Test]] your USB device, by setting it to monitor mode (airmon-ng) |
- | Now download and install the full kernel sources if they are not already on your system (This assumes you have downloaded this RPM from your favourite repository). | ||
- | | + | |
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | Voila ;-) | ||
- | Change to the following directory: | + | Known issues at this point: |
+ | Fragmentation attack is not yet supported. | ||
- | cd / | ||
- | Change " | + | === Kernels |
- | rpmbuild -bp --target=i586 kernel-2.6.spec | + | |
- | **NOTE**: Change references to versions to your specific | + | As mentioned above, kernels prior to 2.6.25 (2.6.2**4** with compat-wireless) are shipped with the softmac |
- | | + | And if you're absolutely bent on installing the softmac driver on an old kernel, you can try [[http://www.zlaten.biz/tmp/zd1211rw-compat.tar.gz|this]] source code. Be warned, you'll be disappointed with the outcome. |
- | ln -s / | + | |
+ | ==== Troubleshooting ==== | ||
- | ===== Recompiling Kernel with Loadable Modules ===== | + | === Couldn' |
- | Some kernels incorporate the functionality built into the kernel. | + | If dmesg has an error similar |
- | These are the settings for menuconfig using 2.6.20-gentoo-r7, changing from kernel built-in to loadable modules for the purposes of these patches. This will likely work as well on other distributions. | + | usb 1-1: Could not load firmware file zd1211/ |
+ | | ||
- | First, change | + | This means you are missing |
- | | + | On some distributions, |
- | + | ||
- | make menuconfig | + | |
- | + | ||
- | | + | |
- | then set | + | |
- | < | + | |
- | < | + | |
- | all other module capable IEEE 80211 items will have automatically set themselves | + | |
- | + | ||
- | Also check that: | + | |
- | | + | |
- | < | + | |
- | + | ||
- | Exit out and save the config | + | |
- | Now apply the zd1211 and ieee80211 inject patches and recompile/ | + | You can obtain |
- | Apply the zd1211 inject and ieee80211 inject patches as per patch instructions but only do the 4 patch -Np1 commands, in gentoo doing the make commands and copying all the files is unnecessary!! | + | |
+ | - RPM for you distribution. | ||
- | After the patches are applied, you can now recompile the kernel and modules with the following commands: | + | === Why do I get ioctl(SIOCGIFINDEX) failed ? === |
- | cd /usr/src | + | If you get error messages similar to: |
- | make && make modules modules_install install | + | |
- | Wait for it to finish and then reboot your system. | + | * Error message: " |
+ | * Error message: " | ||
+ | Then [[faq# | ||
- | Lastly, test your drivers and the injection patch. | + | ===== Feedback ===== |
+ | * Instructions and discussion about the zd1211rw in the forum [[http:// | ||
+ |
zd1211rw.txt · Last modified: 2018/03/11 19:04 by mister_x