WarRock EU - Code Snippets

09/16/2011 14:55 .Cartel™#5191
Code:
void* BypassDetour( void* pvAddress, const void* pvBuffer, size_t stLen )
{
MEMORY_BASIC_INFORMATION mbi;
VirtualQuery( pvAddress, &mbi, sizeof( mbi ) );
VirtualProtect( mbi.BaseAddress, mbi.RegionSize, PAGE_EXECUTE_READWRITE, &mbi.Protect );
void* pvRetn = memcpy( pvAddress, pvBuffer, stLen );
VirtualProtect( mbi.BaseAddress, mbi.RegionSize, mbi.Protect, &mbi.Protect );
FlushInstructionCache( GetCurrentProcess( ), pvAddress, stLen );
return pvRetn;
}
DWORD WINAPI GameKick()
{
            DWORD EHSvc = 0;
            do{
                            EHSvc = (DWORD)GetModuleHandleA("Ehsvc.dll");
                            Sleep(100);
            }while(!EHSvc);
            BypassDetour((void*)EHSVC::ADR_GAMEKICK,(PBYTE)"\xEB",1);
            BypassDetour((void*)0x45BE64,(PBYTE)"\xEB",1);//CRC PATCH ERROR
            BypassDetour((void*)0x4DCE84,(PBYTE)"\xEB",1);//SELF CRC
return 1;
}
DWORD WINAPI Bypass()
{
DWORD hEhSvc = 0;
do{
hEhSvc = (DWORD)GetModuleHandleA("Ehsvc.dll");
Sleep(100);
}while(!hEhSvc);
            //prevent HS detecting
           BypassDetour((void*)(hEhSvc+0x709F1),(PBYTE)"\xC2\x10\x00", 3);
           BypassDetour((void*)(hEhSvc+0x09B30),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x2F0A0),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x15030),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x71E7C),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x7275D),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x6B3B2),(PBYTE)"\xC3", 1);
           BypassDetour((void*)(hEhSvc+0x12440),(PBYTE)"\xC3", 1);
            //prevent HS starting cicle for monotoring
           BypassDetour((void*)(hEhSvc+0x121A1),(PBYTE)"\x90\x90\x90\x90\x90\x90", 6);
           BypassDetour((void*)(hEhSvc+0x0839A),(PBYTE)"\xE9\xC9\x00\x00\x00", 5);
            //prevent HS jmp to code detect
           BypassDetour((void*)(hEhSvc+0x729F3),(PBYTE)"\x90\x90", 2);
           BypassDetour((void*)(hEhSvc+0x26867),(PBYTE)"\x90\x90", 2);
           BypassDetour((void*)(hEhSvc+0x15530),(PBYTE)"\x90\x90", 2);
           BypassDetour((void*)(hEhSvc+0x2CFAA),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x12FCA),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0xA3204),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x8AFF5),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x0A0A8),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x6A99C),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x18097),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x4FA4F),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x4FB36),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x4FC24),(PBYTE)"\xEB", 1);
            //prevent HS blocking code
           BypassDetour((void*)(hEhSvc+0x3372F),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x3626E),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x341CC),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x9D6AE),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x357A0),(PBYTE)"\x31", 1);
            //prevent HS unhook code
           BypassDetour((void*)(hEhSvc+0x7DFCD),(PBYTE)"\xEB",1);
           BypassDetour((void*)(hEhSvc+0x7DFF7),(PBYTE)"\xEB",1);
           BypassDetour((void*)(hEhSvc+0x7629A),(PBYTE)"\xEB",1);
return 1;
}
void BypassLoop(void) {
            for(;;) {
                            Bypass();
                            Sleep(10000);
            }
}
void GameKickL(void) {
            for(;;) {
                            GameKick();
                            Sleep(1000);
            }}
