#!/bin/sh
# This script is a version of eisenhardt.sh written for Linux usage.
# abe@unix-fu.org

#################
### Variables ###
#################

interface="$1";

if test "$#" -ne "1";
then
    echo "Usage: $0 <interface>"; 
    exit;
else

##########################
# Clearing our interface #
##########################

# Clear our station name or "nickname"
iwconfig $interface nick "";
sleep .5;

# Clear our card ESSID/SSID
iwconfig $interface essid "";
sleep .5;


while true
do
        addy=`jot -r -w "%0.2x" -s : 6 0 255`;

        sleep .5;

	ifconfig $interface down;
 	ifconfig $interface hw ether $addy;
        echo $addy;
	ifconfig $interface up;
done
fi;
