1. Convert files to .p .m file - Hide encryption code
Use pcode command - pcode filename.m source file to generate a corresponding file .p filelname.p. Remove .p .m file retains the file does not affect the function calls and running.
2. Read the PC motherboard current sequence number to be compared, and the combined addition of contrast covert code snippet above - encryption program of this machine can not be separated
1 tag = 0; 2 [m1,res2] = dos('getmac'); 3 res1_200 = res2(152:1:223); 4 %res1_200=AC-7B-A1-80-6B-8C \Device\Tcpip_{E19CDA87-2424-4BE4-B5BA-AC7FB8DB69A4} 5 6 passLit = 'AC-7B-A1-80-6B-8C \Device\Tcpip_{E19CDA87-2424-4BE4-B5BA-AC7FB8DB69A4}'; 7 8 %okisyes = (res1_200 == passLit); 9 %sumok = sum(okisyes); %72 10 11 tag = strcmp(res1_200,passLit); 12 if(~tag) 13 exit 14 end
3. Use the version date (time) off encryption