Care Unlock  
Your online unlock store
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. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

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 02-02-2012, 13:57   #1 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 3
Member: 1717812
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
Finding SIMLock algorithm from IMEIs and valid unlock codes

Hi there.

I have a series of Huawei USB dongles (new models, NOT unlockable for free), and a set of unlock codes which are all valid (I already unlocked many of them).

I was wondering... considering that I have a decent amount of IMEI/LockCode pairs (20+), would it be possible to somehow find out the underlying algorithm that generates the unlock codes from the IMEIs?

How would I go about doing that? Is there any particular software that could "compare" the list of IMEIs with the list of unlock codes and look for patterns or something?

Just a thought of course. I might as well be completely wrong.

Thanks.
  Reply With Quote
Old 02-02-2012, 14:31   #2 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Italy [micoud 's house]
Posts: 1,460
Member: 190882
Status: Offline
Sonork: 100.1593148
Thanks: 139
Thanked 1,205 Times in 314 Posts
Quote:
Originally Posted by iVMX View Post
Hi there.

I have a series of Huawei USB dongles (new models, NOT unlockable for free), and a set of unlock codes which are all valid (I already unlocked many of them).

I was wondering... considering that I have a decent amount of IMEI/LockCode pairs (20+), would it be possible to somehow find out the underlying algorithm that generates the unlock codes from the IMEIs?

How would I go about doing that? Is there any particular software that could "compare" the list of IMEIs with the list of unlock codes and look for patterns or something?

Just a thought of course. I might as well be completely wrong.

Thanks.
start to post them here
which modems are? firmwares customized or new models like e367,e353...?
  Reply With Quote
Old 02-02-2012, 15:17   #3 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 3
Member: 1717812
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
I'd love to, but unfortunately there are important security reasons that prevent me from posting the IMEIs here.

Of course I wouldn't mind sharing the algorithm if I found it, but I just can't share the specific IMEIs.

Oh, btw, they are a bunch of super sweet Vodafone K4605 Dual Carrier devices (Huawei E372).

If any of you can point me in the right direction to try and crack the codes myself I'll be glad to try. Otherwise... I think we'll have to wait :/
  Reply With Quote
Old 02-02-2012, 18:15   #4 (permalink)
Freak Poster
 
Join Date: Apr 2003
Posts: 216
Member: 26596
Status: Offline
Thanks: 6
Thanked 12 Times in 8 Posts
Quote:
Originally Posted by iVMX View Post
I'd love to, but unfortunately there are important security reasons that prevent me from posting the IMEIs here.

Of course I wouldn't mind sharing the algorithm if I found it, but I just can't share the specific IMEIs.

Oh, btw, they are a bunch of super sweet Vodafone K4605 Dual Carrier devices (Huawei E372).

If any of you can point me in the right direction to try and crack the codes myself I'll be glad to try. Otherwise... I think we'll have to wait :/

All you need is: "hwideadatacard"
  Reply With Quote
Old 02-02-2012, 19:13   #5 (permalink)
Insane Poster
 
Join Date: Jan 2003
Location: Romania
Age: 36
Posts: 61
Member: 20066
Status: Online
Thanks: 3
Thanked 21 Times in 16 Posts
"hwideadatacard" its new constant value for new model ? Any other change for algo ?
  Reply With Quote
Old 02-02-2012, 19:46   #6 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Italy [micoud 's house]
Posts: 1,460
Member: 190882
Status: Offline
Sonork: 100.1593148
Thanks: 139
Thanked 1,205 Times in 314 Posts
Quote:
Originally Posted by latigido922 View Post
All you need is: "hwideadatacard"
you are wrong my friend

imei 356793040863318 , *** code sniffed from dc-unlocker 16507861
hwidea... code 58058755
  Reply With Quote
Old 02-03-2012, 09:01   #7 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 3
Member: 1717812
Status: Offline
Thanks: 0
Thanked 0 Times in 0 Posts
I'm gonna need a little bit more help... I'm a noob when it comes to this stuff. Where should I be looking? Some software that reads stuff from the device... hex editor...?

Oh... did I mention the K4605 is dual carrier? 42mbps anyone?
  Reply With Quote
Old 02-07-2012, 04:33   #8 (permalink)
Freak Poster
 
Spoochy's Avatar
 
Join Date: May 2003
Location: Norway
Posts: 267
Member: 28045
Status: Offline
Thanks: 23
Thanked 16 Times in 7 Posts
One why to do it........

Quote:
Originally Posted by boucettay View Post
U like try, research, maths, and perhaps No result
take this

---- nck ----------- imei ------------- nck --------- imei --------
688950000000 000000000000000 668950000010 000000000000010
488950000001 000000000000001 686950000100 000000000000100
288950000004 000000000000002 688750001000 000000000001000
088950000009 000000000000003 688930010000 000000000010000
888950000006 000000000000004 688958100000 000000000100000
688950000005 000000000000005 688951800000 000000001000000
488950000006 000000000000006 688960080000 000000010000000
288950000009 000000000000007 688050008000 000000100000000
088950000004 000000000000008 689950000800 000001000000000
888950000001 000000000000009 698950000080 000010000000000
688950000000 111111111111111 788950000008 000100000000000
022394444444 222222222222222 688950000000 001000000000000
800172222222 333333333333333 688950000000 010000000000000
022394444444 444444444444444 688950000000 100000000000000
688950000000 555555555555555 446536868686 101010101010101
688950000000 666666666666666 264718686868 010101010101010
022394444444 777777777777777 622954400440 110011001100110
800172222222 888888888888888 088390044004 001100110011001
022394444444 999999999999999 022350008888 111111100000000

