Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 13:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



WarRock EU - Code Snippets

Discussion on WarRock EU - Code Snippets within the WarRock forum part of the Shooter category.

View Poll Results: Wie findet ihr diesen Thread
Klasse! 78 60.94%
Geht so 17 13.28%
Sinnlos, braucht keiner 33 25.78%
Voters: 128. You may not vote on this poll

Closed Thread
 
Old 02/11/2012, 14:17   #6406
 
elite*gold: 0
Join Date: Feb 2012
Posts: 24
Received Thanks: 3
Quote:
Originally Posted by _BuRn3R_ View Post
HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
_asm pushad;

CreateACrossHair(CH_Crosshair,pDevice);
set_menu->InitFont(pDevice);

set_menu->Init();
set_menu->Menu(pDevice);
set_menu->DestroyFont();

// Here ESP Code

} // Close myPresent

HRESULT CALLBACK HooK(VOID FAR)
{
DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
if(memcmp((void*)dwDrawIndexedPrimitive,(void*)(PB YTE)"\x8B\xFF",2)== 0)
{

//pDrawIndexedPrimitive = (oDrawIndexedPrimitive) BADetour((DWORD)dwDrawIndexedPrimitive,(DWORD)myDr awIndexedPrimitive,7);
}
_asm popad;

return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}

Now its right
Now it tellin' me, that this:
Code:
return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
is not declared..
TheOwnerxX.: is offline  
Old 02/11/2012, 14:31   #6407
 
elite*gold: 0
Join Date: Sep 2011
Posts: 326
Received Thanks: 760
HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)

return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
?!
SK1LL0R.. is offline  
Old 02/11/2012, 14:33   #6408
 
elite*gold: 0
Join Date: Feb 2012
Posts: 24
Received Thanks: 3
Quote:
Originally Posted by SK1LL0R.. View Post
HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)

return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
?!
TheOwnerxX.: is offline  
Old 02/11/2012, 14:39   #6409
 
elite*gold: 0
Join Date: Sep 2011
Posts: 326
Received Thanks: 760
lol all bullshit XD


HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
_asm pushad;

CreateACrossHair(CH_Crosshair,pDevice);
set_menu->InitFont(pDevice);

set_menu->Init();
set_menu->Menu(pDevice);
set_menu->DestroyFont();

// Here ESP Code

_asm popad;
return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}
SK1LL0R.. is offline  
Thanks
1 User
Old 02/11/2012, 14:40   #6410
 
elite*gold: 31
Join Date: Oct 2011
Posts: 2,276
Received Thanks: 2,029
Quote:
Originally Posted by TheOwnerxX.: View Post
Now it tellin' me, that this:
Code:
return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
is not declared..
So is right;

HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
_asm pushad;

CreateACrossHair(CH_Crosshair,pDevice);
set_menu->InitFont(pDevice);

set_menu->Init();
set_menu->Menu(pDevice);
set_menu->DestroyFont();

// Here ESP Code
return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
} // Close myPresent

HRESULT CALLBACK HooK(VOID FAR)
{
DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
if(memcmp((void*)dwDrawIndexedPrimitive,(void*)(PB YTE)"\x8B\xFF",2)== 0)
{

//pDrawIndexedPrimitive = (oDrawIndexedPrimitive) BADetour((DWORD)dwDrawIndexedPrimitive,(DWORD)myDr awIndexedPrimitive,7);
}
_asm popad;
}
__BuRn3R is offline  
Old 02/11/2012, 14:44   #6411
 
elite*gold: 0
Join Date: Sep 2011
Posts: 326
Received Thanks: 760
Quote:
Originally Posted by _BuRn3R_ View Post
So is right;

HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
_asm pushad;

CreateACrossHair(CH_Crosshair,pDevice);
set_menu->InitFont(pDevice);

set_menu->Init();
set_menu->Menu(pDevice);
set_menu->DestroyFont();

// Here ESP Code
return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
} // Close myPresent

