WarRock EU - Code Snippets

11/26/2011 12:52 boknoy24#5941
function like this

void STW ()
{

like that
11/26/2011 12:53 SK1LL0R..#5942
Quote:
Originally Posted by boknoy24 View Post
function like this

void STW ()
{

like that
Learn C++
11/26/2011 12:56 boknoy24#5943
when you asking for function or source code they saying LEARN C++ do you have another word for that?
11/26/2011 13:22 Angel-Piece#5944
Quote:
Originally Posted by boknoy24 View Post
when you asking for function or source code they saying LEARN C++ do you have another word for that?
yeah

Learn C++ Before You Make Hacks Or Attempt.

better?
11/26/2011 13:37 XhakerX#5945
void stw ()
{
*(float*) ADR_STWMEMORY = 900
}

...
11/26/2011 17:21 Venom'#5946
Quote:
Originally Posted by xTriplexXx View Post
Wtw is double and value 0.
Stw is float and value 900(or sth. like that)
Ich bin mit den Valuen unso nicht einverstanden aber hier :

void STW ()
{
*(float*)mem_stw=900;
}

void WTW ()
{
*(double*)mem_wtw=0;
}
So sollte es dann deiner Beschreibung nach aussehen xD
11/26/2011 17:44 hero9910#5947
kein kommentar

Code:
if(CH_ZOPK1 == 1){
for(int i = 4; i < 32; i++) // Blind
{
CPlayer* pPlayerA = g_pBase->player[i];
pPlayerA->x=3794.131836;//Zombie
pPlayerA->y=4275.052246;//Zombie
pPlayerA->z=104.565598;//Zombie
}
}
if(CH_ZOPK2 == 1){
for(int i = 4; i < 32; i++) // Blind
{
CPlayer* pPlayerA = g_pBase->player[i];
pPlayerA->x=3312.98;//Zombie
pPlayerA->y=3309.46;//Zombie
pPlayerA->z=485.178;//Zombie
}
}
11/26/2011 17:50 Angel-Piece#5948
Quote:
Originally Posted by hero9910 View Post
kein kommentar

Code:
if(CH_ZOPK1 == 1){
for(int i = 4; i < 32; i++) // Blind
{
CPlayer* pPlayerA = g_pBase->player[i];
pPlayerA->x=3794.131836;//Zombie
pPlayerA->y=4275.052246;//Zombie
pPlayerA->z=104.565598;//Zombie
}
}
if(CH_ZOPK2 == 1){
for(int i = 4; i < 32; i++) // Blind
{
CPlayer* pPlayerA = g_pBase->player[i];
pPlayerA->x=3312.98;//Zombie
pPlayerA->y=3309.46;//Zombie
pPlayerA->z=485.178;//Zombie
}
}
warum schreibste das doppelt:
for(int i = 4; i < 32; i++) // Blind
{
CPlayer* pPlayerA = g_pBase->player[i];
?

das reicht ein mal dann spaart man sich platz^^
11/26/2011 21:23 ryski1#5949
Quote:
Originally Posted by .Crasy View Post
Struct oder Normal?

Leute mehr Infos schaden nicht.. :x
Struct..
11/27/2011 01:51 boknoy24#5950
Quote:
Originally Posted by Venom' View Post
Ich bin mit den Valuen unso nicht einverstanden aber hier :

void STW ()
{
*(float*)mem_stw=900;
}

void WTW ()
{
*(double*)mem_wtw=0;
}
So sollte es dann deiner Beschreibung nach aussehen xD
i already do that before you can post...

maybe the addies is wrong warrock keep's crashing.
11/27/2011 11:03 Deda94#5951
Quote:
Originally Posted by Angel-Piece View Post
yeah

Learn C++ Before You Make Hacks Or Attempt.

better?
ehm c++ itself doesn't make you able to create a working hack.

You must have a little knowledge of Assemble, know how to use a debuger & where you have to search for Addys, Values, Structs etc. ;)
11/27/2011 16:24 Staminastick#5952
Der folgende Code wurde von DR.PHP geleeched!

Er ist nicht von mir!
Angeblich ist es der HS-Bypass von King7 (akutelle Version)

Ich würde gerne die Meinung von ein paar Coder dazu hören!

PHP Code:
HackShield Latest Version Released By AHNLab Destroyed.
 
 
__declspec(naked) void __cdecl PatchHS1(int v1, long v2, char* v3)
{
//restoring original code
__asm
{
push ebp;
mov ebp, esp;
sub esp, 140;
push edi;
mov edi, v1;
push ebx;
mov ebx, v2;
push esi;
mov v3, esi;
pushad;
mov eax, dword ptr ds:[esp*4];
cmp eax, 0x1000055 //10705
je detect1;
cmp eax, 0x1000181 //10501
je detect2;
pop edi;
pop ebx;
pop esi;
popad;
jmp [oLocation1];
}
 
detect1:
pop edi;
pop ebx;
pop esi;
popad;
jmp [oLocation1];
 
detect2:
pop edi;
pop ebx;
pop esi;
popad;
jmp [oLocation1];
 
}
 
}
 
char* String1 = "AHNHS_CRC32MD5_EXECUTABLE_";
char* String2 = "AHNHS_CRC32MD5_EHSVCMODULE_";
char* String3 = "AHNHS_VMT_BACKUP_TABLE_";
__declspec(naked) void __cdecl PatchHS2(int v1, long v2, int v4, char* v5/*Request*/, int v6)
{
//restoring original code
__asm
{
push ebp;
mov ebp, esp;
sub esp, 360;
pushad;
push esi;
mov v1, esi;
push eax;
mov v2, eax;
push edi;
mov v4, edi;
push ebx;
mov v5, ebx;
mov[v6], 0; //always 0 or detection;
cmp v5, String1;
je Jumpback;
cmp v5, String2;
je Jumpack;
cmp v5, String3;
je Jumpback;
popad
pop eax
;
pop edi;
pop ebp;
jmp [oLocation2];
}
 
Jumpback:
__asm
{
popad
pop eax
;
pop edi;
pop ebp;
jmp [oLocation2];
}
 
}
 
bool bPatchNotWrited = true;
void HSBypass_RunPatch()
{
for(;;)
{
DWORD hEhSvc = (long)GetModuleHandleA("EHSvc.dll");
if(
hEhSvc !=0)
{
 
if(
bPatchNotWrited)
{
DetourFunction((PBYTE)(hEhSvc + 0x1A520), (PBYTE)PatchHS1);
DetourFunction((PBYTE)(hEhSvc + 0x1A980), (PBYTE)PatchHS2);
bPatchNotWrited = false;
}
}
 
Sleep(1000);
}
}
 
...
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HSBypass_RunPatch, 0, 0, 0); 
11/27/2011 16:33 Angel-Piece#5953
Quote:
Originally Posted by Staminastick View Post
Der folgende Code wurde von DR.PHP geleeched!

