mild11 Posted December 13, 2008 Posted December 13, 2008 (edited) I have question about how to generate different keys like 12345-67890 is key and second key is 09876-54321 and many others So how to do in asm.. Can some tell me this! Edited December 13, 2008 by CRAZY-COOL / M.E.I.S
DrPepUr Posted December 13, 2008 Posted December 13, 2008 Use a PRNG to obtain random values for parts of the key that dosent matter.Doc
mild11 Posted December 13, 2008 Author Posted December 13, 2008 I don't want to generate random numbers, i want it like generating different keys saved in it. And if i am wrong please you u can just mention an example below
Loki Posted December 13, 2008 Posted December 13, 2008 So you're asking how to write a keygen?Same answer as always - lena's tuts, specifically number 36. I think you have a lot of reading to do yet though!
mild11 Posted December 13, 2008 Author Posted December 13, 2008 No bro, i don't want to write to a keygen or need need any source code, i just wan't to generate keys, the pseudo code for only generating part. and i am through with lena#36 tutorial The problem is like if i press generate button i can generate one key and if i press again the the generate button it should out put the next key i want, you can say it even as keymaker!
DrPepUr Posted December 13, 2008 Posted December 13, 2008 Geez ure one hard headed individual. Like I said above use a PRNG to get random values for parts of the algo that does not have to be a specific value. Some algos you can do this and some you can not.Extremely simple example.....INCLUDE MASM32.INCINCLUDELIB MASM32.LIBINCLUDE \MASM32\MACROS\MACROS.ASM .codeSeedPRNG PROC INVOKE GetTickCount INVOKE nseed,EAX RETSeedPRNG ENDPKeygen PROC hWnd:DWORDLocal SerialBuffer[255]:BYTELocal dwSerial1:DWORDLocal dwSerial2:DWORD INVOKE RtlZeroMemory,ADDR SerialBuffer,SIZEOF SerialBuffer INVOKE nrandom,-1 MOV dwSerial1,EAX MOV dwSerial2,EAX XOR dwSerial2,12345678h XOR dwSerial1,12345h INVOKE wsprintf,ADDR SerialBuffer,SADD("%.8X-%.8X"),dwSerial1,dwSerial2 INVOKE SetDlgItemText,hWnd,IDC_SERIAL,addr SerialBuffer RETKeygen ENDPDoc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now