WBR
Many more examples if you crawle this category..
  Reply With Quote
Old 02-09-2012, 08:48   #9 (permalink)
Product Manager
 
.:hack3r2k:.'s Avatar
 
Join Date: Aug 2002
Location: FuriouSTeaM
Posts: 34,284
Member: 15022
Status: Offline
Sonork: 100.53452
Thanks: 370
Thanked 33,325 Times in 5,092 Posts
Quote:
Originally Posted by fr3nsis View Post
you are wrong my friend

imei 356793040863318 , *** code sniffed from dc-unlocker 16507861
hwidea... code 58058755
Why you dont dump the bloody nand by jtag, extract elf, load in ida and start digging. Much faster and usefull then loosing time arround

Br
  Reply With Quote
The Following 2 Users Say Thank You to .:hack3r2k:. For This Useful Post:
Old 02-09-2012, 08:58   #10 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Italy [micoud 's house]
Posts: 1,460
Member: 190882
Status: Offline
Sonork: 100.1593148
Thanks: 139
Thanked 1,205 Times in 314 Posts
Quote:
Originally Posted by .:hack3r2k:. View Post
Why you dont dump the bloody nand by jtag, extract elf, load in ida and start digging. Much faster and usefull then loosing time arround

Br
modem wasn't mine and customer won't lost warranty
anyway i have extracted elf from firmware update , i'm reading it
  Reply With Quote
Old 03-06-2012, 16:59   #11 (permalink)
Insane Poster
 
Join Date: Jan 2003
Location: Romania
Age: 36
Posts: 61
Member: 20066
Status: Online
Thanks: 3
Thanked 21 Times in 16 Posts
Flash code algo for new modem its the same ! Ani news for unlock code ?
  Reply With Quote
Old 03-21-2012, 04:42   #12 (permalink)
Freak Poster
 
DarkManDZ's Avatar
 
Join Date: Jan 2007
Posts: 245
Member: 431529
Status: Offline
Thanks: 32
Thanked 39 Times in 17 Posts
Quote:
Originally Posted by .:hack3r2k:. View Post
Why you dont dump the bloody nand by jtag, extract elf, load in ida and start digging. Much faster and usefull then loosing time arround

Br
how to extract elf and with which tool???
  Reply With Quote
Old 03-21-2012, 11:51   #13 (permalink)
No Life Poster
 
[Shadab_M]'s Avatar
 
Join Date: Mar 2006
Location: .: India :. Heaven on Earth
Posts: 2,506
Member: 238812
Status: Offline
Sonork: 100.1602669
Thanks: 803
Thanked 1,429 Times in 604 Posts
Quote:
Originally Posted by DarkManDZ View Post
how to extract elf and with which tool???
You can use RIFF.

Read DUMP and Load in Qualcomm Dump Analysis Tool (Addon in RIFF).

Br,
Shadab Ahmad
  Reply With Quote
Old 03-23-2012, 04:40   #14 (permalink)
Product Manager
 
TestBox2's Avatar
 
Join Date: May 2008
Location: Ukraine
Age: 34
Posts: 1,121
Member: 772096
Status: Offline
Sonork: 100.69222
Thanks: 4
Thanked 5,735 Times in 602 Posts
Wink

Quote:
Originally Posted by fr3nsis View Post
you are wrong my friend

imei 356793040863318 , *** code sniffed from dc-unlocker 16507861
hwidea... code 58058755

All simple :-)


// old-modems calc nck algo
Function h_nck(imei: string; password: string='hwe620datacard'):string;
var
digest : TMD5DigestX;
nck: dword;
_hash:string;
Revers:LongWord;
begin


TMD5Digest(digest):=md5stringa(password);
For Revers:=4 To 11 Do imei:=imei + LowerCase(IntToHex(Digest.v[Revers],2));
TMD5Digest(digest):=md5stringa(imei);

SetLength(_hash,32); BinToHex(@Digest,@_hash[1],16);
form1.memo1.Lines.add('Hash code: '+LowerCase(_hash));


For Revers:=0 To 3 Do Nck:=(Nck SHL 8) OR (Digest.v[Revers] XOR
Digest.v[Revers+4] XOR Digest.v[Revers+12] XOR Digest.v[Revers+8]);
Nck:=(Nck AND $1FFFFFF) OR $2000000; result:=(inttostr(Nck));

end;

  Reply With Quote
The Following 3 Users Say Thank You to TestBox2 For This Useful Post:
Old 03-23-2012, 10:55   #15 (permalink)
Product Supporter
 
dzunlocker's Avatar
 
Join Date: Aug 2004
Location: With old & new friends
Age: 38
Posts: 655
Member: 79640
Status: Offline
Sonork: 1577251
Thanks: 254
Thanked 236 Times in 123 Posts
Quote:
Originally Posted by DarkManDZ View Post
how to extract elf and with which tool???
Hi
For playing with J-tag dump you can use "revskills", other softwares...Ort dump analyser etc ... you can also extract it manually.

hints : Hex editor + the Partition Table + '.ELF' magic
...

Regards
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Unlocking 5190 Ryu Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 23 09-16-2012 23:57
Help: Forgot my 6110 user lock code!! GByte9 Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 5 05-10-2012 14:14
IR between 6150 and IBM TP 600 favdijck Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 3 11-15-2011 12:08
wt603 and .pkd ARt Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 0 06-13-1999 19:18
Copy from one 6110 to another Leif Nielsen Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 1 06-10-1999 22:36


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



Powered by Searchlight © 2013 Axivo Inc.
- GSM Hosting Ltd. - 1999-2013 -
Page generated in 0.36351 seconds with 11 queries

SEO by vBSEO