Listing 1. Script to Start Kismet
#!/bin/bash
# Kill any hopper instances that may be active
killall arm2_hopper
echo "Disabling WEP"
wlanctl-ng eth0 dot11req_mibset mibattribute=dot11PrivacyInvoked=false
if [ "$1" == "" ]; then
chan=6
else
chan=$1
fi
# Enable sniffing
/sbin/wlanctl-ng eth0 lnxreq_wlansniff channel=$chan enable=true
# Start the hopper, passing it an empty dummy script
touch /usr/local/bin/arm2_dummy
chmod a+x /usr/local/bin/arm2_dummy
arm2_hopper /usr/local/bin/arm2_dummy &
sleep 1
# Start kismet, wait for it to return (wait for the user to exit)
kismet
# Kill the hopper
killall arm2_hopper
# Good users ALWAYS have WEP enabled, right?
echo "Enabling WEP"
wlanctl-ng eth0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true
# Disable sniffing
/sbin/wlanctl-ng eth0 lnxreq_wlansniff channel=$chan enable=false
r. g-f /usr/local/bin/arm2_dummy
Copyright © 1994 - 2018 Linux Journal. All rights reserved.