Kismet startup script
This is the script i use to start wardriving. It starts gpsd and then su's to the user i run kismet as. I would like to add some checking for gpsd and start it only if it needs to.
Code: Select all
#run-kismet
#!/bin/sh
tempdir="/home/USER/kismet"
ethdev="eth0"
usbdev="/dev/ttyUSB0"
user="USER"
group="GROUP"
TERM=xterm
export TERM
/usr/local/bin/gpsd -p ${usbdev}
# Set the ip to nothing
/sbin/ifconfig ${ethdev} 0.0.0.0
# Start kismet hopper
/usr/local/bin/kismet_monitor -H
# Make temp directories for kismet
if [ ! -d ${tempdir} ]; then
mkdir ${tempdir} 2> /dev/null
chown ${user}:${group} ${tempdir}
echo "Created Dir: ${tempdir}"
fi
# chdir to the temp dir before you start kismet
cd ${tempdir}
/bin/su ${user} -c /usr/local/bin/kismet
Return to “Net Hugging Hardware and Software”
Who is online
Users browsing this forum: Majestic-12 [Bot] and 2 guests