Have fun (:
09/16/2011 15:15 SK1LL0R..#5192
Quote:
Originally Posted by .Cartel™ View Post
Code:
void* BypassDetour( void* pvAddress, const void* pvBuffer, size_t stLen )
{
MEMORY_BASIC_INFORMATION mbi;
VirtualQuery( pvAddress, &mbi, sizeof( mbi ) );
VirtualProtect( mbi.BaseAddress, mbi.RegionSize, PAGE_EXECUTE_READWRITE, &mbi.Protect );
void* pvRetn = memcpy( pvAddress, pvBuffer, stLen );
VirtualProtect( mbi.BaseAddress, mbi.RegionSize, mbi.Protect, &mbi.Protect );
FlushInstructionCache( GetCurrentProcess( ), pvAddress, stLen );
return pvRetn;
}
DWORD WINAPI GameKick()
{
            DWORD EHSvc = 0;
            do{
                            EHSvc = (DWORD)GetModuleHandleA("Ehsvc.dll");
                            Sleep(100);
            }while(!EHSvc);
            BypassDetour((void*)EHSVC::ADR_GAMEKICK,(PBYTE)"\xEB",1);
            BypassDetour((void*)0x45BE64,(PBYTE)"\xEB",1);//CRC PATCH ERROR
            BypassDetour((void*)0x4DCE84,(PBYTE)"\xEB",1);//SELF CRC
return 1;
}
DWORD WINAPI Bypass()
{
DWORD hEhSvc = 0;
do{
hEhSvc = (DWORD)GetModuleHandleA("Ehsvc.dll");
Sleep(100);
}while(!hEhSvc);
            //prevent HS detecting
           BypassDetour((void*)(hEhSvc+0x709F1),(PBYTE)"\xC2\x10\x00", 3);
           BypassDetour((void*)(hEhSvc+0x09B30),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x2F0A0),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x15030),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x71E7C),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x7275D),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x6B3B2),(PBYTE)"\xC3", 1);
           BypassDetour((void*)(hEhSvc+0x12440),(PBYTE)"\xC3", 1);
            //prevent HS starting cicle for monotoring
           BypassDetour((void*)(hEhSvc+0x121A1),(PBYTE)"\x90\x90\x90\x90\x90\x90", 6);
           BypassDetour((void*)(hEhSvc+0x0839A),(PBYTE)"\xE9\xC9\x00\x00\x00", 5);
            //prevent HS jmp to code detect
           BypassDetour((void*)(hEhSvc+0x729F3),(PBYTE)"\x90\x90", 2);
           BypassDetour((void*)(hEhSvc+0x26867),(PBYTE)"\x90\x90", 2);
           BypassDetour((void*)(hEhSvc+0x15530),(PBYTE)"\x90\x90", 2);
           BypassDetour((void*)(hEhSvc+0x2CFAA),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x12FCA),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0xA3204),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x8AFF5),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x0A0A8),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x6A99C),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x18097),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x4FA4F),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x4FB36),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x4FC24),(PBYTE)"\xEB", 1);
            //prevent HS blocking code
           BypassDetour((void*)(hEhSvc+0x3372F),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x3626E),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x341CC),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x9D6AE),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x357A0),(PBYTE)"\x31", 1);
            //prevent HS unhook code
           BypassDetour((void*)(hEhSvc+0x7DFCD),(PBYTE)"\xEB",1);
           BypassDetour((void*)(hEhSvc+0x7DFF7),(PBYTE)"\xEB",1);
           BypassDetour((void*)(hEhSvc+0x7629A),(PBYTE)"\xEB",1);
return 1;
}
void BypassLoop(void) {
            for(;;) {
                            Bypass();
                            Sleep(10000);
            }
}
void GameKickL(void) {
            for(;;) {
                            GameKick();
                            Sleep(1000);
            }}