Er ist nicht von mir!
Angeblich ist es der HS-Bypass von King7 (akutelle Version)

Ich würde gerne die Meinung von ein paar Coder dazu hören!

PHP Code:
HackShield Latest Version Released By AHNLab Destroyed.
 
 
__declspec(naked) void __cdecl PatchHS1(int v1, long v2, char* v3)
{
//restoring original code
__asm
{
push ebp;
mov ebp, esp;
sub esp, 140;
push edi;
mov edi, v1;
push ebx;
mov ebx, v2;
push esi;
mov v3, esi;
pushad;
mov eax, dword ptr ds:[esp*4];
cmp eax, 0x1000055 //10705
je detect1;
cmp eax, 0x1000181 //10501
je detect2;
pop edi;
pop ebx;
pop esi;
popad;
jmp [oLocation1];
}
 
detect1:
pop edi;
pop ebx;
pop esi;
popad;
jmp [oLocation1];
 
detect2:
pop edi;
pop ebx;
pop esi;
popad;
jmp [oLocation1];
 
}
 
}
 
char* String1 = "AHNHS_CRC32MD5_EXECUTABLE_";
char* String2 = "AHNHS_CRC32MD5_EHSVCMODULE_";
char* String3 = "AHNHS_VMT_BACKUP_TABLE_";
__declspec(naked) void __cdecl PatchHS2(int v1, long v2, int v4, char* v5/*Request*/, int v6)
{
//restoring original code
__asm
{
push ebp;
mov ebp, esp;
sub esp, 360;
pushad;
push esi;
mov v1, esi;
push eax;
mov v2, eax;
push edi;
mov v4, edi;
push ebx;
mov v5, ebx;
mov[v6], 0; //always 0 or detection;
cmp v5, String1;
je Jumpback;
cmp v5, String2;
je Jumpack;
cmp v5, String3;
je Jumpback;
popad
pop eax
;
pop edi;
pop ebp;
jmp [oLocation2];
}
 
Jumpback:
__asm
{
popad
pop eax
;
pop edi;
pop ebp;
jmp [oLocation2];
}
 
}
 
bool bPatchNotWrited = true;
void HSBypass_RunPatch()
{
for(;;)
{
DWORD hEhSvc = (long)GetModuleHandleA("EHSvc.dll");
if(
hEhSvc !=0)
{
 
if(
bPatchNotWrited)
{
DetourFunction((PBYTE)(hEhSvc + 0x1A520), (PBYTE)PatchHS1);
DetourFunction((PBYTE)(hEhSvc + 0x1A980), (PBYTE)PatchHS2);
bPatchNotWrited = false;
}
}
 
Sleep(1000);
}
}
 
...
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HSBypass_RunPatch, 0, 0, 0); 

welche Meinungen z.b. das man auf dem ersten blick sieht das der Code Unvollständigkeit ist^^ oder was meinst du :D
11/27/2011 16:40 Yazzn :)#5954
Der Code enthält viele Fehler.
11/27/2011 16:46 Staminastick#5955
Quote:
Originally Posted by Angel-Piece View Post
welche Meinungen z.b. das man auf dem ersten blick sieht das der Code Unvollständigkeit ist^^ oder was meinst du :D
Quote:
Originally Posted by Yazzn :) View Post
Der Code enthält viele Fehler.
Ich habe noch nie so richtig mit HS-Bypass gearbeitet :D

deshalb kenne ich mich kaum aus damit ...