GSM Shop GSM Shop
GSM-Forum  

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 .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering


GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 03-21-2005, 13:24   #1 (permalink)
No Life Poster
 
Dave.W's Avatar
 
Join Date: Nov 2001
Location: England
Age: 41
Posts: 2,821
Member: 7653
Status: Offline
Thanks Meter: 823
unlock code algos...


hi,
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';
 }
then pass the imei variable to calculation function..

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 :(
please, does someone have this working?

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
  Reply With Quote
Old 03-22-2005, 01:17   #2 (permalink)
No Life Poster
 
Dave.W's Avatar
 
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?
  Reply With Quote
Old 03-22-2005, 11:50   #3 (permalink)
Insane Poster
 
Join Date: Apr 2004
Location: Spain
Posts: 82
Member: 63517
Status: Offline
Thanks Meter: 5
try again.. the source code works fine
  Reply With Quote
Old 03-22-2005, 15:11   #4 (permalink)
No Life Poster
 
Dave.W's Avatar
 
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:
#pw+807112216175514+1#
#pw+397137404135236+2#
#pw+709241214336141+3#
#pw+701271616536777+4#
#pw+318937225213535+5#
#pw+119255726346556+6#
#pw+906613415040313+7#
i put same imei/spcode/asic/box serial to the nfree calc and it gives these code:
Quote:
Model: Nokia (DCT4 )
IMEI: 111111111111119
Network: 22222

#pw+970172216175514+1#
#pw+460197404135236+2#
#pw+872201214336141+3#
#pw+874231616536777+4#
#pw+481997225213535+5#
#pw+282215726346556+6#
#pw+079673415040313+7#
see the difference there?

so i use nfree calcs "box serial extract" function, on your sources generation and get this:
Quote:
Nokia
Code: 906613415040313

Box Serial: 41440
you see that? somehow your source is using other box serial than the one you put in example section..

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.
  Reply With Quote
Old 03-22-2005, 15:12   #5 (permalink)
No Life Poster
 
Dave.W's Avatar
 
Join Date: Nov 2001
Location: England
Age: 41
Posts: 2,821
Member: 7653
Status: Offline
Thanks Meter: 823
ok i put leading zero back to box serial and it work fine..

sorry to bother you
  Reply With Quote
Old 03-22-2005, 15:51   #6 (permalink)
No Life Poster
 
Dave.W's Avatar
 
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];
}
always the program crashes here, only if i have used an asic number which was user input..

why is this?

i am using asic=getche(stdin) to read asic type, so for sure it is just one character without null terminate :??
  Reply With Quote
Old 03-22-2005, 16:27   #7 (permalink)
No Life Poster
 
Dave.W's Avatar
 
Join Date: Nov 2001
Location: England
Age: 41
Posts: 2,821
Member: 7653
Status: Offline
Thanks Meter: 823
fixed

good work man, thx for your time in making this algo.

did u get the mail i sent? to ur yahoo box?

br
  Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

 



All times are GMT +1. The time now is 03:15.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.20143 seconds with 9 queries

SEO by vBSEO