This tutorial will learn you how to install the HostAP drivers for wifi cards with the Prism chipset. It will also cover patching the drivers for packet injection which will allow you to crack wifi encryption under 5 minutes.
1. Preparation
The Ubuntu repositories contains everything needed including hostap source but we use the last version of hostap 0.4.9 and 0.4.7 packet injection patch. Packet injection allows us to crack simple wifi encryption in under 5 minutes.
1.1 Ubuntu installed from DVD uses kernel by proccesor type (in case AMD it uses kernerl k7, in Intel case it uses kernel i386). Packet injection patch doesn't work under k7 kernel! correctly or at all. So we need to install kernel headers and i386 kernel image and boot it up.
1.2 Prism cards runs under Orinoco module by default. To disable these drivers for your card by doing the following:
modprobe -r orinoco_pci modprobe hostap_pci
1.3 Add line blacklist orinoco_pci
into
/etc/modprobe.d/blacklist
2. Driver
2.1 After reboot download the driver and use the patch.
2.3 In one of each file find these five rows and remove them.
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)) #error Host AP driver was added into Linux 2.6.14. #error The version used in the kernel tree should be used instead of this #error external release which is only maintained for old kernel versions. #endif
2.4 Let compilation begins. Run:
make
2.5 After make don't do "make install". First you should store original contents then clean up /hostap folder and copy all *.ko files from
3.1 Prism cards with firmware newer than 1.7.4 is in the system registered as ethX. This version of firmware is recommended. Otherwise try to flash you adapter. Check your version of firmware with
hostap_diag -p wlan0
'll see something like that:
Host AP driver diagnostics information for 'wlan0'