feross / SpoofMAC

:briefcase: Change your MAC address for debugging
https://feross.org/spoofmac/
3.03k stars 269 forks source link

Random MAC Generation #3

Closed orangewarp closed 11 years ago

orangewarp commented 11 years ago

Added random MAC address generation. To use, just exclude a manual MAC address

sudo python SpoofMAC.py en0

sudo python SpoofMAC.py en1

etc. etc.

Simplifies the process. Probably what most people want anyway! :-)

feross commented 11 years ago

This is awesome. Thank you!

TkTech commented 11 years ago

This seems to have been stolen from http://www.centos.org/docs/5/html/5.2/Virtualization/sect-Virtualization-Tips_and_tricks-Generating_a_new_unique_MAC_address.html. Red Hat's licence requires attribution, no?

orangewarp commented 11 years ago

Good call! I found the random script off a blog / tutorial that seemed free use, no license.

If the source requires attribution we definitely should include it. No stealing intended.

Apologies if this caused problems.

Sent from my iPhone

On Jan 16, 2013, at 1:41 PM, Tyler Kennedy notifications@github.com wrote:

This seems to have been stolen from http://www.centos.org/docs/5/html/5.2/Virtualization/sect-Virtualization-Tips_and_tricks-Generating_a_new_unique_MAC_address.html. Red Hat's licence requires attribution, no?

\ Reply to this email directly or view it on GitHub.

orangewarp commented 11 years ago

I think adding this line at the beginning of the program - to attribute the random function would suffice according to the open pub license.

MAC randomization function was provided by Red Hat®, Inc. Copyright (c) <year ???> by Red Hat®, Inc. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, vX.Y or later (the latest version is presently available at http://www.opencontent.org/openpub/).

On Wed, Jan 16, 2013 at 1:41 PM, Tyler Kennedy notifications@github.comwrote:

This seems to have been stolen from http://www.centos.org/docs/5/html/5.2/Virtualization/sect-Virtualization-Tips_and_tricks-Generating_a_new_unique_MAC_address.html. Red Hat's licence requires attribution, no?

— Reply to this email directly or view it on GitHubhttps://github.com/feross/SpoofMAC/pull/3#issuecomment-12333243.

orangewarp commented 11 years ago

Original Redhat Source found - https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/sect-Virtualization-Tips_and_tricks-Generating_a_new_unique_MAC_address.html

orangewarp commented 11 years ago

@TkTech , not to bother you but any advice on the proper way to cite this - or opinion on whether this code should or shouldn't be included? While the Centos.org site seems to suggest the tutorial and code for random mac generation is opencontent - I couldn't find that license declaration on the RedHat site itself.

Not trying to shirk my responsibility as the submitter... but it would be nice to get the advice of someone with more experience with open source publishing and responsibilities. I'm still learning. Thanks in advance for your patience.