Public paste
ds
By: sa | Date: Nov 20 2009 19:09 | Format: None | Expires: never | Size: 1.54 KB | Hits: 898

  1. void main( void )
  2. {
  3.         //CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwAntiDebug, 0, 0, 0);
  4.         /*char c[255];
  5.         while(true)
  6.         {
  7.                 printf("Eingeben, zack zack!!!n");
  8.                 cin >> c;
  9.                 long l = GetChecksum(c);
  10.                 printf("Checksum: [0x%.8X]n", l);
  11.                 system("pause");
  12.         }*/
  13.         HANDLE h[5];
  14.  
  15.         h[1] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread1, 0, 0, 0);
  16.         h[2] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread2, 0, 0, 0);
  17.         h[3] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread3, 0, 0, 0);
  18.         h[4] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread4, 0, 0, 0);
  19.         h[5] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread5, 0, 0, 0);
  20.        
  21.         for(int x = 0; x < 5; x++)
  22.                 printf("Thread %i started. HANDLE: [0x%.8X]n", x, h[x]);
  23.  
  24.         while(true)
  25.         {
  26.                 long l = GetChecksum(cKey);
  27.                 if(l == 0x0000E7A4)
  28.                         printf("Found Key: %sn", cKey);
  29.         }
  30. }
  31.  
  32. DWORD WINAPI dwThread1(LPVOID lpArgs)
  33. {
  34.         while(true)
  35.         {
  36.                 for(int a = 0; a < 52; a++)
  37.                 {
  38.                         cKey[0] = cPossibleChars[a];
  39.                 }
  40.         }
  41. }
  42. DWORD WINAPI dwThread2(LPVOID lpArgs)
  43. {
  44.         while(true)
  45.         {
  46.                 for(int b = 0; b < 52; b++)
  47.                 {
  48.                         cKey[1] = cPossibleChars[b];
  49.                 }
  50.         }
  51. }
  52. DWORD WINAPI dwThread3(LPVOID lpArgs)
  53. {
  54.         while(true)
  55.         {
  56.                 for(int c = 0; c < 52; c++)
  57.                 {
  58.                         cKey[2] = cPossibleChars[c];
  59.                 }
  60.         }
  61. }
  62. DWORD WINAPI dwThread4(LPVOID lpArgs)
  63. {
  64.         while(true)
  65.         {
  66.                 for(int d = 0; d < 52; d++)
  67.                 {
  68.                         cKey[3] = cPossibleChars[d];
  69.                 }
  70.         }
  71. }
  72. DWORD WINAPI dwThread5(LPVOID lpArgs)
  73. {
  74.         while(true)
  75.         {
  76.                 for(int e = 0; e < 52; e++)
  77.                 {
  78.                         cKey[4] = cPossibleChars[e];
  79.                 }
  80.         }
  81. }