Tuesday, July 6, 2010

Auto Kismet.conf

This is a little script i wrote for work. I know it doesnt work on many machines, but i'm planning on expanding it to work with all the sourcetypes. Once i get it polished i will submit it to kismet devs.
interface=`iwconfig 2>&1 | grep 802.11 | awk '{print $1}'`
driver=`lshw | grep -i wireless= | awk '{print $3}' | awk -F= '{print $2}'`

#replace line in kismet.conf
sed -i -e "/^source=/c$rline" /etc/kismet/kismet.conf

No comments:

Post a Comment