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 06-06-2012, 23:40   #1 (permalink)
No Life Poster
 
Join Date: Feb 2004
Location: Algeria
Posts: 2,305
Member: 56090
Status: Offline
Thanks Meter: 162
Doro Source


case (list.ItemIndex) of
0..3: begin //doro 345 409 410 610
for i:=7 to 14 do begin
v1:=strtoint(imei.Text[i]);
v2:=strtoint(imei.Text[i+1]);
v1:=v1+v2+v2; if (v1>10) then v1:= v1 mod 10;
nck:=nck+inttostr(v1) end ;result.text:=' NCK : '+nck+#13#10+
'- Input a non-accepted Sim, enter the code.'+#13#10+
'- Without Sim, type *#787464# and enter code.';
end;

Salam

Last edited by abdoune; 06-06-2012 at 23:50.
  Reply With Quote
The Following 3 Users Say Thank You to abdoune For This Useful Post:
Show/Hide list of the thanked
Old 06-07-2012, 02:51   #2 (permalink)
No Life Poster
 
darmiles's Avatar
 
Join Date: Sep 2005
Location: Resign
Posts: 525
Member: 177036
Status: Offline
Thanks Meter: 934
Donate money to this user
is that all? no procedure call?
  Reply With Quote
Old 06-07-2012, 03:52   #3 (permalink)
Freak Poster
 
Join Date: Sep 2005
Location: Toronto, Canada
Posts: 378
Member: 178829
Status: Offline
Thanks Meter: 24
Can someone confirm this?
  Reply With Quote
Old 06-07-2012, 10:20   #4 (permalink)
Freak Poster
 
mouradsamsung's Avatar
 
Join Date: Dec 2005
Location: TUNISIA
Posts: 228
Member: 208914
Status: Offline
Thanks Meter: 396
is there any beta tester can put his imei here to test this algo ?
  Reply With Quote
Old 06-07-2012, 15:34   #5 (permalink)
No Life Poster
 
Join Date: Oct 2010
Posts: 723
Member: 1422878
Status: Offline
Thanks Meter: 164
Smile

Quote:
Originally Posted by abdoune View Post
case (list.ItemIndex) of
0..3: begin //doro 345 409 410 610
for i:=7 to 14 do begin
v1:=strtoint(imei.Text[i]);
v2:=strtoint(imei.Text[i+1]);
v1:=v1+v2+v2; if (v1>10) then v1:= v1 mod 10;
nck:=nck+inttostr(v1) end ;result.text:=' NCK : '+nck+#13#10+
'- Input a non-accepted Sim, enter the code.'+#13#10+
'- Without Sim, type *#787464# and enter code.';
end;

Salam
Hello

Only a little mistake in

if (v1>10) then v1:= v1 mod 10;

that generates some error codes like :

IMEI CODE OK CODE CALC
867453010055336 21005195 210105195
356694042881995 88840979 888410979
351948046251257 86027529 861027529
012808002677658 04401961 04401961
012525000137895 00277369 00277369

7 8 9 10 11 12 13 14 15
0 1 0 0 5 5 3 3 6
2 1 0 10 15 11 9 15
2 1 0 10 5 1 9 5
210105195


7 8 9 10 11 12 13 14 15
0 4 2 8 8 1 9 9 5
8 8 18 24 10 19 27 19
8 8 8 4 10 9 7 9
888410979

to fix this change to

Code:
procedure TForm1.btn1Click(Sender: TObject);
var
  i:Integer;
  v1,v2 :integer;
  nck:string;
begin
//doro 345 409 410 610
for i:=7 to 14 do
begin
 v1:=strtoint(imei.Text[i]);
 v2:=strtoint(imei.Text[i+1]);
 v1:=v1+v2+v2;

 if (v1 >= 10) then v1:= v1 mod 10;

 nck:=nck+inttostr(v1) ;
end;
 edtnck.text:=nck;
end;
Download demo
DepositFiles

Regards

Helpy

Last edited by helpinterchange; 06-07-2012 at 15:39.
  Reply With Quote
The Following 2 Users Say Thank You to helpinterchange For This Useful Post:
Old 06-07-2012, 19:11   #6 (permalink)
No Life Poster
 
Join Date: Oct 2010
Posts: 723
Member: 1422878
Status: Offline
Thanks Meter: 164
Smile

New way to calc

Code:
function CalcDoro(imei:string):string;
var
  imei2, nck : string;
  i,d : byte;
begin
  imei2 := copy(imei,2,length(imei)-1);
  nck:='';
  for i:=7 to length(imei2) do
  begin
    d := StrToInt(imei2[i])*2 + StrToInt(imei[i]);
    if (d >= 10) then d:= d mod 10;
     nck := nck + IntToStr(d);
  end;
  Result := copy(nck,1,8);
end;
Regards

Helpy
  Reply With Quote
Old 06-07-2012, 20:03   #7 (permalink)
No Life Poster
 
Join Date: Feb 2004
Location: Algeria
Posts: 2,305
Member: 56090
Status: Offline
Thanks Meter: 162
Quote:
Originally Posted by helpinterchange View Post
New way to calc

Code:
function CalcDoro(imei:string):string;
var
  imei2, nck : string;
  i,d : byte;
begin
  imei2 := copy(imei,2,length(imei)-1);
  nck:='';
  for i:=7 to length(imei2) do
  begin
    d := StrToInt(imei2[i])*2 + StrToInt(imei[i]);
    if (d >= 10) then d:= d mod 10;
     nck := nck + IntToStr(d);
  end;
  Result := copy(nck,1,8);
end;
Regards

Helpy
thanks for the correction, we can you use only 3variables in this simply code:
Code:
 var
