1-Pasos rápidos (Todo está explicado en detalle en el siguiente punto)
- SO: Ubuntu 9.04 jaunty (ejecuta el comando lsb_release -a para obtenerla)
- Tarjeta wifi: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01) (ejecuta el comando lscpi)
- Kernel: 2.6.28-11-generic (obtenido mediante el comando uname -a)
- gcc del kernel: gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) (ejecuta: cat /proc/version)
Para los que tengan esta versión de ubuntu aquí dejo un paquete con el driver listo para ser usado 😉 madwifi-hal-01056-r4003_20090416-1_i386
1-Obtener los drivers de madwifi-hal de la página de snapshots del projecto madwifi
2-Obtener el parche desde esta web r3745-corregido o mediante la orden:
wget http://patches.aircrack-ng.org/madwifi-ng-r3745.patch
3-Preparar, compilar el código, cargar el módulo y probar la injección
cd src
tar zxf madwifi-hal-0.10.5.6-current.tar.gz
cd madwifi-hal-0.10.5.6-r4003-20090416/
sudo aptitude install patch
patch -p1 < ../r3745.patch-corregido
make && sudo make install
sudo modprobe -r ath9k && sudo modprobe ath_pci
sudo airmon-ng start wifi0
Found 5 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!PID Name
2834 wpa_supplicant
2851 avahi-daemon
2852 avahi-daemon
5332 NetworkManager
9426 dhclient
Process with PID 9426 (dhclient) is running on interface ath0Interface Chipset Driver
wifi0 Atheros madwifi-ng
ath0 Atheros madwifi-ng VAP (parent: wifi0)
ath1 Atheros madwifi-ng VAP (parent: wifi0) (monitor mode enabled)sudo aireplay-ng -9 ath1
18:25:52 Trying broadcast probe requests…
18:25:52 Injection is working!
18:25:54 Found 5 APs
Perfecto listo y funcionando 😉