Page 1 of 3 123 LastLast
Results 1 to 15 of 42
  1. #1
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical

    How to make a Addy Logger

    Hey MPGH,
    Today I'm showing you guys how to create your own addie logger!
    CREDITZ: Dean-Wingess and NeoI.I.I - I only fixed some function errors
    First of all create a normal project in C++.
    Make it Win32 Dll without precompiled headers.

    First of all we create the Functions!

    We need to create a Header called: Log.h

    Create it and paste:

    Code:
    char *GetDirectoryFile(char *filename);
    void __cdecl Writelog (const char * fmt, ...);
    void logging(HMODULE hDll);
    #pragma message("master.h : Building Addylogger. Credits:Dean-Wingess, Neo I.I.I")
    Save it

    Then we need the Find pattern function!
    create a header called: Pattern.h
    And Paste:

    Code:
    DWORD dwSize;
    DWORD dwStartAddress;
    
    BOOL bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
    {
    for(;*szMask;++szMask,++pData,++bMask)
    {
    if(*szMask == 'x' && *pData != *bMask)
    return 0;
    }
    return (*szMask)==NULL;
    }
    
    
    DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
    {
    for(DWORD i=0; i < dwLen; i++)
    if( bCompare( (BYTE*)( dwAddress+i ),bMask,szMask) )
    return (DWORD)(dwAddress+i);
    return 0;
    }
    After that we finished on creating the functions.

    Create the Cpp Files:
    Log.cpp

    Paste:

    Code:
    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <fstream>
    #include <stdio.h>
    
    
    using namespace std;
    
    ofstream ofile;
    char dlldirectory[320];
    
    char *GetDirectoryFile(char *filename)
    {
    static char path[320];
    strcpy(path, dlldirectory);
    strcat(path, filename);
    return path;
    }
    
    void __cdecl Writelog(const char *fmt, ...)
    {
    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;
    }}
    
    void logging(HMODULE hDll){
    DisableThreadLibraryCalls(hDll);
    GetModuleFileName(hDll, dlldirectory, 512);
    for(int i = strlen(dlldirectory); i > 0; i--) { if(dlldirectory[i] == '\\') { dlldirectory[i+1] = 0; break; } }
    ofile.open(GetDirectoryFile("Adresses.txt"), ios::app); // here put the output filename
    }
    Main.cpp
    paste:

    Code:
    #include <windows.h>
    #include <stdio.h>
    #include "Log.h"
    #include "Pattern.h"
    
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "ClientFX.fxd" ) != NULL 
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    
    return false;
    }
    
    void SearchPatterns(void)
    {
    while (!IsGameReadyForHook()){
    Sleep(50);
    }
    while(true){
    dwSize = 0x500000; 
    
    //Example DWORD dwPlayerPointer = FindPattern((PBYTE)"\x00\x00\x00\x00\x00\x00\x00};", "x????xxxx", 1, true);
    
    DWORD nametags1 = FindPattern((DWORD)GetModuleHandleA("CShell.dll"), 0x9c0000, (PBYTE)"\x75\x21\x80\x7B\x00\x00", "xxxx??");
    DWORD nametags2 = FindPattern((DWORD)GetModuleHandleA("CShell.dll"), 0x9c0000, (PBYTE)"\x75\x05\xBD\x00\x00\x00\x00\x8B\x17", "xxx????xx");
    //-------------------------------------------------------------//
    Writelog("//==============Dean-Wingess N3x0n Logger==============\\");
    Writelog("//==============Created and developed by:==============\\");
    Writelog("//======================Dean-Wingess===================\\");
    Writelog("//====================== Neo I.I.I ===================\\");
    Writelog("//====================== FlaVour ===================\\");
    Writelog("");
    Writelog("#define NoReload 0x%X",NoReload);
    Writelog("#define FallDamage 0x%X",FallDamage);
    
    
    Writelog("");
    Writelog("//*************************Next log*********************************");
    
    
    
    ExitProcess(0);
    }
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if (dwReason==DLL_PROCESS_ATTACH)
    {
    logging(hDll);
    ShellExecuteA(0,"open","https://mpgh.net",0,0,SW_MINIMIZE);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)SearchPatterns, NULL, NULL, NULL);
    }
    return TRUE;
    }
    WARNING:THE PATTERN ARE OLD - IAM TO LAZY TO GET THE NEWEST

    Please dont ask questions like "what i have to do with it."
    its for people,who understand c++!
    Last edited by FlaVour; 04-26-2011 at 04:09 AM.
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  2. The Following 6 Users Say Thank You to FlaVour For This Useful Post:

    Яonaldø (04-28-2011),e-skillz (12-01-2014),goold1 (08-06-2013),infidel_ (04-26-2011),ludikrimos (04-26-2011),TeRMiN4T0R™ (04-26-2011)

  3. #2
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,010
    My Mood
    Amused
    This is a nice tutorial to find addys Good job
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  4. #3
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical
    Quote Originally Posted by sapass209 View Post
    This is a nice tutorial to find addys Good job
    thanks
    maybe i will release a public addy logger for crossfire but i am not sure...
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  5. #4
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,010
    My Mood
    Amused
    Dont release! Many will use it and maybe it get patched
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  6. #5
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical
    ok...but i will sned it you,so you dont have to use ollydb,only if you want...but i dont now when i will do it..
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  7. #6
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,010
    My Mood
    Amused
    Quote Originally Posted by FlaVour View Post
    ok...but i will sned it you,so you dont have to use ollydb,only if you want...but i dont now when i will do it..
    lol k would be nice
    Im always to lazy to open olly
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  8. #7
    Fly3r's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Not telling.
    Posts
    720
    Reputation
    18
    Thanks
    265
    My Mood
    Paranoid
    Flavour .. Can i have the logger too ?
    Also nice Tut
    ~Thanks
    Joined MPGH: 07/08/09


    i used to tell arrow to the knee jokes then i died due to blood loss from takeing tomany arrows to the knee at once
    A network problem caused by you? What did you do? Trip over the cable?




  9. #8
    -Epic's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    Ask My mom !
    Posts
    334
    Reputation
    10
    Thanks
    26
    My Mood
    Cheerful
    nice tut good work /gewed

  10. #9
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical
    Quote Originally Posted by Fly3r View Post
    Flavour .. Can i have the logger too ?
    Also nice Tut
    ~Thanks
    Maybe...first i have to do it...but why do you dont try to make one self ? ;D
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  11. #10
    ludikrimos's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    deep under ground
    Posts
    324
    Reputation
    88
    Thanks
    1,389
    My Mood
    Aggressive
    nice, but why u all use olly, olly is a toy im using ida pro so freakin nice tool, try it



  12. #11
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical
    i dont have any knowleg with ida pro...make atut for it ;D ?
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  13. #12
    ludikrimos's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    deep under ground
    Posts
    324
    Reputation
    88
    Thanks
    1,389
    My Mood
    Aggressive
    hehe maybe i will i luv that old grandma on ida ico :P olly is for joke xD



  14. #13
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical
    Quote Originally Posted by ludikrimos View Post
    hehe maybe i will i luv that old grandma on ida ico :P olly is for joke xD
    And now in english?
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  15. #14
    ludikrimos's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    deep under ground
    Posts
    324
    Reputation
    88
    Thanks
    1,389
    My Mood
    Aggressive
    xD if i do tutorial it will be on english, anyway my english sux badly , ok i have 1 thing, i decompiled whole cshell in c++, its 2 big and i cant find addy for recoil, if someone need that dissasembled crap to open in c++ i will share it, and if someone find that for me i will be happy its much easier to look than in Olly.
    Last edited by ludikrimos; 04-26-2011 at 07:18 AM.



  16. #15
    Ghost's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Under your bed, watching you sleep.
    Posts
    24,790
    Reputation
    3851
    Thanks
    3,662
    Nice tut bro
    Do not go gentle into that good night,
    Old age should burn and rave at close of day;
    Rage, rage against the dying of the light.

Page 1 of 3 123 LastLast