Posted By

adkatrit on 02/21/10


Tagged

address covertmac


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

adkatrit
scottshane


randomize your mac address


 / Published in: Bash
 

works on mac osx, haven't tested on anything else. let me know!

  1. ran=$(head /dev/urandom | md5); MAC=00:07:${ran:0:2}:${ran:3:2}:${ran:5:2}:${ran:7:2}; sudo ifconfig wlan0 down hw ether $MAC; sudo ifconfig wlan0 up; echo ifconfig wlan0:0

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: adkatrit on January 30, 2013

ran=$(head /dev/urandom | md5sum); MAC=00:07:${ran:0:2}:${ran:3:2}:${ran:5:2}:${ran:7:2}; sudo ifconfig eth1 down hw ether $MAC; sudo ifconfig eth1 up;

You need to login to post a comment.