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 12-22-2005, 15:15   #106 (permalink)
Freak Poster
 
tatoapf's Avatar
 
Join Date: Nov 2005
Location: Miami,FL
Posts: 460
Member: 197641
Status: Offline
Thanks Meter: 60

I can help any that need the nokia security codes, I can generate it by my cell
  Reply With Quote
Old 12-22-2005, 15:18   #107 (permalink)
ssa
No Life Poster
 
ssa's Avatar
 
Join Date: Feb 2003
Location: Inside CPU
Age: 43
Posts: 1,861
Member: 23420
Status: Offline
Thanks Meter: 3,080
I can do it also.. but with the source in php or c++ we can make an windows program, so it will be available for everyone
  Reply With Quote
Old 03-18-2006, 15:33   #108 (permalink)
Junior Member
 
Join Date: May 2005
Age: 38
Posts: 33
Member: 147675
Status: Offline
Thanks Meter: 2
I would like the source code for Nokia Security Mastercode calculator for creating a VisualBasic executable program for everyone.

You can send me the c source code to my mail address.

10x in advantage!
  Reply With Quote
Old 03-18-2006, 15:44   #109 (permalink)
Product Manager
 
Electroboys's Avatar
 
Join Date: Oct 2001
Location: GSMFABRICA
Age: 43
Posts: 2,711
Member: 6594
Status: Offline
Sonork: 100.27285
Thanks Meter: 22,500
if such a algo exist in C everybody will be able to build their own calculator

btw what is "in advantage"

was just kidding ..

Br
  Reply With Quote
Old 03-19-2006, 07:25   #110 (permalink)
No Life Poster
 
magixian's Avatar
 
Join Date: Apr 2004
Location: Lagos Nigeria
Posts: 2,461
Member: 61176
Status: Offline
Sonork: 100.86572
Thanks Meter: 368
i myself never wished it in window exe coz i eat out of it!
  Reply With Quote
Old 03-19-2006, 14:53   #111 (permalink)
No Life Poster
 
elcapitel's Avatar
 
Join Date: Jul 2005
Location: zunZun Team
Age: 43
Posts: 10,185
Member: 166270
Status: Offline
Sonork: 100.1579747
Thanks Meter: 12,673
@tatoapf
Thanks my friends... to the Kuban unlockers
Good Nokia 6600 Symbian based & mcode thanks to Dejan
  Reply With Quote
Old 03-21-2006, 05:53   #112 (permalink)
Banned
 
.::Unlocker.::'s Avatar
 
Join Date: Oct 2005
Location: inside forum
Posts: 746
Member: 193336
Status: Offline
Thanks Meter: 9
if there is the code for c/c++.
anybody can compile it and sell master codes
  Reply With Quote
Old 04-06-2006, 19:45   #113 (permalink)
Banned
 
Aishur's Avatar
 
Join Date: May 2003
Location: www.CentralMobile.net/vbb
Posts: 1,654
Member: 28188
Status: Offline
Thanks Meter: 579
Hi mates,

Header mcode.h

Code:
#ifndef MCODE_H
#define MCODE_H

int calc_mcode(unsigned char *imei, unsigned char *destino);

#endif /* MCODE_H */
Source mcode.c
Code:
//
// Nokia Security Master Code
// by indear
//
// Extract from Mcode app by Dejan Kaljevic
//

#include <stdio.h>
#include <stdlib.h>

unsigned int unk;

unsigned char tabla1[] = {
	0xB1, 0xB1, 0x73, 0x73, 0xE6, 0xE6,
    0x5A, 0x5A, 0xAB, 0xAB, 0x47, 0x47,
    0x8E, 0x8E, 0x0D, 0x0D, 0x1A, 0x1A,
	0x34, 0x34, 0x68, 0x68, 0x0B, 0x0B
};

unsigned char tabla2[] = {
	0x34, 0x62, 0x58, 0x92, 0x76, 0x13,
    0x25, 0x97, 0x56, 0x28, 0x68, 0x13
};

unsigned short gethalf(unsigned char *donde)
{
	return ((donde[1]<<8)|donde[0]);
}

void sethalf(unsigned char *donde, unsigned short que)
{
	donde[0] = que & 0xFF;
	donde[1] = (que>>8) & 0xFF;
}