HRESULT CALLBACK HooK(VOID FAR)
{
DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
if(memcmp((void*)dwDrawIndexedPrimitive,(void*)(PB YTE)"\x8B\xFF",2)== 0)
{

//pDrawIndexedPrimitive = (oDrawIndexedPrimitive) BADetour((DWORD)dwDrawIndexedPrimitive,(DWORD)myDr awIndexedPrimitive,7);
}
_asm popad;
}
Du hast echt keine Ahnung oder?

DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
if(memcmp((void*)dwDrawIndexedPrimitive,(void*)(PB YTE)"\x8B\xFF",2)== 0)
{

//pDrawIndexedPrimitive = (oDrawIndexedPrimitive) BADetour((DWORD)dwDrawIndexedPrimitive,(DWORD)myDr awIndexedPrimitive,7);
Das ist unnötig..
Denk doch mal nach..
//
Mehr sag ich nicht :P
SK1LL0R.. is offline  
Thanks
1 User
Old 02/11/2012, 14:46   #6412
 
elite*gold: 31
Join Date: Oct 2011
Posts: 2,276
Received Thanks: 2,029
Quote:
Originally Posted by SK1LL0R.. View Post
Du hast echt keine Ahnung oder?

DWORD dwDrawIndexedPrimitive = GetAddressPtr(82);
if(memcmp((void*)dwDrawIndexedPrimitive,(void*)(PB YTE)"\x8B\xFF",2)== 0)
{

//pDrawIndexedPrimitive = (oDrawIndexedPrimitive) BADetour((DWORD)dwDrawIndexedPrimitive,(DWORD)myDr awIndexedPrimitive,7);
Das ist unnötig..
Denk doch mal nach..
//
Mehr sag ich nicht :P
Ich hab damit nur sagen wollen das man den Hook nicht im myPresent reinstecken soll.. ich hab nicht behauptet das er so richtig is oder net.
__BuRn3R is offline  
Old 02/11/2012, 14:49   #6413
 
elite*gold: 0
Join Date: Sep 2011
Posts: 326
Received Thanks: 760
Warum sollte man das nicht?
naja egal.
€: Es ist so oder so Detected egal wo du es hinmachst.
SK1LL0R.. is offline  
Old 02/11/2012, 17:19   #6414
 
elite*gold: 26
Join Date: Oct 2011
Posts: 2,130
Received Thanks: 839
Suche WALLHACK dings da
BrainShot is offline  
Old 02/11/2012, 18:06   #6415
 
elite*gold: 31
Join Date: Oct 2011
Posts: 2,276
Received Thanks: 2,029
struct CServer
{
char xUnknown1[1396];//0x00
int GMMode;//0x574
char xUnknown2[20];//0x578
int Premium;//0x58C
long PremiumDays;//0x590
char xUnknown3[488];//0x594
int Ping;//0x77C
char xUnknown4[1033648];//0x780
DWORD RoomMaster;//0xFCD30
char xUnknown5[4];//0xFCD34
int SuperMaster;//0xFCD38
char xUnknown6[21632];//0xFCD3C
BYTE Slot5;//0x1021BC
BYTE Slot6;//0x1021BD
BYTE Slot7;//0x1021BE
BYTE Slot8;//0x1021BF
char xUnknown7[98520];//0x1021C0
long Level;//0x11A298
char xUnknown8[12];//0x11A29C
long Dinar;//0x11A2A8
char xUnknown9[16];//0x11A2AC
long Invisible;//0x11A2BC
};

Credits: BuRn3R
__BuRn3R is offline  
Thanks
1 User
Old 02/11/2012, 22:24   #6416
 
UnknownData's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 129
Received Thanks: 82
Quote:
ADR_ServerCount 0x00A2B060
ADR_AllServer 0x004B05B6
ADR_ServerJump (ADR_AllServer + 0x7)

void *DetJmp(BYTE *src, const BYTE *dst, const int len)
{
BYTE *jmp =(BYTE*)malloc(len+5);
DWORD dwBack;

VirtualProtect(src, len, PAGE_READWRITE, &dwBack);
memcpy(jmp, src, len);
jmp += len;
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) =(DWORD)(src+len - jmp) - 5;

src[0] = 0xE9;
*(DWORD*)(src+1) =(DWORD)(dst - src) - 5;
for(int i=5; i<len; i++) src[i] = 0x90;
VirtualProtect(src, len, dwBack, &dwBack);

return(jmp-len);
}

int URLgetpage(char *link, char *buffer, int maxsize)
{
HINTERNET hSession;
HINTERNET hURL;
DWORD dwBYTEsRead;
int ok;

ok=0;
buffer[0]=0;
hSession = InternetOpen( // Make internet connection.
"Microsoft Internet Explorer", // agent
INTERNET_OPEN_TYPE_PRECONFIG, // access
NULL, NULL, 0); // defaults
if (hSession) {
hURL = InternetOpenUrl( // Make connection to desired page.
hSession, // session handle
link, // URL to access
NULL, 0, 0, 0); // defaults
if (hURL) {
// Read page into memory buffer.
InternetReadFile(
hURL, // handle to URL
(LPSTR)buffer, // pointer to buffer
(DWORD)maxsize, // size of buffer
&dwBYTEsRead); // pointer to var to hold return value

// Close down connections.
InternetCloseHandle(hURL);
buffer[dwBYTEsRead]=0; // end string
ok=(int)dwBYTEsRead;
}

InternetCloseHandle(hSession);
}
return ok;
}

char *Servers = new char[1512];

char *GetServers ()
{
char allserverurl[256];
sprintf(allserverurl,"http://wr3ngine.net/WrServer/list.php?sho=1");
UrlGetPage( allserverurl,Servers,1512);
return Servers;
}

DWORD JumpServer = ADR_ServerJump;
ADR_ServerCount 0x00A2B060
ADR_AllServer 0x004B05B6
ADR_ServerJump (ADR_AllServer + 0x7)

void *DetJmp(BYTE *src, const BYTE *dst, const int len)
{
BYTE *jmp =(BYTE*)malloc(len+5);
DWORD dwBack;

VirtualProtect(src, len, PAGE_READWRITE, &dwBack);
memcpy(jmp, src, len);
jmp += len;
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) =(DWORD)(src+len - jmp) - 5;

src[0] = 0xE9;
*(DWORD*)(src+1) =(DWORD)(dst - src) - 5;
for(int i=5; i<len; i++) src[i] = 0x90;
VirtualProtect(src, len, dwBack, &dwBack);

return(jmp-len);
}