Have fun (:
Alles unnötig.

Gibt Server Kick.
Ausserdem reichen dafür 5 Addys und nicht so viele xD
09/16/2011 15:26 .Crasy#5193
Gibt schon einige unterschiede zwischen "Bypass" und "Detour" und wozu Packt ihr bei dem AntiHack von Wr immer an die selbe Stelle? stellt ihn mal wo anders ab, verringert die Chance das er gleich DT ist, eigtl. müsst ihr nur Memory Scann abschalten und schon müsste in der Theorie alles Fine laufen.
09/16/2011 15:31 Yazzn :)#5194
HackShield macht einiges um Modifizierungen sowohl in der Game Executable als auch in der EHSvc.dll zu verhindern.
09/16/2011 15:48 .Crasy#5195
Ja, aber wie wärs wenn man 2 Injectionen macht? ;D

Eine in das Hack Shield und eine in das normale Game, denn dabei findet man die Schwachstelle von jedem AntiHack und zwar lasst sie einfach wo anderst hin führen anstat zu der EHSvc.dll? ;D
09/16/2011 15:58 R3d~F!st#5196
Quote:
Originally Posted by .Cartel™ View Post
Code:
void* BypassDetour( void* pvAddress, const void* pvBuffer, size_t stLen )
{
MEMORY_BASIC_INFORMATION mbi;
VirtualQuery( pvAddress, &mbi, sizeof( mbi ) );
VirtualProtect( mbi.BaseAddress, mbi.RegionSize, PAGE_EXECUTE_READWRITE, &mbi.Protect );
void* pvRetn = memcpy( pvAddress, pvBuffer, stLen );
VirtualProtect( mbi.BaseAddress, mbi.RegionSize, mbi.Protect, &mbi.Protect );
FlushInstructionCache( GetCurrentProcess( ), pvAddress, stLen );
return pvRetn;
}
DWORD WINAPI GameKick()
{
            DWORD EHSvc = 0;
            do{
                            EHSvc = (DWORD)GetModuleHandleA("Ehsvc.dll");
                            Sleep(100);
            }while(!EHSvc);
            BypassDetour((void*)EHSVC::ADR_GAMEKICK,(PBYTE)"\xEB",1);
            BypassDetour((void*)0x45BE64,(PBYTE)"\xEB",1);//CRC PATCH ERROR
            BypassDetour((void*)0x4DCE84,(PBYTE)"\xEB",1);//SELF CRC
return 1;
}
DWORD WINAPI Bypass()
{
DWORD hEhSvc = 0;
do{
hEhSvc = (DWORD)GetModuleHandleA("Ehsvc.dll");
Sleep(100);
}while(!hEhSvc);
            //prevent HS detecting
           BypassDetour((void*)(hEhSvc+0x709F1),(PBYTE)"\xC2\x10\x00", 3);
           BypassDetour((void*)(hEhSvc+0x09B30),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x2F0A0),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x15030),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x71E7C),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x7275D),(PBYTE)"\xC2\x04\x00", 3);
           BypassDetour((void*)(hEhSvc+0x6B3B2),(PBYTE)"\xC3", 1);
           BypassDetour((void*)(hEhSvc+0x12440),(PBYTE)"\xC3", 1);
            //prevent HS starting cicle for monotoring
           BypassDetour((void*)(hEhSvc+0x121A1),(PBYTE)"\x90\x90\x90\x90\x90\x90", 6);
           BypassDetour((void*)(hEhSvc+0x0839A),(PBYTE)"\xE9\xC9\x00\x00\x00", 5);
            //prevent HS jmp to code detect
           BypassDetour((void*)(hEhSvc+0x729F3),(PBYTE)"\x90\x90", 2);
           BypassDetour((void*)(hEhSvc+0x26867),(PBYTE)"\x90\x90", 2);
           BypassDetour((void*)(hEhSvc+0x15530),(PBYTE)"\x90\x90", 2);
           BypassDetour((void*)(hEhSvc+0x2CFAA),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x12FCA),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0xA3204),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x8AFF5),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x0A0A8),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x6A99C),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x18097),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x4FA4F),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x4FB36),(PBYTE)"\xEB", 1);
           BypassDetour((void*)(hEhSvc+0x4FC24),(PBYTE)"\xEB", 1);
            //prevent HS blocking code
           BypassDetour((void*)(hEhSvc+0x3372F),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x3626E),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x341CC),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x9D6AE),(PBYTE)"\x31", 1);
           BypassDetour((void*)(hEhSvc+0x357A0),(PBYTE)"\x31", 1);
            //prevent HS unhook code
           BypassDetour((void*)(hEhSvc+0x7DFCD),(PBYTE)"\xEB",1);
           BypassDetour((void*)(hEhSvc+0x7DFF7),(PBYTE)"\xEB",1);
           BypassDetour((void*)(hEhSvc+0x7629A),(PBYTE)"\xEB",1);
