Tags:

ackermann   Amateurfunk   angola   assembler   basic   bewiso   c programmierung   coding   digitale Signatur   gdbinit   informatik   krypto   linux   Lockpicking   lustig   mathematik   mobile   modern   netzwerk   perl   phreaking   pointer   politik   programmierung   radio   ratten   security   sha-1   sicherheit   smartcard   tunnel  

Last update
(Nov 10 2007)

mac Adresse verändern

Ich will, dass sich die mac Adresse meiner Wireless-Lan-Karte bei jedem "neu einstecken"
auf einen neuen Wert setzt...

Auf meinem Gentoo system:

bash-2.05b$ grep makemac /etc/init.d/net.eth1 -B2 -A4
        if [ "${iface_IFACE}" != "dhcp" ]
        then
                /usr/bin/makemac1.pl
                /sbin/ifconfig ${IFACE} ${iface_IFACE} >/dev/null || {
                        retval=$?
                        eend ${retval} "Failed to bring ${IFACE} up"
                        return ${retval}



bash-2.05b$ cat /usr/bin/makemac1.pl
#!/usr/bin/perl
for($i=0;$i<4;$i++){$a.=sprintf(":%x",16 + int rand(241));}
system("/sbin/ifconfig eth1 hw ether 00:02".$a);


perl linux