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 04-23-2010, 16:52   #1 (permalink)
Cheater -Don't Deal with him-
 
Join Date: Jun 2009
Posts: 226
Member: 1048777
Status: Offline
Sonork: 100.1588189
Thanks Meter: 750
ALGO for zte unlock


hi to all :
algo for zte unlocking here :
PHP Code:
import hashlibgetoptsys

magic 
= [688950000000]


def usage():
    print 
"Options: -i*, --imei=*      IMEI of the device"
    
print ""
    
print "Example: zte-unlock.txt --imei=351234567891239"
    
print ""

def testIME******sum(digits):
    
_sum 0
    alt 
False
    
for d in reversed(digits):
        
assert 0 <= <= 9
        
if alt:
            
*= 2
        
if 9:
            
-= 9
        _sum 
+= d
        alt 
not alt
    
return (_sum 10) == 0

def checkIMEI
(imei):
    
digits = []
    if 
len(imei) != 15:
        print 
"IMEI too short/long"
        
return False
    
for i in imei:
        
digits.append(int(i))
    if 
not testIME******sum(digits):
        print 
"IMEI checksum invalid"
        
return False
    
return True

def getCode
(imei):
    
digits = []
    
nck ""
    
spck ""
    
crosssum 0
    
for i in imei[3:15]:
        
digits.append(int(i))
    for 
i in digits:
        
crosssum += i
    
for i in range(0,len(digits)):
        
code = (digits[i]*crosssum digits[11-i]*magic[i]) % 10
        nck 
+= "%d" code
        spck 
+= "%d" % ((code digits[11-i]) % 10)
    return (
nckspck)

def main():
    
info()
        try:   
                
optsargs getopt.getopt(sys.argv[1:], "hi:", ["help""imei="])
        
except getopt.GetoptErrorerr:
                print 
str(err# will print something like "option -a not recognized"
                
usage()
                
sys.exit(2)

    
imei ""
    
interactive False

        
for oa in opts:
                if 
o in ("-i""--imei"):
                        
imei a
                elif o in 
("-h""--help"):
                        
usage()
                        
sys.exit()

    if 
imei == "":
        
imei raw_input("Please enter the IMEI of the device:  ")
        
interactive True

    
if checkIMEI(imei):
        
nckspck getCode(imei)
        print 
""
        
print "Network Control Key (NCK):            " nck
        
print "Service Provider Control Key (SPCK):  " spck
        
print "done."

    
if interactive:
        
raw_input()
    
if 
__name__ == "__main__":
    
main() 
Br v4mpire
  Reply With Quote
The Following 10 Users Say Thank You to v4mpire For This Useful Post:
Show/Hide list of the thanked
Old 04-23-2010, 16:55   #2 (permalink)
Freak Poster
 
Join Date: Mar 2009
Posts: 234
Member: 984268
Status: Offline
Thanks Meter: 150
Quote:
Originally Posted by v4mpire View Post
hi to all :
algo for zte unlocking here :
PHP Code:
import hashlibgetoptsys

magic 
= [688950000000]


def usage():
    print 
"Options: -i*, --imei=*      IMEI of the device"
    
print ""
    
print "Example: zte-unlock.txt --imei=351234567891239"
    
print ""

def testIME******sum(digits):
    
_sum 0
    alt 
False
    
for d in reversed(digits):
        
assert 0 <= <= 9
        
if alt:
            
*= 2
        
if 9:
            
-= 9
        _sum 
+= d
        alt 
not alt
    
return (_sum 10) == 0

def checkIMEI
(imei):
    
digits = []
    if 
len(imei) != 15:
        print 
"IMEI too short/long"
        
return False
    
for i in imei:
        
digits.append(int(i))
    if 
not testIME******sum(digits):
        print 
"IMEI checksum invalid"
        
return False
    
return True

def getCode
(imei):
    
digits = []
    
nck ""
    
spck ""
    
crosssum 0
    
for i in imei[3:15]:
        
digits.append(int(i))
    for 
i in digits:
        
crosssum += i
    
for i in range(0,len(digits)):
        
code = (digits[i]*crosssum digits[11-i]*magic[i]) % 10
        nck 
+= "%d" code
        spck 
+= "%d" % ((code digits[11-i]) % 10)
    return (
nckspck)

def main():
    
info()
        try:   
                
optsargs getopt.getopt(sys.argv[1:], "hi:", ["help""imei="])
        
except getopt.GetoptErrorerr:
                print 
str(err# will print something like "option -a not recognized"
                
usage()
                
sys.exit(2)

    
imei ""
    
interactive False

        
for oa in opts:
                if 
o in ("-i""--imei"):
                        
imei a
                elif o in 
("-h""--help"):
                        
usage()
                        
sys.exit()

    if 
imei == "":
        
imei raw_input("Please enter the IMEI of the device:  ")
        
interactive True

    
if checkIMEI(imei):
        
nckspck getCode(imei)
        print 
""
        
print "Network Control Key (NCK):            " nck
        
print "Service Provider Control Key (SPCK):  " spck
        
print "done."

    
if interactive:
        
raw_input()
    
if 
__name__ == "__main__":
    
main() 
Br v4mpire
For which ZTE's is this algo?
  Reply With Quote
Old 04-23-2010, 16:58   #3 (permalink)
Freak Poster
 
mouradsamsung's Avatar
 
Join Date: Dec 2005
Location: TUNISIA
Posts: 228
Member: 208914
Status: Offline
Thanks Meter: 396
if y have this code source in delphi please share it thanks
  Reply With Quote
Old 04-23-2010, 16:59   #4 (permalink)
Cheater -Don't Deal with him-
 
Join Date: Jun 2009
Posts: 226
Member: 1048777
Status: Offline
Sonork: 100.1588189
Thanks Meter: 750
check : http://forum.gsmhosting.com/vbb/f25/...ut-box-922573/
  Reply With Quote
The Following 2 Users Say Thank You to v4mpire For This Useful Post:
Old 04-23-2010, 17:10   #5 (permalink)
No Life Poster
 
platforms's Avatar
 
Join Date: Sep 2004
Location: London
Age: 43
Posts: 520
Member: 83090
Status: Offline
Sonork: 1626857
Thanks Meter: 52
Already discussed here still http://forum.gsmhosting.com/vbb/f83/...60-etc-943686/
  Reply With Quote
Old 04-23-2010, 17:12   #6 (permalink)
No Life Poster
 
angel25dz's Avatar
 
Join Date: Jul 2006
Location: ..::DZ-25::..
Posts: 529
Member: 315181
Status: Offline
Sonork: 100.1593455
Thanks Meter: 301
it's the same algo http://forum.gsmhosting.com/vbb/f83/...60-etc-943686/
  Reply With Quote
Old 04-23-2010, 17:23   #7 (permalink)
Cheater -Don't Deal with him-
 
Join Date: Jun 2009
Posts: 226
Member: 1048777
Status: Offline
Sonork: 100.1588189
Thanks Meter: 750
ok i don't iknow if the algo already posted
soon i post more important algo

Br v4mpire;
  Reply With Quote
Old 04-23-2010, 17:42   #8 (permalink)
No Life Poster
 
angel25dz's Avatar
 
Join Date: Jul 2006
Location: ..::DZ-25::..
Posts: 529
Member: 315181
Status: Offline
Sonork: 100.1593455
Thanks Meter: 301
Quote:
Originally Posted by v4mpire View Post
ok i don't iknow if the algo already posted
soon i post more important algo

Br v4mpire;
right, just explained i think u r the first hwo posted a source code....

ps: I coded it on C#, if someone need the source I can share it

./wbr
  Reply With Quote
The Following 2 Users Say Thank You to angel25dz For This Useful Post:
Old 04-23-2010, 21:08   #9 (permalink)
Junior Member
 
Join Date: Jan 2010
Posts: 22
Member: 1203995
Status: Offline
Thanks Meter: 0
how about the codes of your software, not the php

glad if you will share it
  Reply With Quote
Old 04-23-2010, 21:16   #10 (permalink)
No Life Poster
 
Ionel's Avatar
 
Join Date: Sep 2004
Location: Romania
Age: 42
Posts: 1,598
Member: 81232
Status: Offline
Thanks Meter: 196
Post here is c++ please .
  Reply With Quote
Old 04-23-2010, 21:31   #11 (permalink)
No Life Poster
 
angel25dz's Avatar
 
Join Date: Jul 2006
Location: ..::DZ-25::..
Posts: 529
Member: 315181
Status: Offline
Sonork: 100.1593455
Thanks Meter: 301
here my code in c# (badly coded) u can optimize it by using functions !!

Code:
 bool a = false;
            //ZTE
            //-----------------
            if (comboBox2.SelectedIndex == 0)
            {
                string imei = ""; char d = 'n'; int s1 = 0; int s2 = 0; int s3 = 0; int s = 0;
                string imei1 = ""; string stp1 = ""; string stp11 = ""; string stp2 = ""; string imei2 = "";
                string stp22 = ""; string stp222 = ""; string stp3 = ""; string NCK = ""; string SPCK = ""; string sp = "";
                string ml = "688950000000"; 
                imei = textBox1.Text;
                if (imei != "" & imei.Length == 15)
                {
                    for (int i = 0; i < 15; i++)
                    {
                        d = imei[i];
                        if (Char.IsDigit(d))
                        {
                            if (i > 2)
                            {
                                s1 = s1 + (int)(Char.GetNumericValue(d));
                                imei1 = imei1 + d;
                            }
                        }
                        else
                        {
                            MessageBox.Show(" Enter a valid imei");
                            richTextBox1.Text = "Enter a valid imei";
                            a = true; break;
                        }
                    }
                    if (a == false)
                    {
                        //1st & 2nd steps
                        for (int i = 0; i < 12; i++)
                        {
                            d = imei1[i];
                            s2 = s1 * ((int)(Char.GetNumericValue(d)));
                            s3 = 8 * ((int)(Char.GetNumericValue(d)));
                            stp11 = s2.ToString(); stp22 = s3.ToString();
                            stp1 = stp1 + stp11[(stp11.Length - 1)];
                            stp222 = stp222 + stp22[(stp22.Length - 1)];

                        }
                        for (int i = 0; i < 12; i++)
                        {
                            stp2 = stp2 + stp222[(11 - i)];
                        }
                        //3rd step
                        for (int i = 0; i < 12; i++)
                        {
                            s = (int)(char.GetNumericValue(stp1[i]) + Char.GetNumericValue(stp2[i])
                                + Char.GetNumericValue(ml[i]));
                            stp3 = s.ToString();
                            NCK = NCK + stp3[stp3.Length - 1];
                        }
                        //spck
                        for (int i = 0; i < 12; i++)
                        {
                            imei2 = imei2 + imei1[(11 - i)];
                            s1 = (int)(Char.GetNumericValue(imei2[i]) + Char.GetNumericValue(NCK[i]));
                            sp = s1.ToString();
                            SPCK = SPCK + sp[sp.Length - 1];
                        }
                        richTextBox1.Clear();
                        richTextBox1.SelectionColor = Color.PowderBlue;
                        richTextBox1.SelectedText = "ZTE NCK Calculator by ..::AnGeL25dZ::.."
                            +'\n'+"******************"
                            +'\n'+"imei: " + imei 
                            + '\n' + "NCK:  " + NCK
                            + '\n' + "SPCK: " + SPCK
                            + '\n' + "******************"
                            +'\n'+"./ Done :-)";
                        
                    }

                }
                else
                {
                    MessageBox.Show(" Enter a valid imei");
                    richTextBox1.Text = "Enter a valid imei";
                }
  Reply With Quote
The Following User Says Thank You to angel25dz For This Useful Post:
Old 04-23-2010, 23:31   #12 (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
This algo is explained from begining to end in this forum.
Disponible in all languages, for all people, even if some don't know programing, can build.
Come with some new
  Reply With Quote
Old 04-24-2010, 17:22   #13 (permalink)
Cheater -Don't Deal with him-
 
Join Date: Jun 2009
Posts: 226
Member: 1048777
Status: Offline
Sonork: 100.1588189
Thanks Meter: 750
ALGO for zte unlock

Quote:
Originally Posted by angel25dz View Post
right, just explained i think u r the first hwo posted a source code....

ps: I coded it on C#, if someone need the source I can share it

./wbr
WHT U HAVE MR DZ
all ur post ; juste u asking or need help


  Reply With Quote
Old 04-24-2010, 17:37   #14 (permalink)
No Life Poster
 
Join Date: May 2007
Posts: 539
Member: 512970
Status: Offline
Sonork: 100.1584185
Thanks Meter: 134
Yesssss in morocoo all programmed hir and sourss hir some product in the world
  Reply With Quote
Old 04-24-2010, 17:53   #15 (permalink)
Cheater -Don't Deal with him-
 
Join Date: Jun 2009
Posts: 226
Member: 1048777
Status: Offline
Sonork: 100.1588189
Thanks Meter: 750
ALGO for zte unlock

Quote:
Originally Posted by angel25dz View Post
right, just explained i think u r the first hwo posted a source code....

ps: I coded it on C#, if someone need the source I can share it

./wbr
wht u know juste copie and paste !
wht u gived Free to the world gsm unlocking!
u are juste a copiers & pasters
  Reply With Quote
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
Seeking for flash nokia 5110 old version (3 version) can exchange for new Tomas Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 8 10-14-2017 19:29
Need software upgrade for Nokia 5110 ptkrf Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 30 02-24-2016 10:21
How can I do a Welcome note for my 6110 a dosn't have any one ? Viper Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 8 06-27-2015 11:57
needed pinout for carkit(N61xx) mobileinfo Nokia Hardware & Hardware Repair 2 07-23-2013 02:41
Operator-Logo for 5110 MiMiR the WiseMan Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 2 06-25-1999 15:50

 



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



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.41498 seconds with 11 queries

SEO by vBSEO