Package: aircrack Version: 2.3-3 Followup-For: Bug #340057 I made a patch for airmon : * Rewrite ipw2x00 detection. ipw2200 was sometimes detected as ipw2100. * Check ipw2200 module version. Monitor mode is only available with 1.0.6. Display a warning if bad version. * Fix a small display bug for unknown interface.
-- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (900, 'testing'), (400, 'stable'), (300, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-gcc3.4 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages aircrack depends on: ii libc6 2.3.5-6 GNU C Library: Shared libraries an aircrack recommends no packages. -- no debconf information
--- airmon.sh.orig 2005-11-22 20:21:17.000000000 +0100 +++ airmon.sh 2005-11-22 20:21:40.000000000 +0100 @@ -129,28 +129,35 @@ continue fi - if [ x"`iwpriv $iface 2>/dev/null | grep sw_reset`" != "x" ] + if [ x"`lsmod | grep ipw2200 2>/dev/null >/dev/null && echo $?`" != "x" ] then - echo -e -n "$iface\t\tCentrino b/g\tipw2200" - if [ x$1 = "xstart" ] && [ x$2 = x$iface ] - then - cp $KISMET.default $KISMET 2>/dev/null && - echo "source=ipw2200,$iface,Centrino_g" >>$KISMET - iwconfig $iface mode Monitor channel $CH - ifconfig $iface up - echo -n " (monitor mode enabled)" - fi - if [ x$1 = "xstop" ] && [ x$2 = x$iface ] - then - ifconfig $iface down - iwconfig $iface mode Managed - echo -n " (monitor mode disabled)" - fi - echo - continue + if [ "`modinfo ipw2200 | awk '/^version/ {print $2}'`" = "1.0.6" ] + then + echo -e -n "$iface\t\tCentrino b/g\tipw2200" + if [ x$1 = "xstart" ] && [ x$2 = x$iface ] + then + cp $KISMET.default $KISMET 2>/dev/null && + echo "source=ipw2200,$iface,Centrino_g" >>$KISMET + iwconfig $iface mode Monitor channel $CH + ifconfig $iface up + echo -n " (monitor mode enabled)" + fi + if [ x$1 = "xstop" ] && [ x$2 = x$iface ] + then + ifconfig $iface down + iwconfig $iface mode Managed + echo -n " (monitor mode disabled)" + fi + echo + continue + else + echo -e -n "$iface\t\tCentrino b/g\tipw2200 (bad module version: 1.0.6 required)" + echo + continue + fi fi - if [ x"`iwpriv $iface 2>/dev/null | grep get_power`" != "x" ] + if [ x"`lsmod | grep ipw2100 2>/dev/null >/dev/null && echo $?`" != "x" ] then echo -e -n "$iface\t\tCentrino b\tipw2100" if [ x$1 = "xstart" ] && [ x$2 = x$iface ] @@ -246,7 +253,7 @@ continue fi - echo "$iface\t\tUnknown\t\tUnknown" + echo -e -n "$iface\t\tUnknown\t\tUnknown" done