void inv(unsigned char *cadena)
{
	int i;
	unsigned char temp;

	for(i=0; i<=10; i+=2)
	{
		temp = cadena[i];
		cadena[i] = cadena[i+1];
		cadena[i+1] = temp;
	}
}

unsigned int calculo4a(unsigned int param0)
{
	unsigned int r0, r1, r2;
	int i;
	
	r1 = unk;
	r0 = param0 << 0x10;
	r2 = r0 >> 0x10;
	
	for(i=0; i<=0xf; i++)
	{
        r1 = r1 << 1;
        r0 = r2;
        r0 &= 1;
        r1 |= r0;
        r2 = r2 >> 1;
    }
    
    r0 = r1;
    
    return r0;
}

void calculo4(unsigned char *param0)
{
	unsigned int r0, r4, r6;
	
	r0 = gethalf(param0+8);
	r0 = calculo4a(r0);
	r6 = r0;
	r6 = r6 << 0x10;
	r6 = r6 >> 0x10;

	r0 = gethalf(param0+0xa);
	r0 = calculo4a(r0);
	r4 = r0;
	r4 = r4 << 0x10;
	r4 = r4 >> 0x10;

	r0 = gethalf(param0+2);
	r0 = calculo4a(r0);
	sethalf(param0+8, r0);

	r0 = gethalf(param0);
	sethalf(param0+0xa, r0);
	sethalf(param0, r4);
	sethalf(param0+2, r6);
	
	r0 = gethalf(param0+4);
	r0 = calculo4a(r0);
	r4 = r0;
	r4 = r4 << 0x10;
	r4 = r4 >> 0x10;
	
	r0 = gethalf(param0+6);
	r0 = calculo4a(r0);
	sethalf(param0+4, r0);
	sethalf(param0+6, r4);
}

void calculo3(unsigned char *param0)
{
	unsigned int r0, r1, r2, r4;
	int i;
	unsigned char temp[0x18];
	
	for(i=0; i<=5; i++)
	{
        r0 = i << 1;
        r2 = gethalf(param0+r0);
        sethalf(temp+r0, r2);
        r0 = i + 6;
        r0 = r0 << 1;
        sethalf(temp+r0, r2);
    }
    for(i=5; i>=0; i--)
    {
        r1 = i << 1;
        r0 = i + 4;
        r0 = r0 << 1;
        r0 = gethalf(temp+r0);
        r2 = ~r0;
        r0 = i + 2;
        r0 = r0 << 1;
        r0 = gethalf(temp+r0);
        r0 |= r2;
        r4 = gethalf(param0+r1);
        r0 ^= r4;
        sethalf(param0+r1, r0);
    }
}

void calculo2(unsigned char *param0, unsigned char *param1)
{
	unsigned int r0, r2, r3, r4, r5, r6;
	
	r5 = gethalf(param0);
	r3 = gethalf(param0+2);
	r2 = r3 << 0x10;
	r5 |= r2;
	r4 = gethalf(param0);
	r6 = r4 << 0x10;
	r6 |= r3;
	r2 = r5 >> 0xa;
	sethalf(param0, r2);
	r2 = r6 >> 0xa;
	sethalf(param0+2, r2);
	r5 = gethalf(param1);
	r2 = gethalf(param1+2);
	r0 = r2 << 0x10;
	r5 |= r0;
	r4 = gethalf(param1);
	r6 = r4 << 0x10;
	r6 |= r2;
	r0 = r5 >> 0xF;
	sethalf(param1+2, r0);
	r0 = r6 >> 0xF;
	sethalf(param1, r0);
}

