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.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-22-2013, 10:29   #1 (permalink)
No Life Poster
 
oOXTCOo's Avatar
 
Join Date: Dec 2000
Location: J.A.U - Just Another Unlocker
Age: 43
Posts: 3,498
Member: 2878
Status: Offline
Thanks Meter: 9,123
Nokia SL3 Cod 2 NCK Source.. (the last secret for bforcer..)


here is the last secret for local beforce ppl!

iam not a php expert... but works!

PHP Code:
<?php
function SL3NCK($TargetHash$MasterSP)
{
    
$MasterSP='000000'.substr($MasterSP,0,24);
    for (
$i 1$i <= 7$i++) 
    {
        
$hashpack('H*''0'.$i.$TargetHash );
        
$hash=strtoupper(sha1($hash));
        
$levelhash_16='';
        
$levelhash_16=$levelhash_16.substr($hash,0,32);

        
$precode8=substr($MasterSP,0,16);
        
$precode7=substr($MasterSP,17,30);
        for (
$magic 0$magic <= 1$magic++) 
        {
            
$shpack('H*''0'.$magic.$levelhash_16.$precode8);
            
$sh=strtoupper(sha1($sh));
            
$precode='';
            
$precode=SimlFeistel($sh$precode7);
            
$precode7=$precode;
                
            
$shpack('H*''0'.$magic.$levelhash_16.$precode);
            
$sh=strtoupper(sha1($sh));
            
$precode='';
            
$precode=SimlFeistel($sh$precode88);
            
$precode8=$precode;
        }
        
        
$final=$precode8.$precode7;
        
$x=1;
        
$nck='';
        for (
$y 1$y <= 15$y++) 
        {
            
$nck=$nck.$final[$x];
            
$x+=2;
        }
        
$result.='#pw+'.$nck.'+'.$i.'#<br>';
    }
    return 
$result;
}

function 
SimlFeistel($sh$precode$bytes 7)
{
    
$i=0
    while(
$i<($bytes*2)) 
    {
        
$nck=$sh[$i].$sh[$i+1];
        
$nck2=$precode[$i]+$precode[$i+1];
        
$prenck=( (hexdec($nck)+hexdec($nck2)) % 10);
        
$result=$result.'0'.$prenck;
        
$i+=2
    }    
    return 
$result;    
}
?>

call this script like:

PHP Code:
<?php
    $TargetHash
=$_REQUEST["hash"];
    echo 
'[TARGET_HASH]: '.$TargetHash.'</br>';
    
$MasterSP=$_REQUEST["mastersp"];
    echo 
'[MASTER_SP_CODE]: '.$MasterSP.'</br></br>';
    
    
    echo 
SL3NCK($TargetHash,$MasterSP);
?>

test: http://ooxtcoo.dyndns.org/sl3code.ph...04030708040805


wbr.
hari
 
The Following 22 Users Say Thank You to oOXTCOo For This Useful Post:
Show/Hide list of the thanked
Old 07-22-2013, 12:08   #2 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Rome , Italy
Posts: 1,530
Member: 190882
Status: Offline
Sonork: BB PIN: 7C83D9CE
Thanks Meter: 1,282
Donate money to this user
here on asp.net

