Ir para conteúdo
Faça parte da equipe! (2024) ×
Conheça nossa Beta Zone! Novas áreas a caminho! ×
  • Quem está por aqui   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.

cfal estou fazendo um hacker creio que vai pega


 Compartilhar

Posts Recomendados

#define DIPEngine 0x004B490D

DWORD retDIPEngine = ( DIPEngine + 0x8 );

 

__declspec( naked ) HRESULT WINAPI DIPMidfunction( )

{

static LPDIRECT3DDEVICE9 pDevice;

 

__asm

{

MOV EDX, DWORD PTR DS:[EAX]

MOV EDX, DWORD PTR DS:[EDX + 0x148]

MOV DWORD PTR DS:[pDevice], EAX

PUSHAD

}

 

if( Hack1 )

{

pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );

pDevice->SetRenderState( D3DRS_AMBIENT, Red );

}

 

__asm

{

POPAD

JMP retDIPEngine

}

}

 

if( memcmp( ( VOID * )DIPEngine, ( VOID * )( PBYTE )"\x8B\x10", 2 ) == 0 )

{

Sleep( 100 );

DetourCreate( ( PBYTE )DIPEngine, ( PBYTE )DIPMidfunction, 8 );

}

 

 

 

 

 

 

 

 

 

 

 

 

 

#include <windows.h>

#include <stdio.h>

#include <d3d9.h>

#include <d3dx9.h>

 

#pragma comment(lib, "d3d9.lib")

#pragma comment(lib, "d3dx9.lib")

 

#define PresentEngine 0x004C41AF

DWORD retPresentEngine = ( PresentEngine + 0x5 );

 

#define Red D3DCOLOR_ARGB( 255, 255, 255, 000 )

#define Green D3DCOLOR_ARGB( 255, 000, 255, 000 )

#define Blue D3DCOLOR_ARGB( 255, 000, 000, 255 )

#define Yellow D3DCOLOR_ARGB( 255, 255, 255, 000 )

#define Black D3DCOLOR_ARGB( 255, 000, 000, 000 )

 

typedef struct{

int index;

char * title;

int *hack;

int hackmaxval;

int hacktype;

DWORD HCOLOR;

}ITEM;

 

int hackcount;

int selector;

int x,y,w,h;

DWORD COLOR;

 

ITEM HACKITEM[99];

char hackrval[256];

 

int xFontOffSet = 15;

int hackopt1;

int MenuHeight = 10;

int show = 0;

int hack1, hack2, hack3;

 

LPDIRECT3DDEVICE9 pDevice;

LPD3DXFONT Font;

 

VOID StartFont( LPDIRECT3DDEVICE9 pDevice )

{

if( Font )

{

Font->Release();

Font = NULL;

}

 

if( !Font )

{

D3DXCreateFont( pDevice,

14,

0,

FW_BOLD,

1,

0,

DEFAULT_CHARSET,

OUT_DEFAULT_PRECIS,

DEFAULT_QUALITY,

DEFAULT_PITCH | FF_DONTCARE,

"Arial",

&Font );

}

}

 

VOID WriteText(char pString[], INT x, INT y, DWORD color )

{

RECT rect;

SetRect( &rect, x, y, x, y );

Font->DrawText( NULL, pString, -1, &rect, DT_NOCLIP | DT_LEFT, color );

}

 

void CreateItem(int index, char * title, int *hack, int hackmaxval,int hacktype)

{

hackcount++;

HACKITEM[hackcount].index = index;

HACKITEM[hackcount].hack = hack;

HACKITEM[hackcount].hackmaxval = hackmaxval;

HACKITEM[hackcount].hacktype = hacktype;

WriteText(title, xFontOffSet, index*15,HACKITEM[hackcount].HCOLOR); //If you want to move the menu opts down do something like this (index*15)+20 and to move it left or right just add/subtract from font offset.

}

 

void RenderMenu()

{

if(GetAsyncKeyState(VK_DOWN)&1)

selector++;

 

if(GetAsyncKeyState(VK_UP)&1)

if(selector > 1)

selector--;

 

if (GetAsyncKeyState(VK_RIGHT)<0)

{

for(int i=0;i < (hackcount+1);i++)

{

if(selector == HACKITEM.index)

{

if(*HACKITEM.hack < HACKITEM.hackmaxval)

*HACKITEM.hack += 1;

}

}

}

 

if (GetAsyncKeyState(VK_LEFT)<0)

{

for(int i=0;i < (hackcount+1);i++)

{

if(selector == HACKITEM.index)

{

*HACKITEM.hack = 0;

Sleep(20);

}

}

}

 

for(int i=0;i < (hackcount+1);i++)

{

if(selector == HACKITEM.index)

HACKITEM.HCOLOR = Green;

else

HACKITEM.HCOLOR = Red;

}

 

for(int i=1; i<(hackcount+1); i++)

{

if(HACKITEM.hacktype == 0)

{

if(*HACKITEM.hack == 1) //to move the opts down do something like this (HACKITEM.index*15)+20

WriteText("On", xFontOffSet+100, HACKITEM.index*15,Yellow);

else

WriteText("Off", xFontOffSet+100, HACKITEM.index*15,Red);

}

}

 

for(int i=1; i<(hackcount+1); i++)

{

if(HACKITEM.hackmaxval >1 && HACKITEM.hacktype == 1)

{

sprintf_s(hackrval, "%i", *HACKITEM.hack);

WriteText(hackrval, xFontOffSet+100, HACKITEM.index*15,Red);

}

}

 

if(selector < 1)

selector = 1;

 

if(selector > hackcount)

selector = 1;

 

hackcount = 0;

}

 

void BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)

{

if(GetAsyncKeyState(VK_INSERT)&1) show=(!show);

 

if(!show)

{

WriteText(menuname, 5, 2, TITLECOL);

return;

}

 

WriteText(menuname, x+10, y+2, TITLECOL);

 

CreateItem(1,"Hack 1", &hack1, 1, 0);

CreateItem(2,"Hack 2", &hack2, 1, 0);

CreateItem(3,"Hack 3", &hack3, 1, 0);

 

RenderMenu();

}

 

/*void MemoryHackHere()

{

//load modules & continue with hacks

 

if(hack1)

{

 

}

 

//do not put sleep()

}

*/

 

__declspec( naked ) HRESULT WINAPI PresentMidfunction( )

{

static LPDIRECT3DDEVICE9 pDevice;

 

__asm

{

MOV ECX, DWORD PTR DS:[EAX]

MOV EDX, DWORD PTR DS:[ECX + 0x44]

MOV DWORD PTR DS:[pDevice], EAX

PUSH 0

PUSHAD

}

 

//================================================================================== font

StartFont( pDevice );

 

//================================================================================== menu

BuildMenu("Avene D3D Menu Crossfire 6/9/2012",0,0,180,200,Red,Black,Green,pDevice);

 

//================================================================================== hack

//MemoryHackHere();

 

__asm

{

POPAD

JMP retPresentEngine

}

}

 

VOID *DetourCreate( BYTE *src, CONST BYTE *dst, CONST INT len )

{

BYTE *jmp =( BYTE * ) malloc( len + 5 );

DWORD dwBack;

 

VirtualProtect( src, len, PAGE_READWRITE, &dwBack );

memcpy( jmp, src, len );

jmp += len;

jmp[0] = 0xE9;

*( DWORD * )( jmp + 1 ) = ( DWORD )( src + len - jmp ) - 5;

 

src[0] = 0xE9;

*( DWORD * )( src + 1 ) = ( DWORD )( dst - src ) - 5;

for( INT i = 5; i < len; i++ )

src = 0x90;

VirtualProtect( src, len, dwBack, &dwBack );

 

return( jmp - len );

}

 

DWORD WINAPI StartRoutine( LPVOID )

{

while( TRUE )

{

if( memcmp( ( VOID * )PresentEngine, ( VOID * )( PBYTE )"\x8B\x51", 2 ) == 0 )

{

Sleep( 100 );

DetourCreate( ( PBYTE )PresentEngine, ( PBYTE )PresentMidfunction, 5 );

}

Sleep( 50 );

}

 

return 0;

}

 

BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )

{

if( dwReason == DLL_PROCESS_ATTACH )

{

DisableThreadLibraryCalls( hDll );

//MessageBox( 0, "Avene D3D Menu", "Crossfire", 0 );

CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)StartRoutine, 0, 0, 0 );

}

 

return TRUE;

}

 

 

Ta ai agora se vira ti dei uns 30 conto eo codigo

we11ington.jpg

Link para o comentário
Compartilhar em outros sites

Olá amigo, desculpe informar, mas seu tópico encontra-se em área errada, pois o mesmo trata-se de uma dúvida.

Área correta para a postagem de seu tópico seria em: CrossFire Duvidas

