Register for your free account! | Forgot your password?

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

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

Advertisement



Warrock - Code Snippets

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

Closed Thread
 
Old 04/23/2013, 12:16   #871
 
Lucky Strike™'s Avatar
 
elite*gold: 2
Join Date: May 2010
Posts: 2,913
Received Thanks: 1,565
Quote:
Originally Posted by aerrow107 View Post
Well I tried my best to put it in the DllMain and came up with this final result:
It's still crashing like before...It's crashing at the time when you enter the game.Even before powering it on.


BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
HideDLL(hDll);
DisableThreadLibraryCalls(hDll);
if (dwReason == DLL_PROCESS_ATTACH)
{

CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HacksLoading , NULL, NULL, NULL);

}
return TRUE;
}
Check where the mistake is, by pointing them out step 4 step. Most likely there's something wrong in a function that references the playerpointer. That's why the hack crashes when entering the game.

But that's just one of many possibilities.
Lucky Strike™ is offline  
Old 04/23/2013, 15:18   #872



 
+Yazzn's Avatar
 
elite*gold: 420
Join Date: Jan 2012
Posts: 1,082
Received Thanks: 1,000
Quote:
Originally Posted by xroute66x™ :) View Post
Code:
  
  std::ofstream position;
  position.open("position.txt");
  position << Position_x <<"\n" <<Position_y <<"\n" <<Position_z << std::endl;
  position.close();
(...)
Lass den dtor doch seinen Job tun.
+Yazzn is offline  
Old 04/23/2013, 19:44   #873
 
elite*gold: 0
Join Date: Aug 2011
Posts: 726
Received Thanks: 3,211
I Found this once wr patched the old method of upk , not really patched it just need little modify but w.e

Code:
if(RedLine.rServer.AutoStart == 1)
		{

			if( WaitForAWhile1  == false  && *(DWORD*)ADR_PlayerPointer == 0) 
			{

				int Memory = (int)calloc(1, 404);
				if ( !Memory )
					abort();
				*(DWORD *)Memory = g_rBase->MyServer->Invisable;
				*(DWORD *)(Memory + 8) = g_rBase->MyServer->roomnumber;
				*(DWORD *)(Memory + 4) = g_rBase->MyServer->myplayerslot;
				*(BYTE *)(Memory + 20) = 1;
				*(DWORD *)(Memory + 12) = 1;
				*(DWORD *)(Memory + 16) = 1;
				*(DWORD *)(Memory + 24) = 0;
				Command(Memory);
				free((void*)Memory);

				WaitForAWhile1 = true;
		
			}

		}

         else if(RedLine.rServer.AutoStart == 0) WaitForAWhile1 = false;
This is simply the autostart by command it may make huge lag if u keep calling it without setting a timer or a trick tho , Use ID 50 for AutoReady Also Team ID is near that so you can find it to make TeamSwitch

Credits :
UnknownPk
R3d_L!n3
R3d_L!n3 is offline  
Thanks
1 User
Old 04/23/2013, 20:02   #874
 
Raz9r's Avatar
 
