[mac] Pattern Finder - Help needed menu

User Tag List

Results 1 to 10 of 10
  1. #1
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [mac] Pattern Finder - Help needed

    I've been modeling my pattern finder after the version posted here written in C. (Sorry I don't have a link the thread, but it's here: http://tanaris4.ampaste.net/f26f65cab )

    Basically It's not ever returning the correct offset and I'm COMPLETELY stumped as to why. I'm using the PatternMaker IDA plugin to actually pull the patterns/masks from the mac wow executable. Then of course I simple execute dumpOffsets and the data returned is never correct, generally just 0x0. It doesn't find them in memory and I'm not sure why.

    Sorry it's in objective-C, but I don't think anyone should have any issues taking a look at it (as it's basically C). Ignore the memory reading parts to memoryChunk, there shouldn't be any issues there.

    OffsetController.m - pocketgnome - Project Hosting on Google Code

    Thanks in advance, and sorry it's messy, I'll clean it up when it actually works.

    [mac] Pattern Finder - Help needed
  2. #2
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Tanaris4 View Post
    II'm using the PatternMaker IDA plugin to actually pull the patterns/masks from the mac wow executable.
    Sorry I don't know a solution for your problem yet, but could give me a link to that lugin? Sounds interesting.

  3. #3
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is the IDA Plugin: http://dump.ifeedr.com/PatternMaker.zip

    ALL credits go to ostapus, I didn't create it by any means hah.

    Just dump it into your plugins folder in IDA Pro

    Anyone have any ideas on the original post? Hate that it's not working, it should just work via memory reads right?

  4. #4
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone have any ideas here? :-( Really struggling on dynamically finding these offsets

  5. #5
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the link at first, +rep for that, takes away a bunch of work for me.

    To your problem, why don't you just copy a chunk of memory from your target process using ReadProcessMemory, parse that chunk like the C-function does and if nothing is found copy next chunk?
    Or don't you have pointers in objective-C? (I read anything about that)

  6. #6
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by flo8464 View Post
    Thanks for the link at first, +rep for that, takes away a bunch of work for me.

    To your problem, why don't you just copy a chunk of memory from your target process using ReadProcessMemory, parse that chunk like the C-function does and if nothing is found copy next chunk?
    Or don't you have pointers in objective-C? (I read anything about that)
    This is what the code does, I just copy a chunk of memory, then loop through it comparing bytes

  7. #7
    vulcanaoc's Avatar Member
    Reputation
    31
    Join Date
    Jul 2008
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Regular expressions

  8. #8
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by vulcanaoc View Post
    Regular expressions
    why would that be any more efficient than a byte by byte comparison? Also that's not the point - as I'm sure I'd run into the exact same problem I'm having now :/

  9. #9
    vulcanaoc's Avatar Member
    Reputation
    31
    Join Date
    Jul 2008
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Tanaris4 View Post
    why would that be any more efficient than a byte by byte comparison? Also that's not the point - as I'm sure I'd run into the exact same problem I'm having now :/
    Because using a regular expression library would replace your (possibly) buggy pattern searching code. Additionally, certain implementations could perform faster on average than the linear search that you're doing. Otherwise- debug, debug, debug.

  10. #10
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was using the exact same functions that others were using, so that's why i don't think the problem is in the searching.

Similar Threads

  1. Running Antrix on Mac : Help Needed.
    By Herzeleid in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 09-27-2007, 09:35 AM
  2. Official MMOwned Video Archive -- HELP NEEDED!!
    By raunchy in forum Community Chat
    Replies: 9
    Last Post: 10-08-2006, 09:30 AM
  3. patch 1.10 help needed
    By AngelicKnights in forum World of Warcraft General
    Replies: 1
    Last Post: 09-21-2006, 01:37 PM
  4. some virus help needed ><
    By boblikes in forum World of Warcraft General
    Replies: 2
    Last Post: 08-21-2006, 08:18 PM
  5. Backspace scam Help needed
    By TripleShank26 in forum World of Warcraft General
    Replies: 3
    Last Post: 06-12-2006, 05:18 PM
All times are GMT -5. The time now is 04:32 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search