v1,i:byte;
nck:string;
begin
 for i:=7 to 14 do begin
 v1:=strtoint(imei.Text[i])+2*(strtoint(imei.Text[i+1]));
 if (v1>9) then v1:= v1 mod 10;
 nck:=nck+inttostr(v1) end ;
 label1.Caption:= '   NCK : '+nck+#13#10+
 '-Input a non-accepted Sim,enter the code.'+#13#10+
 '-Without Sim,type *#787464# ,enter the code.';
end;
Salam
  Reply With Quote
Old 06-07-2012, 20:18   #8 (permalink)
Freak Poster
 
Join Date: Sep 2005
Location: Toronto, Canada
Posts: 378
Member: 178829
Status: Offline
Thanks Meter: 24
Whats the #13#10 have to do with the algo? Isnt the code just 8 digits?
  Reply With Quote
Old 06-07-2012, 20:30   #9 (permalink)
Product Manager
 
orbita's Avatar
 
Join Date: Apr 2002
Location: nckDongle
Posts: 13,325
Member: 11170
Status: Offline
Sonork: 1603694
Thanks Meter: 6,944
Quote:
Originally Posted by ilanm View Post
Whats the #13#10 have to do with the algo? Isnt the code just 8 digits?
What does #13#10 stand for, in Delphi code?
  Reply With Quote
Old 06-07-2012, 20:45   #10 (permalink)
No Life Poster
 
Join Date: Jun 2006
Posts: 1,237
Member: 300043
Status: Offline
Thanks Meter: 360
Quote:
Originally Posted by helpinterchange View Post

Download demo
DepositFiles

Regards

Helpy
works fine for Doro 410GSM
  Reply With Quote
Old 06-07-2012, 20:48   #11 (permalink)
No Life Poster
 
Join Date: Oct 2010
Posts: 723
Member: 1422878
Status: Offline
Thanks Meter: 164
Wink

Quote:
Originally Posted by abdoune View Post
thanks for the correction, we can you use only 3variables in this simply code:
Code:
 var
v1,i:byte;
nck:string;
begin
 for i:=7 to 14 do begin
 v1:=strtoint(imei.Text[i])+2*(strtoint(imei.Text[i+1]));
 if (v1>9) then v1:= v1 mod 10;
 nck:=nck+inttostr(v1) end ;
 label1.Caption:= '   NCK : '+nck+#13#10+
 '-Input a non-accepted Sim,enter the code.'+#13#10+
 '-Without Sim,type *#787464# ,enter the code.';
end;
Salam
Ok, only 1 variable

procedure TForm1.btn3Click(Sender: TObject);
var i:byte;
begin
for i:=7 to 14 do
nck.text:= nck.text + IntToStr((StrToInt(imei.text[i+1])*2 + StrToInt(imei.text[i])) mod 10);
end;

Thanks Brother

Regards

Helpy
  Reply With Quote
The Following User Says Thank You to helpinterchange For This Useful Post:
Old 06-08-2012, 01:29   #12 (permalink)
No Life Poster
 
Join Date: Oct 2010
Posts: 723
Member: 1422878
Status: Offline
Thanks Meter: 164
Wink

Quote:
Originally Posted by helpinterchange View Post
Ok, only 1 variable

procedure TForm1.btn3Click(Sender: TObject);
var i:byte;
begin
for i:=7 to 14 do
nck.text:= nck.text + IntToStr((StrToInt(imei.text[i+1])*2 + StrToInt(imei.text[i])) mod 10);
end;

Thanks Brother

Regards

Helpy

Now, without variables, and without use of FOR..TO sentences.

Code:
function Calc_Doro(imei:string; n:byte):string;
begin
  if n=15 then Calc_Doro:=''
  else Calc_Doro := IntToStr((StrToInt(imei[n+1])*2 + StrToInt(imei[n])) mod 10) + Calc_Doro(imei,n+1);
end;


procedure TForm1.Button2Click(Sender: TObject);
begin
  nck.text := Calc_Doro(imei.text,7);
end;
Try it, work really.

Helpy
  Reply With Quote
Old 06-08-2012, 02:02   #13 (permalink)
No Life Poster
 
abdeslam728's Avatar
 
Join Date: Dec 2007
Posts: 702
Member: 653776
Status: Offline
Sonork: 100.1584146
Thanks Meter: 94
As a newbie i found the first corrected algo more easy.
Regards
  Reply With Quote
Old 06-08-2012, 09:36   #14 (permalink)
No Life Poster
 
MOURAD™'s Avatar
 
Join Date: Mar 2007
Location: Guangzhou-China
Posts: 1,289
Member: 468587
Status: Offline
Sonork: 100.1612429
Thanks Meter: 682

Last edited by MOURAD™; 06-09-2012 at 15:11.
  Reply With Quote
Old 06-08-2012, 09:43   #15 (permalink)
No Life Poster
 
darmiles's Avatar
 
Join Date: Sep 2005
Location: Resign
Posts: 525
Member: 177036
Status: Offline
Thanks Meter: 934
Donate money to this user
my version


DORO.exe - 4shared.com - online file sharing and storage - download
  Reply With Quote
The Following 4 Users Say Thank You to darmiles For This Useful Post:
Show/Hide list of the thanked
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
DLS Box and new unlock algo. majid Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 0 03-15-2002 18:33
Need al info about imei calc and algos!! Gsmhq Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 4 01-16-2002 11:31
Free solutions for GSM. Support for all free. Nokia Authority Id calculation algo ! te Main Sales Section 6 12-15-2001 14:57
NEW FLASHING BOX :-)FOR NEW ALGO Toto Main Sales Section 2 09-03-2001 14:07
Anybody able to find out algo of new X35..... Toto x1x to x45/x50 0 06-10-2001 22:39

 



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



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.23506 seconds with 10 queries

SEO by vBSEO