Results 1 to 6 of 6
  1. #1
    J's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    East Coast
    Posts
    2,164
    Reputation
    452
    Thanks
    5,900
    My Mood
    In Love

    [TUTORIAL] Using FindPattern() To Get Addresses

    So for all of you who don't know how to use FindPattern() to auto get addresses, this is how:
    ---------------------------------------------------------------------------------------------------------
    1. Add this above the function you create in step 2:
    Code:
    bool Compare(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 Pattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
    {
    	for(DWORD i=0; i<dwLen; i++)
    		if (Compare((BYTE*)(dwAddress+i),bMask,szMask))  return (DWORD)(dwAddress+i);
    	return 0;
    }
    ---------------------------------------------------------------------------------------------------------
    2. Make a function that calls your FindPatterns, and a global bool, and a global DWORD:
    Code:
    bool Finished = false;
    DWORD Status;
    
    
    void GetAddresses (void)
    {
    	Status = Pattern((DWORD)GetModuleHandleA("CShell.dll"), 0x97D000, (PBYTE)"\x71\x37\x50\x94\x71\x37", "xxxxxx");
    	if(Status)
    	{
    		Status -= 0xA;
    	}
    }
    ---------------------------------------------------------------------------------------------------------
    3. In your main hack thread, add this before anything:
    Code:
    if(Finished == false)
    {
    	GetAddresses();
    	Finished = true;
    	Sleep(300);
    }
    ---------------------------------------------------------------------------------------------------------
    4. Now you may use your DWORD Status as an address:
    Code:
    if(Status == 1)
    {
    	/*
    	Do whatever you want to do. When (Status == 1), It means you are ingame. You can use this method for ANY FindPatterns to get addresses.
    	*/
    }
    Credits to Crash and mmbob.

    Also i WILL NOT be giving more FindPatterns for different addresses. I used this as an example, you will have to make your own patterns.
    Last edited by J; 09-06-2010 at 08:53 AM.

  2. The Following 9 Users Say Thank You to J For This Useful Post:

    CodeDemon (09-06-2010),Crash (09-06-2010),flashlight95 (09-06-2010),Hahaz (09-06-2010),HaX4LiFe! (09-06-2010),markoj (09-06-2010),mmbob (09-06-2010),o-o (09-06-2010),pDevice (09-02-2012)

  3. #2
    CodeDemon's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    vagina
    Posts
    1,070
    Reputation
    50
    Thanks
    940
    My Mood
    Fine
    Nice tutorial Blood

    Edit: should give credits to d0m1n1c for the findpattern functions xD

  4. #3
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    Thanked Good job dude and approve my program
    [IMG]https://i423.photobucke*****m/albums/pp312/LizMLsinatra/hh-1.png[/IMG]
    Happy Hanukkah For All Of MPGH !


    The Real Life Are Better Then A Game !


    Song :[YOUTUBE]vgKBOkvO5N0&feature=player_embedded[/YOUTUBE]
    Best Friends :

    Hax4Life!

    Solify

    [MPGH]Drake`

    Respect Them Or I'll Kill You ...



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

    J (09-06-2010)

  6. #4
    ngh555's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    126
    Reputation
    14
    Thanks
    58
    My Mood
    Devilish
    Don't approve his program, good job mate
    Originally Posted by flavjo
    Sorry for my chooby question but where do i find the C++ Express in my PC???
    Originally Posted by Deco
    i'll just punch him in the face nd steal his shoes *nigga style*

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

    J (09-06-2010)

  8. #5
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Also credits to mmbob.

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

    J (09-06-2010)

  10. #6
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    The perfect tutorial, good job
    Thank + rep
    Dont ban me

  11. The Following User Says Thank You to markoj For This Useful Post:

    J (09-06-2010)

Similar Threads

  1. [Tutorial] Where you can get BlackShot, F.A.Q
    By ClapBangKiss in forum Blackshot Hacks & Cheats
    Replies: 4
    Last Post: 04-25-2009, 03:08 AM
  2. (Long-Tutorial)How to really get TeamSpeak to work
    By enriqueb3847 in forum Combat Arms Hacks & Cheats
    Replies: 63
    Last Post: 04-05-2009, 07:59 PM
  3. [Tutorial] How to find ESP address.
    By wr194t in forum WarRock - International Hacks
    Replies: 5
    Last Post: 12-20-2007, 03:42 PM
  4. Getting address
    By neavea288 in forum MapleStory Hacks, Cheats & Trainers
    Replies: 3
    Last Post: 06-26-2007, 11:49 AM
  5. (Request) A tutorial on how to extract addresses from trainers
    By englishpom in forum WarRock - International Hacks
    Replies: 9
    Last Post: 05-19-2007, 10:14 PM