Help-_- S2s Hooks

Posts 115 of 17 · Page 1 of 2
-_- S2s Hooks
on my s2s hook when i include this like you are sposed to it crashes


return oSendToServer( Messege, Flags );

but when i dont include it the ammo is visual


when it is included it crashes on turn on


btw my hook works its through cshell and on top of that i have a full hs bypass

so im stuck idk whats rong

i hade it working i left for awile my pc was messed with by my stupid brother and it fucks up



Code

Code:
int cMisc::SendToServer(ILTMessage_Read *Message, unsigned int flags)
{
			CAutoMessage cMsg;
	uint8 ID = Message->Readuint8();
	if(HackVar.UnlAmmo)
	{	
	if(ID == 130)
    {
		cMsg.Reset();
		cMsg.Writeuint8(130);

		int iCount = 70;
		if(Message->Size() >= 992) iCount = 97;

		for(int i = 0; i < iCount; i++)
			cMsg.Writeuint8(Message->Readuint8());	

			return oSendToServer( cMsg.Read(), flags );
	   }
	}	
    return oSendToServer( Message, flags );	
}
Maybe youre creating an infinite loop while calling that function?
Post your full code here..
Also I thought that func has got 3 arguements, but not sure.
Its been a long time I hacked CA.
Quote Originally Posted by Ch40zz-C0d3r View Post
Maybe youre creating an infinite loop while calling that function?
Post your full code here..
Also I thought that func has got 3 arguements, but not sure.
Its been a long time I hacked CA.
When can I try and fail to hack your game
Quote Originally Posted by Ch40zz-C0d3r View Post
Maybe youre creating an infinite loop while calling that function?
Post your full code here..
Also I thought that func has got 3 arguements, but not sure.
Its been a long time I hacked CA.

here
Code:
int cMisc::SendToServer(ILTMessage_Read *Message, unsigned int flags)
{
			CAutoMessage cMsg;
	uint8 ID = Message->Readuint8();
	if(HackVar.UnlAmmo)
	{	
	if(ID == 130)
    {
		cMsg.Reset();
		cMsg.Writeuint8(130);

		int iCount = 70;
		if(Message->Size() >= 992) iCount = 97;

		for(int i = 0; i < iCount; i++)
			cMsg.Writeuint8(Message->Readuint8());	

			return oSendToServer( cMsg.Read(), flags );
	   }
	}	
    return oSendToServer( Message, flags );	
}
Quote Originally Posted by Ch40zz-C0d3r View Post
Maybe youre creating an infinite loop while calling that function?
Post your full code here..
Also I thought that func has got 3 arguements, but not sure.
Its been a long time I hacked CA.

Code:
			if(HackVar.unlAmmo)
			{
			  Misc.SendToServer(Msg.Read(), MESSAGE_GUARANTEED);
			}
i think thats what he needs to do

ive been looking this thread over for like a hour so i thought i could help


if im not correct you can help him ive never tryed a s2s hook XD so im just guessing and seeing if it wokrs for him
Quote Originally Posted by DisOwned View Post
Code:
			if(HackVar.unlAmmo)
			{
			  Misc.SendToServer(Msg.Read(), MESSAGE_GUARANTEED);
			}
i think thats what he needs to do


if im not correct you can help him ive never tryed a s2s hook XD so im just guessing and seeing if it wokrs for him
i already have this XD and Ch4zz what he just said is how im hooking it works cuz i used a logging function to test and it loggs when hooked


its just that ammo is visual
for some reason
when do you set oSendToServer as the address of sendtoserver? and is your address correct?
Quote Originally Posted by Timboy67678 View Post
when do you set oSendToServer as the address of sendtoserver? and is your address correct?
i dont think hooks use the s2s address

u need the s2s address for others like voice spam and respawn but if your hooking it it doesnt need the address atleast not for unlimted ammo i use the addy for unl ammo the ammo addy i tried using the s2s address it has the same results

this return oSendToServer( Message, flags ); = crash

remove this return oSendToServer( Message, flags ); = unl ammo visual
Well the code doesnt tell me what I wanted to know. I mean I have exactly the same code here in my project, the difference is that disav0w and me made this and youre code is c&ped and you dont know how it works...
However, show me your hook (perherps remove some offsets cuz of noobs arround here) and I can tell you whats wrong.
Btw did you try the hook to edit other gamepackets not only shoot/bullet packet id?
Does a log function get called if placed in your hook?

Offtopic: I worked very long on the game but I couldnt fix some annoying bugs.
If I fixed them the game will be ready for an alpha test
Quote Originally Posted by Ch40zz-C0d3r View Post
Offtopic: I worked very long on the game but I couldnt fix some annoying bugs.
If I fixed them the game will be ready for an alpha test
If it opens up for Alpha, PM me right away. I want to participate right away.

I'll attempt to hack, but I'll report what I find directly to you, only to help you
Haha!
They tried to make it harder for you, they changed the size of the message
I cant tell you more, you have to understand the code and what its doing yourself.
Quote Originally Posted by Ch40zz-C0d3r View Post
Haha!
They tried to make it harder for you, they changed the size of the message
I cant tell you more, you have to understand the code and what its doing yourself.
lol what do you mean combat arms changed the size

or the dude he copyed from changed it xd
Quote Originally Posted by DisOwned View Post
lol what do you mean combat arms changed the size

or the dude he copyed from changed it xd
The size of the shoot packet ...
Quote Originally Posted by Ch40zz-C0d3r View Post
The size of the shoot packet ...
i watched your video of unl ammo your menu is down right sexy Man XD
Quote Originally Posted by Ch40zz-C0d3r View Post
The size of the shoot packet ...
lel it didn't change, packet size is same, at least for NA.

Lol i think i shall ruin the fun

Sig broke a couple patches ago, so I don't have the current address for hooking or return address, although the length is 22 (0x16)
Code:
__declspec(naked) void SendToServerMidFunction()
{
	static ILTMessage_Read *pMsg;

	__asm
	{
		MOV ECX,DWORD PTR DS:[0x379468B4] //LTClient (Cshell)
		MOV EDX,DWORD PTR DS:[ECX]
		MOV pMsg, EAX
		PUSH 1
		PUSH EAX
		MOV EAX,DWORD PTR DS:[EDX+150]
		MOV BYTE PTR SS:[ESP+18],1 <----- Message Guaranteed/Integer returned

		PUSHAD
	}	 

	SendToServerConfiguration(pMsg); //Message_Guaranteed is already moved to stack as shown up above

	__asm
	{
		POPAD
		JMP dwReturnSendToServer
	}
}
Thanks to Ch40zz-C0d3r for his epic help and Timboy for helping me update it.
Posts 115 of 17 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?