• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 3 of 3
    1. #1
      Banned
      Adapting
       
      Hacking
       
      Unknown Archetype's Avatar
      Join Date
      Nov 2013
      Posts
      3
      Thanks (-->)
      1
      Thanks (<--)
      1

      Question Finding patter, not as expected

      John Kittz
      .




      I have a problem here, it always returns 0xDEADBEEF, like if it couldn't find the bytes



      Click image for larger version. 

Name:	e.g.2.png 
Views:	50 
Size:	10.1 KB 
ID:	2188




      Click image for larger version. 

Name:	example.png 
Views:	12 
Size:	11.6 KB 
ID:	2189



      1.Initiating hooks


      void InitiateHooks()
      {
      DWORD ammoAddy = FindPattern("hl2.exe",
      "\x89\x3E\x5F\x8B\xC6\x5E\xC2\x04\x00\xCC\xCC\xCC\xCC\xCC",
      "xxxxxxxxxxxxxx");

      ammoAddy+=6;

      MsgBoxAddy(ammoAddy);
      char cad[1024];
      sprintf(cad, "Direccion:%02x", ammoAddy);
      MessageBox(NULL, cad, "", NULL);

      WriteToMemory(ammoAddy, AmmoOpCode, 2);
      }








      2. Finding patterns


      DWORD FindPattern(char *module, char *pattern, char *mask)
      {
      MODULEINFO mInfo = GetModuleInfo(module);

      DWORD base = (DWORD)mInfo.lpBaseOfDll;
      DWORD size = (DWORD)mInfo.SizeOfImage;

      DWORD patternLength = (DWORD)strlen(mask);

      for (DWORD i = 0; i < size - patternLength; i++)
      {
      bool found = true;

      for (DWORD j = 0; j < patternLength; j++)
      {
      found &= mask[j] == '?' || pattern[j] == *(char*)(base+i+j);
      }

      if (found)
      return base+i;
      }

      return 0xDEADBEEF;
      }
      Last edited by Unknown Archetype; 11-28-2013 at 01:53 AM. Reason: nothing big

    2. #2
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      598
      Thanks (<--)
      221
      Findpattern doesn't seem to work on source player classes. Try instead for a function that returns the class.

    3. #3
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Cheats'n'Trainers
      But you are going internally, aren't you?

      Try giving out the base of the dll and the end (the region you're scanning) and see if it's even where you find it in ollydbg.

    Similar Game Hacker Threads

    1. [Help] help finding cod bo3 matrix value
      By scriptures in forum Hacking Help
      Replies: 2
      Last Post: 05-20-2016, 11:54 AM
    2. [Help] Finding adress
      By Internet in forum C/C++
      Replies: 8
      Last Post: 05-06-2015, 12:24 PM
    3. [Help] Finding FOV
      By FaTal Cubez in forum Hacking Help
      Replies: 3
      Last Post: 01-26-2015, 04:22 PM
    4. [Help] Finding distance
      By xeltic in forum Hacking Help
      Replies: 1
      Last Post: 10-22-2014, 06:17 PM
    5. finding exe offsets in runtime
      By Icew0lf in forum Hacking Help
      Replies: 2
      Last Post: 10-09-2014, 12:19 PM

    Tags for this Thread