Page 1 of 2 12 LastLast
Results 1 to 15 of 30

Hybrid View

  1. #1
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh

    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)

    commando: You're probably the best non-coder coder I know LOL


  2. The Following 7 Users Say Thank You to supercarz1991 For This Useful Post:

    Ch40zz-C0d3r (07-08-2012),demtrios (06-01-2012),[MPGH]Flengo (10-21-2012),Hacker Fail (03-08-2013),Otaviomorais (09-09-2012),pDevice (05-20-2012),wraithkilla (05-24-2012)

  3. #2
    steven1578's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    CShell.dll
    Posts
    699
    Reputation
    1
    Thanks
    944
    My Mood
    Busy
    these detours still works?
    R.I.P Grandma! 3-17-2012

  4. #3
    pDevice's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    d3d9.h
    Posts
    1,306
    Reputation
    15
    Thanks
    420
    My Mood
    Stressed
    Good Job Bro!



  5. #4
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,591
    Reputation
    5180
    Thanks
    14,179
    My Mood
    Inspired
    It would be handier if it were put into a menu

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

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  6. #5
    poplm2's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    23
    Reputation
    -1
    Thanks
    6
    My Mood
    Yeehaw
    Thanks for posting @supercarz1991 @poplm2 = @iDomo = @[uS]Guietz ect :3

  7. The Following User Says Thank You to poplm2 For This Useful Post:

    Saltine (05-21-2012)

  8. #6
    demtrios's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    MPGH.Net
    Posts
    870
    Reputation
    10
    Thanks
    1,056
    My Mood
    Amused
    Good Job Bro!


    Cock CS since 26•03•2013

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

    anonymus.coder (05-21-2012)

  10. #7
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed
    Looks like some of it might of got help from Mat's vip base, I might be wrong though.
    Last edited by CoderNever; 05-21-2012 at 05:30 PM.

  11. #8
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    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

    commando: You're probably the best non-coder coder I know LOL


  12. #9
    AnthonyT145's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    MPGH
    Posts
    66
    Reputation
    39
    Thanks
    4
    My Mood
    Happy
    Does anyone know a good base for a beginner to learn how to make combat arms hacks?

  13. #10
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    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

    commando: You're probably the best non-coder coder I know LOL


  14. The Following User Says Thank You to supercarz1991 For This Useful Post:

    AnthonyT145 (05-21-2012)

  15. #11
    AnthonyT145's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    MPGH
    Posts
    66
    Reputation
    39
    Thanks
    4
    My Mood
    Happy
    Can you help me with the hotkey because im a newbie to c++?

  16. #12
    wraithkilla's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    257
    Reputation
    10
    Thanks
    905
    My Mood
    Busy


    thanks

    i like it how you often release usefull stuff

  17. #13
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    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

    commando: You're probably the best non-coder coder I know LOL


  18. #14
    wraithkilla's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    257
    Reputation
    10
    Thanks
    905
    My Mood
    Busy
    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

  19. #15
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    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

    commando: You're probably the best non-coder coder I know LOL


  20. The Following User Says Thank You to supercarz1991 For This Useful Post:

    wraithkilla (05-23-2012)

Page 1 of 2 12 LastLast

Similar Threads

  1. Can any one send me a quick scope server mod?
    By hornet1dk in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 11-14-2010, 07:09 PM
  2. can some one send me the mw2 server tool?
    By danni24 in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 06-05-2010, 12:40 AM
  3. need ghost recon server hack
    By Mike273 in forum General Game Hacking
    Replies: 8
    Last Post: 03-16-2009, 02:02 PM
  4. CS 1,6 Server
    By gunot in forum General
    Replies: 9
    Last Post: 11-11-2007, 01:33 PM
  5. CS Source Clan/Server
    By Dave84311 in forum General
    Replies: 20
    Last Post: 10-04-2006, 12:21 PM