return 1;
}
void BypassLoop(void) {
            for(;;) {
                            Bypass();
                            Sleep(10000);
            }
}
void GameKickL(void) {
            for(;;) {
                            GameKick();
                            Sleep(1000);
            }}
Have fun (:

Creditz to:
Gonzo
SubZerom_
DirectX
R3d~F!St(Me)
09/16/2011 17:16 Raz9r#5197
Quote:
Originally Posted by .Crasy View Post
Ja, aber wie wärs wenn man 2 Injectionen macht? ;D

Eine in das Hack Shield und eine in das normale Game, denn dabei findet man die Schwachstelle von jedem AntiHack und zwar lasst sie einfach wo anderst hin führen anstat zu der EHSvc.dll? ;D
Dämlich oder so? Die ehsvc.dll erzeugt lediglich Routinen in der warrock.exe, keinesfalls aber stellt sie einen eigenen Prozess da, in den man injizieren könnte.
09/16/2011 17:26 Angel-Piece#5198
Quote:
Originally Posted by R3d~F!st View Post
Creditz to:
Gonzo
SubZerom_
DirectX
R3d~F!St(Me)
fail credits to Gamersfirst & ahnlaps -.-
09/16/2011 17:48 .Crasy#5199
Ich meinte auch nicht die Dll, wer lesen kann ist im Vorteil.

Aber naja, du Wannabe 1337 Haxx0r meinst es auch besser zu wissen, was? ;D
09/16/2011 18:47 R3d~F!st#5200
@Angel Die creditz sind fuers finden der benötigten addys
aber ich sag nur FAIL xD Der Leecher halt alten ohne AmtiServerKick geleecht xD
nap :DDDDD

btw du müsstest dann bei jedem dreck Creditz an Die wirklichen 1337 Coder
geben.

King7(hab seine Sources gesehen er kanns)
Croner
Neo III
Hans211
...

@Crasy naja wannabe 1337 Coder passt zu fast jedem hier
manche sind noch schlechter aber niemand von uns hier
kann das "ware" Coden :facepalm: Kein Schwein von uns kann Games erstellen
abgesehen von so kleinen Games
09/16/2011 20:44 Mircoyee111#5201
Suche -

Detour für D3D.

Wer eine WORKED- One hat.
Bescheid geben =) Wäre dankbar =)

Außerdem

Source Code - Speed Hack <- MENÜ!
Source Code - DIG <- MENÜ!
Source Code - Teleport <- MENÜ!

Teile davon ergeben auch euer Thanks.
09/16/2011 21:26 UnknownC#5202
Naja .
Micro deine art zu fragen passt mir nicht aber okay.
Da ich das reine C&P nicht gerne unterstütze.
Hier:
[Only registered and activated users can see links. Click Here To Register...]
Kenne das Tut nicht sollte aber gehen.Ansonsten Google => Croner Detour (E9 )

Speed Hack:
void Speed(double a)
{
double b;
b = a*100;
*(double*)ADR_Speed = b;
}
Kannste einfach so umsetzen:
if(speed)
{Speed(speed);};

