|
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 | Today's Posts | Search |
GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
| LinkBack | Thread Tools | Display Modes |
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 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. |
The Following 3 Users Say Thank You to abdoune For This Useful Post: |
06-07-2012, 15:34 | #5 (permalink) | |
No Life Poster Join Date: Oct 2010
Posts: 723
Member: 1422878 Status: Offline Thanks Meter: 164 | Quote:
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; DepositFiles Regards Helpy Last edited by helpinterchange; 06-07-2012 at 15:39. | |
The Following 2 Users Say Thank You to helpinterchange For This Useful Post: |
06-07-2012, 19:11 | #6 (permalink) |
No Life Poster Join Date: Oct 2010
Posts: 723
Member: 1422878 Status: Offline Thanks Meter: 164 | 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; Helpy |
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:
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; | |
06-07-2012, 20:30 | #9 (permalink) | |
Product Manager Join Date: Apr 2002 Location: nckDongle
Posts: 13,325
Member: 11170 Status: Offline Sonork: 1603694 Thanks Meter: 6,944 | Quote:
| |
06-07-2012, 20:48 | #11 (permalink) | |
No Life Poster Join Date: Oct 2010
Posts: 723
Member: 1422878 Status: Offline Thanks Meter: 164 | Quote:
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 | |
The Following User Says Thank You to helpinterchange For This Useful Post: |
06-08-2012, 01:29 | #12 (permalink) | |
No Life Poster Join Date: Oct 2010
Posts: 723
Member: 1422878 Status: Offline Thanks Meter: 164 | Quote:
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; Helpy | |
Bookmarks |
| |
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 |
|