Thread: Address Logger

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed

    Arrow Address Logger

    i have an addy logger, with sigs, and when i inject it the game crashes.

    made my self using a tut and olly

    it makes the log file, but then even before the hackshield thing pops up, it crashes on me with no addies.

    my source has all the logger functions, threads, and defines

    idk what the hell is wrong with it but thanks for checking this out

    post results/answers and if u need the full source i'll post it (without sigs)

    thanks + rep will be given
    Last edited by wolffang0000; 02-22-2011 at 08:08 PM.

  2. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,170
    Reputation
    490
    Thanks
    2,252
    We cant help without code

  3. The Following User Says Thank You to whit For This Useful Post:

    D-Vid the DBag (02-22-2011)

  4. #3
    qwerty01's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    179
    Reputation
    9
    Thanks
    215
    My Mood
    Lurking
    Quote Originally Posted by whit View Post
    We cant help without code
    in addition to that, the error that caused the crash

  5. #4
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed
    k, heres the code...

    Addy Logger.cpp-
    Code:
    #include "stdafx.h"
    #include "Classes and Functions.h"
    
    
    
    void thethread()
    {
    //my sig's here
    
    
    }
    
    BOOL APIENTRY DllMain( HMODULE hMod, DWORD dwReason, PVOID pvReserved )
    {
    	CreateThread(0, 0, (LPTHREAD_START_ROUTINE)thethread, 0, 0, 0);
     GetModuleFileName(hMod, dlldir, 512);
     for(int i = strlen(dlldir); i > 0; i--) { if(dlldir[i] == '\\') { dlldir[i+1] = 0; break;}}
    
    ofile.open(GetDirectoryFile("WooWMyLog.txt"), ios::app);
    
    return true;
    
    }
    classes and functions.h-
    Code:
    #include <windows.h>
    #include <fstream>
    using namespace std;                                       //need for the logging func
    ofstream ofile;                                                  //need for the logging func
    char *GetDirectoryFile(char *filename);         //getdirfile for the logging func
    void thethread(); //the main function
    void __cdecl add_log (const char * fmt, ...); //the logging func
    char dlldir[320];
    
    
    char *GetDirectoryFile(char *filename)//get the directory of the dll
    {
        static char path[320];
        strcpy(path, dlldir);
        strcat(path, filename);
        return path;
    }
    
    
    void __cdecl add_log (const char *fmt, ...)//the add log func
    {
        if(ofile != NULL)
        {
            if(!fmt) { return; }
    
            va_list va_alist;
            char logbuf[256] = {0};
    
            va_start (va_alist, fmt);
            _vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), fmt, va_alist);
            va_end (va_alist);
    
            ofile << logbuf << endl;
        }
    }
    
    bool Match(const BYTE* pData, const BYTE* bMask, const char* szMask)
    {
        for(;*szMask;++szMask,++pData,++bMask)
            if(*szMask=='x' && *pData!=*bMask ) 
                return false;
        return (*szMask) == NULL;
    }
    
    
    DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
    {
        for(DWORD i=0; i < dwLen; i++)
            if( Match( (BYTE*)( dwAddress+i ),bMask,szMask) )
                return (DWORD)(dwAddress+i);
    
        return 0;
    }

    it has no hooking function might that be the problem?

    or detours?

  6. #5
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    You don't need any detours.

  7. #6
    LionelMessi10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,125
    Reputation
    114
    Thanks
    4,545
    My Mood
    Aggressive
    You fail C&P this Source.

  8. #7
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    You are probably trying to log the addresses before CShell has loaded.

  9. #8
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed
    rigghhttt okay sorry xb

    i'll try to log when it loads up

    and btw this is not really copy + past i got the functions from the tut and used my own code for the rest of it

  10. #9
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    http://mpgh.net MPGHCash: $442,596,199
    Posts
    5,649
    Reputation
    26
    Thanks
    894
    My Mood
    Happy
    Languages-
    C++ (Extremely experienced)
    Visual Basic (Extremely experienced)
    C# (some experience)

    interesting...

  11. #10
    wolffang0000's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    597
    Reputation
    1
    Thanks
    165
    My Mood
    Relaxed
    Quote Originally Posted by scimmyboy View Post
    Languages-
    C++ (Extremely experienced)
    Visual Basic (Extremely experienced)
    C# (some experience)

    interesting...
    an experienced person can't have an error once in a while??


    and i tried to log in when the game loads but no matter what i do the game will crash before hacksheild even pops up...

    it creates the log file, but nothing in it and then it crashes.

  12. #11
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,074
    Reputation
    50
    Thanks
    936
    My Mood
    Fine
    Quote Originally Posted by wolffang0000 View Post
    an experienced person can't have an error once in a while??


    and i tried to log in when the game loads but no matter what i do the game will crash before hacksheild even pops up...

    it creates the log file, but nothing in it and then it crashes.
    Check if the CShell module is loaded before trying to log your addresses.
    Last edited by CodeDemon; 02-23-2011 at 03:27 PM.

  13. #12
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Why aren't you checking for Cshell?

  14. #13
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Current CA VIP Hacks-
    OPK-100%
    Tele-Kill-100%
    Aimbot-99.9%(waiting on addies + bytes)
    Superbullets-100%
    Weapon Range-100%
    Updated Beastmode-100%
    Real Glitch Key-80%
    New Semi-God Mode-100%
    Regenerate Health-100%
    Real Ghost Mode-70%
    Remote Kill-100%
    Server Crasher-100%
    Shit List Feature-45%
    bullshit.

  15. #14
    Fabolous's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    192.168.1.01
    Posts
    2,706
    Reputation
    261
    Thanks
    682
    My Mood
    Paranoid
    Quote Originally Posted by ᴺᴼᴼᴮ View Post


    bullshit.
    Congratulations your so smart for noticing that. Your IQ Raised from 90 to 200.

    <3

  16. #15
    NOOBJr's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in NOOB
    Posts
    1,426
    Reputation
    112
    Thanks
    693
    When experienced coders get errors they don't "on the spot" create a help thread!

Page 1 of 2 12 LastLast