I'm using this method to get the mac address:
public static string GetMACAddress()
{
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
//for each j you can get the MAC
PhysicalAddress address = nics[0].GetPhysicalAddress();
byte[] bytes = address.GetAddressBytes();
string macAddress = "";
for (int i = 0; i < bytes.Length; i++)
{
macAddress += bytes[i].ToString("X2");
if (i != bytes.Length - 1)
{
macAddress += "-";
}
}
return macAddress;
}
and I'm saving the first result, then I keep on calling this method every amount of time and compare it to the first one to see if its being changed which gives the result that its being spoofed .
but this won't work if the mac address is already being spoofed .
How can I get the original mac address even if its being spoofed?