All pastes #416558 Raw Edit

Mine

public text v1 · immutable
#416558 ·published 2007-03-30 09:45 UTC
rendered paste body
#!/bin/sh


IFACE=""
KISMET=/etc/kismet/kismet.conf
CH=$3; [ x$3 = "x" ] && CH=10


which iwpriv > /dev/null 2> /dev/null ||
  { echo Wireless tools not found ; exit ; }


echo -e "\nusage: `basename $0` <start|stop> <interface> [channel]\n"
echo -e "Interface\tChipset\t\tDriver\n"


function startStdIface() {
        iwconfig $1 mode monitor 2> /dev/null >/dev/null
        iwconfig $1 channel $2 2> /dev/null >/dev/null
        iwconfig $1 key off 2> /dev/null >/dev/null
        ifconfig $1 up
        echo -n " (monitor mode enabled)"
}