Thread: -_- S2s Hooks

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    lilWezy22's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0

    -_- 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 );	
    }
    Last edited by lilWezy22; 10-19-2013 at 01:48 AM.

  2. #2
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    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.
    Last edited by Ch40zz-C0d3r; 10-18-2013 at 06:05 PM.

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  3. #3
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    15,691
    Reputation
    3319
    Thanks
    11,105
    My Mood
    Happy
    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


    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  4. #4
    lilWezy22's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    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 );	
    }

  5. #5
    Timboy67678's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    82
    Reputation
    25
    Thanks
    80
    My Mood
    Aggressive
    when do you set oSendToServer as the address of sendtoserver? and is your address correct?

  6. #6
    DisOwned's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    233
    Reputation
    109
    Thanks
    681
    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

  7. #7
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    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
    Last edited by Ch40zz-C0d3r; 10-20-2013 at 06:36 PM.

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  8. #8
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    15,691
    Reputation
    3319
    Thanks
    11,105
    My Mood
    Happy
    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


    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  9. The Following User Says Thank You to Flengo For This Useful Post:

    Ch40zz-C0d3r (10-21-2013)

  10. #9
    DisOwned's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    233
    Reputation
    109
    Thanks
    681
    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
    Last edited by DisOwned; 10-21-2013 at 05:00 AM.

  11. #10
    lilWezy22's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0
    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
    Last edited by lilWezy22; 10-21-2013 at 05:05 AM.

  12. #11
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    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.

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  13. #12
    DisOwned's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    233
    Reputation
    109
    Thanks
    681
    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

  14. #13
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    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 ...

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  15. #14
    DisOwned's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    233
    Reputation
    109
    Thanks
    681
    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

  16. #15
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    524
    Reputation
    151
    Thanks
    1,887
    My Mood
    Amused
    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.
    Last edited by arun823; 10-23-2013 at 09:16 PM.
    Reversing is the only way to move forward.

  17. The Following 3 Users Say Thank You to arun823 For This Useful Post:

    Ch40zz-C0d3r (10-24-2013),Skaterforeva1 (10-24-2013),Timboy67678 (08-27-2014)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Solved] S2S Hook Unlimtedammo/char and rank
    By juggalo200 in forum Combat Arms Coding Help & Discussion
    Replies: 3
    Last Post: 06-29-2013, 08:01 AM
  2. Alguem tem o hook s2s?
    By thedark22 in forum Combat Arms BR Coding Help
    Replies: 5
    Last Post: 03-14-2013, 04:26 PM
  3. [Help Request] Alguem tem o s2s hook ?
    By MyNameFl in forum Combat Arms BR Coding Help
    Replies: 0
    Last Post: 02-13-2013, 09:30 AM
  4. [Solved] Bypass for s2s hook
    By JohnFame in forum Combat Arms Coding Help & Discussion
    Replies: 4
    Last Post: 12-31-2012, 05:53 PM
  5. Hooking s2s
    By NotRealPro in forum Combat Arms Coding Help & Discussion
    Replies: 10
    Last Post: 07-17-2012, 06:03 PM