Page 1 of 4 123 ... LastLast
Results 1 to 15 of 51
  1. #1
    dirtjumpermike's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    208
    Reputation
    10
    Thanks
    37
    My Mood
    Cool

    Red face part aimbot source

    Ok after having some other members advice, i decided im not going to release the full aimbot i will release half the code not all of it so if you wanna biuld your own off it its fine by me if you wanna make something else of it fine by me so do not try to build it in this state it will have so many errors


    Code:
    #include "ScanContents.h"
    
    
    
    bool TakeScreenshot(std::string WindowToFind, BITMAP &bm, HBITMAP &hbmap, BITMAPINFO &bmi, HDC &hdcShot, HBITMAP &hBitmapOld, HWND &hwnd);
    void SetupBitmapInfo(BITMAPINFO &bmi, int bWidth, int bHeight, int bitsPerPixel);
    bool CompareColour(RGBQUAD *pPixels, int height, int width, int x, int y);
    void ScanBMPHorizontal(ScanContents * scan);
    //add after BASIC CONCEPT
    bool Aim_BotThr(AimbotThr * aimThr1);
    
    //heres our global mouse XY that remembers where the mouse last was
    //-----
    MouseCoord CurrentMouseXY(0, 0);
    
    bool CompareColour(RGBQUAD *pPixels, int height, int width, int x, int y)
    {
    	int p = (height-y-1)*width+x; // upside down
    	//int r = (int)pPixels[p].rgbRed;
    	//int g = (int)pPixels[p].rgbGreen;
    	//int b = (int)pPixels[p].rgbBlue;
    	//std::cout << (int)pPixels[p].rgbRed << ", " << (int)pPixels[p].rgbGreen << ", " << (int)pPixels[p].rgbBlue  << std::endl;
    	//SetCursorPos(x, y);
    	//PINK
    	//CSS BLUE
    	if((int)pPixels[p].rgbRed < 30 && (int)pPixels[p].rgbGreen < 30 && (int)pPixels[p].rgbBlue > 215)
    	//css red
    	//if((int)pPixels[p].rgbRed > 215 && (int)pPixels[p].rgbGreen < 30 && (int)pPixels[p].rgbBlue < 30)
    	{
    		//std::cout << "FOUND PINK" << std::endl;
    		//system("PAUSE");
    		//std::cout << r << ", " << g << ", " << b  << std::endl;
    		//std::cout << "Found color" << std::endl;
    
    		return true;
    	}
    	//else std::cout << "NOT FOUND PINK" << std::endl;
    	if(GetAsyncKeyState(VK_ESCAPE))
    	{
    		exit(0);
    	}
    	return false;
    }
    
    
    void ShootBot(int x, int y)
    {
    	mouse_event(MOUSEEVENTF_LEFTDOWN,x, y,0,0);
    	mouse_event(MOUSEEVENTF_LEFTUP,x, y,0,0);
    }
    
    
    //OUR MAIN SCANNER LOOP
    void ScanBMPHorizontal(ScanContents * scan)
    {
    	int startedInScanTime = clock();
    	//scan until it reaches the limits/bounds of the game window
    	
    	//THIS CAN BE DIVIDED BY ANY NUMBER, 5 WAS JUST THE CHOICE THAT FELT RIGHT FOR ME, E.G. DOESNT SCAN TOO MUCH OF THE SCREEN. Lower numbers cover
    	//more of the game
    	//Just like well do below with the X, here we start scanning at about 1/4 of the screen, this allows us to scan the screen much faster
    	//and makes our aimbot much more efficient
    	for(int y = (scan->RcWindow.bottom - scan->RcWindow.top)/4;
    		y < ((scan->RcWindow.bottom - scan->RcWindow.top)-(scan->RcWindow.bottom - scan->RcWindow.top)/3.5);
    		y++)
    	//for(scan->Y = scan->StartingY-((int)(scan->RcWindow.bottom - scan->RcWindow.top)/5)/*GET'S THE WINDOW'S HEIGHT/5*/; scan->Y < scan->StartingY + ((int)(scan->RcWindow.bottom - scan->RcWindow.top)/5); scan->Y+=3)
    	{
    		//SetCursorPos(scan->X, scan->Y);
    		//3 because we are checking RGB every time
    		//ONLY SCAN about 2-3/4 of the screen, this way scans are much faster and we have much more control over the aimbot
    		//WE START X at about 1/4 of the screen and stop at 3/4, this way it can work at any window resolution
    		for(int x = (int)((scan->RcWindow.right - scan->RcWindow.left)/4)/*+15*/; 
    			x < (int)((scan->RcWindow.right - scan->RcWindow.left)-(scan->RcWindow.right - scan->RcWindow.left)/4);
    			x ++)
    		{
    			//SetCursorPos(scan->X+scan->RcWindow.left, scan->Y+scan->RcWindow.top);
    			//Sleep(1);
    			//CHECK IF OUR CHOSEN COLOUR = TRUE
    			if(CompareColour(scan->PPixels, scan->Bm.bmHeight, scan->Bm.bmWidth, x, y))
    			{
    				int z = x;
    				//the width - itself/2
    				while(z < (int)((scan->RcWindow.right - scan->RcWindow.left)-(scan->RcWindow.right - scan->RcWindow.left)/4))
    				{
    					//comment this after
    					//SetCursorPos(z, scan->Y);
    					//search until our color is not the same and then DEFINE A CENTER POINT from the point found
    					//within the for loop(POINT 1 = scan->X to POINT 2 = z (Center  = z - (z - scan->X)/2))
    					//the pixel between point 2 and point 1
    					if(!CompareColour(scan->PPixels, scan->Bm.bmHeight, scan->Bm.bmWidth, z, y))
    					{
    						break;
    					}
    					z++; //COULD ALSO BE 3, 2 is used because i am looking for the exact center point of the first and last pixel
    				}
    				//MouseCoord coord((z -( z - scan->X)/2)+scan->RcWindow.left means position CURSOR ON CENTER PIXEL(BETWEEN 1st and last), scan->Y+scan->RcWindow.top);
    				//4 IS A PERSONAL CHOICE, THIS MEANS AIM 4 pixels below where the top found pixel is
    				//that is usually the head, so i prefer to give a shot square in the face 
    				//as the normal shot may skim the top of the head and miss
    				//this way there could be problems with the array, but not with our design
    				SetCursorPos((z -( z - x)/2)+scan->RcWindow.left, (y+4)+scan->RcWindow.top);
    				//Sleep(85);
    				
    				//SmoothMouseMovement((z -( z - x)/2)+scan->RcWindow.left, y+scan->RcWindow.top);
    				//system("pause");
    				//SHOOT AT THE EXACT CENTER POINT of the color 
    
    				//ADD AFTER BASIC CONCEPT
    				//GET OUR CURRENT MOUSE POSITION AND COMPARE TO PREVIOUS
    				POINT currentPos; 
    				GetCursorPos(&currentPos);
    				//~ more or less in the same place as the last position therefor we shoot
    				//this tells us that the mouse didnt have to move much and is VERY CLOSE to
    				//our target, this stops us from shooting during aiming. Forcing us to conserve
    				//ammo and increasing accuracy 60% of the time works every time
    				//+ X is just a personal choice, this means if its within X pixels of the last scan then shoot
    				//just checking if the mouse is within a nice range
    				//2 IS A GOOD NUMBER FOR SNIPERS
    
    				//if(currentPos.x < CurrentMouseXY.X + 4 && currentPos.x > CurrentMouseXY.X-4 && 
    				//	currentPos.y < CurrentMouseXY.Y + 4 && currentPos.y > CurrentMouseXY.Y-4)
    				//{
    					//ShootBot((z -( z - x)/2)+scan->RcWindow.left, y+scan->RcWindow.top);
    				//}
    
    				CurrentMouseXY.X = currentPos.x;
    				CurrentMouseXY.Y = currentPos.y;
    				//std::cout << "Bang bang "  << std::endl;
    				//*scan->ColorFoundK = true;
    				return;
    			}
    		}
    	}
    	std::cout << "out of CLOCK, took " << clock() - startedInScanTime << " milliseconds" << std::endl;
    }
    
    
    bool Aim_BotThr(AimbotThr * aimThr1)
    things im working on

    colour aimbot (possibly wireframe aimbot)
    finding a bypass for GameGuard (with constant updates)
    wallhack
    OPK

  2. The Following 6 Users Say Thank You to dirtjumpermike For This Useful Post:

    ABHIJIT40 (07-27-2012),Frought (09-28-2012),kalokoko (08-07-2012),ProHackas (07-27-2012),XenXable (09-13-2012),zx140zx (07-27-2012)

  3. #2
    Prepix's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    5,961
    Reputation
    117
    Thanks
    1,386
    Nice that you decided what to do

  4. #3
    dirtjumpermike's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    208
    Reputation
    10
    Thanks
    37
    My Mood
    Cool
    Quote Originally Posted by [ A.Y.H ] View Post
    Nice that you decided what to do
    i got one error to fix where i tested it on counter strike and call of duty it still thinks its looking for them so got to try and fix that and do you know how to change player skins?
    things im working on

    colour aimbot (possibly wireframe aimbot)
    finding a bypass for GameGuard (with constant updates)
    wallhack
    OPK

  5. #4
    Prepix's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    5,961
    Reputation
    117
    Thanks
    1,386
    Quote Originally Posted by dirtjumpermike View Post
    i got one error to fix where i tested it on counter strike and call of duty it still thinks its looking for them so got to try and fix that and do you know how to change player skins?
    erhm no, I'm not a programmer and didn't tried it, gonna do it maybe in the future

  6. #5
    dirtjumpermike's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    208
    Reputation
    10
    Thanks
    37
    My Mood
    Cool
    Quote Originally Posted by [ A.Y.H ] View Post
    erhm no, I'm not a programmer and didn't tried it, gonna do it maybe in the future
    ok well ile keep at it try to find ways of modifying the Aplayerskin file
    things im working on

    colour aimbot (possibly wireframe aimbot)
    finding a bypass for GameGuard (with constant updates)
    wallhack
    OPK

  7. #6
    AmirAzmi98's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    74
    Reputation
    10
    Thanks
    117
    What language is this in?
    C++?

  8. #7
    dirtjumpermike's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    208
    Reputation
    10
    Thanks
    37
    My Mood
    Cool
    Quote Originally Posted by AmirAzmi98 View Post
    What language is this in?
    C++?
    yes C++ on vbC++ express
    things im working on

    colour aimbot (possibly wireframe aimbot)
    finding a bypass for GameGuard (with constant updates)
    wallhack
    OPK

  9. #8
    AmirAzmi98's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    74
    Reputation
    10
    Thanks
    117
    Quote Originally Posted by dirtjumpermike View Post
    yes C++ on vbC++ express
    how do I get ScanContent.h?
    Still pretty new to C++...But trying to figure this out...

  10. #9
    dirtjumpermike's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    208
    Reputation
    10
    Thanks
    37
    My Mood
    Cool
    Quote Originally Posted by AmirAzmi98 View Post
    how do I get ScanContent.h?
    Still pretty new to C++...But trying to figure this out...
    scancontents.h header file is a file you need to code your self there are 4 other headers to this aimbot but due to leechers i cant release all codes

    all that goes in scancontents.h is Mousecoord and declare a few things learn C++ and you will get it or if i feel like being nice ile give scan contents but not the rest

    Code:
    #include <process.h>         // needed for _beginthread()
    #include <iostream>
    #include <windows.h>
    #include <ctime>
    
    
    
    //all we need to pass onto our scanning threads
    class ScanContents
    {
    public:
    	//values used to compare and decide exactly which quarter 
    	BITMAP Bm;
    	RECT RcWindow;
    	//our pixel array
    	RGBQUAD *PPixels;
    	//all the contents necessary to run our aimbot scanning thread
    	ScanContents(BITMAP bm, RECT rcWindow, RGBQUAD *pPixels)
    	{
    		Bm = bm;
    		RcWindow = rcWindow;
    		PPixels = pPixels;
    	}
    };
    
    
    class MouseCoord
    {
    public:
    	int X;
    	int Y;
    	MouseCoord(int x, int y)
    	{
    		X = x;
    		Y = y;
    	}
    };
    
    
    //DECLARE after basic concept
    class AimbotThr
    {
    public:
    	HWND AppWnd;
    	std::string GameWindow;
    	AimbotThr(HWND appWnd, std::string gameWindow)
    	{
    		AppWnd = appWnd;
    		GameWindow = gameWindow;
    	}
    };
    HERE just for you to sort of understand it this is ScanContents.H the other 2, im not releasing so you need to learn it
    Last edited by dirtjumpermike; 07-27-2012 at 11:57 AM.
    things im working on

    colour aimbot (possibly wireframe aimbot)
    finding a bypass for GameGuard (with constant updates)
    wallhack
    OPK

  11. #10
    AmirAzmi98's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    74
    Reputation
    10
    Thanks
    117
    Ok...
    10chars.....

    Quote Originally Posted by dirtjumpermike View Post
    scancontents.h header file is a file you need to code your self there are 4 other headers to this aimbot but due to leechers i cant release all codes

    all that goes in scancontents.h is Mousecoord and declare a few things learn C++ and you will get it or if i feel like being nice ile give scan contents but not the rest

  12. #11
    ABHIJIT40's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    90
    Reputation
    10
    Thanks
    49
    nice u freleased Aim Bot thnx thnx a lot but it seems 95% of mpgh user can't use this hack...................

  13. #12
    dirtjumpermike's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    208
    Reputation
    10
    Thanks
    37
    My Mood
    Cool
    Quote Originally Posted by ABHIJIT40 View Post
    nice u freleased Aim Bot thnx thnx a lot but it seems 95% of mpgh user can't use this hack...................
    this is only part of it there is more to it than that but hopefully someone who wants with just these 2 parts will make something better

    or they can make a complete different program anything is possible
    things im working on

    colour aimbot (possibly wireframe aimbot)
    finding a bypass for GameGuard (with constant updates)
    wallhack
    OPK

  14. #13
    AmirAzmi98's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    74
    Reputation
    10
    Thanks
    117
    I'm gonna have a very...very...VERY long night...

  15. #14
    dirtjumpermike's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    208
    Reputation
    10
    Thanks
    37
    My Mood
    Cool
    Quote Originally Posted by AmirAzmi98 View Post
    I'm gonna have a very...very...VERY long night...
    LOL just read it and learn some globals and find what the meanings are should be easy but if i remember there is 2000+ functions in C++
    things im working on

    colour aimbot (possibly wireframe aimbot)
    finding a bypass for GameGuard (with constant updates)
    wallhack
    OPK

  16. #15
    HaiImBob's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    197
    Reputation
    10
    Thanks
    9
    Quote Originally Posted by ABHIJIT40 View Post
    nice u freleased Aim Bot thnx thnx a lot but it seems 95% of mpgh user can't use this hack...................
    I like how LQ users like you ask for the hack but when half the source code is released you don't have the fucking guts to learn it or try to make your own hack. Instead you have the guts to beg and leech hacks. What a fail.. It's amazing how this showed how many leeches there are.

  17. The Following 2 Users Say Thank You to HaiImBob For This Useful Post:

    DajZk (08-07-2012),Prepix (07-28-2012)

Page 1 of 4 123 ... LastLast

Similar Threads

  1. [Source Code] Cross Fire Aimbot Source Code
    By lol~lol in forum CrossFire Hacks & Cheats
    Replies: 30
    Last Post: 02-20-2010, 12:38 PM
  2. [Source Code] Aimbot source code with video
    By maxius12 in forum CrossFire Hacks & Cheats
    Replies: 37
    Last Post: 02-18-2010, 06:07 PM
  3. [Source Code] Aimbot source code with video
    By maxius12 in forum CrossFire Hacks & Cheats
    Replies: 5
    Last Post: 02-18-2010, 04:47 PM
  4. Visual Basic Aimbot Source Code
    By whitten in forum Visual Basic Programming
    Replies: 19
    Last Post: 08-05-2009, 10:39 AM
  5. My Aimbot source code!
    By wertoskiller in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 07-27-2009, 04:46 PM