Thursday, April 19, 2007

Installing madwifi-ng (plus aircrack-ng patch)

Before you playin with aircrack-ng so you have to patched your driver (in this case madwifi for my Atheros, u can check patched for your driver here) for injection
y3dips@tarantula:~$ svn checkout madwifi-ng
y3dips@tarantula:~$ wget
y3dips@tarantula:~$ cd madwifi-ng/
y3dips@tarantula:~/madwifi-ng$ patch -Np1 -i ../madwifi-ng-r2277.patch
patching file ath/if_ath.c
y3dips@tarantula:~/madwifi-ng$ sudo make
Checking requirements... ok.
Checking kernel configuration... ok.
...{process truncated}
y3dips@tarantula:~/madwifi-ng$ sudo make install
sh scripts/ 2.6.17-10-generic

It seems that there are modules left from previous MadWifi installations.
If you are unistalling the MadWifi modules please press "r" to remove them.
If you are installing new MadWifi modules, you should consider removing those
already installed, or else you may experience problems during operation.
Remove old modules?

[l]ist, [r]emove, [i]gnore or e[x]it (l,r,i,[x]) ?
... {process truncated}
y3dips@tarantula:~/madwifi-ng$ sudo depmod -ae
y3dips@tarantula:~/madwifi-ng$ sudo modprobe ath_pci
y3dips@tarantula:~/madwifi-ng$ iwconfig ath0
ath0 IEEE 802.11b ESSID:""
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:0 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
then u can start your wifi hack
y3dips@tarantula:~$ sudo airmon-ng stop ath0

Interface Chipset Driver

wifi0 Atheros madwifi-ng
ath0 Atheros madwifi-ng VAP (parent: wifi0) (VAP destroyed)

Happy hacking :)

No comments:

Post a Comment