Warrock - Code Snippets

05/23/2013 22:06 SilverRazzer <3#991
Quote:
Originally Posted by CyberMask View Post
Hi guys, i want to share mine Draw Rounded Border code with you :)
I use normal DrawRectangle to make it.
Look .


Code:
VOID DrawField(INT iFromX,INT iFromY,INT iToX,INT iToY,DWORD dwColor,LPDIRECT3DDEVICE9 pDevice)
{
	D3DRECT Rect = {iFromX,iFromY,(iFromX+iToX),(iFromY+iToY)};
	pDevice->Clear(1,&Rect,(D3DCLEAR_TARGET),dwColor,1.0F,0);
}
VOID DrawBorder(INT iPosX,INT iPosY,INT iToX,INT iToY,INT iWidth,DWORD dwColor,LPDIRECT3DDEVICE9 pDevice)
{
	DrawField(iPosX,(iPosY+iToY-iWidth),iToX,iWidth,dwColor,pDevice);
	DrawField((iPosX+iToX-iWidth),iPosY,iWidth,iToY,dwColor,pDevice);
	DrawField(iPosX,iPosY,iWidth,iToY,dwColor,pDevice);
	DrawField(iPosX,iPosY,iToX,iWidth,dwColor,pDevice);
}
Code:
VOID DrawRoundedBorder ( INT PosX, INT PosY , INT ToX , INT ToY , INT Width , DWORD dwColor , LPDIRECT3DDEVICE9 pDevice )
{
	DrawBorder(PosX,PosY,ToX,1,Width,dwColor,pDevice);
	

	DrawBorder(PosX-1,PosY+1,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-2,PosY+2,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-3,PosY+3,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-4,PosY+4,1,1,Width,dwColor,pDevice);

	DrawBorder(PosX+(ToX),PosY+1,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+1),PosY+2,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+2),PosY+3,1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+3),PosY+4,1,1,Width,dwColor,pDevice);

	DrawBorder(PosX-4,PosY+4,1,ToY,Width,dwColor,pDevice);

	DrawBorder(PosX-4,PosY+(ToY+4),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-3,PosY+(ToY+5),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-2,PosY+(ToY+6),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX-1,PosY+(ToY+7),1,1,Width,dwColor,pDevice);

	DrawBorder(PosX,PosY+(ToY+7),ToX,1,Width,dwColor,pDevice);

	DrawBorder(PosX+(ToX+3),PosY+(ToY+4),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+2),PosY+(ToY+5),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+1),PosY+(ToY+6),1,1,Width,dwColor,pDevice);
	DrawBorder(PosX+(ToX+0),PosY+(ToY+7),1,1,Width,dwColor,pDevice);

	DrawBorder(PosX+(ToX+3),PosY+4,1,ToY,Width,dwColor,pDevice);
	
	

}
An Example ?

Code:
DrawRoundedBorder(20,30,90,20,1,RED,pDevice);
=

[Only registered and activated users can see links. Click Here To Register...]

From CyberRazzer Base you have make a rounded menu but so coding cyber
05/24/2013 05:00 ineedhacksok#992
#Request: Please, Ehsvc Bypass for that version in attachment.


VirusScan:

[Only registered and activated users can see links. Click Here To Register...]
05/24/2013 08:38 playncheat99#993
#Request Speedhack and Unl. Stamina
Is these codes right?

Dunno why
Quote:
//SPEED
*(double*)(ADR_Speed) = +200.0f;
//STAMINA
*(float*)(ADR_Stamina1) = 1000;
*(float*)(ADR_Stamina2) = 1000;
*(float*)(ADR_Stamina3) = 0;
*(float*)(ADR_Stamina4) = 0;
*(float*)(ADR_Stamina5) = 0;
05/25/2013 15:51 SilverRazzer <3#994
Quote:
Originally Posted by playncheat99 View Post
#Request Speedhack and Unl. Stamina
Is these codes right?

Dunno why
Code:
#define ADR_SPEED 0x8C9EF0

char * Speedy [4] = {"SET PLAYER SPEED","100","200","300"};

if( cServer.Speed )
{
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -100;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -200;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -300;
}

Credits: Me
05/25/2013 16:01 .BlackHat#995
Quote:
Originally Posted by SilverRazzer <3 View Post
Code:
#define ADR_SPEED 0x8C9EF0

