Re: machine with null serial number?
Re: machine with null serial number?
- Subject: Re: machine with null serial number?
- From: Matt Burnett <email@hidden>
- Date: Sat, 29 Mar 2008 03:01:02 -0500
I forgot the name of it, but there is a kext that allows you to change
your MAC address. For software licensing this could be a issue since a
pirate could change their MAC address, albeit not of every machine on
their network. It is much more difficult (but possible) to change your
systems serial number with out a logic board replacement. If you use
the MAC address and the user has their logic board replaced it would
invalidate their license.
On Mar 28, 2008, at 11:00 PM, Jerry Krinock wrote:
Apple recommends using the primary MAC (Media Access Layer) address
instead of the machine serial number to uniquely identify a computer
for this purpose. Read:
http://developer.apple.com/technotes/tn/tn1103.html
You can find some code on developer.apple.com named
"GetPrimaryMACAddress.c" for getting this.
Another possible cause of no serial number is that the machine is a
so-called "Hackintosh"; non-Apple hardware modified to run Mac OS X.
I modified GetPrimaryMACAddress.c, adding a Cocoa wrapper and the
ability to handle null MAC addresses by substituting the user's
primary email if the primary MAC address comes up NULL. (It was
been reported to me that Hackintoshes don't report MAC addresses
either.) It's straightforward. The implementation is too long to
paste in here but if anyone wants it I can post it somewhere.
Here's the .h:
#import <Cocoa/Cocoa.h>
@interface SSIOKit : NSObject
+ (NSData*)primaryMACAddressData ;
//+ (NSData*)machineSerialNumberData ; // not recommended
@end
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden