i recopiled source from internet, i added a rgb palette (from console) selector. I put the source free for a month, who likes to get the source after a month pm me!. (is only for prevent leech...) [VAC Undetected for some time!!]
Code:
#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <math.h>
using namespace std;
bool crosshairon = false;
HDC ragedc = NULL;
int crosshairsize = 0;
int cx = 0;
int cy = 0;
int crosshaircolorG = 0;
int crosshaircolorR = 0;
int crosshaircolorB = 0;
void CrossThread(void)
{
while (1)
{
if (GetAsyncKeyState(VK_NUMPAD0) & 1)
{
crosshairon = !crosshairon;
ragedc = GetDC(HWND_DESKTOP);
cx = GetSystemMetrics(SM_CXSCREEN) / 2 - ((crosshairsize - 1) / 2);
cy = GetSystemMetrics(SM_CYSCREEN) / 2 - ((crosshairsize - 1) / 2);
}
Sleep(1);
}
}
int main()
{
cout << "Hello to xhair v007, press enter to continue\n";
cin.get();
system("cls");
cout << "Please put crosshair size in pixels (10p recomended):\n";
cin >> crosshairsize;
if (crosshairsize % 2 == 0)
{
crosshairsize += 1;
}
cout << "Color of crosshair Red (RGB):\n";
cin >> crosshaircolorR;
if (crosshaircolorR % 2 == 0)
{
crosshaircolorR += 1;
}
cout << "Color of crosshair Green (RGB):\n";
cin >> crosshaircolorG;
if (crosshaircolorG % 2 == 0)
{
crosshaircolorG += 1;
}
cout << "Color of crosshair Blue (RGB):\n";
cin >> crosshaircolorB;
if (crosshaircolorB % 2 == 0)
{
crosshaircolorB += 1;
}
system("cls");
cout << "Press numpad 0 to toggle the crosshair on and off\n";
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)CrossThread, 0, 0, 0);
while (1)
{
if (crosshairon == true)
{
for (int i = 0; i<crosshairsize; i++)
{
SetPixel(ragedc, cx + i, cy + ((crosshairsize - 1) / 2), RGB(crosshaircolorR, crosshaircolorG, crosshaircolorB));
SetPixel(ragedc, cx + ((crosshairsize - 1) / 2), cy + i, RGB(crosshaircolorR, crosshaircolorG, crosshaircolorB));
}
if (crosshairon == false)
for (int i = 1; i<crosshairsize; i++)
{
SetPixel(ragedc, cx + i, cy + ((crosshairsize - 1) / 2), RGB(0, 0, 0));
SetPixel(ragedc, cx + ((crosshairsize - 1) / 2), cy + i, RGB(0, 0, 0));
}
}
Sleep(33);
}
}
Thanks for releasing the source code, im trying to learn C++ and this really helped me and it was a good exercise for me . I managed to remove all the extra text that lets you pick the size and color and just made it 12 pixels and red by default.
awesome!! keep it up!
Please for make it more secure use a HashChanger!! and VMProtect !! please, i do not responsible of vac can do.