• 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 9 of 9
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Nucleus's Avatar
      Join Date
      Jan 2014
      Posts
      13
      Thanks (-->)
      1
      Thanks (<--)
      1

      Fleep's Pattern Scanner Tutorial error's

      John Kittz
      Hey guys, Nucleus here!

      I just completed the tutorial and was surprised when i tried to build the program i got a couple different errors.

      1>------ Build started: Project: ptscan, Configuration: Debug Win32 ------
      1>Source.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "struct _MODULEINFO __cdecl GetModuleInfo(char *)" (?GetModuleInfo@@YA?AU_MODULEINFO@@[email protected])
      1>C:\Users\Ryan\Documents\Visual Studio 2010\Projects\ptscan\Debug\ptscan.dll : fatal error LNK1120: 1 unresolved externals
      ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

      so i figured i would download fleep's source code to check whats wrong with mine.
      i threw his files in visual studio 2010 and tried to compile again, and even with his files it spits the same errors.
      i am confused and i have put effort into trying to solve these errors with no results.
      does anyone here know how to solve these? if so i thank you in advanced for helping!

    2. #2
      Hacker
      Working, University, Coding ..
       
      Drinking
       
      GAFO666's Avatar
      Join Date
      Aug 2012
      Location
      if(PlayerBase << 16) return IdontKnow("yolo");
      Posts
      531
      Thanks (-->)
      33
      Thanks (<--)
      102
      first of all that are LNK errors as you can see, mostly that means that you forgot to include extern files hmm to see what you missed to include its at least for me needed to see your project

      Leave a rep+ if I helped you with my answer
      Dont tell me to google something, first thing I do before asking is searching on my own.

    3. #3
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      zoratz's Avatar
      Join Date
      Jul 2013
      Posts
      47
      Thanks (-->)
      5
      Thanks (<--)
      1
      im not sure, but i think that on that tutorial you had to use:

      #include <Psapi.h>


      If so, try including papi library to you project:
      Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies
      Write this on the BOX that will come up:
      psapi.lib
      And mark the checkbox:
      [X] Inherit from parent or project defaults

      I got that error when I followed that tutorial as well.. I had some trouble finding it on the web haha
      Last edited by zoratz; 01-14-2014 at 08:28 AM.

    4. #4
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Nucleus's Avatar
      Join Date
      Jan 2014
      Posts
      13
      Thanks (-->)
      1
      Thanks (<--)
      1
      Quote Originally Posted by zoratz View Post
      im not sure, but i think that on that tutorial you had to use:

      #include <Psapi.h>


      If so, try including papi library to you project:

      Write this on the BOX that will come up:

      And mark the checkbox:



      I got that error when I followed that tutorial as well.. I had some trouble finding it on the web haha
      thank you mang you da baist!

    5. #5
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      145
      You can also try to add this line to the top

      #pragma comment (lib,"psapi.lib")

    6. Thanks windows.h thanked for this post
    7. #6
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Nucleus's Avatar
      Join Date
      Jan 2014
      Posts
      13
      Thanks (-->)
      1
      Thanks (<--)
      1
      Thank you everyone, the error is solved!

      -nucleus

    8. #7
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Nucleus's Avatar
      Join Date
      Jan 2014
      Posts
      13
      Thanks (-->)
      1
      Thanks (<--)
      1
      Well, if you guys are still here i got a quick question as well..
      DWORD FindPattern(char *module, char *pattern, char *mask) //pass in the module("ac_client.exe") and the pattern + mask.
      {
      //Get all module related information
      MODULEINFO mInfo = GetModuleInfo(module); //fill MODULEINFO stucture with important data that we need.

      //Assign our base and module size
      //Having the values right is ESSENTIAL, this makes sure
      //that we don't scan unwanted memory and leading our game to crash
      DWORD base = (DWORD)mInfo.lpBaseOfDll;
      DWORD size = (DWORD)mInfo.SizeOfImage;

      //Get length for our mask, this will allow us to loop through our array
      DWORD patternLength = (DWORD)strlen(mask); //Get mask from parameter in function call

      for(DWORD i = 0; i < size - patternLength; i++)
      {
      bool found = true;
      for(DWORD j = 0; j < patternLength; j++)
      {
      //if we have a ? in our mask then we have true by default,
      //or if the bytes match then we keep searching until finding it or not
      found &= mask[j] == '?' || pattern[j] == *(char*)(base + i + j);
      }

      //found = true, our entire pattern was found
      //return the memory addy so we can write to it
      if(found)
      {
      return base + i;
      }
      }

      return NULL;
      }


      im trying to understand this more in depth.. so does a pattern scanner work by scanning the whole module? can anyone explain to me why for(DWORD i = 0; i < size - patternLength; i++) you minus pattern length from size? cant wrap my brain around it

    9. #8
      Coder
      Creating UE3 x86/x64 tut
       
      Coding
       
      TastyHorror's Avatar
      Join Date
      Oct 2012
      Location
      Canada
      Posts
      184
      Thanks (-->)
      54
      Thanks (<--)
      81
      Whole module as far as I can tell. You cut of the pattern length, for the tail, if you do not do the minus pattern length, you may encounter an error/crash.

      So what do I mean? You only have lets say 100 BYTES, your looping thru the 100 BYTES, but you also have another LOOP inside which does lets say 10 LOOP.
      ex. loop1 0 to 100 { loop2 0 to 10 ( base + loop1.value + loop2.value ) } // would crah
      ex2. loop1 0 to 90 { loop2 0 to 10 ( base + loop1.value + loop2.value )} // most likely will not crash

      So you do, 100 - 10, something like that anyways. So that when you are at the 90 or something, at the end of the LOOP inside it would reach 100. Does that make sense?

      Someone correct me if I am wrong.
      Quote Originally Posted by squeenie View Post
      And just like Jesus did on easter Monday, he returns!

    10. #9
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Nucleus's Avatar
      Join Date
      Jan 2014
      Posts
      13
      Thanks (-->)
      1
      Thanks (<--)
      1
      Cheats'n'Trainers
      i am also confused about FindPattern(); is that a function we declare or are we using it from another library? im still confused how this for loop scans through memory matching patterns, this is my first time making a dll so i guess dll might be different than exe.

    Similar Game Hacker Threads

    1. [VideoTutorial] C++ Signature Scan / Pattern Scanning Tutorial DIFFICULTY[3/10]
      By Fleep in forum GH Hack Video Tutorials
      Replies: 41
      Last Post: 06-14-2016, 09:25 PM
    2. [Help] Fleep's Signature Scanning Tutorial (C++)
      By WhiteHood in forum Hacking Help
      Replies: 2
      Last Post: 01-26-2016, 05:48 AM
    3. [Help] Fleep's Triggerbot tutorial!
      By __Steven in forum Hacking Help
      Replies: 7
      Last Post: 07-28-2014, 09:04 AM
    4. Replies: 6
      Last Post: 01-31-2014, 07:56 AM
    5. [Help] Fleep c++ Esp Tutorial problem
      By trolo123 in forum GH Tutorials Help
      Replies: 8
      Last Post: 12-26-2013, 07:58 AM

    Tags for this Thread