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/08/24 18:39] – updated to reflect new patch. darkaudax | zd1211rw [2011/06/26 15:45] – firmware note for gentoo wicher | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
====== zd1211rw ====== | ====== zd1211rw ====== | ||
+ | authored by sleek | ||
- | This driver supports the zd1211 and the newer zd1211b chipsets by Zydas. | + | **Review and injection |
- | + | ||
- | The older zd1211 chipset only partially supports injection. | + | |
- | + | ||
- | 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. There is quite a bit of variation between distributions so this describe the general steps you must take. You will have to tweak the instructions for your specific distribution and kernel version. | + | |
- | + | ||
- | You will need to have your kernel headers and full source already installed on your system. See [[zd1211rw# | + | |
- | + | ||
- | Copy contents of **/ | + | |
- | + | ||
- | Copy contents of **/ | + | |
- | + | ||
- | Download and expand the latest version of the aircrack-ng suite to obtain the patches or download the from [[http:// | + | |
- | + | ||
- | Copy zd1211rw_inject_2.6.20.patch to **/ | + | |
- | + | ||
- | cd / | + | |
- | + | ||
- | NOTE: In the following lines, verbose and dry-run have a double dash in front of them. | + | |
- | patch -Np1 --verbose --dry-run -i zd1211rw_inject_2.6.22.patch | + | |
- | + | ||
- | If it was OK: | + | |
- | patch -Np1 --verbose | + | |
- | Copy ieee80211_inject.patch to /usr/scr/linux | + | 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, |
- | patch -Np1 --verbose --dry-run | + | |
- | If it was OK: | + | The zd1211rw |
- | patch -Np1 --verbose | + | |
- | **NOTE**: In the following lines, change "2.6.20-1.2944.fc6" | + | ===== Patching: Kernel |
- | cd / | + | To enable injection, we'll have to patch the driver first. The easiest and most convenient way is to take the [[compat-wireless|compat-wireless]] route. |
- | make -C / | + | |
- | cd / | + | |
- | make -C / | + | |
- | Now copy the new modules | + | **1.** Go to http://wireless.kernel.org/ |
- | cp /usr/src/ | + | **2.** Next up, **cd to your /path/to/compat-wireless** directory and download the patch, required for injection: [[http://www.zlaten.biz/tmp/zd1211rw-inject+dbi-fix-2.6.26.patch|zd1211rw-inject+dbi-fix-2.6.26.patch]], the fixed channel patch, [[http://patches.aircrack-ng.org/channel-negative-one-maxim.patch|channel-negative-one-maxim.patch]] and the [[http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch|mac80211.compat08082009.wl_frag+ack_v1.patch]] for higher injection speed. Visit the general [[mac80211|mac80211]] wiki page for details. |
- | cp /usr/src/ | + | |
- | cp / | + | |
- | And finally, rebuild the module dependencies. | + | **3.** Apply the patches: |
- | | + | 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 will be asked to provide full path of the file which needs to be patched, example: / | ||
- | At this point, the simplest method | + | **4.** Patching is complete and we are ready to compile our driver, type **make** for the process |
- | If you have problems compiling zd1211rw, you can try: | + | **5.** Barring any errors, next up is installing, **sudo make install** |
- | | + | **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 |
- | | + | |
- | ===== Installing Fedora kernel headers | + | **7.** To load the new driver, just type **sudo modprobe zd1211rw** or simply unplug |
- | These instructions are specific to Fedora. Change | + | **8.** That's it! This concludes |
- | You need these packages already installed: | ||
- | kernel-headers-2.6.20-1.2944.fc6 | ||
- | kernel-devel-2.6.20-1.2944.fc6 | ||
- | Running the command **rpm -qa | grep kernel** will show which kernel packages are installed. | + | # aireplay-ng -9 mon0 |
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | Voila ;-) | ||
- | If the headers and development packages are not already installed then obtain them from your favourite repository then: | + | Known issues at this point: |
+ | Fragmentation attack is not yet supported. | ||
- | rpm -ivh kernel-headers-2.6.20-1.2944.fc6.i386.rpm | ||
- | rpm -ivh kernel-devel-2.6.20-1.2944.fc6.i686.rpm (obtain i586 or i686 depending on your architecture) | ||
- | Alternatively, | + | ===== Kernels 2.6.23 and lower ===== |
- | Now download and install | + | As mentioned above, kernels prior to 2.6.25 (2.6.2**4** with compat-wireless) are shipped with the softmac version of the driver which in its best day supports only half the functions, half the time. In other words, |
- | rpm -ivh kernel-2.6.20-1.2944.fc6.src.rpm | + | And if you're absolutely bent on installing the softmac driver on an old kernel, you can try [[http:// |
- | Change to the following directory: | + | ===== Troubleshooting ===== |
- | cd /usr/src/redhat/SPECS | + | The most frequent road block you'll stumble upon is compilation errors with compat-wireless. They' |
- | Change " | ||
- | rpmbuild -bp --target=i586 kernel-2.6.spec | ||
- | **NOTE**: Change references to versions to your specific version in the next few lines. | + | ===== Couldn' |
- | /bin/cp -a / | + | If dmesg has an error similar to the following: |
- | ln -s / | + | |
+ | usb 1-1: Could not load firmware file zd1211/ | ||
+ | | ||
- | ===== Recompiling Kernel with Loadable Modules ===== | + | This means you are missing the firmware for your device or it is located in the wrong location. |
- | Some kernels incorporate | + | On some distributions, |
- | These are the settings for menuconfig using 2.6.20-gentoo-r7, | + | You can obtain |
- | First, change the appropriate items in menuconfig: | + | - http:// |
+ | - RPM for you distribution. | ||
- | cd / | + | ===== Why do I get ioctl(SIOCGIFINDEX) failed ? ===== |
- | + | ||
- | make menuconfig | + | |
- | + | ||
- | | + | |
- | then set | + | |
- | < | + | |
- | < | + | |
- | all other module capable IEEE 80211 items will have automatically set themselves to <M> | + | |
- | + | ||
- | Also check that: | + | |
- | | + | |
- | < | + | |
- | + | ||
- | Exit out and save the config | + | |
- | Now apply the zd1211 and ieee80211 inject patches and recompile/ | + | If you get error messages similar to: |
- | 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!! | + | * Error message: " |
+ | * Error message: " | ||
- | After the patches are applied, you can now recompile the kernel and modules with the following commands: | + | Then [[faq# |
- | cd /usr/src | + | ===== Fragmentation attack ===== |
- | make && make modules modules_install install | + | |
- | Wait for it to finish and then reboot your system. | + | The only unsupported function is the fragmentation " |
+ | Overall, its a great all-purpose chip to have for wireless auditing and general connectivity. | ||
- | 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