void calculo1b(unsigned char *param0, unsigned char *param1, unsigned char *param2, unsigned char *param3)
{
	unsigned int r0, r1, r4, r5, r6, r8, r9;
	unsigned int temp1, temp2;
	
	r6 = gethalf(param0);
	r4 = r6 << 8;
	r9 = r4;
	r4 ^= r6;
	r5 = gethalf(param0+2);
	r4 ^= r5;
	r8 = r4;
	r4 = r5 << 8;
	r5 ^= r4;
	r5 ^= r6;
	r4 = r9;
	r5 ^= r4;
	r0 = param0[1];
	r5 ^= r0;
	r0 = param1[3];
	r4 = gethalf(param1+2);
	r0 ^= r4;
	r4 = r8;
	r0 ^= r4;
	r0 = r0 << 0x10;
	r0 = r0 >> 0x10;
	r1 = gethalf(param1);
	r1 ^= r5;
	temp1 = r1;
	r4 = r1 << 0x10;
	r4 = r4 >> 0x10;
	temp1 = r4;
	r4 = gethalf(param2+2);
	r0 ^= r4;
	r4 = gethalf(param2);
	r1 = r4 << 8;
	r0 ^= r1;
	r1 = param2[1];
	r0 ^= r1;
	r4 = gethalf(param2+2);
	r4 = r4 << 8;
	temp2 = r4;
	r0 ^= r4;
	r1 = param2[3];
	r0 ^= r1;
	sethalf(param3, r0);
	r0 = gethalf(param2);
	r4 = temp1;
	r0 ^= r4;
	r1 = param2[1];
	r0 ^= r1;
	r4 = gethalf(param2+2);
	r1 = r4 << 8;
	r0 ^= r1;
	r1 = param2[3];
	unk = r1;
	r0 ^= r1;
	sethalf(param3+2, r0);
}

void calculo1a(unsigned char *param0)
{
	int i;
	unsigned char temp[12];
	
	for(i=0; i<12; i++)
	{
        temp[i] = param0[i];
    }
    calculo1b(temp, temp+4, temp+8, param0);
    calculo1b(temp+4, temp+8, temp, param0+4);
    calculo1b(temp+8, temp, temp+4, param0+8);
}

void calculo1(unsigned char *param0, unsigned char *param1, unsigned char *param2)
{
	unsigned int r0, r2, r3, r4;

    r3 = gethalf(param1);
    r4 = gethalf(param0);
    r3 ^= r4;
    sethalf(param1, r3);
    
    r3 = gethalf(param0+2);
    r4 = gethalf(param2);
    r3 ^= r4;
    r4 = gethalf(param1+2);
    r3 ^= r4;
    sethalf(param1+2, r3);
    
    r3 = gethalf(param1+4);
    r4 = gethalf(param0+4);
    r3 ^= r4;
    sethalf(param1+4, r3);

    r3 = gethalf(param1+6);
    r4 = gethalf(param0+6);
    r3 ^= r4;
    sethalf(param1+6, r3);
    
    r4 = gethalf(param0+8);
    r2 = gethalf(param2);
    r4 ^= r2;
    r2 = r4;
    r4 = gethalf(param1+8);
    r2 ^= r4;
    sethalf(param1+8, r2);

    r4 = gethalf(param1+0xa);
    r0 = gethalf(param0+0xa);
    r4 ^= r0;
    r0 = r4;
    sethalf(param1+0xa, r0);
    
    calculo1a(param1);
}

void calc_code(unsigned char *param0, unsigned char *param1, unsigned char *param2)
{
    unsigned int r2;
	int i;

	for(i=0; i<=10; i++)
	{
		r2 = i << 1;
		calculo1(param0, param1, param2+r2);
		calculo2(param1, param1+8);
		calculo3(param1);
		calculo2(param1+8, param1);
	}

    calculo1(param0, param1, param2+0x16);
	calculo4(param1);
}

int calc_mcode(unsigned char *imei, unsigned char *destino)
{
	unsigned char mi_tabla1[24], mi_tabla2[12];
	unsigned int r0, r1;
	int i;
	unsigned char imei_hex[12];

	memcpy(mi_tabla1, tabla1, 24);
	memcpy(mi_tabla2, tabla2, 12);

	sethalf(imei_hex, 0);
	sethalf(imei_hex+0x8, 0);
	sethalf(imei_hex+0xa, 0);

	for(i=0; i<=6; i++)
	{
		r0 = i << 1;
		r1 = imei[r0];
		r1 &= 0x0F;
		r1 = r1 << 4;
		r0 = imei[r0+1];
		r0 &= 0x0F;
		r1 |= r0;
		imei_hex[i+2] = (char)r1;
	}

	inv(imei_hex);
	calc_code(mi_tabla2, imei_hex, mi_tabla1);
	inv(imei_hex);
	
	for(i=0; i<=4; i++)
	{
        r1 = i << 1;
        r0 = imei_hex[i];
        r0 = r0 >> 4;
        r0 &= 7;
        r0 += 0x30;
        destino[r1] = r0;
        r0 = imei_hex[i];
        r0 &= 7;
        r0 += 0x30;
        destino[r1+1] = r0;
    }
    destino[r1+2] = 0;
	return 0;
}
Best regards,
Aishur

