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 06-16-2012, 19:18   #1 (permalink)
Junior Member
 
Join Date: May 2012
Posts: 1
Member: 1757077
Status: Offline
Thanks: 0
Thanked 2 Times in 1 Post
Thumbs up Huawei Unlocker Source Code - PHP

Hi All!

This is my first post on this forum.

Here is Huawei Unlocker source code in PHP.

Thanks to this post from where I got the algo and implemented in easiest way to understand and making it simple for beginners.

Dont worry i'm a beginner myself. B)


PHP Code:
<?php

unlock
($_GET['imei']);
flash($_GET['imei']);

function 
unlock($imei)
{
    
$smd5($imei."5e8dd316726b0335");
    
$arr str_split($s2);
    
$p1 =sprintf("%02s",dechex(hexdec($arr[0])^hexdec($arr[4])^hexdec($arr[8])^hexdec($arr[12])));
    
$p2 =sprintf("%02s",dechex(hexdec($arr[1])^hexdec($arr[5])^hexdec($arr[9])^hexdec($arr[13])));
    
$p3 =sprintf("%02s",dechex(hexdec($arr[2])^hexdec($arr[6])^hexdec($arr[10])^hexdec($arr[14])));
    
$p4 =sprintf("%02s",dechex(hexdec($arr[3])^hexdec($arr[7])^hexdec($arr[11])^hexdec($arr[15])));
    
$s1="";
    
$s1=$s1.$p1.$p2.$p3.$p4;
    echo 
"Unlock code - ".(hexdec($s1) & hexdec("1ffffff") | hexdec("2000000"))."<br/>";
}

function 
flash($imei)
{
    
$smd5($_GET['imei']."4797b7bc6be525ab44");
    
$arr str_split($s2);
    
$p1 =sprintf("%02s",dechex(hexdec($arr[0])^hexdec($arr[4])^hexdec($arr[8])^hexdec($arr[12])));
    
$p2 =sprintf("%02s",dechex(hexdec($arr[1])^hexdec($arr[5])^hexdec($arr[9])^hexdec($arr[13])));
    
$p3 =sprintf("%02s",dechex(hexdec($arr[2])^hexdec($arr[6])^hexdec($arr[10])^hexdec($arr[14])));
    
$p4 =sprintf("%02s",dechex(hexdec($arr[3])^hexdec($arr[7])^hexdec($arr[11])^hexdec($arr[15])));
    
$s1="";
    
$s1=$s1.$p1.$p2.$p3.$p4;
    echo 
"Flash code - ".(hexdec($s1) & hexdec("1ffffff") | hexdec("2000000"))."<br/>";
}


?>
To use this code, install wampserver or upload this to your server and pass a GET request parameter `imei` to the URL.

Eg -

http://localhost/unlocker/index.php?...34567890123456

you will get a sample output as shown below-

Unlock code - 36963763
Flash code - 49437591
  Reply With Quote
The Following 2 Users Say Thank You to thepsycoder For This Useful Post:
Old 06-16-2012, 20:12   #2 (permalink)
No Life Poster
 
MOURAD™'s Avatar
 
Join Date: Mar 2007
Location: Guangzhou-China
Posts: 1,270
Member: 468587
Status: Offline
Sonork: 100.1612429
Thanks: 318
Thanked 677 Times in 404 Posts
For who you post this, Already posted since 03 years, here Huawei algo for all

Try with another sub forum, not here ... thnks

Last edited by MOURAD™; 06-16-2012 at 20:21.
  Reply With Quote
Old 06-17-2012, 06:02   #3 (permalink)
Freak Poster
 
NiRaV.SoN!'s Avatar
 
Join Date: Apr 2012
Location: India ( Gurukrupa )
Age: 21
Posts: 492
Member: 1753913
Status: Offline
Thanks: 34
Thanked 288 Times in 204 Posts
Arrow

Thanks freind nice and very easy to understand

added to my site
  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
PIN1/PIN2 CODE Jon Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 1 12-26-2012 03:40
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
$50 Reward for unlocking my 6150!!! TheDon Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 4 07-09-1999 22:08


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



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

SEO by vBSEO