|
Welcome to the GSM-Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Only registered members may post questions, contact other members or search our database of over 8 million posts. Registration is fast, simple and absolutely free so please - Click to REGISTER! If you have any problems with the registration process or your account login, please contact contact us . |
|
Register | FAQ | Donate | Forum Rules | Root any Device | ★iPhone Unlock★ | ★ Direct Codes ★ | Direct Unlock Source |
GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
| LinkBack | Thread Tools | Display Modes |
03-21-2005, 13:24 | #1 (permalink) |
No Life Poster Join Date: Nov 2001 Location: England Age: 41
Posts: 2,821
Member: 7653 Status: Offline Thanks Meter: 823 | unlock code algos... well i started to work on these unlock code generators last nite, they are in C but i onlt familiar with C++ anyway, i got DCT2 and DCT3 calcs working well, by add: Code: char imei[20]; char spcode[10]; char[gid1]; char *a; char *b; char *c; printf("Enter IMEI:\n"); if (fgets(imei,sizeof(imei),stdin)!=NULL); { if ((a=strchr(imei,'\n'))!=NULL) *a='\0'; } this is working well in dct2/dct3 and vitel algos.. but my problem comes with DCT4 algo.. i am getting some error when compile the source. i think its cos ASIC is an unsigned character, not just char. what is best solution for reading in that? i tried so far: Code: int asicin; asicin=getch(stdin); //not working :( ------------------------------ gets() //not working-also overwrite or reads from wrong memory locations :( also, i get some problems with sony cmd1 and siemens sources. they do not even compile with out me editing them.. for siemens, i get errors saying there is no ";" on like xxxx. so i went to line xxx, and there is already ";" there ok thx btw, if u need to get the algos, they are here |
03-22-2005, 01:17 | #2 (permalink) |
No Life Poster Join Date: Nov 2001 Location: England Age: 41
Posts: 2,821
Member: 7653 Status: Offline Thanks Meter: 823 | ok, i have been working on this for almost last 24 hours none stop (few hours sleep between days..).. i tihnk, there is big problem with this dct4_new source code and also dct4.c (old version) which are on indear site. only time it will compile and run, is when not edited. it will go away and calculate codes based on hardcoded imei,asic,sp code, box serial. these codes generated are wrong!!! i compare to nfree calc. completely different! the hardcoded box serial in source is: 034144 i extract box number from the result of unmodified source and its: 41440 see the difference? i tell u, there is biiiiiiiiiiiiiiiig problem with these sources.. anyone have working source for dct4 calc plz? |
03-22-2005, 15:11 | #4 (permalink) | |||
No Life Poster Join Date: Nov 2001 Location: England Age: 41
Posts: 2,821
Member: 7653 Status: Offline Thanks Meter: 823 | no, sorry man it is not working fine. did u try it lately? ok, tell me why.. your source calculates using: imei=111111111111119 spcode=22222 box serial=034144 (only change i made to source was to remove this leading zero) asic=2 i compile and run the source, which give these codes: Quote:
Quote:
so i use nfree calcs "box serial extract" function, on your sources generation and get this: Quote:
i have gone through php source (which works fine) and this c source, but dont see where the fault is.. let me know your thoughts. | |||
03-22-2005, 15:51 | #6 (permalink) |
No Life Poster Join Date: Nov 2001 Location: England Age: 41
Posts: 2,821
Member: 7653 Status: Offline Thanks Meter: 823 | hi, i am having pronlems with this part of your code: Code: void xor_de_8_bytes (unsigned char *cadena1, unsigned char *cadena2, unsigned char *destino) { int i; for(i=0; i<8; i++) destino[i]=cadena1[i] ^ cadena2[i]; } why is this? i am using asic=getche(stdin) to read asic type, so for sure it is just one character without null terminate :?? |
Bookmarks |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ned unlock code for sagem my W-8 | nokia4m | Phone Unlocking Codes & Maps | 2 | 05-03-2010 17:23 |
Need unlock CODE FOR 8900 CURVE | mbagen | BlackBerry (RIM) | 1 | 03-29-2010 12:16 |
DCT3 and DCT4 codes algo | GSM tools | GSM Programming & Reverse Engineering | 2 | 07-28-2004 17:24 |
I need algo for calculate WAP-unlock code for Sony Jx - series... | s.Mobi | GSM Programming & Reverse Engineering | 0 | 09-09-2002 23:39 |
|