Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.02 KB | None | 0 0
  1. void main(void)
  2. {
  3.     printf("////////////////////////////////////////////\n");
  4.     printf("//   [CS:S] Extern Triggerbot by Mozo     //\n");
  5.     printf("////////////////////////////////////////////\n\n");
  6.     printf("[+] waiting for Counter-Strike Source\n");
  7.  
  8.     while(!(GameWindow.hWindow = FindWindow("Valve001", "Counter-Strike Source")))
  9.         Sleep(10);
  10.  
  11.     printf("[+] Counter-Strike Source has been found\n");
  12.     printf ("\n--------------------------\n\n");
  13.  
  14.     Sleep(2000);
  15.  
  16.     SetForegroundWindow( GameWindow.hWindow );
  17.     while( !( GetForegroundWindow() == GameWindow.hWindow ) )
  18.     {
  19.         Sleep(10);
  20.     }
  21.     while(!(dwTID = GetWindowThreadProcessId(GameWindow.hWindow,&dwPID)))
  22.         Sleep(10);
  23.  
  24.     while( !( hProcess = OpenProcess( PROCESS_ALL_ACCESS, false, dwPID ) ) )
  25.         Sleep(10);
  26.  
  27.     while(!(hThread = OpenThread(THREAD_ALL_ACCESS,false,dwTID)))
  28.         Sleep(10);
  29.  
  30.     CreateThread(0,0,(LPTHREAD_START_ROUTINE)Search,0,0,0);
  31.     CreateThread(0,0,(LPTHREAD_START_ROUTINE)Trigger,0,0,0);
  32.    
  33.     while(FindWindow(NULL, "Counter-Strike Source"))
  34.         Sleep(10);
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement