Results 1 to 12 of 12
  1. #1
    OneWhoSighs's Avatar
    Join Date
    Oct 2007
    Location
    Status: 1337
    Posts
    38
    Reputation
    11
    Thanks
    32

    CSignatureSearch - Auto Address Finder

    CSignatureSearch.cpp

    Code:
    /* * * * * * * * * * * * * * * * * * * * * * * */
    /***********************************************/
    /* * * * * * * * * * * * * * * * * * * * * * * */
    /*            CSignatureSearch Class           */
    /*                                             */
    /* Author : OneWhoSighs                        */
    /* Version : 1.0			       */
    /* * * * * * * * * * * * * * * * * * * * * * * */
    /* www.b0ts.org				       */
    /* * * * * * * * * * * * * * * * * * * * * * * */
    /***********************************************/
    /* * * * * * * * * * * * * * * * * * * * * * * */
    
    #define WIN32_LEAN_AND_MEAN
    
    #include "CSignatureSearch.h"
    
    CSignatureSearch::CSignatureSearch()
    {
    }
    
    CSignatureSearch::~CSignatureSearch()
    {
    }
    
    DWORD CSignatureSearch::SigSearch(DWORD dwStartAddress, DWORD dwEndAddress, BYTE* bSignature, int nSize, BYTE bWildCard)
    {
    	int Matcher;
    	DWORD CurrentAddress;
    	BYTE* Comparison;
    
    	for(DWORD var = dwStartAddress;
    		var < dwEndAddress;
    		var++
    	   )
    
    	   {		
    			CurrentAddress = (DWORD)var;
    			Comparison = (BYTE*)CurrentAddress;
    			Matcher = Match(Comparison,bSignature,nSize,bWildCard);
    
    			if(Matcher == -1)
    				return CurrentAddress;			
    	   }
    
    	return NULL;
    }
    
    int CSignatureSearch::Match(BYTE* bComparison, BYTE* bSignature, int nSize, BYTE bWildCard)
    {
    	int Var2 = 0;
    
    	if (bComparison == NULL)
    		if(bSignature == NULL)
    			return -1;
    
    	if (bComparison == NULL)
    		return 0;
    
    	if (bSignature == NULL)
    		return 0;
    
    	for ( Var2 = 0; Var2 < nSize; Var2++ )
    	{
    		if ( bComparison[Var2] != bSignature[Var2] )
    		{
    			if ( bSignature[Var2] != bWildCard )
    				return 0;
    		}
    	}
    
    	return -1;
    }

    CSignatureSearch.h

    Code:
    /* * * * * * * * * * * * * * * * * * * * * * * */
    /***********************************************/
    /* * * * * * * * * * * * * * * * * * * * * * * */
    /*            CSignatureSearch Class           */
    /*                                             */
    /* Author : OneWhoSighs                        */
    /* Version : 1.0			       */
    /* * * * * * * * * * * * * * * * * * * * * * * */
    /* www.b0ts.org				       */
    /* * * * * * * * * * * * * * * * * * * * * * * */
    /***********************************************/
    /* * * * * * * * * * * * * * * * * * * * * * * */
    
    #ifndef _WINDOWS_
    #include <windows.h>
    #endif
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <iostream>
    using namespace std;
    
    class CSignatureSearch{
    
    	private:
    		int Match(BYTE* bComparison, BYTE* bSignature, int nSize, BYTE bWildCard);
    
    	public:
    		CSignatureSearch();
    	        ~CSignatureSearch();
    
    		DWORD SigSearch(DWORD dwStartAddress, DWORD dwEndAddress, BYTE* bSignature, int nSize, BYTE bWildCard);
    
    };

    What this does is allow you to auto search for signatures (memory bytes in an application, to auto find the address)

    First you will need to debug the application in ollydbg, or cheat engine and find the bytes for certain address and create a signature.



    Example Code:

    Code:
    #define Log( name , addr ) fprintf(xLog, name "    :    %.8X\n", addr );
    
    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string>
    #include <iostream>
    #include <fstream>
    
    #include "CSignatureSearch.h"
    
    using namespace std;
    
    void Main(){
    	CSignatureSearch CSigSearch;
    
    	while(1)
    	{
    
    	if(GetAsyncKeyState(VK_F12))
    	{
    		BYTE ExampleSignature[] = {0xEB, 0x74, 0xEE, 0x72, 0xEE};
    		DWORD dwAddress = CSigSearch.SigSearch(0x01000000,0x02000000,ExampleSignature,sizeof(ExampleSignature),0xEE);
    		
    		FILE* xLog = fopen("Address Log.log", "w");
    	    if (xLog!=NULL){
    
    			fputs("Offset Log\n\n",xLog);
    
    			Log(Example Hack Address	:",dwAddress);
    
    			fclose(xLog);
    		}
    
    	}
    
    	Sleep(10);
    	}
    
    }
    
    // On DLL Entry
    bool APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved){
    	if(dwReason == DLL_PROCESS_ATTACH){
    		DisableThreadLibraryCalls(hModule);
    		CreateThread(NULL, 0, (unsigned long(__stdcall*)(void*))Main, NULL, 0, NULL);
              return TRUE;
           }
    
       return TRUE;
    
    }
    The code above demonstrates when you press F12, it will find and log the address for the example signature.

    DWORD CSignatureSearch::SigSearch(DWORD dwStartAddress, DWORD dwEndAddress, BYTE* bSignature, int nSize, BYTE bWildCard)

    dwStartAddress
    *The address that you will start the scan on.
    dwEndAddress
    *The address that the scan will stop at.
    bSignature
    *The signature of bytes to look for.
    nSize
    *The size of the signature.
    bWildCard
    *The wildcard byte in your signature. Wildcard in your signature means it means the byte you provide in this parameter can be any byte. In the example I provided, I used 0xEE.

    Return Value
    *Returns NULL / 00000000 if address is not found. If found, will return the address.
    Last edited by OneWhoSighs; 11-10-2007 at 04:38 PM.

  2. The Following User Says Thank You to OneWhoSighs For This Useful Post:

    NetNavi (11-10-2007)

  3. #2
    Kung Fu Penguin31's Avatar
    Join Date
    Jun 2007
    Gender
    male
    Location
    how am i supposed to know....
    Posts
    473
    Reputation
    12
    Thanks
    48
    thanks OWS , should help some advance coders







    [img]https://www.danasof*****m/sig/ghghhkjklk.jpg[/img]

    drill sargeant: How tall are you boy!?
    soldier: umm....urr about 5' 11''
    drill sargeant: I didn't know they stacked shit that high!!

    Creator of the Annihilation,Freebie and KFP Series.

    <MASTER HACKER>

  4. #3
    mains3rv3r's Avatar
    Join Date
    Mar 2007
    Gender
    male
    Location
    NC
    Posts
    360
    Reputation
    27
    Thanks
    29
    My Mood
    Devilish
    Very nice. Reps.

  5. #4
    k3killer's Avatar
    Join Date
    Sep 2007
    Posts
    37
    Reputation
    10
    Thanks
    15
    shouldent be to hard to make, thats all in c++ and i code in that

  6. #5
    SteeL's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    Mumbai
    Posts
    99
    Reputation
    10
    Thanks
    30

    Question

    it was working before warrock update of nov. 07

    but it;s just crashes warrock when i inject the DLL into warrock.exe

    i already commented out the Stamina LOG
    //Log_Address ( "Stamina", dwStamina , 2 );//THISONE

    but still game is crashing when i inject DLL.

    any solution ? i hv full source code.

    Quote Originally Posted by ace76543
    I suck arun's cock daily

  7. #6
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,920
    Reputation
    2548
    Thanks
    4,224
    My Mood
    Fine
    Quote Originally Posted by SteeL View Post
    it was working before warrock update of nov. 07

    but it;s just crashes warrock when i inject the DLL into warrock.exe

    i already commented out the Stamina LOG
    //Log_Address ( "Stamina", dwStamina , 2 );//THISONE

    but still game is crashing when i inject DLL.

    any solution ? i hv full source code.
    Do you know how old this is? Try getting something newer than this or just get addies the long way (not thaaat long)

  8. #7
    SteeL's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    Mumbai
    Posts
    99
    Reputation
    10
    Thanks
    30

    Cool

    but it used to work untill Oct. 2007

    but some new update came n stamina addy started acting in player base addy.

    & now on injecting it DLL & warrock crashes. can u help me !

    Yahoo/MSN msgr ID [same for both]: ajinkya.steel@yahoo.co.in

    Quote Originally Posted by ace76543
    I suck arun's cock daily

  9. #8
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,920
    Reputation
    2548
    Thanks
    4,224
    My Mood
    Fine
    Quote Originally Posted by SteeL View Post
    but it used to work untill Oct. 2007

    but some new update came n stamina addy started acting in player base addy.

    & now on injecting it DLL & warrock crashes. can u help me !

    Yahoo/MSN msgr ID [same for both]: ajinkya.steel@yahoo.co.in
    Sorry, can't help you, I get addies manually - if you don't know how refer to thimo's guide - it's quite good

  10. #9
    cjg333's Avatar
    Join Date
    Apr 2007
    Location
    indianapolis
    Posts
    300
    Reputation
    17
    Thanks
    54
    This still works fine.

  11. #10
    SteeL's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    Mumbai
    Posts
    99
    Reputation
    10
    Thanks
    30
    Quote Originally Posted by cjg333 View Post
    This still works fine.
    can u post here ur Sig & search CPP files !

    Quote Originally Posted by ace76543
    I suck arun's cock daily

  12. #11
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,920
    Reputation
    2548
    Thanks
    4,224
    My Mood
    Fine
    Quote Originally Posted by SteeL View Post
    can u post here ur Sig & search CPP files !
    PM him rather, k2 has ppl looking around here lol

    str8 gimme the files as well!

  13. #12
    TinyWeeWee's Avatar
    Join Date
    Sep 2006
    Gender
    male
    Location
    NYC
    Posts
    8,305
    Reputation
    76
    Thanks
    1,246
    My Mood
    Lurking
    Who the hell bumped this?

Similar Threads

  1. Auto-Updating Addresses
    By OneWhoSighs in forum Game Hacking Tutorials
    Replies: 4
    Last Post: 04-29-2013, 06:10 AM
  2. [Solved] can someone help me on a address finder
    By pinoko1 in forum Combat Arms Help
    Replies: 2
    Last Post: 05-06-2011, 10:22 PM
  3. [Release + Source] VB 2010 IP Address Finder
    By C0deCypher in forum Visual Basic Programming
    Replies: 4
    Last Post: 01-02-2011, 09:00 PM
  4. I saw one address finder or something...
    By badcobra10 in forum Visual Basic Programming
    Replies: 9
    Last Post: 06-07-2008, 08:05 AM
  5. WarRock Address Finder
    By tradami in forum WarRock - International Hacks
    Replies: 9
    Last Post: 05-29-2008, 09:54 AM