Last edited by Aishur; 04-06-2006 at 21:22. Reason: for your convenence Qoute command changed in Code command
  Reply With Quote
Old 04-06-2006, 20:10   #114 (permalink)
No Life Poster
 
crux's Avatar
 
Join Date: May 2003
Age: 43
Posts: 1,036
Member: 30192
Status: Offline
Thanks Meter: 6
true

is on indear's page since yesterday

www.indear****

also, he added tsm5m
  Reply With Quote
Old 04-07-2006, 09:54   #115 (permalink)
No Life Poster
 
Dave.W's Avatar
 
Join Date: Nov 2001
Location: England
Age: 41
Posts: 2,821
Member: 7653
Status: Offline
Thanks Meter: 823
i thought the code looks like indear work. with the very medeteranian feel to it
  Reply With Quote
Old 04-07-2006, 15:00   #116 (permalink)
No Life Poster
 
.::iRizwan::.'s Avatar
 
Join Date: Aug 2004
Location: Planet Earth
Posts: 1,160
Member: 79937
Status: Offline
Sonork: 100.84313
Thanks Meter: 4,715
Donate money to this user
Lightbulb

[glow=Blue]Here is the master code calculator PC version.Thanx to Angelart.[/glow]
Attached Files
File Type: rar NKGsM DCT4 Calculator.part1.rar (293.0 KB, 213 views)
File Type: rar NKGsM DCT4 Calculator.part2.rar (293.0 KB, 190 views)
File Type: rar NKGsM DCT4 Calculator.part3.rar (293.0 KB, 189 views)

Last edited by .::iRizwan::.; 04-09-2006 at 10:54.
  Reply With Quote
Old 04-07-2006, 15:07   #117 (permalink)
No Life Poster
 
.::iRizwan::.'s Avatar
 
Join Date: Aug 2004
Location: Planet Earth
Posts: 1,160
Member: 79937
Status: Offline
Sonork: 100.84313
Thanks Meter: 4,715
Donate money to this user
Lightbulb

[glow=Blue]Here is the last part.[/glow]
Attached Files
File Type: rar NKGsM DCT4 Calculator.part4.rar (111.0 KB, 195 views)

Last edited by .::iRizwan::.; 04-09-2006 at 10:55.
  Reply With Quote
Old 04-07-2006, 15:59   #118 (permalink)
Banned
 
Aishur's Avatar
 
Join Date: May 2003
Location: www.CentralMobile.net/vbb
Posts: 1,654
Member: 28188
Status: Offline
Thanks Meter: 579
Hi mates,

Thanks .::SleeplessRazi::. for sharing and for your endeavors

Best regards,
Aishur
  Reply With Quote
Old 04-07-2006, 16:04   #119 (permalink)
Freak Poster
 
Join Date: Jul 2005
Location: Poland, Bytom
Age: 37
Posts: 177
Member: 161847
Status: Offline
Thanks Meter: 47
You can try another security code calculator
Check this topic => http://forum.gsmhosting.com/vbb/show...87#post1680687
  Reply With Quote
Old 04-07-2006, 20:02   #120 (permalink)
Banned
 
Aishur's Avatar
 
Join Date: May 2003
Location: www.CentralMobile.net/vbb
Posts: 1,654
Member: 28188
Status: Offline
Thanks Meter: 579
hi mates,

Thanks wntl, it is an another mcode calc

We still waiting the update of the maestro Crux (Mcode and TSM5M)

Best regards,
Aishur
  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
master code of samsung a200 fonec VLSI, Conexant, Skyworks and Old Models 9 07-27-2010 00:15
How about the behavior of Dejan's BB5 Unlocker if have tried so many wrong codes cprasad7 Nokia Base Band 5 ( BB-5 ) 10 12-16-2007 18:31
algo of dejan's for bb5 here!!!! **RABIOS-TE@M** GSM Programming & Reverse Engineering 48 05-22-2007 19:43
Urgent need of Master Code SotosLg Phone Unlocking Codes & Maps 1 04-04-2005 19:55
DCT4 Master code calculation algo. CobWeb Wanted Products 0 02-02-2003 12:59

 



All times are GMT +1. The time now is 19: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.25133 seconds with 10 queries

SEO by vBSEO