Controlling who can run an executable
Myles Strous
myles at geocities.com
Tue Oct 4 01:47:44 EDT 2005
More information about the Python-list mailing list
Tue Oct 4 01:47:44 EDT 2005
- Previous message (by thread): Controlling who can run an executable
- Next message (by thread): Controlling who can run an executable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Mike Meyer wrote: > You don't need to install special hardware to get that. There are a > number of pieces of hardware that you can find in a modern computer > that may have a unique serial number you can use as a > dongle. Possibilities include a CPU serial number, an HD serial > number, and the MAC address of any network cards: ethernet, wireless, > and apparently FireWire drivers have them. People have used all of > them in the past. What's more, Tim Golden's wmi module (see http://tgolden.sc.sabren.com/python/wmi.html) makes getting at these numbers very easy: import wmi c = wmi.WMI () for thingy in c.Win32_NetworkAdapter(): print "Network Adaptor", thingy.MACAddress for thingy in c.Win32_Processor(): print "Processor", thingy.ProcessorId for thingy in c.Win32_BIOS(): print "BIOS", thingy.SerialNumber for thingy in c.Win32_BaseBoard(): print "BaseBoard", thingy.SerialNumber for thingy in c.Win32_SystemEnclosure(): print "System Enclosure", thingy.SerialNumber for thingy in c.Win32_DiskDrive(): print "Disk Drive", thingy.PNPDeviceID for thingy in c.Win32_PhysicalMedia(): print "Physical Media", thingy.SerialNumber Regards, Myles.
- Previous message (by thread): Controlling who can run an executable
- Next message (by thread): Controlling who can run an executable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list