elite*gold: 297
Join Date: Dec 2010
Posts: 1,129
Received Thanks: 1,687
Quote:
Originally Posted by Yazzn (: View Post
Lass den dtor doch seinen Job tun.
Sollte man bei std::*fstream nie machen - denn .close() kann eine Exception werfen und wenn der .close() nicht aufgerufen wurde, macht das der dtor - Ein dtor sollte aber nie Exceptions werfen.
Raz9r is offline  
Old 04/24/2013, 12:59   #875
 
elite*gold: 73
Join Date: Mar 2011
Posts: 2,908
Received Thanks: 8,548
Code:
VOID CALLBACK HackShieldBypass()
{
 do
 {
  hEhSvc = (int)GetModuleHandleA ("ehsvc.dll"); 
 } while (!hEhSvc);
  
  MemEditing ((void *) (hEhSvc + 0xA1A0)        , (void *) ("\xC2\x04\x00")    , 3);
  MemEditing ((void *) (hEhSvc + 0x8523E)       , (void *) ("\xC2\x04\x00")    , 3); 
  MemEditing ((void *) (hEhSvc + 0x00A5EBA)     , (void *) ("\xD2")            , 1); 
  MemEditing ((void *) (0x515926)               , (void *) ("\xEB")            , 1);
  MemEditing ((void *) (0x5E5E53)               , (void *) ("\xC3")            , 1); 
}
Have fun
Kazbah__ is offline  
Thanks
4 Users
Old 04/24/2013, 13:05   #876
 
elite*gold: 0
Join Date: Mar 2013
Posts: 186
Received Thanks: 267
Quote:
Originally Posted by Zyzz__ View Post
Code:
VOID CALLBACK HackShieldBypass()
{
 do
 {
  hEhSvc = (int)GetModuleHandleA ("ehsvc.dll"); 
 } while (!hEhSvc);
  
  MemEditing ((void *) (hEhSvc + 0xA1A0)        , (void *) ("\xC2\x04\x00")    , 3);
  MemEditing ((void *) (hEhSvc + 0x8523E)       , (void *) ("\xC2\x04\x00")    , 3); 
  MemEditing ((void *) (hEhSvc + 0x00A5EBA)     , (void *) ("\xD2")            , 1); 
  MemEditing ((void *) (0x515926)               , (void *) ("\xEB")            , 1);
  MemEditing ((void *) (0x5E5E53)               , (void *) ("\xC3")            , 1); 
}
Have fun
Der kickt nach einer Stunde ...
Xave :) is offline  
Old 04/24/2013, 13:12   #877
 
elite*gold: 73
Join Date: Mar 2011
Posts: 2,908
Received Thanks: 8,548
Quote:
Der kickt nach einer Stunde ...
yop weiß ich
Kazbah__ is offline  
Old 04/24/2013, 16:57   #878
 
Lucky Strike™'s Avatar
 
elite*gold: 2
Join Date: May 2010
Posts: 2,913
Received Thanks: 1,565
0x515926 0x5E5E53 ?
Lucky Strike™ is offline  
Old 04/24/2013, 17:41   #879
 
elite*gold: 1
Join Date: Apr 2013
Posts: 461
Received Thanks: 216
Quote:
Originally Posted by Lucky Strike™ View Post
0x515926 0x5E5E53 ?
die 0x005E5E53 Funktion ist iwas für KeepAlive Packet (wird da gehandled?)
.BlackHat is offline  
Thanks
1 User
Old 04/24/2013, 19:43   #880
 
elite*gold: 0
Join Date: Mar 2013
Posts: 186
Received Thanks: 267
Quote:
Originally Posted by .BlackHat View Post
(...)
0x005E5E53 <- ADR_WarRock_MainPacket
0x00515926 <- ADR_WarRock_Detection

Wenn ihr das MainPacket returnt bekommt ihr kick nach 1h
Xave :) is offline  
Thanks
1 User
Old 04/24/2013, 19:51   #881
 
elite*gold: 0
Join Date: Mar 2012
Posts: 88
Received Thanks: 2
hey was ist an diesem "Addylogger " falsch?
Ich weis adressen und so mach ich schon alles noch, nur ich bekomm diese fehler meldung:
Code:
1>------ Erstellen gestartet: Projekt: addylogger, Konfiguration: Debug Win32 ------
1>  addys.cpp
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_main" in Funktion "___tmainCRTStartup".
1>C:\Users\Tommy\documents\visual studio 2010\Projects\addylogger\Debug\addylogger.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

Source:
Code:
#include <windows.h>
#include <stdio.h>



//DataCompare--------------------------------------------------------
bool DataCompare(const BYTE* OpCodes, const BYTE* Mask, const char* StrMask)
{
//solange bis String zuende
while (*StrMask)
{
//wenn Byte ungleich --> false
if(*StrMask == 'x' && *OpCodes != *Mask )
return false;

++StrMask;
++OpCodes;
++Mask;
}

return true; //wenn alle Bytes gleich
}

//FindPattern------------------------------------------------------------------
DWORD FindPattern(DWORD StartAddress, DWORD CodeLen, BYTE* Mask, char* StrMask, unsigned short ignore)
{
unsigned short Ign = 0;
DWORD i = 0;

while (Ign <= ignore)
{
if(DataCompare((BYTE*)(StartAddress + i++), Mask, StrMask))
++Ign;

else if (i>=CodeLen)
return 0;
}

return StartAddress + i - 1;
}

