Thread: PatternBase

Results 1 to 10 of 10
  1. #1
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical

    PatternBase

    Hey MPGH,
    first of all,all creditz go to CypherPresents.
    I only post it here because,the last day i posted a AddyLogger and you need the newest Pattern.So This will help you

    Information
    This is something I made when I had some time over at school after some project. It's more like a base that you can use to search patterns and easily have as a tool for updating your hacks.

    It felt like I needed to have something more universal that I could use for my projects as I have some old template I made almost a year ago, it works but not good

    So this took me like one and a half hour I think and is in my opinion pretty usefull
    or at least it is for me.

    How to use
    Its pretty straight forward and very easy.
    You open up the project, open Wrapper.cpp and to define a new "target" or actually the binary/module that is to be scanned for patterns you edit the function Wrapper::Initialize as for now its Notepad.exe as default because thats what I tested it with.

    Secondly to apply more/new patterns you define them in the function
    Wrapper::Search in there you can define you pattern like I did and
    then call the Pattern_h::Scan function.

    Code:
    char pzNotepad[] = "\x68\x00\x00\x00\x00\x53\xFF\x15\x00\x00\x00\x00\x8B\xF0\x89\x35\x00\x00\x00\x00";
    char szNotepad[] = "x????xxx????xxxx????";
    
    DWORD dwTest = Pat.Scan( "Notepad", (PBYTE)pzNotepad, szNotepad );
    Here I have defined a pattern to be used and then I call the scan function.
    I you would like a more flexible or be able to search for example two modules in the same project you could define new modules in the Wrapper::Intialize function for example.

    Code:
    DWORD dwBase2 = Tools.GetModuleBase( "othermodule.dll" );
    DWORD dwSize2 = Tools.GetModuleSize( "othermodule.dll" );
    and then call the other find function Pattern_h::CustomFind like this

    Code:
    DWORD dwTest2 = Pat.CustomFind( "NewValue", (DWORD)dwBase2, (DWORD)dwSize2, (PBYTE)pzNewMask, szNewMask );
    To search for a pattern using another defined module/binary.

    NOTES: All search function automatically prints the found offset into a log that is placed in the same directory as the
    PatternBase.dll and the log is named PatternBaseDump.txt. The first parameters of the Pattern_h::Scan
    and Pattern::CustomFind functions is actually the name of the offset that is going to placed in the log.

    ex.

    Code:
    DWORD dwTest = Pat.CustomFind( "NotepadOffset", ... );
    DWORD dwTest2 = Pat.CustomFind( "blabla", ... );
    NOTE AGAIN: Remember that the DWORD's dwTest and dwTest2 still holds the final offsets so that you can do
    custom stuff with the offset if you want too but its also automatically logged into the dumped txt file.

    So the output of the log should be something like:

    Code:
    NotepadOffset [ 0x000000 ]
    blabla [ 0x000000 ]
    So remember that the first parameter is the name that gets logged into the dumped offsets, nice huh

    Now this is something that is I think far away for fully complete so feel free to build upon this work and improve something if you wish.
    Things that you could add for example is:
    • Better multi-module compability
      Easier to add patterns
      Reading patterns from XML/Config file


    And ofcourse other things that you can come up with

    Credits: I guess the only one needed is dom1n1k for findpattern?

    Cheers and have fun, hopefully this will be usefull for some and not only me!
    Also forgive my lazy English.

    Virusscan1

    Virusscan2
    Last edited by FlaVour; 04-27-2011 at 06:57 PM. Reason: adding another virusscan
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  2. #2
    “I fear the day technology will surpass our human interaction. The world will have a generation of idiots.” ~Albert Einstein
    MPGH Member
    SteamAss's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    Crossfire
    Posts
    2,278
    Reputation
    28
    Thanks
    770
    My Mood
    Asleep
    Really works??? all? is it urs?



    If you need my Help:
    PM/VM

    Because The People Who Are Crazy Enough To Think They Can Change The World, Are The Ones Who Do. ~Steve Jobs

  3. #3
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical
    Quote Originally Posted by FlaVour View Post
    all creditz go to CypherPresents.

    yes it works but .... you need to edit the sources....like explained in the video...and you have to get one time the newest pattern for the process you want to get the patterns....
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  4. #4
    “I fear the day technology will surpass our human interaction. The world will have a generation of idiots.” ~Albert Einstein
    MPGH Member
    SteamAss's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    Crossfire
    Posts
    2,278
    Reputation
    28
    Thanks
    770
    My Mood
    Asleep
    @FlaVour can u help me do my CF Hak?



    If you need my Help:
    PM/VM

    Because The People Who Are Crazy Enough To Think They Can Change The World, Are The Ones Who Do. ~Steve Jobs

  5. #5
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical
    Quote Originally Posted by iGuy View Post
    @FlaVour can u help me do my CF Hak?
    Yh.Do you have MSN ? Write me a pm with your msn
    EDIT:Found your msn..i added you
    Last edited by FlaVour; 04-27-2011 at 06:47 PM. Reason: ...
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  6. #6
    Shane's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    18,826
    Reputation
    2537
    Thanks
    2,074
    My Mood
    Yeehaw
    please add another virus scan.
    Crossfire Minion: 28 October 2010
    Official Middleman: 20 September 2012
    Trusted Member: 15 February 2013
    Official Middleman: 11 April 2013
    Official Middleman: 10 January 2015
    ---------------------------------------------------
    Global Moderator: 25 December 2012
    Head Administrator: 21 March 2013


  7. #7
    FlaVour's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    155
    Reputation
    7
    Thanks
    24
    My Mood
    Cynical
    Quote Originally Posted by Shane View Post
    please add another virus scan.
    @Shane Virrusscan2 added.
    Last edited by FlaVour; 04-27-2011 at 07:11 PM.
    [Respect List]
    All they respect me


    [My projects]
    Crossfire NA Public Hack with menu together with sapass209

    [html]"Sir we're surrounded!"
    "Excellent, then we can attack in all directions".[/html]



  8. #8
    Shane's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    18,826
    Reputation
    2537
    Thanks
    2,074
    My Mood
    Yeehaw
    looks good.
    /approved.
    Crossfire Minion: 28 October 2010
    Official Middleman: 20 September 2012
    Trusted Member: 15 February 2013
    Official Middleman: 11 April 2013
    Official Middleman: 10 January 2015
    ---------------------------------------------------
    Global Moderator: 25 December 2012
    Head Administrator: 21 March 2013


  9. #9
    -Epic's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    Ask My mom !
    Posts
    334
    Reputation
    10
    Thanks
    26
    My Mood
    Cheerful
    Good work Thank you
    /gewed

  10. #10
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,010
    My Mood
    Amused
    Quote Originally Posted by -Epic View Post
    Good work Thank you
    /gewed
    You know what this is for?
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck