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(nakedvoid __cdecl PatchHS1(int v1long v2charv3)
{
//restoring original code
__asm
{
push ebp;
mov ebpesp;
sub esp140;
push edi;
mov ediv1;
push ebx;
mov ebxv2;
push esi;
mov v3esi;
pushad;
mov eaxdword ptr ds:[esp*4];
cmp eax0x1000055 //10705
je detect1;
cmp eax0x1000181 //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];
 
}
 
}
 
charString1 "AHNHS_CRC32MD5_EXECUTABLE_";
charString2 "AHNHS_CRC32MD5_EHSVCMODULE_";
charString3 "AHNHS_VMT_BACKUP_TABLE_";
__declspec(nakedvoid __cdecl PatchHS2(int v1long v2int v4charv5/*Request*/int v6)
{
//restoring original code
__asm
{
push ebp;
mov ebpesp;
sub esp360;
pushad;
push esi;
mov v1esi;
push eax;
mov v2eax;
push edi;
mov v4edi;
push ebx;
mov v5ebx;
mov[v6], 0//always 0 or detection;
cmp v5String1;
je Jumpback;
cmp v5String2;
je Jumpack;
cmp v5String3;
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(00, (LPTHREAD_START_ROUTINE)HSBypass_RunPatch000); 
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(nakedvoid __cdecl PatchHS1(int v1long v2charv3)
{
//restoring original code
__asm
{
push ebp;
mov ebpesp;
sub esp140;
push edi;
mov ediv1;
push ebx;
mov ebxv2;
push esi;
mov v3esi;
pushad;
mov eaxdword ptr ds:[esp*4];
cmp eax0x1000055 //10705
je detect1;
cmp eax0x1000181 //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];
 
}
 
}
 
charString1 "AHNHS_CRC32MD5_EXECUTABLE_";
charString2 "AHNHS_CRC32MD5_EHSVCMODULE_";
charString3 "AHNHS_VMT_BACKUP_TABLE_";
__declspec(nakedvoid __cdecl PatchHS2(int v1long v2int v4charv5/*Request*/int v6)
{
//restoring original code
__asm
{
push ebp;
mov ebpesp;
sub esp360;
pushad;
push esi;
mov v1esi;
push eax;
mov v2eax;
push edi;
mov v4edi;
push ebx;
mov v5ebx;
mov[v6], 0//always 0 or detection;
cmp v5String1;
je Jumpback;
cmp v5String2;
je Jumpack;
cmp v5String3;
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(00, (LPTHREAD_START_ROUTINE)HSBypass_RunPatch000); 

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 ...