Tenha atenção antes de criar um tópico, verifique se o assunto do mesmo, é correspondente com a da área que você se encontra.

Leia as Regras do Fórum, e as regras da área onde você se encontra.

Link para o comentário
Compartilhar em outros sites

  • 3 semanas atrás...

#define DIPEngine 0x004B490D

DWORD retDIPEngine = ( DIPEngine + 0x8 );

 

__declspec( naked ) HRESULT WINAPI DIPMidfunction( )

{

static LPDIRECT3DDEVICE9 pDevice;

 

__asm

{

MOV EDX, DWORD PTR DS:[EAX]

MOV EDX, DWORD PTR DS:[EDX + 0x148]

MOV DWORD PTR DS:[pDevice], EAX

PUSHAD

}

 

if( Hack1 )

{

pDevice->SetRenderState( D3DRS_ZENABLE, D3DZB_FALSE );

pDevice->SetRenderState( D3DRS_AMBIENT, Red );

}

 

__asm

{

POPAD

JMP retDIPEngine

}

}

 

if( memcmp( ( VOID * )DIPEngine, ( VOID * )( PBYTE )"\x8B\x10", 2 ) == 0 )

{

Sleep( 100 );

DetourCreate( ( PBYTE )DIPEngine, ( PBYTE )DIPMidfunction, 8 );

}

 

 

 

 

 

 

 

 

 

 

 

 

 

#include <windows.h>

#include <stdio.h>

#include <d3d9.h>

#include <d3dx9.h>

 

#pragma comment(lib, "d3d9.lib")

#pragma comment(lib, "d3dx9.lib")

 

#define PresentEngine 0x004C41AF

DWORD retPresentEngine = ( PresentEngine + 0x5 );

 

#define Red D3DCOLOR_ARGB( 255, 255, 255, 000 )

#define Green D3DCOLOR_ARGB( 255, 000, 255, 000 )

#define Blue D3DCOLOR_ARGB( 255, 000, 000, 255 )

#define Yellow D3DCOLOR_ARGB( 255, 255, 255, 000 )

#define Black D3DCOLOR_ARGB( 255, 000, 000, 000 )

 

typedef struct{

int index;

char * title;

int *hack;

int hackmaxval;

int hacktype;

DWORD HCOLOR;

}ITEM;

 

int hackcount;

int selector;

int x,y,w,h;

DWORD COLOR;

 

ITEM HACKITEM[99];

char hackrval[256];

 

int xFontOffSet = 15;

int hackopt1;

int MenuHeight = 10;

int show = 0;

int hack1, hack2, hack3;

 

LPDIRECT3DDEVICE9 pDevice;

LPD3DXFONT Font;

 

VOID StartFont( LPDIRECT3DDEVICE9 pDevice )

{

if( Font )

{

Font->Release();

Font = NULL;

}

 

if( !Font )

{

D3DXCreateFont( pDevice,

14,

0,

FW_BOLD,

1,

0,

DEFAULT_CHARSET,

OUT_DEFAULT_PRECIS,

DEFAULT_QUALITY,

DEFAULT_PITCH | FF_DONTCARE,

"Arial",

&Font );

}

}

 

VOID WriteText(char pString[], INT x, INT y, DWORD color )

{

RECT rect;

SetRect( &rect, x, y, x, y );

Font->DrawText( NULL, pString, -1, &rect, DT_NOCLIP | DT_LEFT, color );

}

 

void CreateItem(int index, char * title, int *hack, int hackmaxval,int hacktype)

{

hackcount++;

HACKITEM[hackcount].index = index;

HACKITEM[hackcount].hack = hack;

HACKITEM[hackcount].hackmaxval = hackmaxval;

HACKITEM[hackcount].hacktype = hacktype;

WriteText(title, xFontOffSet, index*15,HACKITEM[hackcount].HCOLOR); //If you want to move the menu opts down do something like this (index*15)+20 and to move it left or right just add/subtract from font offset.

}

 

void RenderMenu()

