You last visited: Today at 03:26
Advertisement
WarRock EU - Code Snippets
Discussion on WarRock EU - Code Snippets within the WarRock forum part of the Shooter category.
View Poll Results: Wie findet ihr diesen Thread
Klasse!
78
60.94%
Geht so
17
13.28%
Sinnlos, braucht keiner
33
25.78%
12/22/2010, 08:12
#631
elite*gold: 0
Join Date: May 2010
Posts: 423
Received Thanks: 285
aber davor habe ich des runtergeladen
Link:
seid dem kommt es immer raus!wie kann ich des vom mein pc weg machen?
12/22/2010, 12:35
#632
elite*gold: 1
Join Date: Jun 2010
Posts: 2,843
Received Thanks: 3,724
Quote:
CPlayerInfo* GetPlayerInfoByIndex(int index)
{
if(index > 32) return NULL;
return (CPlayerInfo*)(0x009DC4AC + (index * 0x1CE0));
}
PlayerInfo = Logisch...
PlayerInfo = BasePointer
12/22/2010, 16:54
#633
elite*gold: 0
Join Date: Apr 2010
Posts: 101
Received Thanks: 13
Quote:
Originally Posted by
dsgreha
Geht schon fast, kommen nur noch 2 Warnings:
Code:
1>c:\users\jantimon\desktop\d3dhack\d3dhack\d3dhack.cpp(22) : warning C4700: Die nicht initialisierte lokale Variable "pDevice" wurde verwendet.
1>c:\Users\JanTimon\Desktop\D3DHack\D3DHack\D3DHack.cpp : warning C4747: Aufruf von "_DllMain@12" (verwaltet): Verwalteter Code darf nicht unter der Loadersperre, einschließlich des DLL-Einstiegspunkts und Aufrufen, die vom DLL-Einstiegspunkt eingehen, ausgeführt werden.
Der neue Code sieht übrigens so aus:
Code:
#include "stdafx.h"
#include "D3DHack.h"
#include <windows.h>
#include <cstdio>
#include <d3d9.h>
#include <d3dx9.h>
typedef HRESULT(__stdcall* EndScene_t)(LPDIRECT3DDEVICE9);
EndScene_t pEndScene;
const D3DCOLOR txtPink = D3DCOLOR_ARGB(255, 255, 0, 255); // Alpha, Rot, Grün, Blau
HRESULT hkEndScene(LPDIRECT3DDEVICE9 pDevice);
void DrawRect (LPDIRECT3DDEVICE9 Device_t, int X, int Y, int L, int H, D3DCOLOR color);
void *DetourFunc(BYTE *src, const BYTE *dst, const int len);
void InitHook(){
HMODULE hModule = NULL;
while( !hModule ){
hModule = GetModuleHandleA( "d3d9.dll" ); // Handle zur DLL holen
Sleep( 100 ); // 100ms warten
}
pEndScene = ( EndScene_t )DetourFunc((PBYTE) 0x4FDD71B0,(PBYTE)hkEndScene, 5);
LPDIRECT3DDEVICE9 pDevice;
DrawRect ( pDevice, 10, 10, 200, 200, txtPink);
}
int WINAPI DllMain(HINSTANCE hInst,DWORD reason,LPVOID reserved){
switch(reason){
case DLL_PROCESS_ATTACH:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE) InitHook, 0, 0, 0);
break;
}
return true;
}
void *DetourFunc(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;
VirtualProtect(src, len, dwback, &dwback);
return (jmp-len);
}
HRESULT hkEndScene(LPDIRECT3DDEVICE9 pDevice)
{
return pEndScene(pDevice);
}
void DrawRect (LPDIRECT3DDEVICE9 Device_t, int X, int Y, int L, int H, D3DCOLOR color)
{
D3DRECT rect = {X, Y, X+L, Y+H};
Device_t->Clear(1, &rect, D3DCLEAR_TARGET, color, 0, 0); // bei Google gibt’s näheres
}
12/22/2010, 18:54
#634
elite*gold: 0
Join Date: Mar 2010
Posts: 483
Received Thanks: 96
Quote:
Originally Posted by
dsgreha
Der neue Code sieht übrigens so aus:
Code:
#include "stdafx.h"
#include "D3DHack.h"
#include <windows.h>
#include <cstdio>
#include <d3d9.h>
#include <d3dx9.h>
typedef HRESULT(__stdcall* EndScene_t)(LPDIRECT3DDEVICE9);
EndScene_t pEndScene;
const D3DCOLOR txtPink = D3DCOLOR_ARGB(255, 255, 0, 255); // Alpha, Rot, Grün, Blau
HRESULT hkEndScene(LPDIRECT3DDEVICE9 pDevice);
void DrawRect (LPDIRECT3DDEVICE9 Device_t, int X, int Y, int L, int H, D3DCOLOR color);
void *DetourFunc(BYTE *src, const BYTE *dst, const int len);
void InitHook(){
HMODULE hModule = NULL;
while( !hModule ){
hModule = GetModuleHandleA( "d3d9.dll" ); // Handle zur DLL holen
Sleep( 100 ); // 100ms warten
}
pEndScene = ( EndScene_t )DetourFunc((PBYTE) 0x4FDD71B0,(PBYTE)hkEndScene, 5);
LPDIRECT3DDEVICE9 pDevice;
DrawRect ( pDevice, 10, 10, 200, 200, txtPink);
}
int WINAPI DllMain(HINSTANCE hInst,DWORD reason,LPVOID reserved){
switch(reason){
case DLL_PROCESS_ATTACH:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE) InitHook, 0, 0, 0);
break;
}
return true;
}
void *DetourFunc(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;
VirtualProtect(src, len, dwback, &dwback);
return (jmp-len);
}
HRESULT hkEndScene(LPDIRECT3DDEVICE9 pDevice)
{
return pEndScene(pDevice);
}
void DrawRect (LPDIRECT3DDEVICE9 Device_t, int X, int Y, int L, int H, D3DCOLOR color)
{
D3DRECT rect = {X, Y, X+L, Y+H};
Device_t->Clear(1, &rect, D3DCLEAR_TARGET, color, 0, 0); // bei Google gibt’s näheres
}
Ok ich glaube du musst nciht alles in den hook reinpacken sondern in die EndCene funktion so wie im tut beschireben
12/22/2010, 19:43
#635
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,729
Quote:
Originally Posted by
CyberRazzer
PlayerInfo = Logisch...
PlayerInfo = BasePointer
meep ich habe das gerade selbst herrausgefunden das ist
ADR_NameBase hat die addy ihrgend wer xD?
12/22/2010, 19:58
#636
elite*gold: 0
Join Date: Apr 2010
Posts: 101
Received Thanks: 13
Habs jetzt mal so versucht:
Code:
#include "stdafx.h"
#include "D3DHack.h"
#include <windows.h>
#include <cstdio>
#include <d3d9.h>
#include <d3dx9.h>
typedef HRESULT(__stdcall* EndScene_t)(LPDIRECT3DDEVICE9);
EndScene_t pEndScene;
const D3DCOLOR txtPink = D3DCOLOR_ARGB(255, 255, 0, 255); // Alpha, Rot, Grün, Blau
HRESULT hkEndScene(LPDIRECT3DDEVICE9 pDevice);
void DrawRect (LPDIRECT3DDEVICE9 Device_t, int X, int Y, int L, int H, D3DCOLOR color);
void *DetourFunc(BYTE *src, const BYTE *dst, const int len);
void InitHook(){
HMODULE hModule = NULL;
while( !hModule ){
hModule = GetModuleHandleA( "d3d9.dll" ); // Handle zur DLL holen
Sleep( 100 ); // 100ms warten
}
}
int WINAPI DllMain(HINSTANCE hInst,DWORD reason,LPVOID reserved){
switch(reason){
case DLL_PROCESS_ATTACH:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE) InitHook, 0, 0, 0);
break;
}
return true;
}
void *DetourFunc(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;
VirtualProtect(src, len, dwback, &dwback);
return (jmp-len);
}
HRESULT hkEndScene(LPDIRECT3DDEVICE9 pDevice)
{
pEndScene = ( EndScene_t )DetourFunc((PBYTE) 0x4FDD71B0,(PBYTE)hkEndScene, 5);
DrawRect ( pDevice, 10, 10, 200, 200, txtPink);
return pEndScene(pDevice);
}
void DrawRect (LPDIRECT3DDEVICE9 Device_t, int X, int Y, int L, int H, D3DCOLOR color)
{
D3DRECT rect = {X, Y, X+L, Y+H};
Device_t->Clear(1, &rect, D3DCLEAR_TARGET, color, 0, 0); // bei Google gibt’s näheres
}
Bekomme jedoch diesen Fehler:
Code:
1>c:\Users\JanTimon\Desktop\D3DHack\D3DHack\D3DHack.cpp : warning C4747: Aufruf von "_DllMain@12" (verwaltet): Verwalteter Code darf nicht unter der Loadersperre, einschließlich des DLL-Einstiegspunkts und Aufrufen, die vom DLL-Einstiegspunkt eingehen, ausgeführt werden.
12/22/2010, 22:01
#637
elite*gold: 0
Join Date: Mar 2010
Posts: 483
Received Thanks: 96
pack das ganze Dll main teil ganz nach unten
12/23/2010, 00:08
#638
elite*gold: 0
Join Date: Dec 2010
Posts: 60
Received Thanks: 12
Hey hat jmd. Chames nomenü ?
12/23/2010, 00:12
#639
elite*gold: 0
Join Date: May 2010
Posts: 423
Received Thanks: 285
ich glaub es gibt kein no menü hack mit chams!
12/23/2010, 01:35
#640
elite*gold: 0
Join Date: Feb 2010
Posts: 2,797
Received Thanks: 729
Doch hat Willy27 gemacht.
12/23/2010, 11:04
#641
elite*gold: 0
Join Date: May 2010
Posts: 423
Received Thanks: 285
cool was für addy´s braucht man und welche source ist es? pls schreib heir rein
12/23/2010, 11:23
#642
elite*gold: 0
Join Date: Apr 2010
Posts: 101
Received Thanks: 13
Quote:
Originally Posted by
joki4444
pack das ganze Dll main teil ganz nach unten
Leider gleicher Fehler
12/23/2010, 12:04
#643
elite*gold: 1
Join Date: Jun 2010
Posts: 2,843
Received Thanks: 3,724
NoMenu mit Chams ist einfach ihr goloms xD
Man brauch halt nur ne Detour und guten Rehook ;o
12/23/2010, 12:18
#644
elite*gold: 0
Join Date: May 2009
Posts: 2,527
Received Thanks: 4,404
Quote:
Originally Posted by
CyberRazzer
NoMenu mit Chams ist einfach ihr goloms xD
Man brauch halt nur ne Detour und guten Rehook ;o
^this
Hier noch paar sachen von mir o.o
Glitcher:
if(Glitcher==1)
{
if(GetAsyncKeyState(VK_NUMPAD8) &1)
{
*(float*)(ADR_PLAYERPOINTER+OFS_Y) = *(float*)(ADR_PLAYERPOINTER+OFS_Y) +20;
}
if(GetAsyncKeyState(VK_NUMPAD2) &1)
{
*(float*)(ADR_PLAYERPOINTER+OFS_Y) = *(float*)(ADR_PLAYERPOINTER+OFS_Y) -20;
}
if(GetAsyncKeyState(VK_NUMPAD6) &1)
{
*(float*)(ADR_PLAYERPOINTER+OFS_Y) = *(float*)(ADR_PLAYERPOINTER+OFS_Y) +20;
}
if(GetAsyncKeyState(VK_NUMPAD4) &1)
{
*(float*)(ADR_PLAYERPOINTER+OFS_Y) = *(float*)(ADR_PLAYERPOINTER+OFS_Y) -20;
}
}
Fast All:
if(CH_FastAmmo==1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)ADR_FASTAMMO = 99.0f;
}}
if(CH_FastHealth==1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)ADR_FASTHEALTH = 99.0f;
}}
if(CH_FastRepair==1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)ADR_FASTREPAIR = 99.0f;
}}
if(CH_FastFlag==1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
*(float*)ADR_FASTFLAG = 99.0f;
}}
12/23/2010, 12:55
#645
elite*gold: 0
Join Date: May 2010
Posts: 423
Received Thanks: 285
Quote:
NoMenu mit Chams ist einfach ihr goloms xD
Man brauch halt nur ne Detour und guten Rehook ;o
schreib mal pls ein beispiel source pls
Similar Threads
WTB Flyff Source code snippets
04/01/2012 - Flyff Trading - 0 Replies
Hellow I posted this because I wanted to buy a fix scroll of unbinding.Which removes soul-link of an item.If you have its code snippets PM me.Don't sell me a code which is release because all of them are not working.I wanted to buy a fix one and a non-buggy code
Payment:via Paypal
[Autoit] Youtube Code Snippets
07/29/2011 - AutoIt - 5 Replies
Tag Zusammen.
Wie wohl die meisten von euch mitbekommen haben, bieten derzeit sehr viele User hier sogenannte Youtube Services an, bei denen man Abos, Likes, Dislikes etc. kaufen kann.
Doch wer wirklich Erfolg haben will, braucht natürlich viele Abonnenten und Likes, was per Hand Tage dauern würde.
Deshalb werden hier in letzter Zeit immer mehr Youtube Bots verkauft.
Was, wie ich finde, ein ziemliche Abzocke ist, da das meist nur sehr schlechte Bots sind, die lediglich den Internet...
Some Code-Snippets[PSERVER]
07/15/2011 - Kal Hacks, Bots, Cheats & Exploits - 17 Replies
This is the code of the hack which Fremo released..
I got new methods so I dont need this anymore & maybe it'll help some people...
G31 Adult Skill
if(comboBox4->Text=="Panther'crit'")
{
KC->Chat(255," Panther Skill ON");
KC->Threads=1;
KC->lasttime = timeGetTime()-15000;
}
else if(comboBox4->Text=="Tiger'otp'")
[Release] Code Snippets Manager
01/21/2011 - Coding Releases - 0 Replies
Code Snippets Manager
http://upit.cc/images/1d47d78e.jpg
Hab mich heute mal rangesetzt, und einen kleinen Manager für
Code-Snippets(Code-Fetzen) gecodet, da ich alles sortiert
in einer Anwendung wollte.
Da es sicherlich jemand nützlich finden wird, lad ich es hier mal hoch.
All times are GMT +2. The time now is 03:26 .