//RelativeToAbsolute -------------------------------------------------------------
DWORD RelativeToAbsolute (DWORD Offset)
{
return *(DWORD*)(Offset) + Offset + 0x4;
}

// FindAddresses----------------------------------------------------------------
bool FindAddresses()
{
DWORD Base = (DWORD)GetModuleHandleA("warrock.exe");
DWORD PEOffset = *(DWORD*)(Base + 0x3C); //Anfang des PE-Headers auslesen
DWORD SizeOfCode = *(DWORD*)(Base + PEOffset + 0x1C) + Base; //SizeOfCode auslesen

BYTE Mask[] = {0xC3,
0x8B, 0x54, 0x24, 0x04,
0x8B, 0x44, 0x24, 0x08,
0x8B, 0x0D, 0x00, 0x00, 0x00, 0x00,
0x52,
0x6A, 0x00,
0x50,
0xE8, 0x00, 0x00, 0x00, 0x00,
0xE8, 0x00, 0x00, 0x00, 0x00,
0x5E};

DWORD Offset = FindPattern( Base + 0x1000, //BaseOfCode = Base + 1000(Hex)
SizeOfCode,
Mask,
"xxxxxxxxxxx---xxxxxx---xx---xx",
0);

//Wenn Funktion nicht gefunden
if (!Offset)
return false;

DWORD Address1 = *(DWORD*)( Offset + 11);
DWORD Address2 = RelativeToAbsolute(Offset + 20);

return true;
}
hansewurst is offline  
Old 04/24/2013, 20:16   #882


 
Cyno™'s Avatar
 
elite*gold: 158
Join Date: Sep 2011
Posts: 878
Received Thanks: 2,493
Du musst ein DLL Projekt machen und in der DllMain Funktion deine logfunktion aufrufen
Cyno™ is offline  
Thanks
2 Users
Old 04/25/2013, 01:30   #883
 
elite*gold: 0
Join Date: Nov 2012
Posts: 51
Received Thanks: 21
#Req working aimbot because what i found if i shoot it freeze the game.

Thanks.
Lazl07 is offline  
Old 04/25/2013, 05:44   #884
 
CyberMask's Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 80
Received Thanks: 159
Simple Source Make No Damage WarRock

Code:
if (AL_Makenodamage == 1)
		{
			MakeDouble(ADR_BONESHOT,1240); 
		}else{
			MakeDouble(ADR_BONESHOT,1.237e3);
		}

Code:
void MakeDouble(int ADR , double VALUE)
{
	unsigned long size;
	VirtualProtect((void*)ADR, sizeof(VALUE), PAGE_READWRITE, &size);
	memcpy((void*)ADR, &VALUE , sizeof(VALUE));
	VirtualProtect((void*)ADR, sizeof(VALUE), size, 0);
}
Don't Work With Rockets and Nades

Credits to CyberMask(me), UnknownPK
CyberMask is offline  
Thanks
1 User
Old 04/25/2013, 05:55   #885
 
elite*gold: 0
Join Date: Nov 2012
Posts: 51
Received Thanks: 21
Quote:
Originally Posted by CyberMask View Post
Simple Source Make No Damage WarRock

Code:
if (AL_Makenodamage == 1)
		{
			MakeDouble(ADR_BONESHOT,1240); 
		}else{
			MakeDouble(ADR_BONESHOT,1.237e3);
		}

Code:
void MakeDouble(int ADR , double VALUE)
{
	unsigned long size;
	VirtualProtect((void*)ADR, sizeof(VALUE), PAGE_READWRITE, &size);
	memcpy((void*)ADR, &VALUE , sizeof(VALUE));
	VirtualProtect((void*)ADR, sizeof(VALUE), size, 0);
}
Don't Work With Rockets and Nades

Credits to CyberMask(me), UnknownPK
Where we can use that?
Lazl07 is offline  
Closed Thread


Similar Threads Similar Threads
WarRock EU - Code Snippets
07/12/2012 - WarRock - 7490 Replies
Hi Leute, in diesem Thread könnt ihr: -> Nach Sourcecodes fragen(Beispiel unten) -> Eure Sourcecodes posten(Wenn sie nicht von euch sind mit Credits!) -> Fragen ob eure Source evtl. einen Fehler hat -> Fragen was welcher Fehler bedeuted -> Sourcecodes entnehmen(Bitte beim Release dann Credits angeben!)



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


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.