char * Speedy [4] = {"SET PLAYER SPEED","100","200","300"};

if( cServer.Speed )
{
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -100;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -200;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -300;
}

Credits: Me

Fail: Speed will always be -300.
My solution:

Code:
*(float*)(dwPlayerCheck+ADR_SPEED) = (cServer.Speed ? -(cServer.Speed * 100.0f) : -100.0f); // dunno if -100.0f is default?
05/25/2013 16:22 n4n033#996
Or maybe simply like this :
Code:
switch(iPlayer.Speed)
{
	case 0:*(double*)(Adr_Speed) = 96;break;
	case 1:*(double*)(Adr_Speed) = 0;break;
	case 2:*(double*)(Adr_Speed) = 110;break;
	case 3:*(double*)(Adr_Speed) = 200;break;
	case 4:*(double*)(Adr_Speed) = 300;break;
	case 5:*(double*)(Adr_Speed) = 400;break;
	case 6:*(double*)(Adr_Speed) = 500;break;
	case 7:*(double*)(Adr_Speed) = 600;break;
	case 8:*(double*)(Adr_Speed) = 700;break;
	case 9:*(double*)(Adr_Speed) = 800;break;
	case 10:*(double*)(Adr_Speed) = 900;break;
	case 11:*(double*)(Adr_Speed) = 1000;break;
}
05/25/2013 16:25 Kazbah__#997
use the offset for speed

DWORD ADR_OFFSET_PLAYERSPEED = 0x1010C; // 18/5/2013
05/25/2013 16:35 xXrussXx#998
Quote:
Originally Posted by SilverRazzer <3 View Post
Code:
#define ADR_SPEED 0x8C9EF0

char * Speedy [4] = {"SET PLAYER SPEED","100","200","300"};

if( cServer.Speed )
{
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -100;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -200;
   *(float*) ( dwPlayerCheck + ADR_SPEED )  = -300;
}

Credits: Me
Größter Mist den ich jeeeee gesehen hab!!

Quote:
Originally Posted by n4n033 View Post
Or maybe simply like this :
Code:
switch(iPlayer.Speed)
{
	case 0:*(double*)(Adr_Speed) = 96;break;
	case 1:*(double*)(Adr_Speed) = 0;break;
	case 2:*(double*)(Adr_Speed) = 110;break;
	case 3:*(double*)(Adr_Speed) = 200;break;
	case 4:*(double*)(Adr_Speed) = 300;break;
	case 5:*(double*)(Adr_Speed) = 400;break;
	case 6:*(double*)(Adr_Speed) = 500;break;
	case 7:*(double*)(Adr_Speed) = 600;break;
	case 8:*(double*)(Adr_Speed) = 700;break;
	case 9:*(double*)(Adr_Speed) = 800;break;
	case 10:*(double*)(Adr_Speed) = 900;break;
	case 11:*(double*)(Adr_Speed) = 1000;break;
}
Und das ist auch nicht besser!

Machts doch einfach soo:
if( Speed )
{
*reinterpret_cast<float*>(PlayerCheck + ADR_OFS_PlayerSpeed) = Speed*-100;
}
05/25/2013 18:15 .BlackHat#999
Quote:
Originally Posted by xXrussXx View Post
Machts doch einfach soo:
if( Speed )
{
*reinterpret_cast<float*>(PlayerCheck + ADR_OFS_PlayerSpeed) = Speed*-100;
}
Größter mist den ICH gesehn hab! Logischerweise wollte er Normalspeed, -100, -200, -300. Also wäre meine Lösung eigentlich die beste, da deine = 0 ist, wenn Speed auch 0 (OFF) ist.

Code:
*reinterpret_cast<float*>(dwPlayerCheck+ofsSpeed) = (cServer.Speed ? -(cServer.Speed * 100.0f) : -100.0f); // dunno if -100.0f is default?
05/25/2013 21:58 Chowniiqhtz™#1000
Quote:
Originally Posted by playncheat99 View Post
#Request Speedhack and Unl. Stamina
Is these codes right?

Dunno why
if(x_Speed >= 0 && x_Speed < 7)
Patch<double>(reinterpret_cast<void*>(ADR_SPEED), 96.0 * (x_Speed + 1));