Code:
Imports System.Security.Cryptography
Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Public Function Hex2Str(ByVal Hex As String)
        Dim hb((Hex.Length / 2) - 1) As Byte
        Dim i As Integer = 0
        For n = 0 To Hex.Length - 2 Step 2
            hb(i) = Val("&H" & Hex.Substring(n, 2))
            i += 1
        Next
        Return System.Text.ASCIIEncoding.ASCII.GetString(hb)
    End Function

    Public Function Str2Hex(ByVal str As String)
        Return System.BitConverter.ToString(System.Text.ASCIIEncoding.ASCII.GetBytes(str)).Replace("-", "")
    End Function

    Public Function SL3_NCK(ByVal Hash As String, ByVal MasterCode As String)
        MasterCode = "000000" & MasterCode.Substring(0, 24)
        Dim levelhash As String = ""
        For y = 1 To 7
            levelhash = "0" & y & Hash
            levelhash = My_Sha1(levelhash)

            Dim levelhash_16 As String = levelhash.Substring(0, 32).ToUpper
            Dim precode_8 As String = MasterCode.Substring(0, 16)
            Dim precode_7 As String = MasterCode.Substring(16, 14)

            For magic = 0 To 1
                Dim sh As String = My_Sha1("0" & magic & levelhash_16 & precode_8).ToUpper
                Dim precode As String = SimFeistel(sh, precode_7, 7)
                precode_7 = precode

                sh = My_Sha1("0" & magic & levelhash_16 & precode).ToUpper
                precode = SimFeistel(sh, precode_8, 8)
                precode_8 = precode
            Next
            Dim data As String = ""
            Dim final As String = precode_8 & precode_7
            Dim codice As String = ""
            For n = 0 To final.Length - 1
                If n Mod 2 = 1 Then codice &= final.Substring(n, 1)
            Next
            Label1.Text &= "LEVEL" & y & "= #pw+" & codice & "+" & y & "#" & "<br>"
        Next
    End Function

    Public Function SimFeistel(ByVal sh As String, ByVal precode As String, ByVal volte As Integer)
        Dim result As String = ""
        For i = 0 To volte - 1
            result &= "0" & (Val("&H" & sh.Substring(i * 2, 2)) + Val("&H" & precode.Substring(i * 2, 2))) Mod 10
        Next
        Return result
    End Function
    Function My_Sha1(ByVal strToHash As String) As String
        Dim bytesToHash((strToHash.Length / 2) - 1) As Byte
        Dim i As Integer = 0

        For n = 0 To strToHash.Length - 2 Step 2
            bytesToHash(i) = Val("&H" & strToHash.Substring(n, 2))
            i += 1
        Next

        Dim sha1Obj As New SHA1CryptoServiceProvider


        bytesToHash = sha1Obj.ComputeHash(bytesToHash)

        Dim strResult As String = ""

        For Each b As Byte In bytesToHash
            strResult += b.ToString("x2")
        Next

        Return strResult
    End Function
    Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Label1.Text = ""
        If TextBox1.Text <> "" And TextBox2.Text <> "" Then
            If TextBox1.Text.Length <> &H14 * 2 Then
                Label1.Text = "BAD HASH FORMAT!"
                Exit Sub
            End If

            If TextBox2.Text.Length <> &HF * 2 Then
                Label1.Text = "BAD MASTER CODE FORMAT!"
                Exit Sub
            End If

            SL3_NCK(TextBox1.Text, TextBox2.Text)
        End If
    End Sub
End Class
 
The Following 10 Users Say Thank You to fr3nsis For This Useful Post:
Show/Hide list of the thanked
Old 07-22-2013, 13:38   #3 (permalink)
No Life Poster
 
Join Date: Sep 2012
Location: UK
Posts: 1,245
Member: 1816005
Status: Offline
Thanks Meter: 299
will this provide bruteforcers a faster calculation? can we calculate 20digit nck from now on?
 
Old 07-22-2013, 13:47   #4 (permalink)
No Life Poster
 
dawood1208's Avatar
 
Join Date: Aug 2009
Location: Future
Age: 30
Posts: 2,885
Member: 1093004
Status: Offline
Thanks Meter: 4,382
Quote:
Originally Posted by gsmro2012 View Post
will this provide bruteforcers a faster calculation? can we calculate 20digit nck from now on?

Why not u can even repair imei with this
i'm joking now serious with this code u can convert mastercode(after b.f) + hash to nck
thx oOXTCOo & fr3nsis
 
The Following 2 Users Say Thank You to dawood1208 For This Useful Post:
Old 07-23-2013, 19:51   #5 (permalink)
No Life Poster
 
dawood1208's Avatar
 
Join Date: Aug 2009
Location: Future
Age: 30
Posts: 2,885
Member: 1093004
Status: Offline
Thanks Meter: 4,382


All Same just added option Auto Calculate (load cod/txt file)
it will generate nck + add nck in cod/txt file (Thx sam for idiea)
 
The Following 4 Users Say Thank You to dawood1208 For This Useful Post:
Show/Hide list of the thanked
Old 07-23-2013, 22:59   #6 (permalink)
Junior Member
 
Join Date: Nov 2011
Posts: 2
Member: 1696380
Status: Offline
Thanks Meter: 1
upload that software please
 
