Re: Controlling who can run an executable
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Controlling who can run an executable

From: Cigar <chrisgarland67@hotmail.com>
Date: Tue Oct 04 2005 - 20:06:34 CEST

Myles Strous wrote:
> 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.

Ah... thing of beauty. One of these will probably make it into my
final solution.

Thanks millions!
Received on Sat Oct 15 04:07:57 2005