Huawei Unlocker, es una calculadora para modems 3G |
Bienvenido, invitado ( Identificarse | Registrarse )
![]() ![]() |
Huawei Unlocker, es una calculadora para modems 3G |
Oct 30 2015, 09:00 PM
Publicado:
#1
|
|
|
Miembro del Clan ![]() Grupo: Miembros Mensajes: 2 Agradecimientos: 0 Registrado: 16-September 15 Miembro No.: 754,039 Pais:
|
Aca les dejo el codigo fuente para que hagan su calculadora para los modems 3G hagan sus pruebas de rigor el codigo fuente esta hecho en C# pero bien pueden cambiar a delphi o C++..
Code: { string data = this.textBox1.Text; string str2 = this.textBox2.Text; if ((data.Length == 95) && (str2.Length == 95)) { uint number; int num2; this.ResultTextBox.Text = ""; this.ResultTextBox.Update(); SHA256Managed managed = new SHA256Managed(); byte[] secondArray = new byte[32]; byte[] destinationArray = new byte[64]; byte[] buffer = new byte[8]; //this loop is simply creating a byte array of 32 elements (first string input) each after converted form of hex ascii value. for (num2 = 0; num2 < 32; num2++) { uint.TryParse(data.Substring(num2 * 3, 2), NumberStyles.HexNumber, null, out number); secondArray[num2] = (byte)number; } // this loop is creating a byte array of 64 elements but 32 pairs(95 characters) of hexadecimal numbers from your 2nd input string and after conversion put in to this array from 32 to 63th position of this array .... num2 = 0; for (; num2 < 32; num2++) { uint.TryParse(str2.Substring(num2 * 3, 2), NumberStyles.HexNumber, null, out number); destinationArray[32 + num2] = (byte)number; } int num3 = 0; for (int i = 99999999; i >= 0; i--) { // this loop is simply creating a buffer array[8] of character 57 each in it . int num5 = i; for (num2 = 0; num2 < 8; num2++) { buffer[7 - num2] = (byte)((num5 % 10) + 48); num5 /= 10; } // hashing with 256 bit excryption the array and then copying to first 32 empty location of destination array . Array.Copy(managed.ComputeHash(buffer), destinationArray, 32); // comparison of two byte array with their encryption values and if found equal then will show the required string code and will be knocked out of this loop ... if (managed.ComputeHash(destinationArray).SequenceEqual<Byte>(secondArray)) { this.ResultTextBox.Text = i.ToString("D8"); break; } // updating the value of progress bar and its values .. if ((num3 % 1000000) == 0) { if ((num3 / 1000000) >= 100) progressBar1.Value = 100; else progressBar1.Value = (num3 / 1000000); this.ProgressLabel.Text = "Progress..." + ((num3 / 1000000)).ToString() + "%"; this.ProgressLabel.Update(); } num3++; } if (this.ResultTextBox.Text != "") { this.ProgressLabel.Text = "Finished... 100% ...Enjoy!"; progressBar1.Value = 100; } else { this.ProgressLabel.Text = " Unable to find any formula for your code calculation "; } } } |
|
|
|
![]() ![]() |
| Ver Visitas | Fecha y Hora actual: 17th June 2026 - 10:14 AM |