WarRock EU - Code Snippets

04/08/2011 18:14 Cri2me09#3061
Quote:
Originally Posted by lujaluja View Post
Hey ich hab nen Code der nich Funktionieren will:


hast du skype dann helfe ich dir ?


oder so


{
*(long*)(dwPtr + OFS_SLOT5) = 1;
}
04/08/2011 18:17 Raz9r#3062
Quote:
Originally Posted by lujaluja View Post
Hey ich hab nen Code der nich Funktionieren will:
global define:

// defines pointer on class server, as DWORD
unsigned long* ptr_cserver = (unsigned long*)ADR_SERVERPOINTER;

then check in your hack routine the following:

*ptr_cserver ?
for( unsigned long ofs = ADR_SLOT5; ofs < ADR_SLOT5 + 4; ofs++ )
*(int*)(*ptr_cserver+ofs) = 0
: /*do nothing*/;


e/ you may ask why i am using a method using the conditional else, it's because im having a global define for pausing the routines. at the place i wrote /*do nothing*/ im having a jumpmark.
e2/ @cri2me... it doesnt matter if ure using long or int... there is no difference between as sizeof(int) is the same as sizeof(long). both sets 4 Bytes in RAM to zero.
04/08/2011 19:01 lujaluja#3063
Quote:
Originally Posted by Cri2me09 View Post
hast du skype dann helfe ich dir ?


oder so


{
*(long*)(dwPtr + OFS_SLOT5) = 1;
}
1.
Ja ich hab die skype addy mit pn geschickt!


2.
Okay...
bei mir ist der fehler:
Quote:
1> main.cpp
1>c:\users\luca\desktop\fastallnfd-lujaluja\fastallnfd-lujaluja\main.cpp(146): error C2447: '{': Funktionsheader fehlt - Parameterliste im alten Stil?
04/08/2011 19:13 Raz9r#3064
oh mah god learn c++...

C2447 means you are too dumb too define a function lol.
04/08/2011 19:55 xxfabbelxx#3065
Quote:
Originally Posted by desastermaster7 View Post
oh mah god learn c++...

C2447 means you are too dumb too define a function lol.
C&P halt :facepalm:

@Fragesteller:

versuchsmal mit

void funktion()
*dein C&P text*
04/08/2011 22:08 _CyberStyle_#3066
Code:
void *DetourCreateE9(BYTE *org, const BYTE *det, int len)
{
BYTE *jmp = (BYTE*)malloc(len+5);
DWORD dwBack;
if(len != 0 && len < 5)
return 0;
if(!len)
{
int tmpLen = 0;
BYTE *pCurOp = org;
while(tmpLen < 5) {
int i = oplen(pCurOp);
if(i == 0 || i == -1)
return 0;
tmpLen += i;
pCurOp += i;
}
if(tmpLen < 5)
return 0;
len = tmpLen;
}
VirtualProtect(org, len, PAGE_READWRITE, &dwBack);
memcpy(jmp, org, len);
jmp += len;

jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = (DWORD)(org+len - jmp) - 5;

org[0] = 0xE9;
*(DWORD*)(org+1) = (DWORD)(det - org) - 5;

for(int i=5; i < len; i++)
org[i] = 0x90;

VirtualProtect(org, len, dwBack, &dwBack);
Sleep(2);
return (jmp-len);
}
Ist die Detour echt noch aktuell ??? o.O
04/08/2011 22:31 xSioux#3067
Quote:
Originally Posted by _CyberStyle_ View Post
Code:
void *DetourCreateE9(BYTE *org, const BYTE *det, int len)
{
BYTE *jmp = (BYTE*)malloc(len+5);
DWORD dwBack;
if(len != 0 && len < 5)
return 0;
if(!len)
{
int tmpLen = 0;
BYTE *pCurOp = org;
while(tmpLen < 5) {
int i = oplen(pCurOp);
if(i == 0 || i == -1)
return 0;
tmpLen += i;
pCurOp += i;
}
if(tmpLen < 5)
return 0;
len = tmpLen;
}
VirtualProtect(org, len, PAGE_READWRITE, &dwBack);
memcpy(jmp, org, len);
jmp += len;

jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = (DWORD)(org+len - jmp) - 5;

org[0] = 0xE9;
*(DWORD*)(org+1) = (DWORD)(det - org) - 5;

for(int i=5; i < len; i++)
org[i] = 0x90;

VirtualProtect(org, len, dwBack, &dwBack);
Sleep(2);
return (jmp-len);
}
Ist die Detour echt noch aktuell ??? o.O
Das ist ne allgemeine E9 Detour,die für viele Games genutzt wird...
Sie ist aktuell!
04/08/2011 23:15 Raz9r#3068
E9 with d3d9.dll hooking is detected in WarRock. You cannot get it fud but with using a midfunc which is quite hard to do.
04/09/2011 08:42 Tiq3reye™#3069
Kann mir jemand eine funzende und aktuelle Detour geben?
04/09/2011 09:05 Yazzn˜#3070
Quote:
Originally Posted by desastermaster7 View Post
E9 with d3d9.dll hooking is detected in WarRock. You cannot get it fud but with using a midfunc which is quite hard to do.
mhm, there are also E9 detours which works for the Present and reset without any detection.
04/09/2011 09:42 •~•Pr0Sk1ll•~•#3071
1.@r a z e r & fabbel :facepalm: als ob euch noch nie ein Fehler passiert ist und ihr
ihn übersehen habt Eragon ist KEIN C&P!
@Eragon wennde lösung noch net hast
Code:
void AllSlot ()//bei dir war hier n semikolon
{
DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPOINTER;
if(dwPlayerPtr != 0)
{ 
*(int*)(dwPlayerPtr + OFS_SLOT5)= 1;
*(int*)(dwPlayerPtr + OFS_SLOT6)= 1;
*(int*)(dwPlayerPtr + OFS_SLOT7)= 1;
*(int*)(dwPlayerPtr + OFS_SLOT8)= 1;
}
}
04/09/2011 10:07 Tiq3reye™#3072
Kann mir jemand jetzt eine funzende und aktuelle Detour geben? Will nicht tausend Jahre warten :awesome:
04/09/2011 10:18 xSioux#3073
Quote:
Originally Posted by Tiq3reye™ View Post
Kann mir jemand jetzt eine funzende und aktuelle Detour geben? Will nicht tausend Jahre warten :awesome:
Erste Seite ist eine...
04/09/2011 11:01 Tiq3reye™#3074
Ja aber die geht nicht.
04/09/2011 11:36 CyberRazzor#3075
Tiq wennde deine google skills an.

Mit Tricks kannst du alles Hooken mit jeder detour