DebateFort - Where Warriors Come To Debate
RAGECRY - Funny, Amusing, Interesting, Trending & Viral Videos and Images
GameOrc - Free Flash Games Online
Results 1 to 12 of 12
  1. #1
    Watch your bytes!
    MPGH Member
    Edlmann's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Main.pas
    Posts
    1,387
    Reputation
    15
    Thanks
    388
    My Mood
    Sneaky

    Simple Pattern Scanner

    As im sealing my trainer development for now, i decided to release the source of my pattern scanner i use in my hack. Its a really simple one, and i already have a more advanced version, but to get the idea, this is enough.

    Code:
    function TMainForm.FindPatterns(SAddr, SLength: Integer; sPattern: String): Integer;
    var buf: array of Byte;
      raw: String;
      i, foundpos: Integer;
    begin
      Result := 0;
      //Set Scan-Length
      SetLength(buf, SLength);
      //Null the Buffer
      for i := 0 to Length(buf)-1 do
          Buf[i] := 0;
      //Read out the Memory Values
      RPM(SAddr, buf);
      //Translate into an hex-String
      raw := '';
      for i := 0 to Length(buf)-1 do
        raw := raw + StrToHex(Chr(buf[i]));
      //Searching the position the pattern is contained in raw
      //div 2 is needed because 1 byte = 2 Hex-Chars
      foundpos := pos(sPattern, raw) div 2;
      //if it was found anywhere, return that value
      if foundpos <> 0 then
      Result := foundpos + SAddr;
    end;
    For calling this procedure (which is delphi btw), you have to have 3 parameters: A start adress (SAddr), the Length of the Area that will be scanned (Slength) and the pattern you want to search for (SPattern).
    if you want to find e.g. Health for BlackOps, these 3 parameters wil work:

    PATTERN_START_ADDR = $1B00000;
    PATTERN_LEN = $100000;
    HEALTH_PATTERN = '0000000000640000000000000064';

    The procedure RPM just reads out the Memory of BlackOps into an array of byte. This is then translated into an Hexadecimal string (raw).

    It is a really simple one, but for understanding the idea behind it, its okey.
    An extension would be masking the pattern, so you can say stuff like "the first 10 signs have to be exactly the same, the next 6 dont matter, last 6 need to be the same again", but that would need regular expressions, which would let this thread explode :P

    Thanks if i helped,
    Edlmann
    My Releases:
    GUI For External BoxESP v. 1.0
    Another Single-Player-Zombie-Trainer v 3.0
    <Delphi Source> Simple Pattern Scanner

    If you have questions concerning coding/hacking in delphi, just pm me

  2. The Following 5 Users Say Thank You to Edlmann For This Useful Post:

    ლ(ಠ_ಠლ) (06-23-2011), Bandicoot (04-05-2011), House (04-03-2011), lolbie (04-03-2011), Zyixc (05-02-2011)

  3. #2
    Bobo's Trainer
    MPGH Member
    pyton789's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    790
    Reputation
    38
    Thanks
    2,068
    My Mood
    Sneaky
    Wow thats really simple.
    The code for my aobscanner is about 5 times longer.

    M-efti's Unlocker for alterIWnet . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-efti's MW2 SP Trainer 1.2
    M-efti's Superior alterIWnet Hack . . . . . . . . . . .. . . . . . . . . . . . . . . ..M-efti's MW2 SP Trainer 1.7
    M-efti's BO SP Trainer 4.12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..M-efti's Dead Pixels Trainer

  4. #3
    Threadstarter
    Watch your bytes!
    MPGH Member
    Edlmann's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Main.pas
    Posts
    1,387
    Reputation
    15
    Thanks
    388
    My Mood
    Sneaky
    If you read closely you will have noticed that it says "simple pattern scanner". This is more meant to show the strategie behind it. My actuall pattern scanner uses RegExps, and takes up 250 lines of code. No errors on that one, but doesnt really help with newest version. But well, doesnt matter, will keep on developing games now. Hackin just isnt good for anything. You won't need it anytime again.
    My Releases:
    GUI For External BoxESP v. 1.0
    Another Single-Player-Zombie-Trainer v 3.0
    <Delphi Source> Simple Pattern Scanner

    If you have questions concerning coding/hacking in delphi, just pm me

  5. #4
    Banned
    BANNED!
    ლ(ಠ_ಠლ)'s Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    trolololololo
    Posts
    7,100
    Reputation
    330
    Thanks
    1,452
    My Mood
    Chatty
    Niceeeeeeeeee. Delphi right?

  6. #5
    Threadstarter
    Watch your bytes!
    MPGH Member
    Edlmann's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Main.pas
    Posts
    1,387
    Reputation
    15
    Thanks
    388
    My Mood
    Sneaky
    Quote Originally Posted by Play&Win View Post
    Niceeeeeeeeee. Delphi right?
    Quote Originally Posted by Edlmann
    For calling this procedure (which is delphi btw),
    Yeah, seems to be right ^^
    My Releases:
    GUI For External BoxESP v. 1.0
    Another Single-Player-Zombie-Trainer v 3.0
    <Delphi Source> Simple Pattern Scanner

    If you have questions concerning coding/hacking in delphi, just pm me

  7. #6
    MPGH Lord
    MPGH Member
    lolbie's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Netherlands
    Posts
    5,213
    Reputation
    288
    Thanks
    1,999
    My Mood
    Angelic
    nice man that u released this one
    I love it when people keep their agreements /sarcasm ftw

  8. #7
    Banned
    BANNED!
    ლ(ಠ_ಠლ)'s Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    trolololololo
    Posts
    7,100
    Reputation
    330
    Thanks
    1,452
    My Mood
    Chatty
    Quote Originally Posted by Edlmann View Post
    Yeah, seems to be right ^^
    didn't read the part under your code. Delphi is actually really really used at my country. I personally like it, but never ever tried to learn it.
    Last edited by ლ(ಠ_ಠლ); 04-03-2011 at 10:31 AM.

  9. #8
    Threadstarter
    Watch your bytes!
    MPGH Member
    Edlmann's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Main.pas
    Posts
    1,387
    Reputation
    15
    Thanks
    388
    My Mood
    Sneaky
    You can do nearly everything with it... and you dont need some .net framework installed
    My Releases:
    GUI For External BoxESP v. 1.0
    Another Single-Player-Zombie-Trainer v 3.0
    <Delphi Source> Simple Pattern Scanner

    If you have questions concerning coding/hacking in delphi, just pm me

  10. #9
    Dual-Keyboard Member
    MPGH Member
    iFireLazers's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    264
    Reputation
    18
    Thanks
    702
    My Mood
    Amused
    No reg expressions necessary to match patterns...
    No-oversized-signatures-movement!

  11. The Following 2 Users Say Thank You to iFireLazers For This Useful Post:

    [MPGH]master131 (04-04-2011), Melodia (04-05-2011)

  12. #10
    Some l33t h4x0r.
    Donator
    Game Hacking Team
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,514
    Reputation
    2224
    Thanks
    40,934
    My Mood
    Breezy
    Quote Originally Posted by iFireLazers View Post
    No reg expressions necessary to match patterns...
    I coded the same thing in C++ with mask support, no regexp needed.
    Handy Tools/Hacks:
    Extreme Injector v3.3 *NEW*
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  13. #11
    Threadstarter
    Watch your bytes!
    MPGH Member
    Edlmann's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Main.pas
    Posts
    1,387
    Reputation
    15
    Thanks
    388
    My Mood
    Sneaky
    But its way faster with regexps ^^
    My Releases:
    GUI For External BoxESP v. 1.0
    Another Single-Player-Zombie-Trainer v 3.0
    <Delphi Source> Simple Pattern Scanner

    If you have questions concerning coding/hacking in delphi, just pm me

  14. The Following User Says Thank You to Edlmann For This Useful Post:

    House (04-05-2011)

  15. #12
    Dual-Keyboard Member
    MPGH Member
    iFireLazers's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    264
    Reputation
    18
    Thanks
    702
    My Mood
    Amused
    No, regular expression parsing is VERY slow.

    It's like String manipulation, CPU's aren't optimized for it.
    No-oversized-signatures-movement!

  16. The Following 2 Users Say Thank You to iFireLazers For This Useful Post:

    [MPGH]master131 (04-06-2011), Melodia (04-06-2011)