|
![]() |
|
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. |
| |||||||
| Register | FAQ | Donate | Forum Rules | ★. iPhone Unlock .★ | -= JTAG BOOM =- | Search | Today's Posts | Mark Forums Read |
| GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| No Life Poster ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2008 Location: The Matrix :) Age: 25
Posts: 566
Member: 833760 Status: Online Sonork: 100.1597150 Thanks: 156
Thanked 90 Times in 42 Posts
| ZTE Blade Algo in PHP (need testing) I've ported the well known ZTE algo from Delphi to PHP. I can't test it now because i dont have Blade in my hand (lol sounds weird like arrow in the knee ![]() Code: function zteCalc ($imei)
{
$imeiMD5 = md5($imei);
$tmp = str_split($imeiMD5, 2);
for ($i = 0; $i <= 15; $i++)
{
$tmp[$i] = '0x'.$tmp[$i];
}
$key = '';
for ($i = 0; $i <= 7; $i++)
{
$key[$i] = ((($tmp[$i] + $tmp[$i+8]) & 0xFF)*9)/0xFF;
$key[$i] = (int)$key[$i];
}
$key = implode("",$key);
return $key;
} |
|
| | #2 (permalink) |
| No Life Poster ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2008 Location: The Matrix :) Age: 25
Posts: 566
Member: 833760 Status: Online Sonork: 100.1597150 Thanks: 156
Thanked 90 Times in 42 Posts
| Mates i have decompiled the Phone.apk and found the calCode function myself. Then tried to decompile a B04 rom but found the same function. What are the differences? Rather than i think i decompiled the wrong roms. Pelase If you have a ROM dump from a ZTE Blade which do not accepting the old code upload it to somewhere, i want to analyze it a bit. ![]() Thanks in advance. Code: private String calCode(String paramString)
throws NoSuchAlgorithmException
{
MessageDigest localMessageDigest = MessageDigest.getInstance("MD5");
paramString.getBytes();
paramString.length();
localMessageDigest.update(paramString.getBytes(), 0, paramString.length());
byte[] arrayOfByte1 = localMessageDigest.digest();
for (int i = 0; i < 8; i++)
arrayOfByte1[i] = (byte)((0xFF & arrayOfByte1[i]) + (0xFF & arrayOfByte1[(i + 8)]));
byte[] arrayOfByte2 = new byte[8];
for (int j = 0; j < 8; j++)
arrayOfByte2[j] = (byte)(48 + 9 * (0xFF & arrayOfByte1[j]) / 255);
return new String(arrayOfByte2);
} |
|
| | #3 (permalink) |
| No Life Poster ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2008 Location: The Matrix :) Age: 25
Posts: 566
Member: 833760 Status: Online Sonork: 100.1597150 Thanks: 156
Thanked 90 Times in 42 Posts
| Solved B04 version: Contact me if you need the algo. Last edited by ..::SuB::..; 07-05-2012 at 14:45. Reason: Removed code. |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| thread | Thread Starter | Forum | Replies | Last Post |
| How to add a language in 51xx/61xx | tati | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 8 | 05-21-2013 19:20 |
| Need software upgrade for Nokia 5110 | ptkrf | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 26 | 09-25-2012 02:41 |
| needed pinout for carkit(N61xx) | mobileinfo | Nokia Hardware & Hardware-Repair Area | 1 | 12-27-2006 10:20 |
| need ericsson 88 cable | migdamas | Old Ericsson Phones & Sony Phones | 1 | 06-02-1999 16:23 |
| need eeprom photo???? | mobileinfo | Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) | 0 | 05-26-1999 11:35 |