DIG:
PlayerPointer+OFS_Z auf -20
Teleport => 3float loggen und dahin porten xD
09/16/2011 21:34 Mircoyee111#5203
Quote:
Originally Posted by UnknownC View Post
Naja .
Micro deine art zu fragen passt mir nicht aber okay.
Da ich das reine C&P nicht gerne unterstütze.
Hier:
[Only registered and activated users can see links. Click Here To Register...]
Kenne das Tut nicht sollte aber gehen.Ansonsten Google => Croner Detour (E9 )

Speed Hack:
void Speed(double a)
{
double b;
b = a*100;
*(double*)ADR_Speed = b;
}
Kannste einfach so umsetzen:
if(speed)
{Speed(speed);};

DIG:
PlayerPointer+OFS_Z auf -20
Teleport => 3float loggen und dahin porten xD
Erstmal ;)

Danke für die Antwort jedoch nenn mich bitte Mirco, denn das ist einfach mein name.

Außerdem bin ich halt im Afnang

Croner Detour braucht denk ich mal nen Rehook denn D3D Funktionen funktionieren bei Croner nicht, zumindest bei mir.

Danke dennoch.
09/16/2011 21:38 Guarania#5204
Leute, hört mal auf euch hier in so beschissen sinnlosen Diskussionen gegenseitig als Drecksnoob, leecher, copy and paster oder was weiß ich sonst noch zu beschimpfen.
Der Thread sollte dazu dienen, Source codes zu veröffentlichen oder eben anderen Usern eine Hilfestellung zu bieten. Aber was ich so sehe ist das von den c.a. 5200 Posts in diesem Thread bestimmt allein 2.000 nur für iwelches möchtegern "Ich weiß es besser als du, du bist ein noob, ich bin der King" rumgeflame draufgehen.
Erstens steht garnicht zur Diskussion, wer der beste ist und da brauch uns auch keiner etwas zu beweisen. Im Endeffekt stimmt es das 90% von E*pvp copy und paster sind, aber was solls, helft doch einfach nur denen die sich mit diesem Thema wirklich auseinandersetzen wollen, und bringt dann nicht irgendwelche scheiß Posts aka "Das ist zu kompliziert für dich versetehste eh nicht", "Ich weiß wie es geht aber ich sag es dir nicht weil ich mich dann Cool fühle" oder "Dir wird niemand einen Code geben weil der nicht public ist [...]".
Sowas nervt doch echt, das ist keine Community sondern eher eine Battleunity was ihr hier betreibt, und dabei ist das so unnötig. Würdet ihr eure ganze Energie die ihr darein steckt, die anderen als Noob zu outen darein stecken, euch selbst weiterzubilden gäbe es mehr bessere Coder hier die wieder anderen helfen können.
Und das ist auch noch so ein Punkt. Ganz ehrlich, wir haben alle bei 0 angefangen, keinem wurde das Verständniss vom D3D- Hooking mit angeboren. Und jeder "wirklich" aufrichtige, und ehrenwerter Hacker gibt dieses Wissen auch weiter, wenn er merkt das sein gegenüber daran Interessiert ist. Kein wirklicher Hacker ist stolz auf sich, weil er etwas mehr weiß als andere und denen das vorenthält. Das ist einfach nicht der Sinn der Sache, das ist nur egoistisch und vor allem kindisch.

Ich würde mich sehr freuen wenn sich das ein paar Leute hier mal zu herzen nehmen, obwohl ich eher denke das ich für diesen Post für Spam reported werde, was solls.
mfg Guarania
09/16/2011 22:06 Yazzn :)#5205
Quote:
Originally Posted by .Crasy View Post
Ich meinte auch nicht die Dll, wer lesen kann ist im Vorteil.

Aber naja, du Wannabe 1337 Haxx0r meinst es auch besser zu wissen, was? ;D
Er weiß es einfach besser... Und weißt du auch warum?
Weil er es kann.