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 › S2S Logger (Send to Server)

S2S Logger (Send to Server)

Posts 1–15 of 30 · Page 1 of 2
supercarz1991
supercarz1991
S2S Logger (Send to Server)
this is a Send to Server ID logger. this works for Crossfire, CANA, CA EU, CA BR, and Sudden Attack. Just change the Send To Server Addie defined at the top (right now its set for SANA). CA doesn't work on Windows 8 64 bit so i have no use for this

this is noob proofed because we don't need every noob and their dead grand mother logging addies and releasing them multiple times

Code:
#define STS 0x4247818 //SANA

#include <Windows.h>
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>

#pragma warning( disable: 4996 )

using namespace std;
ofstream outfile;

#define dir_log "C:\\STS_LOG.txt" // where ID's get saved.

void logz(const char *fmt, ...) //standard stuffs
{
	outfile.open(dir_log, ios::app);
	va_list va_alist;
	char buffer[512] = {0};
	va_start( va_alist, fmt );
	vsnprintf(buffer+strlen(buffer), sizeof(buffer) - strlen(buffer), fmt, va_alist );
	va_end( va_alist );
	outfile << buffer;
	outfile.close();

	return;
}

void *DetourFunction (BYTE *src, const BYTE *dst, const int len)
{
    BYTE *jmp;
    DWORD dwback;
    DWORD jumpto, newjump;

    VirtualProtect(src,len,PAGE_READWRITE,&dwback);
    
    if(src[0] == 0xE9)
    {
        jmp = (BYTE*)malloc(10);
        jumpto = (*(DWORD*)(src+1))+((DWORD)src)+5;
        newjump = (jumpto-(DWORD)(jmp+5));
        jmp[0] = 0xE9;
       *(DWORD*)(jmp+1) = newjump;
        jmp += 5;
        jmp[0] = 0xE9;
       *(DWORD*)(jmp+1) = (DWORD)(src-jmp);
    }
    else
    {
        jmp = (BYTE*)malloc(5+len);
        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);
}

typedef unsigned int ( *tfnSendToServer)(void *pMsg, unsigned __int32 flags);

tfnSendToServer mfnSendToServer;

DWORD dwCache;

unsigned int hooked_SendToServer(void *pMsg, unsigned __int32 flags){
	__asm pushad;

	log("SendToServer( 0x%02x, 0x%02x );\n{\n", pMsg, flags);
	VirtualProtect(pMsg, 400, 40, &dwCache);
	for(unsigned long ul=0;ul<400;ul++){
		if(!(ul%4)) log("\n");
		log("0x%02x, ", PBYTE(DWORD(pMsg))[ul]);
	}
	VirtualProtect(pMsg, 400, dwCache, 0);

	__asm popad;
	return pfnSendToServer(pMsg, flags);
}

void hookthread(void){

	//while(!GetModuleHandleA("cshell.dll")) Sleep(100);

	pfnSendToServer = tfnSendToServer(DetourFunction( PBYTE(((DWORD *)STS)[0x57]), PBYTE(hooked_SendToServer), 5));

	log("Hooked STS Function; 0x%02x -> 0x%02x\n", STS, hooked_SendToServer);
}

bool __stdcall DllMain( HMODULE hthis, DWORD dwReason, DWORD lpUNK ){

	DisableThreadLibraryCalls(hthis);

	if(dwReason==0x01){
		//CreateThread(0, 0, (LPTHREAD_START_ROUTINE)hookthread, 0, 0, 0);
		hookthread();
	}
	return true;
}
credits to Bradley Galloway (idk his username)
#1 · 14y ago
steven1578
steven1578
these detours still works?
#2 · 14y ago
pDevice
pDevice
Good Job Bro!
#3 · 14y ago
Flengo
[MPGH]Flengo
It would be handier if it were put into a menu

But still useful.
#4 · 14y ago
PO
poplm2
Thanks for posting @supercarz1991 @poplm2 = @iDomo = @[uS]Guietz ect :3
#5 · 14y ago
demtrios
demtrios
Good Job Bro!
#6 · 14y ago
CoderNever
CoderNever
Looks like some of it might of got help from Mat's vip base, I might be wrong though.
#7 · edited 14y ago · 14y ago
supercarz1991
supercarz1991
Quote Originally Posted by CoderNever:6059495
Looks like some of it might of got help from Mat's vip base, I might be wrong though.
I got this about 2 weeks before that was released
#8 · 14y ago
AnthonyT145
AnthonyT145
Does anyone know a good base for a beginner to learn how to make combat arms hacks?
#9 · 14y ago
supercarz1991
supercarz1991
Quote Originally Posted by AnthonyT145 View Post
Does anyone know a good base for a beginner to learn how to make combat arms hacks?
there's not really any detours pub that work, but you could make this into a hotkey easily
#10 · 14y ago
AnthonyT145
AnthonyT145
Can you help me with the hotkey because im a newbie to c++?
#11 · 14y ago
wraithkilla
wraithkilla


thanks

i like it how you often release usefull stuff
#12 · 14y ago
supercarz1991
supercarz1991
Quote Originally Posted by wraithkilla View Post


thanks

i like it how you often release usefull stuff
lol thanks. it's mostly just stuff i have lying around. i might release a full d3d menu pack with 24 different menu styles some time this week after i get all the screen shots
#13 · 14y ago
wraithkilla
wraithkilla
Quote Originally Posted by supercarz1991 View Post
lol thanks. it's mostly just stuff i have lying around. i might release a full d3d menu pack with 24 different menu styles some time this week after i get all the screen shots
mhh , ja , dont release too much , or make it good noob proofed , its pretty sad if there are 500 C&P noobs with their "own" hack , or just leave stuff out , like detours /hook
#14 · 14y ago
supercarz1991
supercarz1991
Quote Originally Posted by wraithkilla View Post
mhh , ja , dont release too much , or make it good noob proofed , its pretty sad if there are 500 C&P noobs with their "own" hack , or just leave stuff out , like detours /hook
careful what u say XD i'm 1 of those noobs, but i can hold my own and make my own stuff (depending on how difficult i feel like trying to be) lol
#15 · 14y ago
Posts 1–15 of 30 · Page 1 of 2

Post a Reply

Similar Threads

  • can some one send me the mw2 server tool?By danni24 in Call of Duty Modern Warfare 2 Help
    2Last post 16y ago
  • Can any one send me a quick scope server mod?By hornet1dk in Call of Duty Modern Warfare 2 Help
    2Last post 15y ago
  • need ghost recon server hackBy Mike273 in General Game Hacking
    8Last post 17y ago
  • CS 1,6 ServerBy gunot in General
    9Last post 18y ago
  • CS Source Clan/ServerBy Dave84311 in General
    20Last post 20y ago

Tags for this Thread

None