Thread: Make a logger

Results 1 to 11 of 11
  1. #1
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    281

    Make a logger

    First you need to find the pointer to the weapon array:
    Code:
    0xA65EE8
    Then you need to make a loop through the whole array:
    Code:
    for(int i = 0; i < 600; i++) { //You can see later how many weapons there are. Then you can lower the loop.
    
    }
    You need the weapon name. So you need to find the weapon name offset:
    Code:
    Weaponpointer + 0x0008;
    Look at the content of the string:
    Code:
    char * weaponname = (char*)(Weapon + 0x0008);
    Get the id of the weapon:
    Code:
    Hex of the id
    Log it to a file:
    Code:
    file << "Item number: " << i << " ID: " << hex << i << " Name: " << (LPCTSTR)weaponname << ".\n";
    It looks like this:
    Code:
    DWORD cshell = (DWORD)GetModuleHandleA( "CShell.dll" );
    DWORD weapon = *(DWORD*)( cshell + 0xA65EE8);
    std::ofstream file;
    file.open("Logger.txt");
    for(int i = 0; i < 600; i++) { //You can see later how many weapons there are. Then you can lower the loop.
    	  DWORD wapens = *(DWORD*)(weapon +(4*i));
    	  char * weaponname = (char*)(wapens + 0x0008);
              file << "Item number: " << i << " ID: " << hex << i << " Name: " << (LPCTSTR)weaponname << ".\n";
    }
    file.close();
    Btw you need Fstream:
    Code:
    #include <fstream>
    This is just the way how to. Its very easy .
    Did't test it.. So it is posable that I made some mistakes
    Last edited by Brimir; 11-01-2011 at 10:35 AM.
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

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

    crossr (12-03-2011),DaRk (11-04-2011),Fly3r (11-01-2011),HLBOT (11-02-2011),Royku (11-01-2011),Vincent Dominguez (02-25-2013),[[SeXergy]] (11-01-2011)

  3. #2
    HLBOT's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    HCM City
    Posts
    533
    Reputation
    36
    Thanks
    1,356
    My Mood
    Amazed

    @Brimir
    Error: hex
    Undefine it !
    How to ?
    It's finally Over!

  4. #3
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    281
    Quote Originally Posted by ***** View Post

    @Brimir
    Error: hex
    Undefine it !
    How to ?
    I think it is a part of iostream, in namespace std.

    So use:
    Code:
    #include <iostream>
    using namespace std;
    or use in your code:
    Code:
    std::hex
    with:
    Code:
    #include <iostream>
    Or just only use hex of std
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

  5. The Following User Says Thank You to Brimir For This Useful Post:

    HLBOT (11-02-2011)

  6. #4
    HLBOT's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    HCM City
    Posts
    533
    Reputation
    36
    Thanks
    1,356
    My Mood
    Amazed
    @Brimir

    Solved and Thank you for newest with me.
    It's finally Over!

  7. #5
    derh.acker's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    localhost
    Posts
    826
    Reputation
    14
    Thanks
    616
    My Mood
    Angelic
    I use fstream for mine too, but it searches for the weapon pointer itself.

  8. #6
    CrossRaiders's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    1,586
    Reputation
    29
    Thanks
    1,217
    @Brimir

    You should become a VIP coder for Crossfire! You help a lot on this section.

  9. #7
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    281
    Thanks , the only problem is that I don't have mutch time. And I don't know enought to make advanced hacks. Mem hacks ar very easy. But there is a lot more.
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

  10. #8
    HLBOT's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    HCM City
    Posts
    533
    Reputation
    36
    Thanks
    1,356
    My Mood
    Amazed
    @Brimir
    May I can teach you that...Anything if I can do..
    It's finally Over!

  11. #9
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    281
    Quote Originally Posted by ***** View Post
    @Brimir
    May I can teach you that...Anything if I can do..
    Thanks, I send you a pm
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

  12. #10
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,381
    My Mood
    Dead
    Quote Originally Posted by derh.acker View Post
    I use fstream for mine too, but it searches for the weapon pointer itself.
    i have recently made an offset loggerand it can log pointers too so i can say it: i made it too.


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  13. #11
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    281
    Gj I also made a address logger. So easy
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

Similar Threads

  1. [Release] Help me making a Addy Logger for more hacks.
    By steven1578 in forum Combat Arms EU Hack Coding/Source Code
    Replies: 6
    Last Post: 11-02-2011, 02:37 PM
  2. [Tutorial] How to make a Addy Logger
    By FlaVour in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 41
    Last Post: 04-29-2011, 04:29 AM
  3. {tut} How to make simple key logger
    By sigmahero in forum Visual Basic Programming
    Replies: 4
    Last Post: 12-09-2009, 12:08 AM
  4. Plz I Want Maple Global Hacks And Where Do I Get Game Engine 2 Make The Hacks Work???
    By mattinthehat in forum MapleStory Hacks, Cheats & Trainers
    Replies: 3
    Last Post: 01-15-2006, 06:12 PM
  5. Plz Man Make Me A Sign Plz
    By Hennu50 in forum Help & Requests
    Replies: 2
    Last Post: 01-08-2006, 04:55 PM