- void main( void )
- {
- //CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwAntiDebug, 0, 0, 0);
- /*char c[255];
- while(true)
- {
- printf("Eingeben, zack zack!!!n");
- cin >> c;
- long l = GetChecksum(c);
- printf("Checksum: [0x%.8X]n", l);
- system("pause");
- }*/
- HANDLE h[5];
- h[1] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread1, 0, 0, 0);
- h[2] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread2, 0, 0, 0);
- h[3] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread3, 0, 0, 0);
- h[4] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread4, 0, 0, 0);
- h[5] = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) dwThread5, 0, 0, 0);
- for(int x = 0; x < 5; x++)
- printf("Thread %i started. HANDLE: [0x%.8X]n", x, h[x]);
- while(true)
- {
- long l = GetChecksum(cKey);
- if(l == 0x0000E7A4)
- printf("Found Key: %sn", cKey);
- }
- }
- DWORD WINAPI dwThread1(LPVOID lpArgs)
- {
- while(true)
- {
- for(int a = 0; a < 52; a++)
- {
- cKey[0] = cPossibleChars[a];
- }
- }
- }
- DWORD WINAPI dwThread2(LPVOID lpArgs)
- {
- while(true)
- {
- for(int b = 0; b < 52; b++)
- {
- cKey[1] = cPossibleChars[b];
- }
- }
- }
- DWORD WINAPI dwThread3(LPVOID lpArgs)
- {
- while(true)
- {
- for(int c = 0; c < 52; c++)
- {
- cKey[2] = cPossibleChars[c];
- }
- }
- }
- DWORD WINAPI dwThread4(LPVOID lpArgs)
- {
- while(true)
- {
- for(int d = 0; d < 52; d++)
- {
- cKey[3] = cPossibleChars[d];
- }
- }
- }
- DWORD WINAPI dwThread5(LPVOID lpArgs)
- {
- while(true)
- {
- for(int e = 0; e < 52; e++)
- {
- cKey[4] = cPossibleChars[e];
- }
- }
- }
ds
By: sa | Date: Nov 20 2009 19:09 | Format: None | Expires: never | Size: 1.54 KB | Hits: 950
Latest pastes
7 hours ago
3 days ago
4 days ago
4 days ago
6 days ago