Old 07-23-2013, 23:32   #7 (permalink)
Major Poster
 
Join Date: Jun 2013
Posts: 43
Member: 1957927
Status: Offline
Thanks Meter: 2
So this works after the log file has been decripted, right?
 
Old 07-24-2013, 05:39   #8 (permalink)
No Life Poster
 
Join Date: Aug 2007
Location: colombia
Posts: 500
Member: 576776
Status: Offline
Thanks Meter: 133
Quote:
Originally Posted by dawood1208 View Post


all same just added option auto calculate (load cod/txt file)
it will generate nck + add nck in cod/txt file (thx sam for idiea)
please link to download file
 
Old 07-24-2013, 05:59   #9 (permalink)
Registered User
 
Join Date: Mar 2004
Age: 47
Posts: 281
Member: 57367
Status: Offline
Thanks Meter: 12
is simple as that ? i see no any hash table
 
Old 07-24-2013, 12:34   #10 (permalink)
No Life Poster
 
oOXTCOo's Avatar
 
Join Date: Dec 2000
Location: J.A.U - Just Another Unlocker
Age: 43
Posts: 3,498
Member: 2878
Status: Offline
Thanks Meter: 9,123
sha1 rounds with mixing some bytes..
 
Old 07-24-2013, 15:43   #11 (permalink)
No Life Poster
 
irfan_gsm's Avatar
 
Join Date: Feb 2008
Location: ATI atheeq technical(srilanka)
Posts: 1,254
Member: 709520
Status: Offline
Thanks Meter: 275
431139832242522431139832242522

nokia 1616 movistar . only get master code from server. any one can convert this to unlock code>??? thanks
 
Old 07-24-2013, 16:04   #12 (permalink)
No Life Poster
 
oOXTCOo's Avatar
 
Join Date: Dec 2000
Location: J.A.U - Just Another Unlocker
Age: 43
Posts: 3,498
Member: 2878
Status: Offline
Thanks Meter: 9,123
you need also your hash... its in your hash file what you uploaded..

then you use this adress:

http://ooxtcoo.dyndns.org/sl3code.ph...31139832242522

in hash you enter your hash and in master sp you enter your master sp ( i have done this already for you).

so only change the hash (0000000000000000000000000000000000000000) with yours...
 
Old 07-24-2013, 16:12   #13 (permalink)
Cheater -Don't Deal with him-
 
Join Date: Dec 2012
Location: bangladesh
Posts: 1,099
Member: 1850093
Status: Offline
Sonork: 100.1627469
Thanks Meter: 339
Quote:
Originally Posted by irfan_gsm View Post
431139832242522431139832242522

nokia 1616 movistar . only get master code from server. any one can convert this to unlock code>??? thanks
try this code and post result please

#pw+275503618616486+1#
#pw+705362924524085+2#
#pw+683401949605753+3#
#pw+845513458526921+4#
#pw+751617387407037+5#
#pw+562441500417174+6#
#pw+671220790582951+7#
 
Old 07-24-2013, 16:36   #14 (permalink)
No Life Poster
 
IkaMazini's Avatar
 
Join Date: Jul 2005
Location: Georgia GE
Posts: 2,694
Member: 162473
Status: Offline
Sonork: Not have
Thanks Meter: 592
Donate money to this user
Quote:
Originally Posted by gsmnsd View Post
try this code and post result please

#pw+275503618616486+1#
#pw+705362924524085+2#
#pw+683401949605753+3#
#pw+845513458526921+4#
#pw+751617387407037+5#
#pw+562441500417174+6#
#pw+671220790582951+7#
Do you really think this will work
 
Old 07-24-2013, 17:16   #15 (permalink)
No Life Poster
 
irfan_gsm's Avatar
 
Join Date: Feb 2008
Location: ATI atheeq technical(srilanka)
Posts: 1,254
Member: 709520
Status: Offline
Thanks Meter: 275
i not used brute force service to to get unlock code for this nokia 1616 . because it its cheap price (movistar spain) than brute force method .but my bad luck server just give master code . any way to calculate nck code without hash file?? thanks all for try to help me
 
Closed Thread

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


 



All times are GMT +1. The time now is 15:30.



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.24754 seconds with 9 queries

SEO by vBSEO