Guest User

crackz

a guest
Apr 2nd, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.23 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication2
  8. {
  9.     class Program
  10.     {
  11.         static uint Crc32(params byte[] data)
  12.         {
  13.             uint crc = 0xFFFFFFFF;
  14.             for (int i = 0; i < data.Length; i++)
  15.             {
  16.                 crc = crc ^ data[i];
  17.                 for (int j = 0; j < 8; j++)
  18.                 {
  19.                     if ((crc & 1) == 1)
  20.                     {
  21.                         crc = (crc >> 1) ^ 0xEDB88320;
  22.                     }
  23.                     else
  24.                     {
  25.                         crc >>= 1;
  26.                     }
  27.                 }
  28.             }
  29.             return crc ^ 0xFFFFFFFF;
  30.         }
  31.  
  32.  
  33.         static void Main(string[] args)
  34.         {
  35.             const string giveawayLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
  36.             byte[] giveawayBytes = Encoding.ASCII.GetBytes(giveawayLetters);
  37.  
  38.             Parallel.ForEach(giveawayBytes, ( l1, state ) =>
  39.                 {
  40.                     foreach (byte l2 in giveawayBytes)
  41.                     {
  42.                         foreach (byte l3 in giveawayBytes)
  43.                         {
  44.                             foreach (byte l4 in giveawayBytes)
  45.                             {
  46.                                 foreach (byte l5 in giveawayBytes)
  47.                                 {
  48.                                     if (Crc32(l1, l2, l3, l4, l5) == 0x01A72207)
  49.                                     {
  50.                                         Console.WriteLine("{0}{1}{2}{3}{4}",
  51.                                             Convert.ToChar(l1),
  52.                                             Convert.ToChar(l2),
  53.                                             Convert.ToChar(l3),
  54.                                             Convert.ToChar(l4),
  55.                                             Convert.ToChar(l5));
  56.                                         state.Break();
  57.                                     }
  58.                                 }
  59.                             }
  60.                         }
  61.                     }
  62.                 });
  63.             Console.WriteLine();
  64.         }
  65.     }
  66. }
Add Comment
Please, Sign In to add comment