Credits: Underscore / Raz9r
05/26/2013 02:09 ineedhacksok#1001
please someone help me:

[Only registered and activated users can see links. Click Here To Register...]
05/26/2013 04:03 Kazbah__#1002
Quote:
please someone help me:

Warrock - Code Snippets
at the moment only 2-3 people have a full hs bypass and im sure they dont share it
05/26/2013 11:44 winkabean#1003
Quote:
Originally Posted by playncheat99 View Post
#Request Speedhack and Unl. Stamina
Is these codes right?

Dunno why
Or you can do this.

WriteFunction.h:

Code:
#include <Windows.h>

void WriteFunction(void *adr, void *ptr, int size)
{
        DWORD dwback;
        VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &dwback);
        memcpy(adr,ptr,size);
        VirtualProtect(adr,size,dwback, &dwback);
}

template <typename T>void WriteFunction(void* adr,T Vaule,T *Input = NULL)
{
        if(Input == 0)
                WriteFunction((void*)adr,(void*)&Vaule,sizeof(T));
        else
                WriteFunction((void*)Input,(void*)adr,sizeof(T));
}

Speed Hack Source (Remember to include WriteFunction.h in main.cpp):

Code:
void PLAYERSPEED()
{
	if(GetAsyncKeyState(VK_F2) &1)
	{
		WriteFunction<DOUBLE>((void *)ADR_PlayerSpeed, 4.5); // On
	}
	if (GetAsyncKeyState(VK_F3) &1)
	{
		WriteFunction<DOUBLE>((void *)ADR_PlayerSpeed, 1.5); // Off
	}

}
05/26/2013 16:29 ineedhacksok#1004
Quote:
Originally Posted by Zyzz__ View Post
at the moment only 2-3 people have a full hs bypass and im sure they dont share it
Version - Ehsvc.dll - 5.6.14.310

I need a bypass only for it not to be detected by signatures for strings or functions, I do not use DIP, CE.

I do not know if this is considered a full bypass, I am newbie in these terms.
05/27/2013 23:04 SilverRazzer <3#1005
Code:
BYTE DelayOld[2];
void NoDelay ()
{
	DWORD dwPlayerPtr = *(DWORD*) ADR_PLAYERPOINTER;
	if(dwPlayerPtr != 0)
	{
		if ( DelayOld[0] == 0 && DelayOld[1] == 0 )
		{
			DWORD dwProtect;
			VirtualProtect((void*)(ADR_NODELAY), 2, PAGE_EXECUTE_READWRITE, &dwProtect);
			memcpy(DelayOld,(void*)(ADR_NODELAY), 2);
			VirtualProtect((void*)(ADR_NODELAY), 2, dwProtect, NULL);
		}
		if((GetAsyncKeyState(VK_LBUTTON)<0)==true)
		{
			*(float*) (dwPlayerPtr+OFS_NORECOIL1) = 0.0f;
			*(float*) (dwPlayerPtr+OFS_NORECOIL2) = 0.0f;
			*(float*) (dwPlayerPtr+OFS_NORECOIL3) = 0.0f;
			*(float*) ADR_NOSPREAD = 0.0f;
			
			const BYTE nop[2] = {0x90,0x90};
			DWORD dwProtect;
			VirtualProtect((void*)(ADR_NODELAY), 2, PAGE_EXECUTE_READWRITE, &dwProtect);
			memcpy((void*)(ADR_NODELAY), nop, 2);
			VirtualProtect((void*)(ADR_NODELAY), 2, dwProtect, NULL);
		}
		else
		{  
			*(float*) (dwPlayerPtr+OFS_NORECOIL1) = 0.000000001f;
			*(float*) (dwPlayerPtr+OFS_NORECOIL2) = 0.000000001f;
			*(float*) (dwPlayerPtr+OFS_NORECOIL3) = 0.000000001f;
			*(float*) ADR_NOSPREAD = 0.000000001f;
			
			const BYTE nop[2] = {166,67};
			DWORD dwProtect;
			VirtualProtect((void*)(ADR_NoDelay), 2, PAGE_EXECUTE_READWRITE, &dwProtect);
			memcpy((void*)(ADR_NoDelay),DelayOld, 2);
			VirtualProtect((void*)(ADR_NoDelay), 2, dwProtect, NULL);
		}
	}
}

Credits: UnknownPK