by jake

What is a great little script to use when airboxing (wardriving, warchalking, etc)

I have a small bash script that resets the card before use and then brings it back up with a random mac address (via an external perl script).


run_stumble:

#!/bin/sh
cardctl eject 0
sleep 1
cardctl insert 0
sleep 1
ifconfig eth0 hw ether `~/bin/cng_mac`
ifconfig eth0 up

cng_mac:

#!/usr/bin/perl
#
# A quick script that generates a random varible
# It looks suprisingly like a MAC address
# Something like: 23:00:C0:FF:EE:00
# However it will take the first set of octets and set a vendor code
# Vendor codes are in /usr/share/ethereal/manuf
#


for (`cat /usr/share/ethereal/manuf`){
push (@vendorcode, $1) if ($_ =~ /(^[^#]\S+)\s/);
}


srand(time() % 345);
printf("%s:%X%X:%X%X:%X%X",$vendorcode[rand(1) * $#vendorcode],rand(16),rand(16),rand(16),rand(16),rand(16),rand(16))




Then you can simply run kismet (or airsnort or something else) and it will work perfectly.

Then you no longer have to leave your real MAC address behind when checking slashdot from a nokia parking lot.

 


 
Read more of   The Yak's Frequently Questioned Answers   (mod.2008-06-12)

437.   How do I wash a feather comforter?   [n0b0dy/2006-08-13]
383.   How do I translate to and from Japanese?   [novalis/2003-09-25]
352.   Where can I see an example of looping code in G and in C?   [jake/2003-02-26]
351.   How can I setup netware services / mount netware servers in linux?   [jake/2003-02-25]
349.   Hey my money just got ripped off by my bank. They said I made a debit but I didn't!   [jake/2003-02-21]
341.   Can you give me some pointers for using gpg/pgp and other encryption?   [jake/2002-12-19]
340.   what can i use to debug my mail server when pop3 or imap isnt working?   [jesse/2002-12-09]
327.   What is a great little script to use when airboxing (wardriving, warchalking, etc)   [jake/2002-10-05]
280.   How do i stop konqueror from opening a new window when i go to a site using a plugin i dont have?   [jesse/2001-10-30]
216.   Where can I find a copy of the SDMI cracking paper that the RIAA doesn't want published?   [rupe/2001-04-23]
189.   How do you get rid of the ^M characters that are visible when a microsoft text file is edited in UNIX?   [macki/2001-03-06]
124.   How do I make common modifications to my Gnu Emacs .emacs file?   [rupe/2000-09-26]
118.   Where can I find out the cost of giving a sasquatch a funeral?   [rupe/2000-09-14]
106.   What is Wax?   [jamison/2000-07-03]
104.   which pacbell pcs store in the bay area has the best prices and selection?   [jesse/2000-06-18]
89.   What is the connecton between Karl Marx, Cinco de Mayo, and salsa?   [strick/2000-05-05]
86.   How do those little Anti-Shoplifting tags work?   [strick/2000-05-02]
16.   Where are the SF Bay Area Cypherpunk physical meetings?   [strick/2001-04-08]