how to spoof MAC address via code
问题 I'm trying to spoof the MAC address of the computer that executes my program. Right now I'm getting the current MAC address of the machine using the 'getmac' command via cmd, then I want to change it via the 'RegistryKey' class(windows.system32). The issue is that I don't know the string to pass to the OpenSubKey method. For example this is the method to read the current MAC with registry key reading: private string readMAC() { RegistryKey rkey; string MAC; rkey = Registry.LocalMachine