Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    cs2d coloraimbot mit teamdetection


    bobi
     Share

    Recommended Posts

    hatte heute ein wenig langeweile, und habe einen color-aimbot für cs2d geschrieben. sollte für jede version funktionieren - sobald man die colormodels benutzt.

     

    //CS2D Colorbot with team-detection.
    //written by bobi !
    
    
    #include <iostream>
    #include <windows.h>
    #include <conio.h>
    
    #pragma warning(disable : 4081  312)
    
    struct CS2D_PROC_INFO
    {
    RECT windowRect;
    HWND hWnd;
    HANDLE handle;
    DWORD pid;
    HDC hdc;
    };
    CS2D_PROC_INFO pNfo;
    
    
    int GetProcessInformations()
    {
    while(!pNfo.hWnd)
    {
    	pNfo.hWnd= FindWindow(NULL, "Unreal Software's Counter-Strike 2D");
    	Sleep(1);
    }
    
    if (!(GetWindowThreadProcessId(pNfo.hWnd, &pNfo.pid))) { return 0; }
    if (!(pNfo.handle = OpenProcess(PROCESS_ALL_ACCESS, false, pNfo.pid))) { return 0; }
    
    if (!(pNfo.hdc = GetDC(pNfo.hWnd))) { return 0; }
    
    if (!(GetWindowRect(pNfo.hWnd, &pNfo.windowRect))) { return 0; }
    
    return 1;
    }
    
    
    void Aim()
    {
    DWORD AddrTeam;
    COLORREF pixelColor;
    int myTeam = 0; // 1 -> T || 2->CT || 0-> Spec
    bool AimActive = false;
    
    while(true)
    {	
    	if (GetAsyncKeyState(VK_F5)&1)
    	{
    		AimActive = !AimActive;
    	}
    
    	if (AimActive)
    	{
    		//in welchem team spielen wir?
    		ReadProcessMemory(pNfo.handle, (LPVOID)(0x005E60C0), &AddrTeam, sizeof(AddrTeam), 0);
    		ReadProcessMemory(pNfo.handle, (LPVOID)(AddrTeam + 0x104), &myTeam, sizeof(myTeam), 0);
    
    		//komplettes spiel-fenster nach usnerer farbe absuchen
    		for(int y=0; y<pNfo.windowRect.right; y = y +9)
    		{
    			for (int x=0; x<pNfo.windowRect.bottom; x = x + 9)
    			{	
    				pixelColor=GetPixel(pNfo.hdc, x, y);
    
    				//wenn wir t sind, und die farbe auf ct zutrifft -> cursor auf gegner. wenn wir ct sind, und die farbe auf t zutrifft -> cursor auf gegner
    				if (myTeam == 1 && pixelColor == RGB(0, 132, 255) || myTeam == 2 && pixelColor == RGB(203, 56, 70) )  //t: 203, 56, 70 //ct: 0, 132, 255
    				{								  
    					SetCursorPos(x + pNfo.windowRect.left, y + pNfo.windowRect.top);
    				}
    			}
    		}
    
    	}
    	Sleep(1);
    	}
    }
    
    
    
    int main(void)
    {
    printf("%s", "Welcome to bobis CS2D Colorbot =) \nOn/Off Hotkey: F5 \n\n");
    
    printf("%s", "gathering Process informations....\n");
    
    if (GetProcessInformations() == 0)
    {
    	printf("%s", "failed to get process informations...");
    }
    else
    {
    	printf("%s", "ok, i got all process informations...LETS AIM! =)");
    	Aim();
    }
    
    
    return 0;
    }

    meine dazu passende colormodels: DOWNLOAD (einfach in ../cs2d/gfx/player kopieren)

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...