sg_get_mac_addresses() function

Top  Previous  Next

sg_get_mac_addresses() function is defined in SourceGuardian loaders and is available within protected scripts. It may be useful for creating custom locking schemas etc. This function returns an array of hardware addresses for all network interfaces installed on the machine where the script is running.

 

Syntax:  array sg_get_mac_addresses()

 

Each mac addresses is returned as formatted string which includes 6-byte hardware address: XX:XX:XX:XX:XX:XX Up to 32 network hardware addresses may be returned.