{

if(GetAsyncKeyState(VK_DOWN)&1)

selector++;

 

if(GetAsyncKeyState(VK_UP)&1)

if(selector > 1)

selector--;

 

if (GetAsyncKeyState(VK_RIGHT)<0)

{

for(int i=0;i < (hackcount+1);i++)

{

if(selector == HACKITEM.index)

{

if(*HACKITEM.hack < HACKITEM.hackmaxval)

*HACKITEM.hack += 1;

}

}

}

 

if (GetAsyncKeyState(VK_LEFT)<0)

{

for(int i=0;i < (hackcount+1);i++)

{

if(selector == HACKITEM.index)

{

*HACKITEM.hack = 0;

Sleep(20);

}

}

}

 

for(int i=0;i < (hackcount+1);i++)

{

if(selector == HACKITEM.index)

HACKITEM.HCOLOR = Green;

else

HACKITEM.HCOLOR = Red;

}

 

for(int i=1; i<(hackcount+1); i++)

{

if(HACKITEM.hacktype == 0)

{

if(*HACKITEM.hack == 1) //to move the opts down do something like this (HACKITEM.index*15)+20

WriteText("On", xFontOffSet+100, HACKITEM.index*15,Yellow);

else

WriteText("Off", xFontOffSet+100, HACKITEM.index*15,Red);

}

}

 

for(int i=1; i<(hackcount+1); i++)

{

if(HACKITEM.hackmaxval >1 && HACKITEM.hacktype == 1)

{

sprintf_s(hackrval, "%i", *HACKITEM.hack);

WriteText(hackrval, xFontOffSet+100, HACKITEM.index*15,Red);

}

}

 

if(selector < 1)

selector = 1;

 

if(selector > hackcount)

selector = 1;

 

hackcount = 0;

}

 

void BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)

{

if(GetAsyncKeyState(VK_INSERT)&1) show=(!show);

 

if(!show)

{

WriteText(menuname, 5, 2, TITLECOL);

return;

}

 

WriteText(menuname, x+10, y+2, TITLECOL);

 

CreateItem(1,"Hack 1", &hack1, 1, 0);

CreateItem(2,"Hack 2", &hack2, 1, 0);

CreateItem(3,"Hack 3", &hack3, 1, 0);

 

RenderMenu();

}

 

/*void MemoryHackHere()

{

//load modules & continue with hacks

 

if(hack1)

{

 

}

 

//do not put sleep()

}

*/

 

__declspec( naked ) HRESULT WINAPI PresentMidfunction( )

{

static LPDIRECT3DDEVICE9 pDevice;

 

__asm

{

MOV ECX, DWORD PTR DS:[EAX]

MOV EDX, DWORD PTR DS:[ECX + 0x44]

MOV DWORD PTR DS:[pDevice], EAX

PUSH 0

PUSHAD

}

 

//================================================== ================================ font

StartFont( pDevice );

 

//================================================== ================================ menu

BuildMenu("Avene D3D Menu Crossfire 6/9/2012",0,0,180,200,Red,Black,Green,pDevice);

 

//================================================== ================================ hack

//MemoryHackHere();

 

__asm

{

POPAD

JMP retPresentEngine

}

}

 

VOID *DetourCreate( BYTE *src, CONST BYTE *dst, CONST INT len )

{

BYTE *jmp =( BYTE * ) malloc( len + 5 );

DWORD dwBack;

 

VirtualProtect( src, len, PAGE_READWRITE, &dwBack );

memcpy( jmp, src, len );

jmp += len;

jmp[0] = 0xE9;

*( DWORD * )( jmp + 1 ) = ( DWORD )( src + len - jmp ) - 5;

 

src[0] = 0xE9;

*( DWORD * )( src + 1 ) = ( DWORD )( dst - src ) - 5;

for( INT i = 5; i < len; i++ )

src = 0x90;

VirtualProtect( src, len, dwBack, &dwBack );

 

return( jmp - len );

}

 

DWORD WINAPI StartRoutine( LPVOID )

{

while( TRUE )

{

if( memcmp( ( VOID * )PresentEngine, ( VOID * )( PBYTE )"\x8B\x51", 2 ) == 0 )

{

Sleep( 100 );

DetourCreate( ( PBYTE )PresentEngine, ( PBYTE )PresentMidfunction, 5 );

}

Sleep( 50 );

}

 

return 0;

}

 

BOOL WINAPI DllMain( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )

{

if( dwReason == DLL_PROCESS_ATTACH )

{

DisableThreadLibraryCalls( hDll );

//MessageBox( 0, "Avene D3D Menu", "Crossfire", 0 );

CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)StartRoutine, 0, 0, 0 );

}

 

return TRUE;

}

Link para o comentário
Compartilhar em outros sites

Este tópico está impedido de receber novos posts.
 Compartilhar

×
×
  • Criar Novo...

Informação Importante

Nós fazemos uso de cookies no seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies , caso contrário, vamos supor que você está bem para continuar.