Re: Get Users Serial ID
I'm not sure if that code inside local values give crash, so that is my method of auth users using your private cleo:
This is content of GenerateAuthKey.cs:
Code:
{$CLEO .cs}
if
0AA2: 1@ = load_library "kernel32.dll"
then
if
0AA4: 2@ = get_proc_address "GetVolumeInformationA" library 1@
then
0AC7: 0@ = var 0@ offset
0AA5: call 2@ num_params 8 pop 0 0 0 0 0 0@ 0 0 0
0A9A: $hFILE = openfile "CLEO\HereIsYourCode.txt" mode "wt+" // IF and SET
0AD9: write_formatted_text "%d" in_file $hFile 0@
0A9B: closefile $hFILE
print "~G~CODE GENERATED" 3000
wait 3000
print "~R~NOW CLOSE THE GAME" 6000
end
end
0AA3: free_library 1@
004E: end_thread
Then place this at the begin of your cleo script:
Code:
{$CLEO .cs}
hex //it's for Cleo Cryptor by FYP
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
end
3@ = 0 //key is incorrect or could not be checked
if
0AA2: 1@ = load_library "kernel32.dll"
then
if
0AA4: 2@ = get_proc_address "GetVolumeInformationA" library 1@
then
0AC7: 0@ = var 0@ offset
0AA5: call 2@ num_params 8 pop 0 0 0 0 0 0@ 0 0 0
if
0039: 0@ == //here is unique number, but it isn't ALWAYS equal to volume serial ID
then
3@ = 1
end
end
end
0AA3: free_library 1@
if
0039: 3@ == 0
else_jump @YourMainScript
print "WRONG SERIAL ID" 5000
004E: end_thread
:YourMainScript
//here is your code
When you want to give someone protected .cs hack, give him GenerateAuthKey.cs. He should run the game and give you result code in HereIsYourCode.txt in CLEO folder.
Then compile your script with that code in checking function, and encrypt whole script with Cleo Cryptor by FYP.