View Full Version : C source - DCT3 and DCT4 algorithm!
indear
14-04-2004, 09:48 PM
:)
Port to your favourite OS/Language ;)
Cosmictej
15-04-2004, 02:22 AM
do you know if this works?
indear
15-04-2004, 02:28 AM
yes, I wrote it and works perfect
Cosmictej
15-04-2004, 02:31 AM
I have sent you a pm
u made it free. thats cool.
ppl will start selling calcs with ur hard work...
Gsmschwantz
15-04-2004, 03:28 PM
Very nice:)
Cosmictej
15-04-2004, 05:27 PM
thats what I said Crux, but he was like, at least eveyrone will have access to it :)
g3gg0
15-04-2004, 09:39 PM
looks as the "original" ones ;)
i have been testing that algos, and as a result i got this calc
dct3 lock1/2
dct4 asic2/5/7
i compared the codes with ultimate.
the algo is valid.
@ismar
GOOD WORK!
Edit: dctx version 0.1 removed (buggy)
indear
16-04-2004, 12:00 AM
Good calc :-P
Add a check ASIC parameter :)
yeldar
16-04-2004, 12:04 AM
I have also tested and must say that it is very good work!!
Bravo :)
v0.3 and final
fixed asic and box serial and made 33820 as default box serial
@ismar
its done now :)
nice work u done, once again
skynet
17-04-2004, 01:04 AM
i have to reinstall winxp to my laptop this night but tomorrow i'll start coding the JAVA versions! :)
spaceimpact33
17-04-2004, 06:07 AM
WoW thanks indear,
i think i might start building an unlocker app for pocket pc :D
Spaceimpact33
i have to reinstall winxp to my laptop this night but tomorrow i'll start coding the JAVA versions! :)
do it as quick as possible ;)
Cosmictej
17-04-2004, 02:32 PM
yes quicker the better
Gsmschwantz
17-04-2004, 11:01 PM
That is very good....
Waiting for that JAVA aplication:)
skynet
18-04-2004, 12:16 PM
DCT3 JAVA calc is almost done (it is v0.91), you can test it
http://www.alvilag.hu/skynet/mobil/DCT3.jad
suggestions please!
(PS please don't steal my credits, it was very hard work! if you want to develop a JAVA DCT3 calc, use the original algorithm and your brain!)
Cosmictej
18-04-2004, 04:06 PM
yep its brilliant
Gsmschwantz
19-04-2004, 03:51 PM
I have already put in my web, credits to you of course:))
Please make for dct4 also, but all in one jar file (dct3 and dct4)
Cosmictej
19-04-2004, 03:52 PM
and if you can add more differnt algos like
gd55
cl50
st55
sony cmd1
lgs
skynet
19-04-2004, 05:27 PM
and if you can add more differnt algos like
gd55
cl50
st55
sony cmd1
lgs
when i'm finished with the dct4calc (seems to be pretty hard to code) i'll create a calc called SkynetCalc that contain all the calcs (dct3, 4, LG, and the ones above)
Cosmictej
19-04-2004, 05:40 PM
i hav all d algos part from lg if you want them
skynet
19-04-2004, 06:03 PM
i hav all d algos part from lg if you want them
i have the LG algo (already made a JAVA LG calc) and maybe the others too in MADos source... but first DCT4.
Cosmictej
19-04-2004, 06:07 PM
Well If you can find the others I have the algo in c++
skynet
19-04-2004, 06:31 PM
Well If you can find the others I have the algo in c++
what algo do you have in c++?
i would be happy to see a dct4 algo in c++ that DOES NOT use pointers (in JAVA there are no pointers that's why i'm s.cking c.ock while creating the JAVA version)!
Cosmictej
19-04-2004, 06:38 PM
I only have the dct4 he gave i have
gd55
cl50
st55
sony cmd1
And as i dont know c++ i dont knw if they have pointers
skynet
19-04-2004, 09:58 PM
dct4 java calc is almost ready (algo is working correctly, only have to do the UI)
Cosmictej
19-04-2004, 10:29 PM
how long till we get to see it? cant wait
Would it be possible to make Lg java calculator compatible with nokia 9210?
I can install it, working 100%, but i cant switch phones. Its only calculate for b1200 (the first option).
Hali Skynet! :)
Megtudád ezt nekem nézni?
Gsmschwantz
20-04-2004, 12:55 AM
Keep the good work man, take your time
John-Smith
20-04-2004, 01:00 AM
Cant wait to see the Java DCT4 calc skynet, please keep us informed... Thanks!
skynet
20-04-2004, 01:05 AM
http://www.alvilag.hu/skynet/mobil/DCT4.jad
here is the DCT4 JAVA calc.
smog: dont speak hungarian here (but you can PM me in hungarian of course :) ) beceause moderators will say "bad boy" :)
again pls dont steal credits, this was even more complicated to code than DCT3 (i swore a lot as you can imagine :) )
John-Smith
20-04-2004, 01:25 AM
excellent work mate, thanks.
Link to JAR:
http://www.alvilag.hu/skynet/mobil/DCT4.jar
OK If I make some suggestions?
First of all my biggest problem is going to be remebering all the UK network codes, could you possibly do a drop menu with the 7 (or so) UK network codes in.
I also dont understand what the "boxserial" select buttons are for, would you mind explaining? thanks.
John-Smith
20-04-2004, 01:28 AM
OK, I understand the Boxserial bit now.. Thanks.
skynet
20-04-2004, 01:29 AM
excellent work mate, thanks.
Link to JAR:
http://www.alvilag.hu/skynet/mobil/DCT4.jar
OK If I make some suggestions?
First of all my biggest problem is going to be remebering all the UK network codes, could you possibly do a drop menu with the 7 (or so) UK network codes in.
I also dont understand what the "boxserial" select buttons are for, would you mind explaining? thanks.
boxserial: look at ultimate calculator and you'll see
maybe i'll add the network codes but if you dont mind ill put Hungary in the first place, then all other countries in alphabetical order (let me be a little "patriot" this time :) )
but all this after a while cause i need to sleep now :)
typiod
20-04-2004, 01:32 AM
great well done mate.
John-Smith
20-04-2004, 01:33 AM
Hehe, I suppose thats ok... sorry for assuming you were brittish =)
Again good work, works good for me, cant wait for updates...
typiod
20-04-2004, 01:35 AM
hungary why not you done it network codes aint much of a problem for me can always put them in notes so that i dont forget once again good work and THANK YOU.
skynet
20-04-2004, 01:36 AM
Hehe, I suppose thats ok... sorry for assuming you were brittish =)
Again good work, works good for me, cant wait for updates...
no prob, when i was in germany, a man had thought i had been american because of my pronounciation :) (grammar is a little bit harder :) )
ill make it display box serial names, not numbers so it'll be easier to choose...
PS. or man had thought i had had been american? (tenses are a bit complicated in english :) )
Gsmschwantz
20-04-2004, 01:38 AM
Already in my web, credits to you of course.
Now try to make all in one, that whill be great
djmoomin
20-04-2004, 01:25 PM
i have sent the iles to my 7650 and it goes to install and then says unable to install it is the jad file i uploaded is this right HELP MEEEEEEE !!
thanks
-AMO-
20-04-2004, 01:26 PM
Excellent work skynet! Thanks to indear for releasing the algos for the benefit of others also! :)
skynet
20-04-2004, 01:47 PM
i wont have internet connection till friday, ill try to make SkynetCalc but i wont reply PMs.
offcina
20-04-2004, 01:48 PM
thank you Skynet for the great work...
It's running perfectly in UIQ (P900 and P800 ) :D
Szasza
20-04-2004, 03:43 PM
http://www.alvilag.hu/skynet/mobil/DCT4.jad
here is the DCT4 JAVA calc.
smog: dont speak hungarian here (but you can PM me in hungarian of course :) ) beceause moderators will say "bad boy" :)
again pls dont steal credits, this was even more complicated to code than DCT3 (i swore a lot as you can imagine :) )
Hello!
what is your e-mail address??i live in hungary.i would like speak for you!
it's very important!!!!!!!!!!!!!!!
[email protected]
skynet
20-04-2004, 06:00 PM
DCT3 Calc v1.0 is online
It has built-in provider list (I had to miss out some providers and 8-digit network codes are not supported).
It can be downloaded from
http://www.alvilag.hu/skynet/mobil/DCT3.jad
and also with DCT4
typiod
20-04-2004, 07:34 PM
i have sent the iles to my 7650 and it goes to install and then says unable to install it is the jad file i uploaded is this right HELP MEEEEEEE !!
thanks
you need the .jar file as well.
Szasza
20-04-2004, 07:58 PM
DCT3 Calc v1.0 is online
It has built-in provider list (I had to miss out some providers and 8-digit network codes are not supported).
It can be downloaded from
http://www.alvilag.hu/skynet/mobil/DCT3.jad
and also with DCT4
thx!re e-mail ment
again, nice work. looks gr8
Gsmschwantz
20-04-2004, 11:03 PM
This new version it's very slow in the provider list:(
Try to make a faster version on the provider list
indear
20-04-2004, 11:16 PM
good work skynet!! ;)
works fine in 7250i :)
Cosmictej
20-04-2004, 11:27 PM
just a quick question, can anyone make a symbian version, that would be brilliant alot faster, and could be made more user friendily
Gsmschwantz
21-04-2004, 12:10 AM
Yes that is much bether, but for now i just say thanks Skynet:)
Szasza
21-04-2004, 04:00 PM
DCT3 Calc v1.0 is online
It has built-in provider list (I had to miss out some providers and 8-digit network codes are not supported).
It can be downloaded from
http://www.alvilag.hu/skynet/mobil/DCT3.jad
and also with DCT4
Do you get my e-mail?
djmoomin
21-04-2004, 05:34 PM
you need the .jar file as well.
thanks how do i convert, tried jad wizard but every time i drag into box says not valid jad file ??????????
can anyone helpme please
shelltox
21-04-2004, 06:37 PM
with .jar you creat .jad
dowload (.jar+.jad) pack in .zip from Gsmschwantz site
mervynn
21-04-2004, 08:53 PM
Just an idea but would it be possible to have an editable provider list as I guess most people only need a few and it would avoid having to scroll through so many.
Merv
Gsmschwantz
22-04-2004, 12:03 AM
This version calc DCT3, DCT4 and LG in your phone:)
http://www.gsmschwantz.com
http://www.gsmschwantz.com/new/Yeti.jpg http://www.gsmschwantz.com/new/Yeti..jpg http://www.gsmschwantz.com/new/Yeti...jpg
Cosmictej
22-04-2004, 12:05 AM
looks like symbian is it?
Gsmschwantz
22-04-2004, 12:13 AM
Nop, java, but in working in 6600.
In phones that have not symbiam this soft work in one aplication, in phones symbiam the soft split the aplication in 3.
This have LG, DCT3 and DCT4 soon siemens etc...
Its java too. ( it wont work on my nokia 9210 ) :cry:
Yotamz
22-04-2004, 12:05 PM
@Gsmschwantz
could you please post it's size? i want to download it to my 6610 but not sure how much space i have to make.
thanx for the program :-)
@skynet
great work ;)
i'll check it when i have space..
and....is there a file of both dct3 and 4? or i have to download both files?
skynet
22-04-2004, 01:55 PM
SkynetCalc is ready, but I have to "obfuscate" it. Somebody could help me, cause it does not work, after obfuscating, I can decompile everything, no change...
mac_es
22-04-2004, 02:10 PM
You will allways be able to decompile a java file! What are you doing obfuscating is that the code you obtain it is haderd to read by a programmer. It will change the varible names, the function names (the ones changeable)...
Szasza
22-04-2004, 02:18 PM
SkynetCalc is ready, but I have to "obfuscate" it. Somebody could help me, cause it does not work, after obfuscating, I can decompile everything, no change...
hello! e-mail send to you
Szasza
22-04-2004, 10:28 PM
SkynetCalc is ready, but I have to "obfuscate" it. Somebody could help me, cause it does not work, after obfuscating, I can decompile everything, no change...
hello! re e-mail send!
unlokia
23-04-2004, 03:02 AM
Hey all you **AMAZING** coders out there - I just wanted to say how much we **ALL** appreciate the many, many hours of blood, sweat and tears you must have gone through to get the DCT3/4 algorithm source code/console executable to work!!.
I have been wanting to make a CUSTOMISED VB6 shell for this exe for like **AGES** and it has now, finally become a reality.
You see the thing is - I am thinking of doing Nokia repairs/unlocks for a living very very soon, and as such I would be wanting a calc with LARGE FONTS and pictures and a company logo - well thanks to **ALL** of you I will **FINALLY** be able to get this up and running!!!.
If someone would be kind enough to compile a list of people to whom credit should be given for the "ISMAR v0.3" executable and all connected coding, I will **GLADLY** include this, scrolling across my shell.
Thanks many many times over, again, to all of you. Maths is not going to make my fortune yet, but I am **SURE** if you can do things like THIS, then you deserve to be very VERY wealthy for all you effort - I **KNOW** from personal experience what a pain it all can be!!!
Many thanks to you all!!!
Regards, Matt (UNLOKIA)
Cosmictej
23-04-2004, 09:08 AM
Well that calc was also made by Crux, so include credits too him, and if you need any help with your calc let me know. I also have a calc in vb6, which works perfectly
well i made the standalone but that would be impossible without ismar releasing the algos :)
@ismar
great work :)
Cosmictej
23-04-2004, 05:51 PM
Yep thats true thanks Indear, great work :)
unlokia
23-04-2004, 06:54 PM
Hi!! - ok will update source soon!!.
I have posted my demo DCT3, UK **ONLY** calc on the DCT3 UNLOCKING page - you can download it there.
Was very tired last night as I started to code, and my head got in a jam (nothing unusual for me lol!!), so numb-nutz here (me :) ) only got round to coding the DCT3 portion, albeit a rather basic looking effort - but it works extremely well if you don't mind me saying so!!!.
If anyone can share VB6 source for **THEIR** shell with me, perhaps we can compare notes.
DCT3/4 INDENTITY PARADE : ) @ http://nokiaflashing.netfirms.com
Regards, Matt (UNLOKIA)
Cosmictej
23-04-2004, 07:34 PM
not a bad small little calc :-)
indear
24-04-2004, 03:26 AM
Update for dct3.c (calc LOCK3 & LOCK4)
calcular_dct3 ( "111111111111119", "1234", destino); // Code3 use GID2
printf("#pw+%s+3#\n", destino); // Codigo3 usar el GID2
calcular_dct3 ( "111111111111119", "22222ABCDABCDAB", destino); // Code4 concatenate MCC+MNC+MSIN (=<15 digits)
printf("#pw+%s+4#\n", destino); // Codigo4 concatenar MCC+MNC+MSIN (=<15 dígitos)
:-)
Edit: MCC+MNC+MSIN = IMSI ;)
-----------------------------------
You will allways be able to decompile a java file! What are you doing obfuscating is that the code you obtain it is haderd to read by a programmer. It will change the varible names, the function names (the ones changeable)...
Yes... :roll:
Cosmictej
24-04-2004, 10:58 AM
Is thiere a need for lock 3 and 4
Update for dct3.c (calc LOCK3 & LOCK4)
calcular_dct3 ( "111111111111119", "1234", destino); // Code3 use GID2
printf("#pw+%s+3#\n", destino); // Codigo3 usar el GID2
calcular_dct3 ( "111111111111119", "22222ABCDABCDAB", destino); // Code4 concatenate MCC+MNC+MSIN (=<15 digits)
printf("#pw+%s+4#\n", destino); // Codigo4 concatenar MCC+MNC+MSIN (=<15 dígitos)
:-)
-----------------------------------
Yes... :roll:
cool. and how can i find the MSIN for the MCC+MNC+MSIN ?
thanks
indear
24-04-2004, 01:04 PM
MCC+MNC+MSIN = IMSI
IMSI is a number kept in the card sim like the KI
for extract the IMSI you need SimScan, Cardinal or XSim (SirGraham
rules :D) and phoenix programmer (I use that)
more info in SIM Cloning forum
oh. i know .
i forgot that.
i use sim-emu.
i am used to get ki and imsi.
thanks mate :)
skynet
24-04-2004, 02:48 PM
schwantz:
would you please remove my calc from your site to disallow all idiots to download it? i dont mean people here but children who just want to make money. i want to make a code-download system, first the user has to request for code by email, then he can download the files by WAP.
of course i cant ask you to remove yeti calc :)
---------------------------------------
link to SkynetCalc:
(download via WAP or figure out the path of the JAR file :) )
free.srv.hu/d/c/dctwap/sc
request for code at
[email protected]
(i can't read mail till monday (but i get all mail) due to server maintenance, sorry, not my fault)
Hi!! - ok will update source soon!!.
I have posted my demo DCT3, UK **ONLY** calc on the DCT3 UNLOCKING page - you can download it there.
Was very tired last night as I started to code, and my head got in a jam (nothing unusual for me lol!!), so numb-nutz here (me :) ) only got round to coding the DCT3 portion, albeit a rather basic looking effort - but it works extremely well if you don't mind me saying so!!!.
If anyone can share VB6 source for **THEIR** shell with me, perhaps we can compare notes.
DCT3/4 INDENTITY PARADE : ) @ http://nokiaflashing.netfirms.com
Regards, Matt (UNLOKIA)
sorry unlockia, my mistake on the calc.
CREDITZ GO TO INDEAR (NOT ISMAR)
i was drunk. sorry for that. lol
Gsmschwantz
25-04-2004, 11:24 PM
Skynet i have remove your soft.
But sorry i cant delet the one from yeti
skynet
26-04-2004, 12:22 AM
Skynet i have remove your soft.
But sorry i cant delet the one from yeti
i understand, no problem!
thanx!!!
Cosmictej
26-04-2004, 01:06 AM
guys you can use vb 2 program symbian programs, reckon I could program a calc, with dlls though (the c++ algo)
Kontact
26-04-2004, 05:21 PM
Hi,
maybe it would be nice also to add vitel calc also... maybe someone would disasm and release the c algo for skynet n YeTi to add... :)
regards
wait 1 or 2 days and u will have it.
Cosmictej
26-04-2004, 05:53 PM
yes hopefully soom :rolleyes:
skynet
26-04-2004, 06:10 PM
Hi,
maybe it would be nice also to add vitel calc also... maybe someone would disasm and release the c algo for skynet n YeTi to add... :)
regards
what's a vitel?
Cosmictej
26-04-2004, 06:45 PM
there not sold in the uk, I have never ever seen one in my life, but they exisit somewhere lol
skynet
26-04-2004, 06:47 PM
there not sold in the uk, I have never ever seen one in my life, but they exisit somewhere lol
tej, come to MSN, maybe you'll get something interesting from me :)
Cosmictej
26-04-2004, 09:29 PM
hmm you were right v interesting m8 thanks
indear
27-04-2004, 09:35 PM
wait 1 or 2 days and u will have it.
:p
for TSM 3/4/5
not 5m :(
"Son 10.000" :lol:
Cosmictej
27-04-2004, 09:46 PM
indear thnk u once again
THANK YOU INDEAR!
great work. you really done it again.
@skynet
its your turn ;)
Gsmschwantz
28-04-2004, 01:20 AM
Or maybe YETI dont you think???
Cosmictej
28-04-2004, 01:22 AM
Or maybe YETI dont you think???
Yes Yeti too, but im 100%behind Skynet, I prefear his work :smile:
typiod
28-04-2004, 01:27 AM
me too easier to install but hey yeti keep up the good work.
Or maybe YETI dont you think???
of course yeti too. sorry. i didnt mean to be rude.
portuguese work rulez :)
mac_es
28-04-2004, 10:55 AM
FYI,
Algo for Alcatel Hx1, quite old phones but...
public static final String strProv[]={"Default","SFR_FR","ITINERIS_FR(OLA)","MOVISTAR_ES","AIRTEL_ES","TMN_PT"};
public static final int bases[][]={{16,64,32,16},{18,0,0,4},{16,32,0,4},{16,224,0,10},{16,32,0,10},{16,192,32,20}};
public static final String userCode="25228353";
private static String charAHex(int n){
String hex="";
switch(n){
case 0:hex="0";break;
case 1:hex="1";break;
case 2:hex="2";break;
case 3:hex="3";break;
case 4:hex="4";break;
case 5:hex="5";break;
case 6:hex="6";break;
case 7:hex="7";break;
case 8:hex="8";break;
case 9:hex="9";break;
case 10:hex="A";break;
case 11:hex="B";break;
case 12:hex="C";break;
case 13:hex="D";break;
case 14:hex="E";break;
case 15:hex="F";break;
}
return hex;
}
private static String numAHex(int num){
int a,b;
b= num %16;
a = (num-b)/16;
return charAHex(a)+charAHex(b);
}
public static String calcular_Hx1(String imei, int[] base) {
String code="";
int suma[]={0,0,0,0};
int numero = Integer.parseInt(imei.substring(10,14));
int arriba, abajo;
abajo = numero & 255;
arriba = numero >> 8;
suma[0] = base[0] + (128*(arriba%2) + ((arriba >> 4) % 2)*8);
suma[1] = base[1] + ((arriba & 15) >>1);
suma[2] = base[2] + (((abajo%128) - ((abajo%128)%4)) /4);
suma[3] = base[3] + ((4 * (abajo % 4) * 16) + (32* (abajo-(abajo%128))/128 ));
for (int i=0;i<4;i++) code+=numAHex(suma[i]);
return code;
}
And if you want to extract the serial from a DCT4 code
public static String keyCode(String code){
int ai4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0};
int ai5[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int ai6[] = {0, 0, 0, 0, 0};
String s="";
int k=1;
for(int i=0;i<code.length();i++) ai5[i]= (int) code.charAt(i);
for (int i=0;i<ai5.length;i++) ai5[i]=ai5[i]-48;
for(int i = 1; i <= (ai5.length-2); i+=2) ai4[k++] = (ai5[i] << 4)+ai5[i+1] ;
ai4[0] = ai5[0] - 48;
ai4[8] = ai4[0]&0xF;
ai4[9] = (ai4[1]-(ai4[1] &0xF))>>4;
ai4[10] = ai4[1] &0xF;
ai4[11] = (ai4[2]-(ai4[2] &0xF))>>4;
ai4[12] = ai4[2] &0xF;
for(int i=0;i<5;i++) ai6[i] = (ai4[3+i]&0xf0)>>4;
for(int i=0;i<5;i++) ai6[i] = ai6[i] -ai4[i+8];
for(int i=0;i<5;i++) if (ai6[i]<0) ai6[i]= 10+ai6[i];
for (int i=0;i<ai6.length;i++) s+=ai6[i];
return s;
}
cool. there is somewhere the algo for sagem too. i ant find it now :(
when i get it il post it :)
ok. found it.
you can download sagem algo here:
http://www.geocities.com/ths_9/
:)
mac_es
28-04-2004, 01:26 PM
Java version of the algo released by Crux to calc security code of a DCT2. The link to the program I posted above (sid.exe) is the old version. This algo calcs the new version.
public static String getSecurityCode(String imei) {
String s="";;
int data_1[] =
{ 0x17,0x2D,0x25,0x29,0x17,0x2D,0x11,0x20,0x12,0x27,0x0E,0x23,0x1B,0x0B,0x27 };
int data_2[] = { 2,6,9,4,9 };
int data_3[][] = {
{ 0x17,0x2C,0x43,0x0E,0x22,0x13,0x43,0x4D,0x59,0x16,0x22,0x4E,0x37,0x58,0x5C },
{ 0x4B,0x2D,0x5A,0x12,0x24,0x43,0x35,0x4A,0x47,0x36,0x13,0x17,0x53,0x24,0x13 },
{ 0x22,0x47,0x1D,0x4E,0x62,0x22,0x41,0x17,0x26,0x30,0x2C,0x57,0x38,0x36,0x12 },
{ 0x42,0x2E,0x18,0x2D,0x4E,0x20,0x0E,0x23,0x4A,0x60,0x47,0x25,0x30,0x39,0x3F },
{ 0x21,0x24,0x19,0x13,0x1A,0x25,0x1F,0x36,0x4F,0x20,0x2E,0x43,0x36,0x21,0x15 }
};
int data_4[] = { 1, 3, 5, 2, 7 };
int sec_code[]={0,0,0,0,0};
int k;
int local_1[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
for(int i = 0; i < 15; i++) {
local_1[i] = (int) imei.charAt(i) - data_1[i];
}
for(int i = 0; i < 5; i++) {
k = 0;
for(int j = 0; j < 15; j++) {
k += (local_1[j] ^ local_1[(j + data_2[i]) % 15]) * data_3[i][j];
}
k = (k + data_4[i]) % 10;
sec_code[i] = k ;
s+=""+k;
}
return s;
}
mac_es
28-04-2004, 02:30 PM
released by crux??????
That was written in the original file:
/*
* security_code.c
* Thnks to crux ;)
*/
:-?
I can't remember the link, it was taking dust in my HD. Now, seeing the releases of the algos I decided to try to code a MIDLET for my phone, and that is the story... :-o
ok. forget that then. when u remember where u got it, tell me :)
indear
28-04-2004, 04:54 PM
mac_es you can post the C sources? ;)
mac_es
28-04-2004, 04:58 PM
Sorry, I have no more algos
indear
28-04-2004, 05:18 PM
security code C source code (DCT2)
http://www.google.es/search?q=cache:0zej_sbXS68J:www.chscene.ch/ccc/ds/62/013_nokia.html
unlokia
28-04-2004, 05:20 PM
FYI,
Algo for Alcatel Hx1, quite old phones but...
public static final String strProv[]={"Default","SFR_FR","ITINERIS_FR(OLA)","MOVISTAR_ES","AIRTEL_ES","TMN_PT"};
public static final int bases[][]={{16,64,32,16},{18,0,0,4},{16,32,0,4},{16,224,0,10},{16,32,0,10},{16,192,32,20}};
public static final String userCode="25228353";
private static String charAHex(int n){
String hex="";
switch(n){
case 0:hex="0";break;
case 1:hex="1";break;
case 2:hex="2";break;
case 3:hex="3";break;
case 4:hex="4";break;
case 5:hex="5";break;
case 6:hex="6";break;
case 7:hex="7";break;
case 8:hex="8";break;
case 9:hex="9";break;
case 10:hex="A";break;
case 11:hex="B";break;
case 12:hex="C";break;
case 13:hex="D";break;
case 14:hex="E";break;
case 15:hex="F";break;
}
return hex;
}
private static String numAHex(int num){
int a,b;
b= num %16;
a = (num-b)/16;
return charAHex(a)+charAHex(b);
}
public static String calcular_Hx1(String imei, int[] base) {
String code="";
int suma[]={0,0,0,0};
int numero = Integer.parseInt(imei.substring(10,14));
int arriba, abajo;
abajo = numero & 255;
arriba = numero >> 8;
suma[0] = base[0] + (128*(arriba%2) + ((arriba >> 4) % 2)*8);
suma[1] = base[1] + ((arriba & 15) >>1);
suma[2] = base[2] + (((abajo%128) - ((abajo%128)%4)) /4);
suma[3] = base[3] + ((4 * (abajo % 4) * 16) + (32* (abajo-(abajo%128))/128 ));
for (int i=0;i<4;i++) code+=numAHex(suma[i]);
return code;
}
And if you want to extract the serial from a DCT4 code
public static String keyCode(String code){
int ai4[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0};
int ai5[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int ai6[] = {0, 0, 0, 0, 0};
String s="";
int k=1;
for(int i=0;i<code.length();i++) ai5[i]= (int) code.charAt(i);
for (int i=0;i<ai5.length;i++) ai5[i]=ai5[i]-48;
for(int i = 1; i <= (ai5.length-2); i+=2) ai4[k++] = (ai5[i] << 4)+ai5[i+1] ;
ai4[0] = ai5[0] - 48;
ai4[8] = ai4[0]&0xF;
ai4[9] = (ai4[1]-(ai4[1] &0xF))>>4;
ai4[10] = ai4[1] &0xF;
ai4[11] = (ai4[2]-(ai4[2] &0xF))>>4;
ai4[12] = ai4[2] &0xF;
for(int i=0;i<5;i++) ai6[i] = (ai4[3+i]&0xf0)>>4;
for(int i=0;i<5;i++) ai6[i] = ai6[i] -ai4[i+8];
for(int i=0;i<5;i++) if (ai6[i]<0) ai6[i]= 10+ai6[i];
for (int i=0;i<ai6.length;i++) s+=ai6[i];
return s;
}
Call me thick, but I am relatively new to programming in C++ - **IS** this in C++ language, and if not, then what language is it in??.
mac_es
28-04-2004, 05:51 PM
It is JAVA, it is quite easy to transform it to C++.
@indear
did u make this java algo for dct2 seccode?
please note that this is not the unlocking algo.
to unlock it, rip the algo from the dos calc i sent you.
nobody needs this anymore, but its nice to have it done so we have all nokia calculators in one :)
Java version of the algo released by Crux to calc security code of a DCT2. The link to the program I posted above (sid.exe) is the old version. This algo calcs the new version.
public static String getSecurityCode(String imei) {
String s="";;
int data_1[] =
{ 0x17,0x2D,0x25,0x29,0x17,0x2D,0x11,0x20,0x12,0x27,0x0E,0x23,0x1B,0x0B,0x27 };
int data_2[] = { 2,6,9,4,9 };
int data_3[][] = {
{ 0x17,0x2C,0x43,0x0E,0x22,0x13,0x43,0x4D,0x59,0x16,0x22,0x4E,0x37,0x58,0x5C },
{ 0x4B,0x2D,0x5A,0x12,0x24,0x43,0x35,0x4A,0x47,0x36,0x13,0x17,0x53,0x24,0x13 },
{ 0x22,0x47,0x1D,0x4E,0x62,0x22,0x41,0x17,0x26,0x30,0x2C,0x57,0x38,0x36,0x12 },
{ 0x42,0x2E,0x18,0x2D,0x4E,0x20,0x0E,0x23,0x4A,0x60,0x47,0x25,0x30,0x39,0x3F },
{ 0x21,0x24,0x19,0x13,0x1A,0x25,0x1F,0x36,0x4F,0x20,0x2E,0x43,0x36,0x21,0x15 }
};
int data_4[] = { 1, 3, 5, 2, 7 };
int sec_code[]={0,0,0,0,0};
int k;
int local_1[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
for(int i = 0; i < 15; i++) {
local_1[i] = (int) imei.charAt(i) - data_1[i];
}
for(int i = 0; i < 5; i++) {
k = 0;
for(int j = 0; j < 15; j++) {
k += (local_1[j] ^ local_1[(j + data_2[i]) % 15]) * data_3[i][j];
}
k = (k + data_4[i]) % 10;
sec_code[i] = k ;
s+=""+k;
}
return s;
}
this java calculator for alcatel was tested?
did you compare codes with any other calc?
mac_es
29-04-2004, 01:25 AM
@crux
I translated the C code to JAVA for the DCT2 security code.
The alcatel calc is based in this one: http://www.gsm54.net/soft/index.html
I reverted the algo from the software. I unlocked one alcatel years ago.
mac_es: i saw your java code and the codes generated are different from the c version with is the same as sid.
i make a new one and added to my calc and puts thanks to you to release the code.
mac_es
29-04-2004, 11:34 AM
mac_es: i saw your java code and the codes generated are different from the c version with is the same as sid.
Hi,
There was a new version of "sid.exe", called "imeinokia.exe". You can download it from http://www.vtc.ru/~tolik/unsorted/nokia/imeinok.exe.
It is supposed that the codes from the new version work in more DCT2 phones.
I make a new one and added to my calc and puts thanks to you to release the code.
OK!
tommek1
29-04-2004, 03:55 PM
How to enter the unlock Code at Vitel phones ??
mac_es
29-04-2004, 05:30 PM
Fw things, FYI
1) In the DCT3 and DCT4. If you change the part which translates the provider code to hex you will be able to calc the 4 locks and calc code 1 with provider codes that includes letters. In Spain, some DCT3 are locked to 2140B provider, for example. For DCT4, you will be able to calc with extended provider codes, for example FIDO Canada.
2) @Skynet: Your calc for Sony CMD_C1 only tooks [6-8] from IMEI, it shouldn't be the [8-14]?
3) According to other calcs, the vitel IMEI is 17 digits. You have to calc the codes with 17 digit IMEI (*#06#), the extended IMEI is like 12345678901234XX7. It is necesary to change the algo part which copy the IMEI to the array.
For Vitel: *#9917# -> Shows contract or prepaid. Then #9917*CODE#
4) It should be good to add the check for the IMEI validity. (The last number is a checksum). Java code, based in the docs posted by y0ke.
public static boolean checkIMEI(String imei){
int flags[][]={{0,8,6,4,2,9,7,5,3,1},{0,9,8,7,6,5,4,3,2,1}};
int sum=0;
boolean resultado=false;
if (imei!=null && imei.length()==15){
for (int i = 0; i < 14; i++) sum += flags[ (i + 1) % 2][ (int) imei.charAt(i) - 48];
sum = sum % 10;
if (sum == ((int) imei.charAt(14) - 48)) resultado=true;
}
return resultado;
}
5) Here is a calc for some MAXON mobiles. http://www.unlockeasy.com/modules.php?name=Downloads&d_op=getit&lid=322
@yeti: I can't donwload the 1.7 version. The zip is corrupted.
cu
@mac_es: try again, it works on schwantz page
mac_es
29-04-2004, 05:44 PM
Now works, thnks
Cosmictej
29-04-2004, 05:55 PM
Fw things, FYI
5) Here is a calc for some MAXON mobiles. http://www.unlockeasy.com/modules.php?name=Downloads&d_op=getit&lid=322
Soon the Maxon algo will be released :smile:
skynet already knows sony cmdc1 calculation is wrong
that maxon calc is impossible to reverse, since it is a database with all imei/codes saved.
but another calc will be reversed for maxon. :)
Cosmictej
29-04-2004, 06:05 PM
Once Maxon is out all is left is Aeg for the Siemens clip to come to no use
mac_es
29-04-2004, 07:07 PM
skynet already knows sony cmdc1 calculation is wrong
Ok, the limits which I wrote are correct?
that maxon calc is impossible to reverse, since it is a database with all imei/codes saved.
:-? :evil:
but another calc will be reversed for maxon.
:D That's great!
Once Maxon is out all is left is Aeg for the Siemens clip to come to no use
AEG and Vitel TSM 5M
Cosmictej
30-04-2004, 11:43 PM
can someone make a java app that can read mmc codes?
asgaardro
01-05-2004, 03:05 AM
That is very good....
Waiting for that JAVA aplication:)
but make this appz free remove the fucking password
waht is the pwl??????
indear
01-05-2004, 03:32 AM
:)
read the notes that it includes in the code :-P
if somebody can prove all codes specially the 4 the unique that varies of the original source code to the splnokia.exe...
mac_es
03-05-2004, 09:48 AM
great! Thank you very much :)
Cosmictej
03-05-2004, 11:22 AM
yep thanks Indear you just keep released algos, keep them comming mate :)
skynet
03-05-2004, 05:25 PM
i see skynetcalc has to be updated :)
ill do it maybe in a week or two, because now i have to study for my exams...
Cosmictej
03-05-2004, 05:27 PM
good luck for your exam and also cnt w8 for newer version :)
mac_es
03-05-2004, 06:14 PM
Hi,
I have reading the sagem source code and it seems that you will need to read some info from the phone. So you can't calc the code without a cable... :sad:
BTW, Seeing that Skynet will be busy with exams, if somebody helps me obfuscating the code I will release my midlet. It contains all the algos posted (DCT2,DCT3,DCT4, VITEL, ALCALTEL SOME SAMSUNGS, LG,GD50/55, SIEMENS CL50/St55, CMD-C1), plus you can personalize a database of serials and network codes. It is in Spanish, if you see it usefull I will translate it into english. But for the moment, to try it you don't need to speak spanish.
ALL the credits go to Indear, Crux, Skynet and Yeti. I only put all of them together.
cu
Cosmictej
03-05-2004, 06:17 PM
mac es, yea make it in english I would like to see, also can you please post the sagem source thanks
Cosmictej
03-05-2004, 06:24 PM
and for all you people who want to see my calc here it is, tell me what you think, the link is http://nokiafree.org/forums/showthread.php?goto=newpost&t=61851
mac_es
03-05-2004, 07:10 PM
Hi,
I will translate it to english, but how can I obfuscate it? It has the implementations of skynet and Yeti. Both of them obfuscate their code, so I will not release a code without obfuscating it.
indear
03-05-2004, 08:24 PM
I do not understand that interest of all to ofuscate its code :-?
skynet
03-05-2004, 09:53 PM
Hi,
I will translate it to english, but how can I obfuscate it? It has the implementations of skynet and Yeti. Both of them obfuscate their code, so I will not release a code without obfuscating it.
i did not obfuscate it until Yeti came up with his calc based on mine (of course he added his thoughts too, I dont dispute!) then he helped to obfuscate my calc also (thanx for that).
but if you look at DOS/win calcs, they are compressed EXE files also.
mac_es
04-05-2004, 09:50 AM
Hi,
I begin with the code of my midlet for hobby, I wanted to learn how to code a MIDLET. But I was too lazy to start from zero, when there were calcs already over the net, so I decompile them and get the calcs from them. Others are my own. Of course, I mention them in the midlet.
They (Skynet and Yeti) obfuscate the code to avoid *****s... so If I release their code without obfuscating it I will do something that they don't want to happen. So I will not do it.
My midlet wasn't suppoused to be released to public, it was coded for learning (and for my mobile :D , of course ). Because there were two calcs already. I saw that Skynet will be busy so I ask if someone wants my midlet, but I see that Yeti will release his/her calc, so there is no need for my midlet. 8-)
Here, in the forum, is all the info for doing all the calcs. And I posted the improvements I think that are relevant (permit extended operator codes in DCT4, operator codes with letters in DCT3, and code3 and code4 for DCT3. and Alcatel Hx1 algo).
cu
mac_es
04-05-2004, 10:12 AM
mac es, yea make it in english I would like to see, also can you please post the sagem source thanks
The sagem code, it posted by Crux in the third page of this thread. But looking into the code you need to fill it with the Encrypted phone ID, which is shown sending an AT command to the phone and also yoy will need a part from the ROM that is shown with another AT command. So no way of making a calc
siemensfan
05-05-2004, 04:52 PM
Hi all i'm new here :)
I downloaded the dct3 and dct4 algos an copiled them but it's seems no matter what i do i get the same unlock codes. Plz someone help me
As i'm not that good at C i migt be using the wrong syntax -
Thx for you time
mac_es
05-05-2004, 05:20 PM
You must modify the main function to pass the args you want
Cosmictej
05-05-2004, 06:01 PM
yes it has a preset imei and mmc u have to make them variables, with the info from your text box :)
indear
08-05-2004, 05:40 PM
yes another calc ;)
Include:
* Nokia DCT4 (supports network code of 8 digits)
* Nokia DCT3 (includes unlock code 3/4)
* Nokia DCT2, DCT2 Security Code
* Vitel TSM 3/4/5
* Siemens ST55/CL50
* Panasonic GD55
* Sony CMD-C1
* LG 510/520 B1200/M1200 7010/7020 G510 1300/B1300 510w W3000
* Alcatel Hx1
* Extract DCT4 Box Serial
Edit: all info in http://nokiafree.org/forums/showthread.php?p=307932
;)
Cosmictej
08-05-2004, 05:42 PM
wow it does everything :rolleyes:
nice work mate. thanks ;)
yeldar
08-05-2004, 06:34 PM
Yes, I agree with crux - your work & time is very appreciated
WBR
yeldar
indear
08-05-2004, 07:25 PM
Thanks ;)
KodeX
08-05-2004, 07:43 PM
It's a work of art indeed. Big thx indear... :)
tommek1
09-05-2004, 12:25 PM
Indear thank You!!
Have someone a source code of Alcatel & LG calc in C++ ??
you have it in java. why not converting urself? ;)
it isnt that difficult :)
tommek1
09-05-2004, 06:58 PM
Oh, I haven't seen earlier source in JAVA for Alcatel and LG. Now I have it (thanks to indear). I convert it to C++ and send it here.
Thx
Cosmictej
09-05-2004, 07:09 PM
alcatel source already been posted here :) look in dis thread
Cosmictej
10-05-2004, 08:10 AM
the code is very hard to convert to vb, so no one has it, I dont think
Cosmictej
13-05-2004, 10:05 AM
Mac_Es Do you know if the Alcatel Hx1 Algo def works?
kraze1984
14-05-2004, 06:48 PM
Maybe someone could incorporate those unlockers in MADos?
I'll try to do dct2 security... using source from the german site
JuaniyoKemao
14-05-2004, 11:08 PM
hi,
I've reading this forum since the beginning. Indear and yeti i use your calcs in java everyday. Cosmictej, your unlock calc is nice. But i have some questions. Does anyone tell me the alcatel HD1/HE1, BE1/BE3, BE4/BE5/BFx models?? I've been searchin on the web without any help. Please help me
BE1: Alcatel OT Max, Alcatel OT Club, Alcatel OT Easy, Alcatel OT Gum
BE3: Alcatel OT View, Alcatel OT View W@P
BE4: Alcatel OT 30x
BE5: Alcatel OT 50x, Alcatel OT 70x
BF3: Alcatel OT311/OT310
BF4: Alcatel OT511/OT512
BG3: Alcatel OT525
BG3: Alcatel OT526
BG3: Alcatel OT331
BG3: Alcatel OT332
BF5: Alcatel OT715
BH4: Alcatel OT535
BH4: Alcatel OT735
XG1: Alcatel OT320
Enjoy!
HD / HE Series:
OT Easy, OT Gum, OT Max
BE Series:
Easy DB, View DB, 301, 302, 303, 304, 500, 501, 700, 7001
BF Series:
BF3 -> 310, 311
BF4 -> 511, 512
BF5 -> 715
BG Series:
BG3 -> 525, 526, 331, 332
BH Series:
BH4 -> 535, 735, 735i
XG Series:
XG1 -> 320
XG3 -> 531
all u need is to make one simple click here
http://nokiafree.org/forums/f6/s
in this page you have most of the alcatel models ;)
JuaniyoKemao
15-05-2004, 07:40 PM
SmOg and Crux2002, thank u very much :)
JuaniyoKemao
15-05-2004, 10:13 PM
Hi,
Crux2002, i've just downloaded your unlock codes calc: That's great, that's the best one! Good work!! :-o
I made some different unlock calcs in vb6 to some mobile shops in my city, but the Crux calculator is better than any of mine.
:)
Whiterat
27-05-2004, 08:20 PM
Hi,
Is there anyway to get the code to compile under Linux GCC?
I have tried but just get errors,
Can you port it accross in anyway?
Cheers
Gaz
Please post any advice or even any linux dvt4 calc binaries :-P
indear
27-05-2004, 10:45 PM
@Whiterat
in dct3 remove backslashes of char tabla1[] and char tabla2[]
in dct4 remove backslashes of char tabla_2[], char tabla_3[] and char tabla_4[]
conclusion: remove backslashes from variables definition ;)
Cosmictej
27-05-2004, 11:38 PM
god hes knowes everything :)
Is it possible to add an asic type 6 feature for nokia 6230?
Cosmictej
28-05-2004, 01:52 AM
once there is a calc Indear should be able to rip the algo out, but until then No, unless someone somehow works out the algo. Likelyhood it will be Unqiue if anyone
dluik
29-08-2004, 11:46 PM
@Crux
any chance of an update on your dctx with asic 6 support. I would like to have a stabb at creating my own calc.
Hope you can help
Regards
Dan
www.unlockme.co.uk
sure, i will do it. no problem.
send me a pm later reminding me to do it. ;)
indear
04-09-2004, 05:05 PM
One more.. now maxon :-)
where have i seen this :rolleyes:
Astr0Boy
10-09-2004, 07:15 AM
I have Java, can I run it?
If so, how?
Also, I can't find much info on my old phone.
It is a Nokia 2190 type NHB-2ND.
Every reference I find says NHB-3ND.
I have 2 of these phones and they both are 2ND.
I had Sprint Spectrum (USA) about 10 years ago.
Any help, thanks!
Astro
dluik
28-09-2004, 09:18 PM
@Crux
Any update on your dctx with asic 6 support yet? I would certainly be most grateful.
Many Thanks
Dan
GL1zdA
10-01-2005, 12:29 AM
In dct4 what are these: tabla_1, tabla_2, tabla_3, tabla_4?? I hate this so called "magic numbers" :)
ninjana
11-01-2005, 02:03 AM
In dct4 what are these: tabla_1, tabla_2, tabla_3, tabla_4?? I hate this so called "magic numbers" :)
this means table_1, table_2.... etc
table = tabla in spanish
this is a linear algebra matrix
ninjana
11-01-2005, 02:11 AM
@indear
i need help compliling my java calc
i dont know if is this the proble(compiler)
i can run my calc in the emulator
but i doenst run on the phones
it says impossible to do conversion while installing
my calc is un upgrade to your's
your's run in the same phone
i've renamed your classes
and upgraded phone list whit new models and theyr rewcommended box serial by *crux nokia free
and i had also added more box serials
and cuttes other brands like aeg
its only nokia now...
i've also added visual coments
can you help
if you want i can send you my source cod
i've added you msn contact
mine is
[email protected]
please help me
;(
:(
Is there a C (or C++) source code of DCT4 ASIC 6 available for free? I would like to include it in NokiX (http://nokix.prv.pl). Thanks for any tips.
Dejan-Kaljevic
08-02-2005, 01:06 PM
am i right in saying yous are looking for a 6230 remote unlocker ut you want it to work on your handset? if so pm me and give me your number i will send you abookmark where you can download it FREE
Cosmictej
08-02-2005, 05:05 PM
am i right in saying yous are looking for a 6230 remote unlocker ut you want it to work on your handset? if so pm me and give me your number i will send you abookmark where you can download it FREE
No he wants the algo, the algo can be obtained from Indears site,
http://www.geocities.com/indearcito/
WBR
Cosmictej
@ Cosmictej
thanks for the link :)
lilphil
15-05-2005, 02:52 AM
:)
Port to your favourite OS/Language ;)
I quite like perl, and php isnt often installed by default on my machines.
So here's a port, dct3 only. It seems to work, improvements welcome.
Credits to indear, good work :)
indear
16-05-2005, 07:32 PM
@lilphil
good work :-)
now dct4? ;-)
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.