Cryptolens / SKGL

A very simple to use licensing system for .NET applications
https://help.cryptolens.io/faq/what-is-skgl
BSD 3-Clause "New" or "Revised" License
105 stars 35 forks source link

Machine Code getting change #4

Open Manthan2611 opened 4 years ago

Manthan2611 commented 4 years ago

Hi,

Sometime i have seen that machine code is getting change on the machine. There was no hardware changes done on the machine. Sometime it get change after restart and sometime it get changes after using function more than twice. I have found no solution on it as referring the code found that it generate the machine code based on hardware CPU and board id's. but without changing any of it the machine code gets changed.

What i need to check so that it don't get changed?

Thanks & Regards, Manthan Patel

artemlos commented 4 years ago

Hey!

Thanks for letting me know.

Could you please try using Helpers.GetMachineCodePI() method in https://www.nuget.org/packages/Cryptolens.Licensing/. It's in SKM.V3.Methods namespace.

That method uses the result from cmd.exe /C wmic csproduct get uuid instead, which I think should work better.

/Artem

lordofscripts commented 3 years ago

The "Machine Code" used here enumerates the network interfaces prior to generating the machine code and does that without any filtering, same goes for the disk drives, it will also enumerate USB devices. If any of those things change, then your machine code will change. While it may do part of its work, it is rather weak because if you install VMWare for example, a new network interface will be enumerated and the machine code will change rendering the license invalid.