Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,323
    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-02-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
    684
    Reputation
    1
    Thanks
    936
    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
    337
    My Mood
    Stressed
    Good Job Bro!



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

    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


  6. #5
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,323
    My Mood
    Doh
    Quote Originally Posted by comando2056 View Post
    It would be handier if it were put into a menu

    But still useful.
    i'll look into it. maybe i'll add it into a hack and release it :P that'd be kickass

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


  7. #6
    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

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

    Saltine (05-21-2012)

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

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

    anonymus.coder (05-21-2012)

  11. #8
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    http://mpgh.net MPGHCash: $700,458,011
    Posts
    1,196
    Reputation
    131
    Thanks
    2,233
    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 06:30 PM.
    I Apologize for my latest release "CN Hack 7-11-11" I assure you it is not up to "CN Standard", and I feel bad due to all its flaws. I'm working hard, and steadily to remake it for I can bring everyone a hack they will really like!


    Support NSY Inject

    CoderNever
    GameArena
    _Fk127_
    ViSiON
    -Lunar_
    Bubbles Kittys

    Code:
    ¢N Mike says
    Cyber Bulling is bad
    J Whit says
    Yea bob wants to fuck my pussy
    ¢N Mike says
    Whit
    dont be a cyber bully
    J Whit says
    FUCK YOU
    ¢N Mike says
    Words hurt
    ѱ NOOB says
    whit gets bullied in school so he goes online and bullies kids online
    J Whit says
    DUH
    Stress relieve
    relieving
    The kintergarden kids beat my ass
    ¢N Mike says
    Thats just sad

  12. #9
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,323
    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


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

  14. #11
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,323
    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


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

    AnthonyT145 (05-22-2012)

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

  17. #13
    wraithkilla's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    257
    Reputation
    10
    Thanks
    895
    My Mood
    Busy


    thanks

    i like it how you often release usefull stuff

  18. #14
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,323
    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


  19. #15
    wraithkilla's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    257
    Reputation
    10
    Thanks
    895
    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

Page 1 of 3 123 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, 08: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, 01:40 AM
  3. need ghost recon server hack
    By Mike273 in forum General Game Hacking
    Replies: 8
    Last Post: 03-16-2009, 03:02 PM
  4. CS 1,6 Server
    By gunot in forum General
    Replies: 9
    Last Post: 11-11-2007, 02:33 PM
  5. CS Source Clan/Server
    By Dave84311 in forum General
    Replies: 20
    Last Post: 10-04-2006, 01:21 PM