Does anyone know what is needed to spoof the MAC and not screw up regular network access? Again, this is an Orinoco silver running on debian. Btw, the program MAC Changer didn't work either.
#!/usr/bin/perl
# warmac.pl - by dual_parallel
# and bland_inquisitor on the hardware
#
# Sets up your Orinoco for wardriving with
# a random MAC address and monitor mode.
#
# Usage: # perl warmac.pl eth[X]
#
####################################################
system("clear");
if ($#ARGV < 0) {
print "> Error - no interface specified\n\n";
print "> Usage: # perl warmac.pl eth[X]\n\n";
exit(-1);
}
$if = $ARGV[0];
$count = 0;
print "warmac.pl - Sets up random MAC and monitor mode\n";
print " for Orninoco NICs\n";
print "----------------------------------------------------------------\n\n";
# Generate random MAC
while ($count < 6) {
$rand = rand(255);
if ($rand < 16) {
$rand += 16;
$hex = sprintf("%X", $rand);
}
else {
$hex = sprintf("%X", $rand);
}
$mac[$count] = $hex;
$count++;
}
print "New MAC address = @mac\n";
# Set up NIC
system("ifconfig $if down");
system("sleep 3");
system("ifconfig $if hw ether $mac[0]:$mac[1]:$mac[2]:$mac[3]:$mac[4]:$mac[5]");
system("ifconfig $if up");
system("sleep 3");
#system("ifconfig $if");
system("kismet_monitor -H");
print "\nSet up complete\n\n";












