You last visited: Today at 04:46
Advertisement
Warrock Hack [Help]
Discussion on Warrock Hack [Help] within the C/C++ forum part of the Coders Den category.
04/15/2012, 10:55
#1
elite*gold: 0
Join Date: Nov 2011
Posts: 292
Received Thanks: 59
Warrock Hack [Help]
Hallo Liebes epvp. Team Ich wollte mir mal wieder einen Warrock hack machen aus einfachen funktionen. Das Debuggen geht auch. Nur ingame funktioniert das eine oder andere nicht.
Mein Code :
Include + Addys
HTML Code:
#include <windows.h>
#include <stdio.h>
#define Playerpointer
#define OFS_NFD
#define OFS_Z
#define Serverpointer
#define Speed
#define ADR_NoSpawn1
#define ADR_NoSpawn2
#define OFS_NoRecoil1
#define OFS_NoRecoil2
#define OFS_NoRecoil3 0x00C444
#define ADR_NearFog 0x00A0898C
#define ADR_FarFog 0x00A08994
#define ADR_FastAmmo 0x00A06164
#define ADR_FastHealth 0x00A0616C
#define ADR_FastRepair 0x00A0616C
#define ADR_FastFlag 0x00A06174
#define ADR_SuperNoSpread 0x00864650
#define ADR_Scope 0x008C588C
Einzelne Funktionen :
Superjump
PHP Code:
void Superjump () { DWORD PlP = *( DWORD *) Playerpointer ; { if( PlP != 0 ) { *( float *)( PlP + OFS_Z ) = 3000 ; } } }
Fall damage :
PHP Code:
void NFD () { DWORD dwPlP = *( DWORD *) Playerpointer ; if( dwPlP != 0 ) { *( float *)( dwPlP + OFS_NFD ) = - 25000 ; } }
Speedhack :
PHP Code:
void Speedhackx2 () { { DWORD dwPlayerPtr = *( DWORD *) Playerpointer ; if( dwPlayerPtr != 0 ) { *( float *)( Speed ) = 200.0f ;}} } void Speedhackx3 () { { DWORD dwPlayerPtr = *( DWORD *) Playerpointer ; if( dwPlayerPtr != 0 ) { *( float *)( Speed ) = 300.0f ;}} } void Normalspeed () { { DWORD dwPlayerPtr = *( DWORD *) Playerpointer ; if( dwPlayerPtr != 0 ) { *( float *)( Speed ) = 100.0f ;}} }
No Recoil
PHP Code:
void NoRecoil () { DWORD dwPlayerPtr = *( DWORD *) Playerpointer ; {*( float *)( dwPlayerPtr + OFS_NoRecoil1 ) = 0 ; *( float *)( dwPlayerPtr + OFS_NoRecoil2 ) = 0 ; *( float *)( dwPlayerPtr + OFS_NoRecoil3 ) = 0 ;} }
Andere Funktionen :
PHP Code:
void Spawnwait () { DWORD dwPlayerPtr = *( DWORD *) Playerpointer ; { long t = 0 ; unsigned long Protection ; VirtualProtect (( void *) ADR_NoSpawn1 , sizeof ( t ), PAGE_READWRITE , & Protection ); memcpy (( void *) ADR_NoSpawn1 , & t , sizeof ( t )); VirtualProtect (( void *) ADR_NoSpawn1 , sizeof ( t ), Protection , 0 ); VirtualProtect (( void *) ADR_NoSpawn2 , sizeof ( t ), PAGE_READWRITE , & Protection ); memcpy (( void *) ADR_NoSpawn2 , & t , sizeof ( t )); VirtualProtect (( void *) ADR_NoSpawn2 , sizeof ( t ), Protection , 0 );} } void Fasta () { DWORD dwPlayerPtr = *( DWORD *) Playerpointer ; {*( float *) ADR_FastRepair = 10.0f ; *( float *) ADR_FastHealth = 5.0f ; *( float *) ADR_FastFlag = 10.0f ; *( float *) ADR_FastAmmo = 5.0f ;} } void NoFog () { DWORD dwPlayerPtr = *( DWORD *) Playerpointer ; {*( float *) ADR_FarFog = 1166127104 ; *( float *) ADR_NearFog = 0 ;} *( float *)( dwPlayerPtr + OFS_Z ) = - 2000 ; *( float *) ADR_SuperNoSpread = 0 ; *( int *) ADR_Scope = 1 ;}
Thread :
PHP Code:
void TheHacks () { for(;;) { Superjump (); NFD (); Speedhackx3 (); Normalspeed (); NoRecoil (); Spawnwait (); Fasta (); NoFog (); Sleep ( 200 ); } }
dllmain
PHP Code:
BOOL WINAPI DllMain ( HINSTANCE mod , DWORD DWORD_GRUND , LPVOID res ) { switch( DWORD_GRUND ) { case 1 : if( GetAsyncKeyState ( VK_INSERT )) { CreateThread ( 0 , 0 , ( LPTHREAD_START_ROUTINE ) TheHacks , 0 , 0 , 0 ); CreateThread ( 0 , 0 ,( LPTHREAD_START_ROUTINE ) Speedhackx2 , 0 , 0 , 0 ); } break; case 2 : break; } return TRUE ; }
Nur irgendwie funktioniert er nicht -.-"
04/15/2012, 11:23
#2
elite*gold: 0
Join Date: May 2009
Posts: 827
Received Thanks: 471
Quote:
Habe C+P Sperre bei Addys
Welch Ironie.
Formatier deinen Code erstmal anständig, vllt. hat dann jemand Lust sich diesen Kotzbrei anzuschaun.
04/15/2012, 11:44
#3
elite*gold: 0
Join Date: Oct 2008
Posts: 1,637
Received Thanks: 1,119
Quote:
Originally Posted by
xNopex
Welch Ironie.
Formatier deinen Code erstmal anständig, vllt. hat dann jemand Lust sich diesen Kotzbrei anzuschaun.
der code is ja noch schlimmer als mein code
kommen wie jedenfalls zur standard antwort: sag was nicht funktioniert, dann kann man evtl. helfen
04/15/2012, 11:46
#4
elite*gold: 0
Join Date: Nov 2011
Posts: 292
Received Thanks: 59
Wie code formatieren ?
04/15/2012, 12:00
#5
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
Quote:
Habe C+P Sperre bei Addys
Quote:
Code:
void Superjump()
{
DWORD PlP = *(DWORD*)Playerpointer;
{
if(PlP != 0)
{
*(float*)(PlP+OFS_Z) = 3000;
}
}
}
void NFD()
{
DWORD dwPlP = *(DWORD*)Playerpointer;
if(dwPlP != 0)
{
*(float*)(dwPlP+OFS_NFD) = -25000;
}
}
void Speedhackx2 ()
{
{DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0) {
*(float*)(Speed) = 200.0f;}}
}
void Speedhackx3 ()
{
{DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0) {
*(float*)(Speed) = 300.0f;}}
}
void Normalspeed ()
{
{DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0) {
*(float*)(Speed) = 100.0f;}}
}
void NoRecoil ()
{DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
{*(float*)(dwPlayerPtr+OFS_NoRecoil1) = 0;
*(float*)(dwPlayerPtr+OFS_NoRecoil2) = 0;
*(float*)(dwPlayerPtr+OFS_NoRecoil3) = 0;}
}
void Spawnwait ()
{DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
{long t=0;
unsigned long Protection;
VirtualProtect((void*)ADR_NoSpawn1 , sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_NoSpawn1 , &t , sizeof(t));
VirtualProtect((void*)ADR_NoSpawn1 , sizeof(t), Protection, 0);
VirtualProtect((void*)ADR_NoSpawn2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)ADR_NoSpawn2, &t , sizeof(t));
VirtualProtect((void*)ADR_NoSpawn2, sizeof(t), Protection, 0);}
}
void Fasta ()
{DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
{*(float*)ADR_FastRepair = 10.0f;
*(float*)ADR_FastHealth = 5.0f;
*(float*)ADR_FastFlag = 10.0f;
*(float*)ADR_FastAmmo = 5.0f;}
}
void NoFog()
{DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
{*(float*)ADR_FarFog = 1166127104;
*(float*)ADR_NearFog = 0;}
*(float*)(dwPlayerPtr+OFS_Z) = -2000;
*(float*) ADR_SuperNoSpread = 0;
*(int*)ADR_Scope = 1;}
void TheHacks()
{
for(;;)
{
Superjump();
NFD();
Speedhackx3();
Normalspeed();
NoRecoil();
Spawnwait();
Fasta();
NoFog();
Sleep(200);
}
}
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
if(GetAsyncKeyState(VK_INSERT))
{ CreateThread(0, 0, (LPTHREAD_START_ROUTINE)TheHacks , 0, 0, 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE) Speedhackx2, 0, 0, 0);
}
break;
case 2:
break;
}
return TRUE;
}
Quote:
Originally Posted by
Stephack
Wie code formatieren ?
just lol.
ernsthaft, hör auf zu copypasten pls^^
formatieren = den code ordentlich einrücken.
04/15/2012, 12:05
#6
elite*gold: 0
Join Date: Nov 2011
Posts: 292
Received Thanks: 59
Was ist daran denn C+P ? ...
xD Ich habe tuts angesehen von NFD und superjump. Habe diese aber selber geschrieben !
Frechheit....
Außerdem habe ich den rest selber gemacht.....
04/15/2012, 12:11
#7
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Quote:
Nur irgendwie funktioniert er nicht -.-"
Und hast du vor uns irgendwann auch zu erzählen
was nicht funktioniert ?
Oder den Code mal ordentlich zu formatieren, sodass vllt jemand
Lust hat sich das anzusehen ?
04/15/2012, 12:21
#8
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
Quote:
Originally Posted by
Stephack
Was ist daran denn C+P ? ...
xD Ich habe tuts angesehen von NFD und superjump. Habe diese aber selber geschrieben !
Frechheit....
Außerdem habe ich den rest selber gemacht.....
wenn das wirklich von dir ist, dann kannst du mir ja sicher erklären, was das hier macht:
Code:
switch(DWORD_GRUND)
{
case 1:
if(GetAsyncKeyState(VK_INSERT))
{ CreateThread(0, 0, (LPTHREAD_START_ROUTINE)TheHacks , 0, 0, 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE) Speedhackx2, 0, 0, 0);
}
break;
case 2:
break;
einfach nur lachhaft^^
(btw. da ist auch der wahrscheinliche "fehler", der deine nicht vorhandenen coding kenntnisse erkennen lässt)^^
04/15/2012, 12:21
#9
elite*gold: 0
Join Date: Nov 2011
Posts: 292
Received Thanks: 59
Also : Ingame funktioniert er nicht. Debuggen Geht ohne Fehler.
Nur der Hack Funktioniert nicht.
Ja dass ist die eig. Dll Funktion.
Dort wird eine Abfrage gemacht ob EIFGH/Inster gedrückt wurde dann soll Der Thread TheHack starten.
Edit = Habe mal Formatiert....
Ich schätze mal, was mein Fehler ist. Die dllmain wird includet .... wird aber erst später sozusagen "gestartet" Dieses müsste davor passieren.
04/15/2012, 12:36
#10
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Code:
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
if(GetAsyncKeyState(VK_INSERT))
{ CreateThread(0, 0, (LPTHREAD_START_ROUTINE)TheHacks , 0, 0, 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE) Speedhackx2, 0, 0, 0);
}
break;
case 2:
break;
}
return TRUE;
}
Genial. Tut das eigentlich weh? :<
04/15/2012, 12:39
#11
elite*gold: 0
Join Date: Nov 2011
Posts: 292
Received Thanks: 59
Quote:
Originally Posted by
MoepMeep
Code:
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
if(GetAsyncKeyState(VK_INSERT))
{ CreateThread(0, 0, (LPTHREAD_START_ROUTINE)TheHacks , 0, 0, 0);
CreateThread(0,0,(LPTHREAD_START_ROUTINE) Speedhackx2, 0, 0, 0);
}
break;
case 2:
break;
}
return TRUE;
}
Genial. Tut das eigentlich weh? :<
Ja sehr ...
04/15/2012, 12:43
#12
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
Quote:
Originally Posted by
Stephack
Ja dass ist die eig. Dll Funktion.
Dort wird eine Abfrage gemacht ob EIFGH/Inster gedrückt wurde dann soll Der Thread TheHack starten.
nö.
Quote:
Edit = Habe mal Formatiert....
du hast die einzelnen funktionen in einzelne code tags getan... das ist immer noch nicht formatiert...
Quote:
Ich schätze mal, was mein Fehler ist. Die dllmain wird includet .... wird aber erst später sozusagen "gestartet" Dieses müsste davor passieren.
nö.
04/15/2012, 12:45
#13
elite*gold: 0
Join Date: Nov 2011
Posts: 292
Received Thanks: 59
-.-" Ich glaube so wie ich es "Unterteilt" habe könnte jeder es gut lesen.
Ich bitte immer noch um Hilfe...
04/15/2012, 12:53
#14
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Quote:
Originally Posted by
Stephack
-.-" Ich glaube so wie ich es "Unterteilt" habe könnte jeder es gut lesen.
Nö.
04/15/2012, 12:55
#15
elite*gold: 0
Join Date: Nov 2011
Posts: 292
Received Thanks: 59
Dann würde ich dir mal eine Brille empfehlen...
All times are GMT +2. The time now is 04:46 .