Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Combat Arms Coding Help & Discussion › Hooking s2s

Hooking s2s

Posts 1–11 of 11 · Page 1 of 1
NotRealPro
NotRealPro
Hooking s2s
So ive tried to do this in my hack(thanks CC) and although it says im detouring and removing detours fine, it never runs s2s code. Any ideas why? I can post source if you would like me to.
#1 · 14y ago
ac1d_buRn
ac1d_buRn
never runs any s2s code meaning what?

You can see it being logged but it doesnt get sent?

or

Nothing logs?

If you can see it logging, but doesnt get sent, you need to call the real s2s function after reading the ID's.
If you dont see logs, well its not hooked correctly.
#2 · 14y ago
NotRealPro
NotRealPro
Quote Originally Posted by ac1d_buRn View Post
never runs any s2s code meaning what?

You can see it being logged but it doesnt get sent?

or

Nothing logs?

If you can see it logging, but doesnt get sent, you need to call the real s2s function after reading the ID's.
If you dont see logs, well its not hooked correctly.
This is what im doing
Code:
void hook()
{
  add_log("Detouring"); //happens
  os2s= (ps2s)Detour(s2s_addy,s2s_thread);
  add_log("Detoured"); //happens
}
HRESULT and some other things i forget off the top of my head(params,and more params)
{
   add_log("s2s hooked"); //never happens
   return something;
}
#3 · 14y ago
NotRealPro
NotRealPro
Has anyone been able to hook s2s that is NA?
#4 · 14y ago
RagedYet
RagedYet
yup shit is so easy that it gets boring.
#5 · 14y ago
Saltine
Saltine
Quote Originally Posted by RagedYet View Post
yup shit is so easy that it gets boring.
Wow, that was a useless response... (yes, it is easy, but that is beside the point...)
@OP, yes, please post some code so we can better debug this.
#6 · 14y ago
NotRealPro
NotRealPro
Quote Originally Posted by Saltine View Post

Wow, that was a useless response... (yes, it is easy, but that is beside the point...)
@OP, yes, please post some code so we can better debug this.
Code:
	add_log("Start_s2s_hook");//happens
	while(true)
	{
		if(Ingame() && s2s_hooked == false )
		{
			add_log("51");//happens
			mfnSendToServer = (tfnSendToServer)DetourFunction((PBYTE)ADDR_S2SE, (PBYTE)&hooked_SendToServer);
			s2s_hooked = true;
			add_log("52");//happens
		}
		if(!Ingame() && s2s_hooked == true)
		{
			add_log("61"); //happens
			DetourRemove((PBYTE)ADDR_S2SE, (PBYTE)&hooked_SendToServer); 
			s2s_hooked = false;
			add_log("62");//happens
		}
		add_log("7");//happens

		Sleep(100);
	}
Code:
unsigned int __stdcall hooked_SendToServer(ILTMessage_Read *pMsg, unsigned __int32 flags)
{
	__asm pushad;
	int iRetn;
	add_log("a"); //Doesnt Happen
	int id = pMsg->Readuint8();
	add_log("e"); //Doesnt Happen
	__asm popad;
	return iRetn;
}
#7 · edited 14y ago · 14y ago
Ch40zz-C0d3r
Ch40zz-C0d3r
you forgot to return original function.
Proper way:

Code:
iRetn = mfnSendToServer(pMsg, flags);
BTW: Try another detours, length is 7 bytes.
#8 · edited 14y ago · 14y ago
NotRealPro
NotRealPro
Quote Originally Posted by Ch40zz-C0d3r View Post
you forgot to return original function.
Proper way:

Code:
iRetn = mfnSendToServer(pMsg, flags);
BTW: Try another detours, length is 7 bytes.
I have it doing something like that, and let me try the 7

-After trying the length 7-

freezes at login screen ?
#9 · 14y ago
Ch40zz-C0d3r
Ch40zz-C0d3r
You need another detours, MC detours handle this different.
Try a pub detours with length 7, and get the right updated address.
This should work.
#10 · 14y ago
NotRealPro
NotRealPro
Quote Originally Posted by Ch40zz-C0d3r View Post
You need another detours, MC detours handle this different.
Try a pub detours with length 7, and get the right updated address.
This should work.
I tried this, and it still doesnt work, im going to double check my addy really fast. I will look it up on my on so I know its not wrong.
#11 · 14y ago
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

  • New Hacks Announced & Warrock DX Hook UpdateBy Dave84311 in Hack/Release News
    17Last post 19y ago
  • WR D3D Hook - =o - 03/22/07By Dave84311 in Hack/Release News
    14Last post 18y ago
  • How can i hook the punkbuster?By TheRedEye in WarRock - International Hacks
    5Last post 19y ago
  • D3D hooking tutorial 5 i thinkBy llvengancell in WarRock - International Hacks
    7Last post 19y ago
  • tut How to hook tut 6By llvengancell in WarRock - International Hacks
    1Last post 19y ago

Tags for this Thread

None