Monthly Archives: April 2009

new theme … again … ;)

3
Filed under general

As you can see, I switched my wordpress theme again. I hope you like it. I really love it!

oh … I nearly forgot

0
Filed under amusing, general

…. the towel-day :)
Wear your towel! Know where it is!

To remind my readers (me, me … and me) about this incredibly important event, I’ll put this picture on top of the blog.

Towel Day - Keine Panik

[UPDATE] helper script for changing the MAC

3
Filed under coding, general, linux, perl

UPDATE:
##############

I now rewrote the script a little bit to use a private MAC-area because of problems when generating some MAC-addresses. Please use this version if you want to use it …

##############

hi guys,

yesterday I told you how to change your MAC address. Because I’m unbelievably lazy I decided to write a little helper-script to do this automatically. This script generates a random MAC address and brings the interface up with it.

here it is: change-mac

#!/usr/bin/perl
use strict;
 
# name:     change-mac
# author:   ap0calypse (ap0calypse@agitatio.org)
# purpose:  helper script for bringing an interface down
#           and up again with a random MAC-address
# date:     2009-04-15
 
# replace this with your wlan-interface
my $interface = "wlan0";
 
my @val_mac = (0 .. 9, "A" .. "F");
my $rand_mac = "AC:DE:48:";
 
for (1 .. 6) {
    $rand_mac .= $val_mac[rand(@val_mac)];
    if ( ($_ % 2 == 0) && $_ != 6) {
        $rand_mac .= ":";
    }
}
 
system("ifconfig $interface down");
system("ifconfig $interface hw ether $rand_mac");
system("ifconfig $interface up");

tip of the day – change your MAC-address

3
Filed under general, linux

I know that this is nothing secret or special for most of you, but I think there are people out there who don’t know how to do this. Long story cut short:

ifconfig $INTERFACE down
ifconfig $INTERFACE hw ether $NEWMAC
ifconfig $INTERFACE up

Adjust the values for interface and new-mac to fit your needs.
You may ask yourself, why you should ever need this. Well, if you are really asking yourself this question, you maybe really don’t need it …. ;)

Personally I need it because there is an open WiFi-network in my hometown which gives everyone the opportunity to use it for 30 minutes every day. They assure this by saving the MAC …

Alright? Alright! :)