DWORD JumpServer = ADR_ServerJump;

__declspec(naked)void InlineAsm_AllServers()
{
GetServers();
__asm
{
mov dword ptr ds:[ADR_ServerCount ],18h
mov eax,Servers
mov [ebp+1004h-1020h], eax
cmp dword ptr ds: [ADR_ServerCount ],0
jmp [JumpServer]
}
}

if(AllServer == 1)
{
DetJmp((BYTE*)ADR_AllServer,(BYTE*)InlineAsm_AllSe rvers,5);
}
if(AllServer == 0)
{
Memcpy((void*)ADR_AllServer,(PBYTE)"\x83\x3D\x08\x 23\xA2\x00\x00",7);
}

if(AllServer == 1)
{
DetJmp((BYTE*)ADR_AllServer,(BYTE*)InlineAsm_AllSe rvers,5);
}
if(AllServer == 0)
{
Memcpy((void*)ADR_AllServer,(PBYTE)"\x83\x3D\x08\x 23\xA2\x00\x00",7);
}
xD
UnknownData is offline  
Old 02/11/2012, 23:21   #6417
 
elite*gold: LOCKED
Join Date: Dec 2009
Posts: 4,650
Received Thanks: 5,731
Quote:
Originally Posted by UnknownData View Post
xD
credits to:
Croner (Detjmp and UrlGetPage i think)
Wr3ngine (for using their Serverlist)
Bananegel
Angel-Piece is offline  
Thanks
3 Users
Old 02/12/2012, 10:55   #6418
 
elite*gold: 0
Join Date: Sep 2011
Posts: 326
Received Thanks: 760
Quote:

int MenuColor;
int BoxColor;

Boarders(pDevice,pFont1);

void D3D9Menu::Boarders(LPDIRECT3DDEVICE9 pDevice,ID3DXFont* pFont)
{
if(MenuColor == 0)
{
DrawBox(pDevice,4,25,Mxofs+25,Mmax*Mysize+20,BackG round);
DrawBox(pDevice,4,10,Mxofs+25,20,BackGround);
}
if(BoxColor == 0)
{
DrawRectangle(pDevice,4,10,Mxofs+25,15,1,RED);
DrawRectangle(pDevice,4,25,Mxofs+25,Mmax*Mysize+20 ,1,RED);
}
}
Brauch ich nicht mehr viel Spaß damit.
Es sieht so aus:
SK1LL0R.. is offline  
Thanks
2 Users
Old 02/12/2012, 15:58   #6419
 
elite*gold: 31
Join Date: Oct 2011
Posts: 2,276
Received Thanks: 2,029
AntiOPK über Structs:

if (xPlayer.CH_AntiOPK)
{
p_Player->pLocal->PosX = 0.0F;
p_Player->pLocal->PosY = 0.0F;
p_Player->pLocal->PosZ = 0.0F;
}

Structs:

struct CPlayer
{
char xUnknwon1[65940];//0x00
float Pitch;//0x10194
char xUnknown2[24];//0x10198
float Yaw;//0x101B0
char xUnknown3[300];//0x101B4
float PosX;//0x102E0
char xUnknown4[12];//0x102E4
float PosY;//0x102F0
char xUnknown5[12];//0x102F4
float PosZ;//0x102E8
};

Credits to BuRn3R
__BuRn3R is offline  
Old 02/12/2012, 16:11   #6420
 
xBioK1ngz's Avatar
 
elite*gold: 15
Join Date: Nov 2011
Posts: 556
Received Thanks: 1,002
Die Struct sind von mir und was ich nicht verstehe, es ist kein Anti OPK.
xBioK1ngz is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
WTB Flyff Source code snippets
04/01/2012 - Flyff Trading - 0 Replies
Hellow I posted this because I wanted to buy a fix scroll of unbinding.Which removes soul-link of an item.If you have its code snippets PM me.Don't sell me a code which is release because all of them are not working.I wanted to buy a fix one and a non-buggy code Payment:via Paypal
[Autoit] Youtube Code Snippets
07/29/2011 - AutoIt - 5 Replies
Tag Zusammen. Wie wohl die meisten von euch mitbekommen haben, bieten derzeit sehr viele User hier sogenannte Youtube Services an, bei denen man Abos, Likes, Dislikes etc. kaufen kann. Doch wer wirklich Erfolg haben will, braucht natürlich viele Abonnenten und Likes, was per Hand Tage dauern würde. Deshalb werden hier in letzter Zeit immer mehr Youtube Bots verkauft. Was, wie ich finde, ein ziemliche Abzocke ist, da das meist nur sehr schlechte Bots sind, die lediglich den Internet...
Some Code-Snippets[PSERVER]
07/15/2011 - Kal Hacks, Bots, Cheats & Exploits - 17 Replies
This is the code of the hack which Fremo released.. I got new methods so I dont need this anymore & maybe it'll help some people... G31 Adult Skill if(comboBox4->Text=="Panther'crit'") { KC->Chat(255," Panther Skill ON"); KC->Threads=1; KC->lasttime = timeGetTime()-15000; } else if(comboBox4->Text=="Tiger'otp'")
[Release] Code Snippets Manager
01/21/2011 - Coding Releases - 0 Replies
Code Snippets Manager http://upit.cc/images/1d47d78e.jpg Hab mich heute mal rangesetzt, und einen kleinen Manager für Code-Snippets(Code-Fetzen) gecodet, da ich alles sortiert in einer Anwendung wollte. Da es sicherlich jemand nützlich finden wird, lad ich es hier mal hoch.



All times are GMT +1. The time now is 13:49.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.